aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-18 16:30:23 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-18 16:30:23 +0800
commit1820fe07b3af7a9157f5a2d99ced7e8cc422dd09 (patch)
treed5859323ec0da79a5e8c2a01b73efc1c558e2afb /deskutils
parent94b1cb49979f1dba52739ac79ced4d3cdc51dca6 (diff)
downloadfreebsd-ports-gnome-1820fe07b3af7a9157f5a2d99ced7e8cc422dd09.tar.gz
freebsd-ports-gnome-1820fe07b3af7a9157f5a2d99ced7e8cc422dd09.tar.zst
freebsd-ports-gnome-1820fe07b3af7a9157f5a2d99ced7e8cc422dd09.zip
Support staging
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/cal/Makefile18
-rw-r--r--deskutils/cal/pkg-plist7
2 files changed, 14 insertions, 11 deletions
diff --git a/deskutils/cal/Makefile b/deskutils/cal/Makefile
index 431d58a4aecd..d78324bfd211 100644
--- a/deskutils/cal/Makefile
+++ b/deskutils/cal/Makefile
@@ -13,17 +13,19 @@ COMMENT= Enhanced color version of standard calendar utility
WRKSRC= ${WRKDIR}/cal-3.5/source
MAKEFILE= makefile.unx
ALL_TARGET= cal
-MAN1= cal.1
-NO_STAGE= yes
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/cal ${PREFIX}/bin/cal
+ ${INSTALL_PROGRAM} ${WRKSRC}/cal ${STAGEDIR}${PREFIX}/bin/cal
${MV} ${WRKSRC}/cal.1 ${WRKSRC}/cal.1.orig
${SED} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/cal.1.orig > ${WRKSRC}/cal.1
- ${INSTALL_MAN} ${WRKSRC}/cal.1 ${PREFIX}/man/man1/cal.1
- @${MKDIR} ${PREFIX}/etc/cal
- @${CHMOD} 0755 ${PREFIX}/etc/cal
- if [ ! -f ${PREFIX}/etc/cal/calcol ]; then ${INSTALL_DATA} ${WRKDIR}/cal-3.5/cal.col ${PREFIX}/etc/cal/calcol; fi
- if [ ! -f ${PREFIX}/etc/cal/caldat ]; then ${INSTALL_DATA} ${WRKDIR}/cal-3.5/cal.dat ${PREFIX}/etc/cal/caldat; fi
+ ${INSTALL_MAN} ${WRKSRC}/cal.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/cal
+ @${CHMOD} 0755 ${STAGEDIR}${PREFIX}/etc/cal
+.if !exists(${STAGEDIR}${ETCDIR}/calcol)
+ ${INSTALL_DATA} ${WRKDIR}/cal-3.5/cal.col ${STAGEDIR}${ETCDIR}/calcol
+.endif
+.if !exists(${STAGEDIR}${ETCDIR}/caldat)
+ ${INSTALL_DATA} ${WRKDIR}/cal-3.5/cal.dat ${STAGEDIR}${ETCDIR}/caldat
+.endif
.include <bsd.port.mk>
diff --git a/deskutils/cal/pkg-plist b/deskutils/cal/pkg-plist
index 579954b0f841..7cba148c0b3d 100644
--- a/deskutils/cal/pkg-plist
+++ b/deskutils/cal/pkg-plist
@@ -1,4 +1,5 @@
bin/cal
-etc/cal/calcol
-etc/cal/caldat
-@dirrm etc/cal
+%%ETCDIR%%/calcol
+%%ETCDIR%%/caldat
+man/man1/cal.1.gz
+@dirrm %%ETCDIR%%