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 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