From c3c74b88b62d1546055959eed224e8bb7656b0d9 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 26 Sep 2002 12:29:55 +0000 Subject: * 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. --- sysutils/xcdroast/Makefile | 41 +++++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) (limited to 'sysutils/xcdroast/Makefile') 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" -- cgit v1.2.3