aboutsummaryrefslogtreecommitdiffstats
path: root/games/an
diff options
context:
space:
mode:
Diffstat (limited to 'games/an')
-rw-r--r--games/an/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/games/an/Makefile b/games/an/Makefile
index d05a9cc8d4d5..89c086cd6f5d 100644
--- a/games/an/Makefile
+++ b/games/an/Makefile
@@ -7,18 +7,25 @@
PORTNAME= an
PORTVERSION= 0.93
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ftp://suburbia.net/pub/rmj/ \
ftp://ftp.suburbia.net/pub/rmj/
-MAINTAINER= ports@FreeBSD.Org
+MAINTAINER= ports@FreeBSD.org
MAKE_ENV+= DEFS=-DDEFDICT=\\\"/usr/share/dict/words\\\"
ALL_TARGET= with-getopt
MAN6= an.6
+post-patch:
+ @${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|^CC=|CC?=|g ; \
+ s|^CFLAGS=-O|CFLAGS+=|g ; \
+ s| make| \$$\(MAKE\)|g' ${WRKSRC}/Makefile
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/an ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/an.6 ${MANPREFIX}/man/man6
+ ${INSTALL_PROGRAM} ${WRKSRC}/an ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/an.6 ${MANPREFIX}/man/man6
.include <bsd.port.mk>