aboutsummaryrefslogtreecommitdiff
path: root/games/an
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-08-17 19:07:20 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-08-17 19:07:20 +0000
commitc923325299220cb541c906a572bea54cf069853b (patch)
tree0d9c9e1a7f7cd88160c926dba42e8bc3dbe11ab9 /games/an
parentccee629f3b693e1f4c0a3adc9e2ea4942666b0bc (diff)
downloadports-c923325299220cb541c906a572bea54cf069853b.tar.gz
ports-c923325299220cb541c906a572bea54cf069853b.zip
- Support USE_GETOPT_LONG
PR: 55664 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=87139
Diffstat (limited to 'games/an')
-rw-r--r--games/an/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/games/an/Makefile b/games/an/Makefile
index 380c07b4937f..d7cdc7dd2d6b 100644
--- a/games/an/Makefile
+++ b/games/an/Makefile
@@ -7,6 +7,7 @@
PORTNAME= an
PORTVERSION= 0.95
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL}
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
@@ -15,18 +16,18 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Fast anagram generator
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+USE_GETOPT_LONG= yes
USE_REINPLACE= yes
-ALL_TARGET= with-getopt
MAN6= an.6
post-patch:
- @${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
- 's|^CC=|CC?=|g ; \
- s|^CFLAGS=-O2|CFLAGS+=|g ; \
- s| make| \$$\(MAKE\)|g'
- @${REINPLACE_CMD} -e 's|^\#OBJS|OBJS|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/<stdint.h>/d' ${WRKSRC}/an.c
+do-build:
+ cd ${BUILD_WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} an.c gan_qsort.c \
+ -o ${PORTNAME} ${LDFLAGS}
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/an ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/an.6 ${MANPREFIX}/man/man6