summaryrefslogtreecommitdiff
path: root/sysutils/xcdroast/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-09-26 12:29:55 +0000
committerjlam <jlam@pkgsrc.org>2002-09-26 12:29:55 +0000
commitc3c74b88b62d1546055959eed224e8bb7656b0d9 (patch)
tree7e6c725fae596454a6f1f77777989001ea121efc /sysutils/xcdroast/Makefile
parentad3d77880de390edc9dbc515eb609300510b1102 (diff)
downloadpkgsrc-c3c74b88b62d1546055959eed224e8bb7656b0d9.tar.gz
* Use buildlink2.
* Install some documentation. * Honor PKG_SYSCONFDIR (and warn user that the config file directory may have changed). * Allow for compiling with OSS support on NetBSD, though it is currently commented out.
Diffstat (limited to 'sysutils/xcdroast/Makefile')
-rw-r--r--sysutils/xcdroast/Makefile41
1 files changed, 35 insertions, 6 deletions
diff --git a/sysutils/xcdroast/Makefile b/sysutils/xcdroast/Makefile
index 6c888fb0706..ae7742d6394 100644
--- a/sysutils/xcdroast/Makefile
+++ b/sysutils/xcdroast/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2002/03/17 15:46:16 fredb Exp $
+# $NetBSD: Makefile,v 1.8 2002/09/26 12:29:55 jlam Exp $
DISTNAME= xcdroast-0.98alpha9
PKGNAME= xcdroast-0.98a9
@@ -10,14 +10,43 @@ MAINTAINER= frueauf@netbsd.org
HOMEPAGE= http://www.xcdroast.org/
COMMENT= graphical user interface for the command-line cdrecord-tools
-DEPENDS+= imlib>=1.9.11nb1:../../graphics/imlib
DEPENDS+= cdrecord-1.10:../../sysutils/cdrecord
+.include "../../mk/bsd.prefs.mk"
+
+USE_BUILDLINK2= YES
USE_X11= YES
-post-patch:
- ${MV} -f ${WRKSRC}/xcdroast.h ${WRKSRC}/xcdroast.h.bak
- ${SED} -e "s,@@PREFIX@@,${PREFIX},g" \
- < ${WRKSRC}/xcdroast.h.bak > ${WRKSRC}/xcdroast.h
+BASE_VERS= ${PKGVERSION:C/a.*//}
+PLIST_SUBST+= BASE_VERS=${BASE_VERS}
+MAKE_ENV+= X_CFLAGS="${CFLAGS}"
+MAKE_ENV+= X_LDFLAGS="${LDFLAGS}"
+
+#.if ${_OPSYS_HAS_OSSAUDIO} == "yes"
+#CFLAGS+= -DHAVE_OSS
+#.endif
+
+DOCDIR= ${PREFIX}/share/doc/xcdroast
+SUPPORT_FILES= /dev/null ${PKG_SYSCONFDIR}/xcdroast.conf
+
+pre-build:
+ cd ${WRKSRC}; for file in io.c wavplay.c xcdroast.h; do \
+ ${SED} -e "s|@PREFIX@|${PREFIX}|g" \
+ -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" \
+ -e "s|@DEVOSSAUDIO@|${DEVOSSAUDIO}|g" \
+ $${file} > $${file}.fixed; \
+ ${MV} -f $${file}.fixed $${file}; \
+ done
+
+post-install:
+ ${INSTALL_DATA_DIR} ${DOCDIR}
+ cd ${WRKSRC}; \
+ for file in COPYING DOCUMENTATION FAQ README.nonroot; do \
+ ${INSTALL_DATA} $${file} ${DOCDIR}; \
+ done
+
+.include "../../graphics/imlib/buildlink2.mk"
+.include "../../mk/ossaudio.buildlink2.mk"
+.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"