aboutsummaryrefslogtreecommitdiff
path: root/audio/abraca/Makefile
blob: 1dd7afc8a04b1be4d2ee55b2c93a0f521eb9470d (plain) (blame)
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
# New ports collection makefile for:	abraca
# Date created:				31 May 2005
# Whom:					Olivier Smedts <olivier@gid0.org>
#
# $FreeBSD$
#

PORTNAME=	abraca
PORTVERSION=	0.7.0
PORTREVISION=	1
CATEGORIES=	audio
MASTER_SITES=	http://cloud.github.com/downloads/Abraca/Abraca/

MAINTAINER=	madpilot@FreeBSD.org
COMMENT=	Abraca is a GTK2 client for the XMMS2 music player

BUILD_DEPENDS=	${LOCALBASE}/bin/valac:${PORTSDIR}/lang/vala
LIB_DEPENDS=	xmmsclient:${PORTSDIR}/audio/xmms2 \
		gee:${PORTSDIR}/devel/libgee

USE_SCONS=	yes
USE_GNOME=	gtk30

SCONS_ARGS=	MANDIR=${MANPREFIX}/man

MAN1=		abraca.1
MANCOMPRESSED=	yes

OPTIONS_DEFINE=	NLS
OPTIONS_DEFAULT=	NLS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+=	--disable-nls
PLIST_SUB+=	NLS='@comment '
.else
PLIST_SUB+=	NLS=''
USE_GETTEXT=	yes
.endif

post-configure:
.if ${PORT_OPTIONS:MNLS}
	@${REINPLACE_CMD} -e 's/%%NLS%%/0/' ${WRKSRC}/SConstruct
.else
	@${REINPLACE_CMD} -e 's/%%NLS%%/1/' ${WRKSRC}/SConstruct
.endif

.include <bsd.port.mk>