aboutsummaryrefslogtreecommitdiff
path: root/audio/xmms-gbsplay/Makefile
blob: 87c6a5cdfcb12519dc63d0eb7bbe01081c819799 (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
# New ports collection makefile for:	xmms-gbsplay
# Date created:				25 Jun 2005
# Whom:					Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PKGNAMEPREFIX=	xmms-

COMMENT=	A XMMS plugin for playing Nintendo Game Boy(TM) audio

MASTERDIR=	${.CURDIR}/../gbsplay

BUILD_DEPENDS=	xmms:${PORTSDIR}/multimedia/xmms
RUN_DEPENDS=	xmms:${PORTSDIR}/multimedia/xmms \
		gbsplay:${PORTSDIR}/audio/gbsplay

USE_X_PREFIX=	yes
USE_GNOME=	glib12

CONFIGURE_ARGS=	--disable-nas

DESCR=		${.CURDIR}/pkg-descr
PLIST=		${.CURDIR}/pkg-plist

PLIST_FILES=	lib/xmms/Input/gbsxmms.so

post-extract:
	@${RM} -f ${WRKSRC}/po/subdir.mk

gbsplay-post-patch:
	@${REINPLACE_CMD} -e \
		's|`which xmms-config`||; \
		 s|\(xmms-config\)|${X11BASE}/bin/\1|g; \
		 s|`which glib-config`||; \
		 s|glib-config|${GLIB_CONFIG}|g; \
		 /LOCALE_PREFIX/ s|$$localedir|${LOCALBASE}/share/locale|' \
		${WRKSRC}/configure
	@${REINPLACE_CMD} -e \
		's|^objs += $$(objs_gbsplay) $$(objs_gbsinfo)||; \
		 s|^dsts += gbsplay gbsinfo||; \
		 /^default:/ s|$$(mans)||' ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/gbsxmms.so ${PREFIX}/lib/xmms/Input

.include "${MASTERDIR}/Makefile"