pkgsrc/sysutils/xcdroast/Makefile
jlam 7820875fff Remove the abuse of buildlink that was pkg-config/buildlink3.mk. That
file's sole purpose was to provide a dependency on pkg-config and set
some environment variables.  Instead, turn pkg-config into a "tool"
in the tools framework, where the pkg-config wrapper automatically
adds PKG_CONFIG_LIBDIR to the environment before invoking the real
pkg-config.

For all package Makefiles that included pkg-config/buildlink3.mk, remove
that inclusion and replace it with USE_TOOLS+=pkg-config.
2005-08-10 20:56:10 +00:00

57 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.35 2005/08/10 20:56:24 jlam Exp $
DISTNAME= xcdroast-0.98alpha15
PKGNAME= xcdroast-0.98a15
PKGREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xcdroast/}
MAINTAINER= frueauf@NetBSD.org
HOMEPAGE= http://www.xcdroast.org/
COMMENT= Graphical user interface for the command-line cdrecord-tools
BUILD_USES_MSGFMT= YES
DEPENDS+= cdrecord-xcdroast-0.98a15.*:../../sysutils/cdrecord-xcdroast
USE_TOOLS+= gmake pkg-config
USE_PKGINSTALL= YES
USE_PKGLOCALEDIR= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-gtk2
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
.include "../../mk/bsd.prefs.mk"
.if ${_OPSYS_HAS_OSSAUDIO} == "yes"
CFLAGS+= -DHAVE_OSS
CONFIGURE_ENV+= AUDIO_LIBS=${LIBOSSAUDIO}
.endif
DOCDIR= ${PREFIX}/share/doc/xcdroast
DOCFILES= DOCUMENTATION FAQ README.nonroot manual/xcdroast-manual.pdf
HTMLDIR= ${PREFIX}/share/doc/html/xcdroast
SUPPORT_FILES= /dev/null ${PKG_SYSCONFDIR}/xcdroast.conf
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
pre-build:
cd ${WRKSRC}/src; for file in io.c wavplay.c; do \
${SED} -e "s|@DEVOSSAUDIO@|${DEVOSSAUDIO}|g" \
$${file} > $${file}.fixed; \
${MV} -f $${file}.fixed $${file}; \
done
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
(cd ${WRKSRC}/doc; \
for file in ${DOCFILES}; do \
${INSTALL_DATA} $${file} ${DOCDIR}; \
done)
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/ossaudio.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"