blob: 229b3a7d387a20657ff67f9e213780d89de5b3f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: Makefile,v 1.2 2000/12/22 19:00:17 jlam Exp $
#
DISTNAME= pcal_4_7_tar_Z
PKGNAME= pcal-4.7
WRKSRC= ${WRKDIR}/pcal.4.7
CATEGORIES= time
MASTER_SITES= http://www.geocities.com/SunsetStrip/Palms/5555/PS/
EXTRACT_SUFX= .txt
MAINTAINER= kei@netbsd.org
HOMEPAGE= http://www.geocities.com/SunsetStrip/Palms/5555/PS/index.html
UUDECODE?= uudecode -p
EXTRACT_CMD= ${CAT} ${DOWNLOADED_DISTFILE} | ${UUDECODE} | ${PAX} -rz
HTDOCS= ${PREFIX}/share/httpd/htdocs
CGIBINDIR= ${PREFIX}/libexec/cgi-bin
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}"
ALL_TARGET= pcal
pre-install:
${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
do-install:
${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}
.include "../../mk/bsd.pkg.mk"
|