2009-12-20 21:00:24 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.36 2009/12/20 21:00:24 kili Exp $
|
1999-10-28 01:49:35 +00:00
|
|
|
|
2007-09-15 21:26:00 +00:00
|
|
|
COMMENT= Motif CD player
|
2001-08-08 23:31:23 +00:00
|
|
|
|
2001-01-18 16:41:27 +00:00
|
|
|
DISTNAME= xmcd-2.6
|
2009-12-20 21:00:24 +00:00
|
|
|
PKGNAME= ${DISTNAME}p9
|
1999-04-09 04:11:45 +00:00
|
|
|
CATEGORIES= audio
|
2008-10-28 12:09:05 +00:00
|
|
|
HOMEPAGE= http://www.amb.org/xmcd/
|
1998-05-21 01:38:01 +00:00
|
|
|
|
2000-06-10 17:39:11 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2007-11-13 12:44:22 +00:00
|
|
|
|
2009-08-10 06:29:51 +00:00
|
|
|
WANTLIB= ICE SM Xau Xdmcp X11 Xaw Xext Xmu Xp Xpm Xt c curses \
|
2009-12-20 21:00:24 +00:00
|
|
|
m termlib
|
2000-02-12 08:02:07 +00:00
|
|
|
|
2009-09-10 22:12:55 +00:00
|
|
|
MASTER_SITES= http://www.phil.uu.nl/~lievisse/distfiles/
|
2001-01-18 16:41:27 +00:00
|
|
|
|
2006-11-13 10:08:12 +00:00
|
|
|
USE_X11= Yes
|
2001-04-19 01:59:35 +00:00
|
|
|
USE_MOTIF= any
|
2001-01-18 16:41:27 +00:00
|
|
|
CONFIGURE_STYLE= imake
|
2002-10-24 22:20:03 +00:00
|
|
|
NO_REGRESS= Yes
|
2001-01-18 16:41:27 +00:00
|
|
|
|
|
|
|
XMCDLIB= ${PREFIX}/share/xmcd
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${WRKSRC}; env BATCH_BINDIR=${PREFIX}/bin \
|
|
|
|
BATCH_LIBDIR=${PREFIX}/share \
|
|
|
|
BATCH_MANDIR=${PREFIX}/man/man1 \
|
|
|
|
BATCH_CDDBDIR=${WRKINST}/var/db/xmcd/cddb \
|
|
|
|
BATCH_DISCOGDIR=${WRKINST}/var/db/xmcd/discog \
|
|
|
|
sh install.sh -n -b
|
1998-05-21 01:38:01 +00:00
|
|
|
|
|
|
|
post-install:
|
2006-12-04 21:37:21 +00:00
|
|
|
chmod u-s ${PREFIX}/libexec/xmcd/*
|
2001-01-18 16:41:27 +00:00
|
|
|
mv ${XMCDLIB}/docs ${PREFIX}/share/doc/xmcd
|
|
|
|
cd ${XMCDLIB}; ln -s ../doc/xmcd docs
|
|
|
|
mv ${XMCDLIB}/config/.tbl ${XMCDLIB}/tbl
|
|
|
|
mv ${XMCDLIB}/config/config.sh ${PREFIX}/sbin/xmcdconfig
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xmcd
|
|
|
|
cd ${XMCDLIB}/config; for i in common.cfg device.cfg sites; do \
|
|
|
|
mv $$i ${PREFIX}/share/examples/xmcd/$$i; done
|
|
|
|
rmdir ${XMCDLIB}/config; ln -s ${SYSCONFDIR}/xmcd ${XMCDLIB}/config
|
|
|
|
mv ${XMCDLIB}/app-defaults/XMcd ${PREFIX}/lib/X11/app-defaults/XMcd
|
|
|
|
rm -f ${XMCDLIB}/cddb ${XMCDLIB}/discog
|
|
|
|
for i in cddb discog; do ln -s /var/db/xmcd/$$i ${XMCDLIB}/$$i; done
|
|
|
|
for i in bkgnd.gif xmcdlogo.gif discog.html; do \
|
|
|
|
mv ${WRKINST}/var/db/xmcd/discog/$$i \
|
|
|
|
${PREFIX}/share/examples/xmcd/$$i; done
|
|
|
|
cd ${PREFIX}/bin; \
|
|
|
|
rm -f xmcd cda cddbcmd dp2xmcd wm2xmcd; mv .xmcd_start xmcd; \
|
|
|
|
for i in cda cddbcmd dp2xmcd wm2xmcd; do ln -s xmcd $$i; done
|
|
|
|
perl -pi -e 's,\@PREFIX@,${TRUEPREFIX},; s,\@X11BASE@,${X11BASE},;' \
|
|
|
|
-e 's,\@SYSCONFDIR@,${SYSCONFDIR},;' \
|
|
|
|
${PREFIX}/bin/xmcd ${PREFIX}/sbin/xmcdconfig \
|
|
|
|
${PREFIX}/lib/X11/app-defaults/XMcd \
|
|
|
|
${PREFIX}/man/man1/cda.1 ${PREFIX}/man/man1/xmcd.1
|
|
|
|
perl -pi -e 's,${WRKINST},,g' ${PREFIX}/bin/xmcd \
|
|
|
|
${XMCDLIB}/scripts/genidx ${PREFIX}/sbin/xmcdconfig \
|
|
|
|
${PREFIX}/share/examples/xmcd/discog.html
|
1998-05-21 01:38:01 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|