Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # $OpenBSD: Makefile,v 1.50 2016/05/05 19:52:28 naddy Exp $
  2. COMMENT= Motif CD player
  3. DISTNAME= xmcd-2.6
  4. REVISION= 14
  5. CATEGORIES= audio
  6. HOMEPAGE= http://www.amb.org/xmcd/
  7. PERMIT_PACKAGE_CDROM= Yes
  8. WANTLIB= ICE SM Xau Xdmcp X11 Xaw Xext Xmu Xpm Xt c curses \
  9. m termlib Xm
  10. MASTER_SITES= https://distfiles.nl/
  11. LIB_DEPENDS+= x11/motif
  12. CONFIGURE_STYLE= imake
  13. MAKE_ENV+= MOTIFLIB='-L${LOCALBASE}/lib -lXm'
  14. NO_TEST= Yes
  15. XMCDLIB= ${PREFIX}/share/xmcd
  16. do-install:
  17. @cd ${WRKSRC}; env BATCH_BINDIR=${PREFIX}/bin \
  18. BATCH_LIBDIR=${PREFIX}/share \
  19. BATCH_MANDIR=${PREFIX}/man/man1 \
  20. BATCH_CDDBDIR=${WRKINST}/var/db/xmcd/cddb \
  21. BATCH_DISCOGDIR=${WRKINST}/var/db/xmcd/discog \
  22. sh install.sh -n -b
  23. post-install:
  24. chmod u-s ${PREFIX}/libexec/xmcd/*
  25. mv ${XMCDLIB}/docs ${PREFIX}/share/doc/xmcd
  26. cd ${XMCDLIB}; ln -s ../doc/xmcd docs
  27. mv ${XMCDLIB}/config/.tbl ${XMCDLIB}/tbl
  28. mv ${XMCDLIB}/config/config.sh ${PREFIX}/sbin/xmcdconfig
  29. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xmcd
  30. cd ${XMCDLIB}/config; for i in common.cfg device.cfg sites; do \
  31. mv $$i ${PREFIX}/share/examples/xmcd/$$i; done
  32. rmdir ${XMCDLIB}/config; ln -s ${SYSCONFDIR}/xmcd ${XMCDLIB}/config
  33. mv ${XMCDLIB}/app-defaults/XMcd ${PREFIX}/lib/X11/app-defaults/XMcd
  34. rm -f ${XMCDLIB}/cddb ${XMCDLIB}/discog
  35. for i in cddb discog; do ln -s /var/db/xmcd/$$i ${XMCDLIB}/$$i; done
  36. for i in bkgnd.gif xmcdlogo.gif discog.html; do \
  37. mv ${WRKINST}/var/db/xmcd/discog/$$i \
  38. ${PREFIX}/share/examples/xmcd/$$i; done
  39. cd ${PREFIX}/bin; \
  40. rm -f xmcd cda cddbcmd dp2xmcd wm2xmcd; mv .xmcd_start xmcd; \
  41. for i in cda cddbcmd dp2xmcd wm2xmcd; do ln -s xmcd $$i; done
  42. sed -i -e 's,\@PREFIX@,${TRUEPREFIX},; s,\@X11BASE@,${X11BASE},;' \
  43. -e 's,\@SYSCONFDIR@,${SYSCONFDIR},;' \
  44. ${PREFIX}/bin/xmcd ${PREFIX}/sbin/xmcdconfig \
  45. ${PREFIX}/lib/X11/app-defaults/XMcd \
  46. ${PREFIX}/man/man1/cda.1 ${PREFIX}/man/man1/xmcd.1
  47. sed -i 's,${WRKINST},,g' ${PREFIX}/bin/xmcd \
  48. ${XMCDLIB}/scripts/genidx ${PREFIX}/sbin/xmcdconfig \
  49. ${PREFIX}/share/examples/xmcd/discog.html
  50. .include <bsd.port.mk>