2011-04-17 11:13:13 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.30 2011/04/17 09:13:13 obache Exp $
|
2003-07-25 11:22:50 +02:00
|
|
|
#
|
2011-04-17 11:13:13 +02:00
|
|
|
# used by audio/xmms/Makefile
|
|
|
|
# used by audio/xmms-esound/Makefile
|
2003-07-25 11:22:50 +02:00
|
|
|
|
2007-11-29 19:36:34 +01:00
|
|
|
DISTNAME= xmms-1.2.11
|
2003-07-25 11:22:50 +02:00
|
|
|
CATEGORIES= audio
|
2011-02-19 10:04:32 +01:00
|
|
|
MASTER_SITES= http://legacy.xmms2.org/
|
2004-05-06 20:10:20 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2003-07-25 11:22:50 +02:00
|
|
|
|
|
|
|
MAINTAINER= rh@NetBSD.org
|
2011-02-19 10:04:32 +01:00
|
|
|
HOMEPAGE= http://legacy.xmms2.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
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2003-07-25 11:22:50 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS= oss
|
2003-07-25 11:22:50 +02:00
|
|
|
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../audio/xmms/distinfo
|
|
|
|
FILESDIR= ${.CURDIR}/../../audio/xmms/files
|
|
|
|
PATCHDIR= ${.CURDIR}/../../audio/xmms/patches
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --without-gnome
|
2006-07-07 17:49:30 +02:00
|
|
|
SHLIBTOOL_OVERRIDE= # empty
|
2003-07-25 11:22:50 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
# Broken configure script assumes that iconv_open lives in libc; work around.
|
2003-07-25 11:22:50 +02:00
|
|
|
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
|
|
|
|
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.xmms
|
|
|
|
PKG_SUPPORTED_OPTIONS= inet6
|
2005-05-31 18:28:54 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
2003-07-25 11:22:50 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2005-05-31 18:28:54 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-07-25 11:22:50 +02:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
2005-04-29 00:23:43 +02:00
|
|
|
RAWPART_cmd= /sbin/sysctl -n kern.rawpartition | ${TR} 0-9 a-j
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-dev-dsp=${DEVOSSSOUND:Q} \
|
2005-04-29 00:23:43 +02:00
|
|
|
--with-cdda-device=/dev/rcd0${RAWPART_cmd:sh} \
|
2003-07-25 11:22:50 +02:00
|
|
|
--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
|
|
|
|
|
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" && \
|
2005-11-02 16:20:51 +01:00
|
|
|
${OPSYS} != "OpenBSD" && ${OPSYS} != "DragonFly"
|
2004-05-15 11:18:55 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-oss
|
2006-07-08 03:11:21 +02:00
|
|
|
.else
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.oss= yes
|
2004-05-15 11:18:55 +02:00
|
|
|
.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"
|
2006-03-09 22:04:39 +01:00
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
2004-02-17 17:23:53 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|