pkgsrc/audio/disc-cover/Makefile
jlam 7aa57dd443 Use the "pod2man" tool to build man pages. This fixes brokenness
introduced after the perl5/buildlink3.mk file was no longer included
by the package Makefile, but we still referenced BUILDLINK_PREFIX.perl
to locate the pod2man script.  Noted by Matthias Drochner.
2005-07-26 20:02:23 +00:00

32 lines
860 B
Makefile

# $NetBSD: Makefile,v 1.18 2005/07/26 20:02:23 jlam Exp $
#
DISTNAME= disc-cover-1.5.4
CATEGORIES= audio
MASTER_SITES= http://homepages.cwi.nl/~jvhemert/files/
MAINTAINER= drochner@NetBSD.org
HOMEPAGE= http://homepages.cwi.nl/~jvhemert/disc-cover.html
COMMENT= Generation of CD covers
DEPENDS+= p5-Audio-CD>=0.05:../../audio/p5-Audio-CD
USE_TOOLS+= perl:run pod2man
REPLACE_PERL= disc-cover
DCTMPL= ${PREFIX}/share/disc-cover/templates
INSTALLATION_DIRS= bin man/man1
do-build:
cd ${WRKSRC} && ${POD2MAN} disc-cover > disc-cover.1
${SED} "s|@DCTMPL@|${DCTMPL}|g" <${WRKSRC}/disc-cover \
>${WRKDIR}/disc-cover
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/disc-cover ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/disc-cover.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${DCTMPL}
${INSTALL_DATA} ${WRKSRC}/templates/* ${DCTMPL}
.include "../../mk/bsd.pkg.mk"