diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2014-02-18 08:30:23 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2014-02-18 08:30:23 +0000 |
commit | fcdd2c9fbd826b52c0daf69a360f422121ba7ff4 (patch) | |
tree | d5859323ec0da79a5e8c2a01b73efc1c558e2afb /deskutils/cal/Makefile | |
parent | 526f0ac3b03d4ef1ebc448e8ab3ad5ec29294b17 (diff) | |
download | ports-fcdd2c9fbd826b52c0daf69a360f422121ba7ff4.tar.gz ports-fcdd2c9fbd826b52c0daf69a360f422121ba7ff4.zip |
Notes
Diffstat (limited to 'deskutils/cal/Makefile')
-rw-r--r-- | deskutils/cal/Makefile | 18 |
1 files changed, 10 insertions, 8 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> |