diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2014-02-28 20:37:32 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2014-02-28 20:37:32 +0800 |
commit | 46f67b5dcc4b168018f28b41a734926e692b07b0 (patch) | |
tree | f33c9cad9248ec8d8bb87f39d5194c501646866b /print | |
parent | 96294d838d7db46fdc9f5b789828d1828eed19d4 (diff) | |
download | freebsd-ports-gnome-46f67b5dcc4b168018f28b41a734926e692b07b0.tar.gz freebsd-ports-gnome-46f67b5dcc4b168018f28b41a734926e692b07b0.tar.zst freebsd-ports-gnome-46f67b5dcc4b168018f28b41a734926e692b07b0.zip |
- Support staging
- Use shebangfix
- USES -> gmake
- Define EXAMPLES option
- Define DOCS option
Diffstat (limited to 'print')
-rw-r--r-- | print/pcal/Makefile | 35 | ||||
-rw-r--r-- | print/pcal/pkg-plist | 1 |
2 files changed, 18 insertions, 18 deletions
diff --git a/print/pcal/Makefile b/print/pcal/Makefile index 7c674e0d6eb2..eb10d0fba3fe 100644 --- a/print/pcal/Makefile +++ b/print/pcal/Makefile @@ -10,17 +10,17 @@ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= PostScript calendar program +USES= shebangfix gmake + MAKE_ENV= HOST_CC="${CC}" ALL_TARGET= -USE_GMAKE= yes -MAN1= pcal.1 PORTDOCS= ReadMe.txt pcal.html pcalw.html +SHEBANG_FILES= html/pcal.pl WWWSERVER!= hostname -NO_STAGE= yes -.include <bsd.port.pre.mk> +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} -e \ @@ -33,17 +33,16 @@ post-patch: 's|@@WWWSERVER@@|${WWWSERVER}|g' ${WRKSRC}/html/pcalw.html do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/exec/pcal ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/html/pcal.cgi ${PREFIX}/libexec - ${INSTALL_SCRIPT} ${WRKSRC}/html/pcal.pl ${PREFIX}/libexec - ${INSTALL_MAN} ${WRKSRC}/doc/pcal.man ${MANPREFIX}/man/man1/pcal.1 - @${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/ReadMe.txt ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/html/pcal.html ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/html/pcalw.html ${DOCSDIR} -.endif - -.include <bsd.port.post.mk> + ${INSTALL_PROGRAM} ${WRKSRC}/exec/pcal ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/html/pcal.cgi ${STAGEDIR}${PREFIX}/libexec + ${INSTALL_SCRIPT} ${WRKSRC}/html/pcal.pl ${STAGEDIR}${PREFIX}/libexec + ${INSTALL_MAN} ${WRKSRC}/doc/pcal.man \ + ${STAGEDIR}${MANPREFIX}/man/man1/pcal.1 + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/ReadMe.txt ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/html/pcal.html ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/html/pcalw.html ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/print/pcal/pkg-plist b/print/pcal/pkg-plist index f0d4438c9d52..60082466abd2 100644 --- a/print/pcal/pkg-plist +++ b/print/pcal/pkg-plist @@ -1,6 +1,7 @@ bin/pcal libexec/pcal.cgi libexec/pcal.pl +man/man1/pcal.1.gz %%EXAMPLESDIR%%/calendar_au.txt %%EXAMPLESDIR%%/calendar_de.txt %%EXAMPLESDIR%%/calendar_ee.txt |