Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $OpenBSD: Makefile,v 1.26 2015/08/11 20:13:39 jasper Exp $
  2. COMMENT= creates cover for audio cds using cddb and latex
  3. DISTNAME= disc-cover-1.5.6
  4. DISTFILES= ${DISTNAME}${EXTRACT_SUFX} webserver-1.0${EXTRACT_SUFX}
  5. DIST_SUBDIR= disc-cover
  6. CATEGORIES= audio
  7. HOMEPAGE= http://www.vanhemert.co.uk/disc-cover.html
  8. # GPL
  9. PERMIT_PACKAGE_CDROM= Yes
  10. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=disc-cover/}
  11. RUN_DEPENDS= print/texlive/base \
  12. graphics/ImageMagick \
  13. www/p5-libwww \
  14. audio/p5-Audio-CD
  15. NO_TEST= Yes
  16. EX_DIR= ${PREFIX}/share/examples/disc-cover
  17. PNGS= busy.png offline.png online.png
  18. pre-configure:
  19. @sed -i "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/disc-cover
  20. do-build:
  21. @cd ${WRKSRC}; pod2man disc-cover disc-cover.1
  22. do-install:
  23. ${INSTALL_SCRIPT} ${WRKSRC}/disc-cover ${PREFIX}/bin
  24. ${INSTALL_MAN} ${WRKSRC}/disc-cover.1 ${PREFIX}/man/man1
  25. ${INSTALL_DATA_DIR} ${EX_DIR}
  26. ${INSTALL_SCRIPT} ${WRKDIR}/webserver/{index.cgi,online.cgi} ${EX_DIR}
  27. .for i in ${PNGS}
  28. ${INSTALL_DATA} ${WRKDIR}/webserver/${i} ${EX_DIR}
  29. .endfor
  30. ${INSTALL_DATA_DIR} ${PREFIX}/share/disc-cover
  31. ${INSTALL_DATA} ${WRKSRC}/templates/* ${PREFIX}/share/disc-cover
  32. .include <bsd.port.mk>