From 68cf6f479ccffe5b7af8b6b96b98f8d93082ebb5 Mon Sep 17 00:00:00 2001 From: krion Date: Sun, 17 Aug 2003 19:07:20 +0000 Subject: - Support USE_GETOPT_LONG PR: 55664 Submitted by: Ports Fury --- games/an/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'games/an') 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 '//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 -- cgit