2005-04-11 23:44:48 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.15 2005/04/11 21:44:58 tv Exp $
|
2003-07-25 11:22:50 +02:00
|
|
|
#
|
|
|
|
|
2004-05-06 16:48:57 +02:00
|
|
|
DISTNAME= xmms-1.2.10
|
2003-07-25 11:22:50 +02:00
|
|
|
CATEGORIES= audio
|
2004-05-06 16:48:57 +02:00
|
|
|
MASTER_SITES= http://www.xmms.org/files/1.2.x/ \
|
2003-07-25 11:22:50 +02:00
|
|
|
ftp://ftp.sunet.se/pub/multimedia/xmms/1.2.x/
|
2004-05-06 20:10:20 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2003-07-25 11:22:50 +02:00
|
|
|
|
|
|
|
MAINTAINER= rh@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.xmms.org/
|
2003-08-08 11:26:13 +02:00
|
|
|
COMMENT= X Multimedia System - an audio player with a Winamp GUI
|
2003-07-25 11:22:50 +02:00
|
|
|
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
USE_LIBTOOL= yes
|
2004-01-22 08:26:08 +01:00
|
|
|
USE_GNU_TOOLS+= make
|
2003-07-25 11:22:50 +02:00
|
|
|
USE_X11= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../audio/xmms/distinfo
|
|
|
|
FILESDIR= ${.CURDIR}/../../audio/xmms/files
|
|
|
|
PATCHDIR= ${.CURDIR}/../../audio/xmms/patches
|
|
|
|
|
2004-06-08 14:23:59 +02:00
|
|
|
BUILD_DEFS+= USE_INET6
|
|
|
|
|
2003-07-25 11:22:50 +02:00
|
|
|
CONFIGURE_ARGS+= --without-gnome
|
2004-02-14 18:21:32 +01:00
|
|
|
SHLIBTOOL_OVERRIDE= libtool
|
2003-07-25 11:22:50 +02:00
|
|
|
|
|
|
|
# Broken configure script assumes that iconv_open lives in libc; work around.
|
|
|
|
CPPFLAGS+= -DHAVE_ICONV_OPEN=1
|
|
|
|
CONFIGURE_ENV+= ac_cv_func_iconv_open=yes
|
2004-04-12 12:23:24 +02:00
|
|
|
LDFLAGS+= ${BUILDLINK_LDADD.iconv}
|
2003-07-25 11:22:50 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
|
|
|
|
.if defined(USE_INET6) && ${USE_INET6} == YES
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
RAWPART!= /sbin/sysctl -n kern.rawpartition | tr 0-9 a-j
|
|
|
|
CONFIGURE_ARGS+= --with-dev-dsp=${DEVOSSSOUND} \
|
|
|
|
--with-cdda-device=/dev/rcd0${RAWPART} \
|
|
|
|
--with-cdda-dir=/cdrom/
|
|
|
|
CPPFLAGS+= -DHAVE_NANOSLEEP=1
|
|
|
|
|
|
|
|
post-patch:
|
2004-05-12 20:50:21 +02:00
|
|
|
. if ${MACHINE_ARCH} == "i386"
|
2003-07-25 11:22:50 +02:00
|
|
|
. 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
|
2004-05-12 20:50:21 +02:00
|
|
|
${RM} -f ${WRKSRC}/Output/OSS/soundcard.h
|
2003-07-25 11:22:50 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
PLIST_SUBST+= LIBAUDIO=libSolaris
|
|
|
|
.else
|
|
|
|
PLIST_SUBST+= LIBAUDIO=libOSS
|
|
|
|
.endif
|
|
|
|
|
2004-05-15 11:18:55 +02:00
|
|
|
# the configure test for OSS is broken on Solaris and by default tries
|
|
|
|
# to build the OSS module. explicitly turn it off for all platforms
|
|
|
|
# except those which support OSS.
|
|
|
|
.if ${OPSYS} != "FreeBSD" && ${OPSYS} != "Linux" && ${OPSYS} != "NetBSD" && \
|
|
|
|
${OPSYS} != "OpenBSD"
|
|
|
|
CONFIGURE_ARGS+= --disable-oss
|
|
|
|
.endif
|
|
|
|
|
2004-02-17 17:23:53 +01:00
|
|
|
.include "../../audio/libmikmod/buildlink3.mk"
|
|
|
|
.include "../../audio/libvorbis/buildlink3.mk"
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
2005-03-24 11:21:17 +01:00
|
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
2004-02-17 17:23:53 +01:00
|
|
|
.include "../../x11/gtk/buildlink3.mk"
|
|
|
|
.include "../../mk/ossaudio.buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|