summaryrefslogtreecommitdiffstats
path: root/audio/lxmusic/Makefile
blob: 5273c3d437eca6d65978609d072a289b213f445d (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
53
54
# Created by: Eric Turgeon <ericturgeon.bsd at gmail.com>
# $FreeBSD$

PORTNAME=	lxmusic
PORTVERSION=	0.4.5
CATEGORIES=	audio
MASTER_SITES=	SF/ghostbsdproject/package/LXMusic/

MAINTAINER=	ericturgeon@ghostbsd.org
COMMENT=	LXDE music player based on xmms2

LICENSE=	MIT GPLv2
LICENSE_COMB=	dual

LIB_DEPENDS=	libxmmsclient.so:${PORTSDIR}/audio/xmms2 \
		libnotify.so:${PORTSDIR}/devel/libnotify

USES=		gmake desktop-file-utils pkgconfig
NO_STAGE=	yes
USE_GNOME=	gtk20
GNU_CONFIGURE=	yes
INSTALLS_ICONS=	yes

CPPFLAGS+=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}

PORTDOCS=	AUTHORS README

OPTIONS_DEFINE=	DOCS NLS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=		gettext
PLIST_SUB+=	NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+=	NLS="@comment "
.endif

post-patch:
.if ! ${PORT_OPTIONS:MNLS}
	@${REINPLACE_CMD} -e 's|data po|data|' \
		${WRKSRC}/Makefile.in

.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud