[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / time / pcal

File: [cvs.NetBSD.org] / pkgsrc / time / pcal / Makefile (download)

Revision 1.21, Thu May 14 18:59:15 2020 UTC (8 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, HEAD
Changes since 1.20: +2 -2 lines

Really replace CC

# $NetBSD: Makefile,v 1.21 2020/05/14 18:59:15 joerg Exp $
#

DISTNAME=	pcal-4.11.0
CATEGORIES=	time
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=pcal/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://pcal.sourceforge.net/
COMMENT=	PostScript calendar program

HTDOCS=		${PREFIX}/share/httpd/htdocs
CGIBINDIR=	${PREFIX}/libexec/cgi-bin
WWWSERVER=	${HOSTNAME_CMD:sh}

USE_TOOLS+=	gmake

MAKE_FLAGS+=	CC=${CC:Q}

BUILD_TARGET=	exec/pcal

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 share/doc/pcal ${HTDOCS} ${CGIBINDIR}

pre-install:
	${MV} ${WRKSRC}/html/pcal.cgi ${WRKSRC}/html/pcal.cgi.tmp
	${SED} -e 's|@@PREFIX@@|${PREFIX}|' \
		< ${WRKSRC}/html/pcal.cgi.tmp > ${WRKSRC}/html/pcal.cgi
	${MV} ${WRKSRC}/html/pcal.html ${WRKSRC}/html/pcal.html.tmp
	${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \
		< ${WRKSRC}/html/pcal.html.tmp > ${WRKSRC}/html/pcal.html
	${MV} ${WRKSRC}/html/pcalw.html ${WRKSRC}/html/pcalw.html.tmp
	${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \
		< ${WRKSRC}/html/pcalw.html.tmp > ${WRKSRC}/html/pcalw.html

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/exec/pcal ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/html/pcal.cgi ${DESTDIR}${CGIBINDIR}
	${INSTALL_MAN} ${WRKSRC}/doc/pcal.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/pcal.1
	${INSTALL_DATA} ${WRKSRC}/doc/ReadMe.txt ${DESTDIR}${PREFIX}/share/doc/pcal/README
	${INSTALL_DATA} ${WRKSRC}/html/pcal.html ${DESTDIR}${HTDOCS}
	${INSTALL_DATA} ${WRKSRC}/html/pcalw.html ${DESTDIR}${HTDOCS}

.include "../../mk/bsd.pkg.mk"