Files
ports/games/freebee/files/patch-Makefile
2026-10-04 04:07:15 +00:00

42 lines
1.2 KiB
Plaintext

--- Makefile.orig 2022-02-20 17:47:34 UTC
+++ Makefile
@@ -2,30 +2,30 @@
CC ?= cc
CFLAGS ?= -O2 -pipe
-CFLAGS += -I/usr/local/include
+CFLAGS += -I${LOCALBASE}/include
# Remove if your system doesn't have
# arc4random_uniform(3), strlcat(3), and/or strtonum(3)
# Same with pledge(2)
CFLAGS += -DHAVE_ARC4RANDOM_UNIFORM -DHAVE_STRLCAT
-CFLAGS += -DHAVE_STRTONUM -DHAVE_PLEDGE
+CFLAGS += -DHAVE_STRTONUM
PREFIX ?= /usr/local
BINDIR ?= ${PREFIX}/bin
-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
+ ${CC} ${LDFLAGS} -o ${PROG} ${OBJS} -lncurses -L${LOCALBASE}/lib -lcurl
install:
- /usr/bin/install -d -m 755 ${BINDIR}
- /usr/bin/install -d -m 755 ${MANDIR}
- /usr/bin/install -c -s -m 555 freebee ${BINDIR}
- /usr/bin/install -c -m 444 freebee.6 ${MANDIR}
+ /usr/bin/install -d -m 755 ${DESTDIR}${BINDIR}
+ /usr/bin/install -d -m 755 ${DESTDIR}${MANDIR}
+ /usr/bin/install -c -s -m 555 freebee ${DESTDIR}${BINDIR}
+ /usr/bin/install -c -m 444 freebee.6 ${DESTDIR}${MANDIR}
clean:
rm -f ${PROG} ${OBJS} ${PROG}.core