aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2003-08-18 03:07:20 +0800
committerkrion <krion@FreeBSD.org>2003-08-18 03:07:20 +0800
commit68cf6f479ccffe5b7af8b6b96b98f8d93082ebb5 (patch)
tree0ce0303bba071397d52f183afa47e3cde7630e32
parent5b63948b9668740b9c5b069882242665b21f6a0b (diff)
downloadfreebsd-ports-gnome-68cf6f479ccffe5b7af8b6b96b98f8d93082ebb5.tar.gz
freebsd-ports-gnome-68cf6f479ccffe5b7af8b6b96b98f8d93082ebb5.tar.zst
freebsd-ports-gnome-68cf6f479ccffe5b7af8b6b96b98f8d93082ebb5.zip
- Support USE_GETOPT_LONG
PR: 55664 Submitted by: Ports Fury
-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