Lines 8-47
Link Here
|
8 |
PORTNAME= pcal |
8 |
PORTNAME= pcal |
9 |
PORTVERSION= 4.7.1 |
9 |
PORTVERSION= 4.7.1 |
10 |
CATEGORIES= print |
10 |
CATEGORIES= print |
11 |
MASTER_SITES= http://www.sunpoint.net/~pcal/ |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
|
|
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
12 |
|
13 |
|
13 |
MAINTAINER= ports@FreeBSD.org |
14 |
MAINTAINER= ports@FreeBSD.org |
14 |
COMMENT= PostScript calendar program |
15 |
COMMENT= PostScript calendar program |
15 |
|
16 |
|
16 |
WWWSERVER!= hostname |
17 |
USE_REINPLACE= yes |
|
|
18 |
MAKE_ENV= CC="${CC}" HOST_CC="${CC}" PAPERSIZE="${PAPERSIZE}" |
19 |
ALL_TARGET= pcal |
17 |
|
20 |
|
18 |
MAN1= pcal.1 |
21 |
MAN1= pcal.1 |
|
|
22 |
PLIST_FILES= bin/pcal libexec/pcal.cgi |
23 |
PORTDOCS= ReadMe pcal.html pcalw.html |
19 |
|
24 |
|
20 |
.include <bsd.port.pre.mk> |
25 |
WWWSERVER!= hostname |
21 |
|
|
|
22 |
MAKE_ENV+= PAPERSIZE="${PAPERSIZE}" |
23 |
MAKE_ENV+= CC="${CC}" HOST_CC="${CC}" |
24 |
|
26 |
|
25 |
ALL_TARGET= pcal |
27 |
.include <bsd.port.pre.mk> |
26 |
|
28 |
|
27 |
pre-install: |
29 |
post-patch: |
28 |
${MV} ${WRKSRC}/pcal.cgi ${WRKSRC}/pcal.cgi.tmp |
30 |
@${REINPLACE_CMD} -e \ |
29 |
${SED} -e 's|@@PREFIX@@|${PREFIX}|' \ |
31 |
's|@@PREFIX@@|${PREFIX}|g' ${WRKSRC}/pcal.cgi |
30 |
< ${WRKSRC}/pcal.cgi.tmp > ${WRKSRC}/pcal.cgi |
32 |
@${REINPLACE_CMD} -e \ |
31 |
${MV} ${WRKSRC}/pcal.html ${WRKSRC}/pcal.html.tmp |
33 |
's|@@WWWSERVER@@|${WWWSERVER}|g' ${WRKSRC}/pcal.html |
32 |
${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \ |
34 |
@${REINPLACE_CMD} -e \ |
33 |
< ${WRKSRC}/pcal.html.tmp > ${WRKSRC}/pcal.html |
35 |
's|@@WWWSERVER@@|${WWWSERVER}|g' ${WRKSRC}/pcalw.html |
34 |
${MV} ${WRKSRC}/pcalw.html ${WRKSRC}/pcalw.html.tmp |
|
|
35 |
${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \ |
36 |
< ${WRKSRC}/pcalw.html.tmp > ${WRKSRC}/pcalw.html |
37 |
|
36 |
|
38 |
do-install: |
37 |
do-install: |
39 |
${INSTALL_PROGRAM} ${WRKSRC}/pcal ${PREFIX}/bin |
38 |
${INSTALL_PROGRAM} ${WRKSRC}/pcal ${PREFIX}/bin |
40 |
${INSTALL_SCRIPT} ${WRKSRC}/pcal.cgi ${PREFIX}/libexec |
39 |
${INSTALL_SCRIPT} ${WRKSRC}/pcal.cgi ${PREFIX}/libexec |
41 |
${INSTALL_MAN} ${WRKSRC}/pcal.man ${PREFIX}/man/man1/pcal.1 |
40 |
${INSTALL_MAN} ${WRKSRC}/pcal.man ${MANPREFIX}/man/man1/pcal.1 |
42 |
${MKDIR} ${DOCSDIR} |
41 |
.if !defined(NOPORTDOCS) |
|
|
42 |
@${MKDIR} ${DOCSDIR} |
43 |
${INSTALL_DATA} ${WRKSRC}/ReadMe ${DOCSDIR} |
43 |
${INSTALL_DATA} ${WRKSRC}/ReadMe ${DOCSDIR} |
44 |
${INSTALL_DATA} ${WRKSRC}/pcal.html ${DOCSDIR} |
44 |
${INSTALL_DATA} ${WRKSRC}/pcal.html ${DOCSDIR} |
45 |
${INSTALL_DATA} ${WRKSRC}/pcalw.html ${DOCSDIR} |
45 |
${INSTALL_DATA} ${WRKSRC}/pcalw.html ${DOCSDIR} |
|
|
46 |
.endif |
46 |
|
47 |
|
47 |
.include <bsd.port.post.mk> |
48 |
.include <bsd.port.post.mk> |