Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / xcdroast / Makefile
blobc789c6550b57b6929de7d858a1b4183901d3177d
1 # $NetBSD: Makefile,v 1.65 2012/10/23 19:51:35 asau Exp $
3 DISTNAME= xcdroast-${DIST_VER}
4 PKGNAME= xcdroast-${DIST_VER:S/alpha/a/}
5 PKGREVISION= 15
6 CATEGORIES= sysutils
7 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xcdroast/}
9 PATCH_SITES= http://www.xcdroast.org/xcdr098/patches/
10 PATCHFILES= parse_version.patch
12 MAINTAINER= pkgsrc-users@NetBSD.org
13 HOMEPAGE= http://www.xcdroast.org/
14 COMMENT= Graphical user interface for the command-line cdrecord-tools
16 DEPENDS+= cdrtools>=2.01:../../sysutils/cdrtools
18 DIST_VER= 0.98alpha16
20 USE_TOOLS+= gmake msgfmt pkg-config
21 USE_PKGLOCALEDIR= YES
22 GNU_CONFIGURE= YES
24 CONFIGURE_ARGS+= --enable-gtk2
25 CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
27 .include "../../mk/bsd.prefs.mk"
29 .if ${_OPSYS_HAS_OSSAUDIO} == "yes"
30 CFLAGS+= -DHAVE_OSS
31 CONFIGURE_ENV+= AUDIO_LIBS=${LIBOSSAUDIO}
32 .endif
34 DOCDIR= ${PREFIX}/share/doc/xcdroast
35 DOCFILES= DOCUMENTATION FAQ README.nonroot manual/xcdroast-manual.pdf
36 HTMLDIR= ${PREFIX}/share/doc/html/xcdroast
37 CONF_FILES= /dev/null ${PKG_SYSCONFDIR}/xcdroast.conf
39 SUBST_CLASSES+= devossaudio
40 SUBST_STAGE.devossaudio= pre-build
41 SUBST_MESSAGE.devossaudio= Fixing path to audio device.
42 SUBST_FILES.devossaudio= io.c wavplay.c
43 SUBST_SED.devossaudio= -e "s,@DEVOSSAUDIO@,${DEVOSSAUDIO},g"
45 INSTALLATION_DIRS= ${DOCDIR}
47 post-install:
48 (cd ${WRKSRC}/doc; \
49 for file in ${DOCFILES}; do \
50 ${INSTALL_DATA} $${file} ${DESTDIR}${DOCDIR}; \
51 done)
53 .include "../../devel/gettext-lib/buildlink3.mk"
54 .include "../../x11/gtk2/buildlink3.mk"
55 .include "../../mk/oss.buildlink3.mk"
57 .include "../../mk/bsd.pkg.mk"