summaryrefslogtreecommitdiff
path: root/audio/xmms/Makefile
blob: 0468d449e7e19c6c63602967f1ff55c9a3ed9c19 (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
# $NetBSD: Makefile,v 1.19 2001/06/11 06:34:19 jlam Exp $
# FreeBSD: ports/audio/xmms/Makefile,v 1.9 2000/02/11 01:46:12 cpiazza Exp

DISTNAME=	xmms-1.2.4
CATEGORIES=	audio
MASTER_SITES=	ftp://ftp.xmms.org/xmms/1.2.x/ \
		ftp://ftp.sunet.se/pub/multimedia/xmms/1.2.x/

MAINTAINER=	rh@netbsd.org
HOMEPAGE=	http://www.xmms.org/
COMMENT=	X Multimedia System --- An audio player with a Winamp GUI

DEPENDS+=	gtk+>=1.2.7:../../x11/gtk
DEPENDS+=	libmikmod>=3.1.7:../libmikmod
DEPENDS+=	esound>=0.2.8:../esound
DEPENDS+=	libvorbis-*:../libvorbis
DEPENDS+=	libxml>=1.8.5:../../textproc/libxml

USE_LIBTOOL=	yes
USE_X11=	yes
USE_MESA=	yes
GNU_CONFIGURE=	yes

CPPFLAGS+=	-I${LOCALBASE}/include
CPPFLAGS+=	-D_POSIX_THREAD_SYSCALL_SOFT=1
CONFIGURE_ENV+=	XML_CONFIG="${LOCALBASE}/bin/xml-config"
CONFIGURE_ARGS+=--without-gnome
LTCONFIG_OVERRIDE=${WRKSRC}/ltconfig

.include "../../mk/bsd.prefs.mk"

.if (${OPSYS} == NetBSD)
CONFIGURE_ARGS+=--with-dev-dsp=/dev/sound
CPPFLAGS+=	-I${WRKDIR}

.if (${MACHINE_ARCH} == i386)
post-patch:
.if (${OBJECT_FMT} == a.out)
	${CP} ${FILESDIR}/decode_i586_.s ${WRKSRC}/Input/mpg123/decode_i586.s
.endif
	cd ${WRKSRC}/Input/mpg123 && \
	${MV} decode_i586.s decode_i586.s.orig && \
	${SED} -e 's@^/@#/@g' <decode_i586.s.orig >decode_i586.s
.endif

pre-configure:
	${MKDIR} ${WRKDIR}/sys
	${LN} -fs /usr/include/soundcard.h ${WRKDIR}/sys/soundcard.h
.endif

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