Skip to content

Commit 5eaed4a

Browse files
committed
games/freebee: add port
Free Bee is an enhanced Free Software clone of The New York Times game Spelling Bee. In this game, your goal is to find as many words as you can with the seven letters you are given. You don't have to use any letter except the middle letter and letters can be used more than once in a word. Finding a word that uses all seven letters yields bonus points! Every game has at least one such word, and many games have multiple. Earning enough points to reach the rank of Queen Bee wins the game! You can play the daily challenge like the original game or try your hand at a nearly infinite number of computer-generated random challenges. Unlike the original game, you are not restricted to only a single game per day! WWW: https://freebee.fun/ WWW: https://github.com/freebee-game/console-client
1 parent a18742b commit 5eaed4a

File tree

6 files changed

+100
-0
lines changed

6 files changed

+100
-0
lines changed

‎games/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@
278278
SUBDIR += fortunate
279279
SUBDIR += fotaq
280280
SUBDIR += four-in-a-row
281+
SUBDIR += freebee
281282
SUBDIR += freeblocks
282283
SUBDIR += freecell-solver
283284
SUBDIR += freeciv

‎games/freebee/Makefile‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
PORTNAME= freebee
2+
DISTVERSIONPREFIX= ${PORTNAME}-
3+
DISTVERSION= 1.7
4+
CATEGORIES= games
5+
6+
MAINTAINER= amdmi3@FreeBSD.org
7+
COMMENT= Multi-platform ncurses-based console client for Free Bee
8+
9+
LICENSE= ISCL
10+
LICENSE_FILE= ${WRKSRC}/LICENSE
11+
12+
LIB_DEPENDS= libcurl.so:ftp/curl
13+
14+
USES= ncurses
15+
USE_GITHUB= yes
16+
GH_ACCOUNT= freebee-game
17+
GH_PROJECT= console-client
18+
19+
PORTDOCS= README.md
20+
21+
OPTIONS_DEFINE= DOCS
22+
23+
post-install-DOCS-on:
24+
@${MKDIR} ${STAGEDIR}${DOCSDIR}
25+
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/
26+
27+
.include <bsd.port.mk>

‎games/freebee/distinfo‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
TIMESTAMP = 1620327621
2+
SHA256 (freebee-game-console-client-freebee-1.7_GH0.tar.gz) = a239520a4f10f5206e81a219d1cc7d3056f668b7119934d074fb8c65999244c3
3+
SIZE (freebee-game-console-client-freebee-1.7_GH0.tar.gz) = 453839

‎games/freebee/files/patch-Makefile‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
--- Makefile.orig 2020-07-28 01:02:14 UTC
2+
+++ Makefile
3+
@@ -2,18 +2,18 @@
4+
5+
CC ?= cc
6+
CFLAGS ?= -O2 -pipe
7+
-CFLAGS += -I/usr/local/include
8+
+CFLAGS += -I${LOCALBASE}/include
9+
10+
# Remove if your system doesn't have
11+
# arc4random_uniform(3) and/or strlcat(3)
12+
# Same with pledge(2) and/or unveil(2)
13+
CFLAGS += -DHAVE_ARC4RANDOM_UNIFORM -DHAVE_STRLCAT
14+
-CFLAGS += -DHAVE_PLEDGE -DHAVE_UNVEIL
15+
+#CFLAGS += -DHAVE_PLEDGE -DHAVE_UNVEIL
16+
17+
# Uncomment if you don't want to install
18+
# or if you plan to install the dictionary somewhere
19+
# other than /usr/local/share/freebee/enable1.txt
20+
-#CFLAGS += -DDICTIONARY="\"enable1.txt\""
21+
+CFLAGS += -DDICTIONARY="\"${SHAREDIR}/enable1.txt\""
22+
23+
PREFIX ?= /usr/local
24+
BINDIR ?= ${PREFIX}/bin
25+
@@ -25,15 +25,15 @@ OBJS = anagram.o arc4random_uniform.o dir.o game.o mai
26+
strlcat.o
27+
28+
all: ${OBJS}
29+
- ${CC} ${LDFLAGS} -o ${PROG} ${OBJS} -lncurses -L/usr/local/lib -lcurl
30+
+ ${CC} ${LDFLAGS} -o ${PROG} ${OBJS} -lncurses -L${LOCALBASE}/lib -lcurl
31+
32+
install:
33+
- /usr/bin/install -d -m 755 ${BINDIR}
34+
- /usr/bin/install -d -m 755 ${MANDIR}
35+
- /usr/bin/install -d -m 755 ${SHAREDIR}
36+
- /usr/bin/install -c -s -m 555 freebee ${BINDIR}
37+
- /usr/bin/install -c -m 444 freebee.6 ${MANDIR}
38+
- /usr/bin/install -c -m 444 enable1.txt ${SHAREDIR}
39+
+ /usr/bin/install -d -m 755 ${DESTDIR}${BINDIR}
40+
+ /usr/bin/install -d -m 755 ${DESTDIR}${MANDIR}
41+
+ /usr/bin/install -d -m 755 ${DESTDIR}${SHAREDIR}
42+
+ /usr/bin/install -c -s -m 555 freebee ${DESTDIR}${BINDIR}
43+
+ /usr/bin/install -c -m 444 freebee.6 ${DESTDIR}${MANDIR}
44+
+ /usr/bin/install -c -m 444 enable1.txt ${DESTDIR}${SHAREDIR}
45+
46+
clean:
47+
rm -f ${PROG} ${OBJS} ${PROG}.core

‎games/freebee/pkg-descr‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Free Bee is an enhanced Free Software clone of The New York Times
2+
game Spelling Bee.
3+
4+
In this game, your goal is to find as many words as you can with
5+
the seven letters you are given. You don't have to use any letter
6+
except the middle letter and letters can be used more than once in
7+
a word. Finding a word that uses all seven letters yields bonus
8+
points! Every game has at least one such word, and many games have
9+
multiple.
10+
11+
Earning enough points to reach the rank of Queen Bee wins the game!
12+
13+
You can play the daily challenge like the original game or try your
14+
hand at a nearly infinite number of computer-generated random
15+
challenges. Unlike the original game, you are not restricted to
16+
only a single game per day!
17+
18+
WWW: https://freebee.fun/
19+
WWW: https://github.com/freebee-game/console-client

‎games/freebee/pkg-plist‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bin/freebee
2+
man/man6/freebee.6.gz
3+
%%DATADIR%%/enable1.txt

0 commit comments

Comments
 (0)