1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

games/freebee: update 1.7 → 2.0

This commit is contained in:
Dmitry Marakasov 2022-03-05 18:04:38 +03:00
parent 5eaed4a582
commit 3e217af811
4 changed files with 18 additions and 25 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= freebee
DISTVERSIONPREFIX= ${PORTNAME}-
DISTVERSION= 1.7
DISTVERSION= 2.0
CATEGORIES= games
MAINTAINER= amdmi3@FreeBSD.org
@ -18,6 +18,8 @@ GH_PROJECT= console-client
PORTDOCS= README.md
PLIST_FILES= bin/freebee share/man/man6/freebee.6.gz
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1620327621
SHA256 (freebee-game-console-client-freebee-1.7_GH0.tar.gz) = a239520a4f10f5206e81a219d1cc7d3056f668b7119934d074fb8c65999244c3
SIZE (freebee-game-console-client-freebee-1.7_GH0.tar.gz) = 453839
TIMESTAMP = 1646491453
SHA256 (freebee-game-console-client-freebee-2.0_GH0.tar.gz) = 25dd752d92ea5f3e57d491927a75327a4ee838002b22586540ae92473f048db0
SIZE (freebee-game-console-client-freebee-2.0_GH0.tar.gz) = 9079

View File

@ -1,6 +1,6 @@
--- Makefile.orig 2020-07-28 01:02:14 UTC
--- Makefile.orig 2022-02-20 17:47:34 UTC
+++ Makefile
@@ -2,18 +2,18 @@
@@ -2,30 +2,30 @@
CC ?= cc
CFLAGS ?= -O2 -pipe
@ -8,22 +8,20 @@
+CFLAGS += -I${LOCALBASE}/include
# Remove if your system doesn't have
# arc4random_uniform(3) and/or strlcat(3)
# Same with pledge(2) and/or unveil(2)
# arc4random_uniform(3), strlcat(3), and/or strtonum(3)
# Same with pledge(2)
CFLAGS += -DHAVE_ARC4RANDOM_UNIFORM -DHAVE_STRLCAT
-CFLAGS += -DHAVE_PLEDGE -DHAVE_UNVEIL
+#CFLAGS += -DHAVE_PLEDGE -DHAVE_UNVEIL
# Uncomment if you don't want to install
# or if you plan to install the dictionary somewhere
# other than /usr/local/share/freebee/enable1.txt
-#CFLAGS += -DDICTIONARY="\"enable1.txt\""
+CFLAGS += -DDICTIONARY="\"${SHAREDIR}/enable1.txt\""
-CFLAGS += -DHAVE_STRTONUM -DHAVE_PLEDGE
+CFLAGS += -DHAVE_STRTONUM
PREFIX ?= /usr/local
BINDIR ?= ${PREFIX}/bin
@@ -25,15 +25,15 @@ OBJS = anagram.o arc4random_uniform.o dir.o game.o mai
strlcat.o
-MANDIR ?= ${PREFIX}/man/man6
+MANDIR ?= ${PREFIX}/share/man/man6
PROG = freebee
OBJS = anagram.o arc4random_uniform.o dir.o game.o main.o net.o rank.o \
strlcat.o strtonum.o
all: ${OBJS}
- ${CC} ${LDFLAGS} -o ${PROG} ${OBJS} -lncurses -L/usr/local/lib -lcurl
@ -32,16 +30,12 @@
install:
- /usr/bin/install -d -m 755 ${BINDIR}
- /usr/bin/install -d -m 755 ${MANDIR}
- /usr/bin/install -d -m 755 ${SHAREDIR}
- /usr/bin/install -c -s -m 555 freebee ${BINDIR}
- /usr/bin/install -c -m 444 freebee.6 ${MANDIR}
- /usr/bin/install -c -m 444 enable1.txt ${SHAREDIR}
+ /usr/bin/install -d -m 755 ${DESTDIR}${BINDIR}
+ /usr/bin/install -d -m 755 ${DESTDIR}${MANDIR}
+ /usr/bin/install -d -m 755 ${DESTDIR}${SHAREDIR}
+ /usr/bin/install -c -s -m 555 freebee ${DESTDIR}${BINDIR}
+ /usr/bin/install -c -m 444 freebee.6 ${DESTDIR}${MANDIR}
+ /usr/bin/install -c -m 444 enable1.txt ${DESTDIR}${SHAREDIR}
clean:
rm -f ${PROG} ${OBJS} ${PROG}.core

View File

@ -1,3 +0,0 @@
bin/freebee
man/man6/freebee.6.gz
%%DATADIR%%/enable1.txt