From 556045676d4346108cb58d5ef09b824fd7fc075a Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 29 Oct 2013 02:08:54 +0000 Subject: [PATCH] - Support staging - Respect CFLAGS - Remove unneeded USE_GMAKE --- games/cgoban/Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/games/cgoban/Makefile b/games/cgoban/Makefile index a3d0d66c7e47..a35e83b4b65c 100644 --- a/games/cgoban/Makefile +++ b/games/cgoban/Makefile @@ -10,20 +10,19 @@ MASTER_SITES= SF/${PORTNAME}1/${PORTNAME}1/${PORTVERSION} MAINTAINER= amdmi3@FreeBSD.org COMMENT= Internet Go Server client and game editor -USE_GMAKE= yes GNU_CONFIGURE= yes USE_XORG= x11 ice sm -MAN6= cgoban.6 -PLIST_FILES= bin/cgoban +PLIST_FILES= bin/cgoban \ + man/man6/cgoban.6.gz -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|/usr/bin/gnugo|${LOCALBASE}/bin/gnugo|' ${WRKSRC}/src/cgoban.c - @${REINPLACE_CMD} -e 's|linux/soundcard.h|sys/soundcard.h|' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|linux/soundcard.h|sys/soundcard.h|; \ + /CFLAGS='\''-O2/ d' ${WRKSRC}/configure do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/cgoban ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/man6/cgoban.6 ${MANPREFIX}/man/man6 + ${INSTALL_PROGRAM} ${WRKSRC}/src/cgoban ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/man6/cgoban.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/ .include