2001-08-06 13:13:44 +00:00
|
|
|
# New ports collection makefile for: pcal
|
|
|
|
# Date created: 10 June 2001
|
|
|
|
# Whom: mwest@uct.ac.za
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pcal
|
2006-09-13 16:53:07 +00:00
|
|
|
PORTVERSION= 4.10.0
|
2001-08-06 13:13:44 +00:00
|
|
|
CATEGORIES= print
|
2004-03-10 14:24:04 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2005-01-14 22:42:27 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
2001-08-06 13:13:44 +00:00
|
|
|
|
2005-10-21 19:36:52 +00:00
|
|
|
MAINTAINER= laszlof@vonostingroup.com
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= PostScript calendar program
|
2001-08-06 13:13:44 +00:00
|
|
|
|
2005-01-14 22:42:27 +00:00
|
|
|
MAKE_ENV= CC="${CC}" HOST_CC="${CC}"
|
|
|
|
ALL_TARGET=
|
|
|
|
USE_GMAKE= yes
|
2001-08-06 13:13:44 +00:00
|
|
|
|
|
|
|
MAN1= pcal.1
|
2005-01-14 22:42:27 +00:00
|
|
|
PORTDOCS= ReadMe.txt pcal.html pcalw.html
|
2001-08-06 13:13:44 +00:00
|
|
|
|
2004-03-10 14:24:04 +00:00
|
|
|
WWWSERVER!= hostname
|
2001-08-06 13:13:44 +00:00
|
|
|
|
2004-03-10 14:24:04 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2001-08-06 13:13:44 +00:00
|
|
|
|
2004-03-10 14:24:04 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
2005-01-14 22:42:27 +00:00
|
|
|
's|@@PREFIX@@|${PREFIX}|g' ${WRKSRC}/html/pcal.cgi
|
2005-10-21 19:36:52 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|@@PREFIX@@|${PREFIX}|g' ${WRKSRC}/html/pcal.pl
|
2004-03-10 14:24:04 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
2005-01-14 22:42:27 +00:00
|
|
|
's|@@WWWSERVER@@|${WWWSERVER}|g' ${WRKSRC}/html/pcal.html
|
2004-03-10 14:24:04 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
2005-01-14 22:42:27 +00:00
|
|
|
's|@@WWWSERVER@@|${WWWSERVER}|g' ${WRKSRC}/html/pcalw.html
|
2001-08-06 13:13:44 +00:00
|
|
|
|
|
|
|
do-install:
|
2005-01-14 22:42:27 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/exec/pcal ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/html/pcal.cgi ${PREFIX}/libexec
|
2005-10-21 19:36:52 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/html/pcal.pl ${PREFIX}/libexec
|
2005-01-14 22:42:27 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/pcal.man ${MANPREFIX}/man/man1/pcal.1
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
2004-03-10 14:24:04 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-01-14 22:42:27 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/ReadMe.txt ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/html/pcal.html ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/html/pcalw.html ${DOCSDIR}
|
2004-03-10 14:24:04 +00:00
|
|
|
.endif
|
2001-08-06 13:13:44 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|