1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/print/pcal/Makefile
2024-01-09 11:32:17 +01:00

51 lines
1.4 KiB
Makefile

PORTNAME= pcal
PORTVERSION= 4.11.0
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= PostScript calendar program
WWW= https://pcal.sourceforge.net/
USES= cpe shebangfix gmake tar:tgz
MAKE_ENV= HOST_CC="${CC}"
ALL_TARGET=
PORTDOCS= ReadMe.txt pcal.html pcalw.html
SHEBANG_FILES= html/pcal.pl
WWWSERVER!= hostname
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e \
's|@@PREFIX@@|${PREFIX}|g' ${WRKSRC}/html/pcal.cgi
@${REINPLACE_CMD} -e \
's|@@PREFIX@@|${PREFIX}|g' ${WRKSRC}/html/pcal.pl
@${REINPLACE_CMD} -e \
's|@@WWWSERVER@@|${WWWSERVER}|g' ${WRKSRC}/html/pcal.html
@${REINPLACE_CMD} -e \
's|@@WWWSERVER@@|${WWWSERVER}|g' ${WRKSRC}/html/pcalw.html
do-install:
${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}${PREFIX}/share/man/man1/pcal.1
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
do-install-DOCS-on:
@${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>