2005-03-20 22:34:17 +01:00
|
|
|
# $NetBSD: Makefile,v 1.7 2005/03/20 21:34:17 salo Exp $
|
2000-12-21 07:20:53 +01:00
|
|
|
#
|
|
|
|
|
2002-10-25 13:33:32 +02:00
|
|
|
DISTNAME= pcal-4.7
|
2005-03-20 22:34:17 +01:00
|
|
|
PKGREVISION= 1
|
2000-12-21 07:20:53 +01:00
|
|
|
CATEGORIES= time
|
2002-10-25 13:33:32 +02:00
|
|
|
MASTER_SITES= http://membled.com/work/mirror/pcal/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2000-12-21 07:20:53 +01:00
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= kei@NetBSD.org
|
2002-10-25 13:33:32 +02:00
|
|
|
# pcal's home used to be http://www.geocities.com/SunsetStrip/Palms/5555/PS/
|
|
|
|
HOMEPAGE= http://membled.com/work/mirror/pcal/
|
2001-02-17 18:31:58 +01:00
|
|
|
COMMENT= PostScript calendar program
|
2000-12-21 07:20:53 +01:00
|
|
|
|
|
|
|
HTDOCS= ${PREFIX}/share/httpd/htdocs
|
2000-12-22 20:00:17 +01:00
|
|
|
CGIBINDIR= ${PREFIX}/libexec/cgi-bin
|
2000-12-21 07:20:53 +01:00
|
|
|
WWWSERVER!= hostname
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk" # for PAPERSIZE
|
|
|
|
.include <bsd.sys.mk> # for CC and HOST_CC
|
|
|
|
MAKE_ENV+= PAPERSIZE="${PAPERSIZE}"
|
|
|
|
MAKE_ENV+= CC="${CC}" HOST_CC="${HOST_CC}"
|
|
|
|
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= pcal
|
2000-12-21 07:20:53 +01:00
|
|
|
|
|
|
|
pre-install:
|
2000-12-22 20:00:17 +01:00
|
|
|
${MV} ${WRKSRC}/pcal.cgi ${WRKSRC}/pcal.cgi.tmp
|
|
|
|
${SED} -e 's|@@PREFIX@@|${PREFIX}|' \
|
|
|
|
< ${WRKSRC}/pcal.cgi.tmp > ${WRKSRC}/pcal.cgi
|
|
|
|
${MV} ${WRKSRC}/pcal.html ${WRKSRC}/pcal.html.tmp
|
|
|
|
${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \
|
|
|
|
< ${WRKSRC}/pcal.html.tmp > ${WRKSRC}/pcal.html
|
|
|
|
${MV} ${WRKSRC}/pcalw.html ${WRKSRC}/pcalw.html.tmp
|
|
|
|
${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \
|
|
|
|
< ${WRKSRC}/pcalw.html.tmp > ${WRKSRC}/pcalw.html
|
2000-12-21 07:20:53 +01:00
|
|
|
|
|
|
|
do-install:
|
2000-12-22 20:00:17 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pcal ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT_DIR} ${CGIBINDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pcal.cgi ${CGIBINDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pcal.man ${PREFIX}/man/man1/pcal.1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ReadMe ${PREFIX}/share/doc/ReadMe.pcal
|
|
|
|
${INSTALL_DATA_DIR} ${HTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/pcal.html ${HTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/pcalw.html ${HTDOCS}
|
2000-12-21 07:20:53 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|