summaryrefslogtreecommitdiff
path: root/sysutils/xcdroast/Makefile
blob: 3f0914a07563e08d7d1268fff3e81f2451ff4b9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# $NetBSD: Makefile,v 1.85 2020/03/10 22:11:02 wiz Exp $

DISTNAME=	xcdroast-1.18
PKGREVISION=	6
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=xcdroast/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.xcdroast.org/
COMMENT=	Graphical user interface for the command-line cdrecord-tools
LICENSE=	gnu-gpl-v2

DEPENDS+=		cdrtools>=2.01:../../sysutils/cdrtools

USE_TOOLS+=		gmake msgfmt pkg-config
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
CONF_FILES=	/dev/null ${PKG_SYSCONFDIR}/xcdroast.conf

SUBST_CLASSES+=			devossaudio
SUBST_STAGE.devossaudio=	pre-build
SUBST_MESSAGE.devossaudio=	Fixing path to audio device.
SUBST_FILES.devossaudio=	io.c wavplay.c
SUBST_VARS.devossaudio=		DEVOSSAUDIO

INSTALLATION_DIRS=	${DOCDIR}
SPECIAL_PERMS+=		lib/xcdroast/bin/xcdrwrap {REAL_ROOT_USER} ${REAL_ROOT_GROUP} 4711

post-install:
	(cd ${WRKSRC}/doc;						\
	for file in ${DOCFILES}; do	\
		${INSTALL_DATA} $${file} ${DESTDIR}${DOCDIR};		\
	done)

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"

.include "../../mk/bsd.pkg.mk"