openbsd-ports/audio/disc-cover/Makefile

48 lines
1.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.21 2009/08/24 15:17:11 sthen Exp $
COMMENT= creates cover for audio cds using cddb and latex
DISTNAME= disc-cover-1.5.6
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} webserver-1.0${EXTRACT_SUFX}
DIST_SUBDIR= disc-cover
2002-02-02 01:17:56 -05:00
CATEGORIES= audio
2006-07-19 09:41:02 -04:00
HOMEPAGE= http://www.vanhemert.co.uk/disc-cover.html
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=disc-cover/}
RUN_DEPENDS= ::print/texlive/base \
:ImageMagick-*:graphics/ImageMagick \
:p5-libwww-*:www/p5-libwww \
:p5-Audio-CD-*:audio/p5-Audio-CD
2001-10-31 15:09:18 -05:00
NO_REGRESS= Yes
2003-04-18 17:27:12 -04:00
EX_DIR= ${PREFIX}/share/examples/disc-cover
PNGS= busy.png offline.png online.png
pre-configure:
2003-04-18 17:27:12 -04:00
@perl -i -pe "s#%%PREFIX%%#${PREFIX}#" ${WRKSRC}/disc-cover
do-build:
2003-04-18 17:27:12 -04:00
@cd ${WRKSRC}; pod2man disc-cover disc-cover.1
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/disc-cover ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/disc-cover.1 ${PREFIX}/man/man1
2003-04-18 17:27:12 -04:00
${INSTALL_DATA_DIR} ${EX_DIR}
${INSTALL_SCRIPT} ${WRKDIR}/webserver/{index.cgi,online.cgi} ${EX_DIR}
2003-04-18 17:27:12 -04:00
.for i in ${PNGS}
${INSTALL_DATA} ${WRKDIR}/webserver/${i} ${EX_DIR}
2003-04-18 17:27:12 -04:00
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/disc-cover
${INSTALL_DATA} ${WRKSRC}/templates/* ${PREFIX}/share/disc-cover
.include <bsd.port.mk>