Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # $OpenBSD: Makefile,v 1.30 2015/12/03 21:24:29 sthen Exp $
  2. COMMENT= cd player for Afterstep or Window Maker
  3. DISTNAME= ascd-0.13.2
  4. REVISION= 5
  5. CATEGORIES= audio x11 x11/windowmaker
  6. # BSD
  7. PERMIT_PACKAGE_CDROM= Yes
  8. WANTLIB= X11 Xau Xdmcp Xext Xpm c workman>=1
  9. MASTER_SITES= https://spacehopper.org/mirrors/
  10. DISTFILES= ${DISTNAME}-src.tgz ${DATAFILES}
  11. DATAFILES= ascd-0.13pr6-themes.tgz
  12. LIB_DEPENDS= audio/libworkman
  13. NO_TEST= Yes
  14. CONFIGURE_STYLE= imake
  15. post-extract:
  16. rm -r ${WRKSRC}/workman
  17. pre-configure:
  18. @sed -e "s:%%PREFIX%%:${PREFIX}:g" \
  19. ${WRKSRC}/misc/config.h.default > ${WRKSRC}/config.h
  20. @sed -e "s:%%PREFIX%%:${PREFIX}:g" \
  21. ${WRKSRC}/misc/dirs.h.default > ${WRKSRC}/dirs.h
  22. @cat ${WRKSRC}/version.h >> ${WRKSRC}/config.h
  23. post-install:
  24. ${INSTALL_DATA_DIR} ${PREFIX}/share/AScd
  25. tar xfC ${WRKSRC}/themes/default.tar ${PREFIX}/share/AScd/
  26. tar xfC ${WRKSRC}/themes/themes.tar ${PREFIX}/share/AScd/
  27. tar xfC ${WRKDIR}/ascd-0.13pr6-themes/themes.tar ${PREFIX}/share/AScd/Themes
  28. .include <bsd.port.mk>