Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / time / pcal / Makefile
blob5583d9935e65deda24c5d8b53e73bb63678fc174
1 # $NetBSD: Makefile,v 1.16 2009/09/02 08:34:15 wiz Exp $
4 DISTNAME= pcal-4.7
5 PKGREVISION= 2
6 CATEGORIES= time
7 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pcal/}
8 EXTRACT_SUFX= .tar.bz2
10 MAINTAINER= pkgsrc-users@NetBSD.org
11 HOMEPAGE= http://pcal.sourceforge.net/
12 COMMENT= PostScript calendar program
14 HTDOCS= ${PREFIX}/share/httpd/htdocs
15 CGIBINDIR= ${PREFIX}/libexec/cgi-bin
16 WWWSERVER= ${HOSTNAME_CMD:sh}
18 .include "../../mk/bsd.prefs.mk" # for PAPERSIZE
19 MAKE_ENV+= PAPERSIZE=${PAPERSIZE:Q}
20 MAKE_ENV+= CC=${CC:Q} HOST_CC=${CC:Q}
22 BUILD_TARGET= pcal
24 INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/pcal ${HTDOCS} ${CGIBINDIR}
26 pre-install:
27 ${MV} ${WRKSRC}/pcal.cgi ${WRKSRC}/pcal.cgi.tmp
28 ${SED} -e 's|@@PREFIX@@|${PREFIX}|' \
29 < ${WRKSRC}/pcal.cgi.tmp > ${WRKSRC}/pcal.cgi
30 ${MV} ${WRKSRC}/pcal.html ${WRKSRC}/pcal.html.tmp
31 ${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \
32 < ${WRKSRC}/pcal.html.tmp > ${WRKSRC}/pcal.html
33 ${MV} ${WRKSRC}/pcalw.html ${WRKSRC}/pcalw.html.tmp
34 ${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \
35 < ${WRKSRC}/pcalw.html.tmp > ${WRKSRC}/pcalw.html
37 do-install:
38 ${INSTALL_PROGRAM} ${WRKSRC}/pcal ${DESTDIR}${PREFIX}/bin
39 ${INSTALL_SCRIPT} ${WRKSRC}/pcal.cgi ${DESTDIR}${CGIBINDIR}
40 ${INSTALL_MAN} ${WRKSRC}/pcal.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/pcal.1
41 ${INSTALL_DATA} ${WRKSRC}/ReadMe ${DESTDIR}${PREFIX}/share/doc/pcal/ReadMe
42 ${INSTALL_DATA} ${WRKSRC}/pcal.html ${DESTDIR}${HTDOCS}
43 ${INSTALL_DATA} ${WRKSRC}/pcalw.html ${DESTDIR}${HTDOCS}
45 .include "../../mk/bsd.pkg.mk"