1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/deskutils/cal/Makefile
2021-04-06 16:31:07 +02:00

40 lines
1.0 KiB
Makefile

# Created by: Andrey Zakhvatov <andy@icc.surw.chel.su>
PORTNAME= cal
DISTVERSION= 4.1
CATEGORIES= deskutils
MASTER_SITES= http://unicorn.us.com/pub/
DISTNAME= ${PORTNAME}${DISTVERSION:C/[^0-9]//}
MAINTAINER= 0mp@FreeBSD.org
COMMENT= Enhanced color version of standard calendar utility
LICENSE= PD
LICENSE_FILE= ${WRKSRC}/readme.cal
USES= zip
CFLAGS+= -DPREFIX='"${ETCDIR}"' -DUSE_REMINDER
PORTDOCS= readme.cal
CONFLICTS_INSTALL= util-linux
OPTIONS_DEFINE= DOCS
do-build:
${SETENV} ${MAKE_ENV} ${CC} ${CFLAGS} -o ${WRKSRC}/cal ${WRKSRC}/src/cal.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cal ${STAGEDIR}${PREFIX}/bin/cal
${INSTALL_MAN} ${WRKSRC}/src/cal.1 ${STAGEDIR}${MANPREFIX}/share/man/man1
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/cal.col ${STAGEDIR}${ETCDIR}/cal.col.sample
${INSTALL_DATA} ${WRKSRC}/cal.dat ${STAGEDIR}${ETCDIR}/cal.dat.sample
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>