aboutsummaryrefslogtreecommitdiffstats
path: root/irc
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-27 22:59:46 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-27 22:59:46 +0800
commit8e44c2ef9d728f44310035f0af3ab99ae2d36543 (patch)
tree3c06a6960940878a32438531929073f2ccaa0495 /irc
parent8c7b359b87a2827cbd0cdf3089df65fe71d8b750 (diff)
downloadfreebsd-ports-gnome-8e44c2ef9d728f44310035f0af3ab99ae2d36543.tar.gz
freebsd-ports-gnome-8e44c2ef9d728f44310035f0af3ab99ae2d36543.tar.zst
freebsd-ports-gnome-8e44c2ef9d728f44310035f0af3ab99ae2d36543.zip
Support staging
Diffstat (limited to 'irc')
-rw-r--r--irc/fisg/Makefile32
-rw-r--r--irc/fisg/pkg-plist1
2 files changed, 16 insertions, 17 deletions
diff --git a/irc/fisg/Makefile b/irc/fisg/Makefile
index 453602401cf4..842a882ab891 100644
--- a/irc/fisg/Makefile
+++ b/irc/fisg/Makefile
@@ -9,30 +9,28 @@ MASTER_SITES= http://www.tnsp.org/files/
MAINTAINER= psh@iki.fi
COMMENT= Fast IRC statistics generator
-USE_GMAKE= yes
+USES= gmake
+
BUILD_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
PORTDOCS= README FAQ
-MAN1= fisg.1
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS EXAMPLES
+
post-patch:
@${REINPLACE_CMD} -e 's|^PREFIX|PREFIX?|' \
- -e 's|^CC|CC?|' -e 's|^CFLAGS|CFLAGS?|' ${WRKSRC}/src/Makefile
+ -e 's|^CC|CC?|' -e 's|^CFLAGS|CFLAGS?|' ${WRKSRC}/src/Makefile
do-install:
- ${MKDIR} ${DATADIR}
- ${CP} -Rp ${WRKSRC}/data/*.png ${DATADIR}/
- ${CP} -Rp ${WRKSRC}/data/*.css ${DATADIR}/
- ${CP} -Rp ${WRKSRC}/data/*.gif ${DATADIR}/
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/example.cfg ${EXAMPLESDIR}/
- ${INSTALL_DATA} ${WRKSRC}/users.cfg ${EXAMPLESDIR}/
- ${INSTALL_PROGRAM} ${WRKSRC}/src/fisg ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/src/fisg.1 ${MANPREFIX}/man/man1/
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ cd ${WRKSRC}/data/; ${INSTALL_DATA} *.css *.gif *.png \
+ ${STAGEDIR}${DATADIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/example.cfg ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/users.cfg ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/fisg ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/src/fisg.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/irc/fisg/pkg-plist b/irc/fisg/pkg-plist
index 61d94ed26e47..beccdf785d1b 100644
--- a/irc/fisg/pkg-plist
+++ b/irc/fisg/pkg-plist
@@ -1,4 +1,5 @@
bin/fisg
+man/man1/fisg.1.gz
%%EXAMPLESDIR%%/example.cfg
%%EXAMPLESDIR%%/users.cfg
%%DATADIR%%/blue-h.png