pkgsrc/audio/xmms/Makefile.common
wiz f2ca076292 Update to 1.2.11:
xmms 1.2.11

	The '1211 days since last release' release.  XMMS was 10 years
	old on 2007-11-15.

	* Make the --toggle switches take an optional value to either
	enable or disable the function.

	* New command line switches: --quit, --toggle-shuffle,
	--toggle-repeat, --toggle-advance, --queue

	* New remote commands: xmms_remote_playqueue_clear,
	xmms_remote_get_playqueue_pos_from_playlist_pos,
	xmms_remote_get_playlist_pos_from_playqueue_pos,
	xmms_remote_playqueue_add, xmms_remote_get_playqueue_length,
	xmms_remote_playqueue_remove.

	* Playqueue manager. Adds queue control enabling you to reorder
	the queue and a search like the jump to file dialog.

	OGG/Vorbis:
	* Save stream to disk adds -N if the file already exist
	* Don't apply the +6dB boost if replaygain information is missing

	Alsa:
	* Soft volume works without mixer

	Songchange:
	* Optional command to run at end of song.

	Diskwriter:
	* Effect plugins are applied on the saved file

	MPG123:
	* Enable shoutcast title streaming by default

	* CTRL-Q as default keybind to quit
	* Close dialogs with escape key

	Solaris:
	* Support OSS and AMD8111
2007-11-29 18:36:34 +00:00

79 lines
2.3 KiB
Text

# $NetBSD: Makefile.common,v 1.27 2007/11/29 18:36:35 wiz Exp $
#
DISTNAME= xmms-1.2.11
CATEGORIES= audio
MASTER_SITES= http://www.xmms.org/files/1.2.x/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://www.xmms.org/
COMMENT= X Multimedia System - an audio player with a Winamp GUI
USE_PKGLOCALEDIR= yes
USE_LIBTOOL= yes
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
DISTINFO_FILE= ${.CURDIR}/../../audio/xmms/distinfo
FILESDIR= ${.CURDIR}/../../audio/xmms/files
PATCHDIR= ${.CURDIR}/../../audio/xmms/patches
CONFIGURE_ARGS+= --without-gnome
SHLIBTOOL_OVERRIDE= # empty
# 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
LDFLAGS+= ${BUILDLINK_LDADD.iconv}
PTHREAD_OPTS+= require
PKG_OPTIONS_VAR= PKG_OPTIONS.xmms
PKG_SUPPORTED_OPTIONS= inet6
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.endif
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
RAWPART_cmd= /sbin/sysctl -n kern.rawpartition | ${TR} 0-9 a-j
CONFIGURE_ARGS+= --with-dev-dsp=${DEVOSSSOUND:Q} \
--with-cdda-device=/dev/rcd0${RAWPART_cmd:sh} \
--with-cdda-dir=/cdrom/
CPPFLAGS+= -DHAVE_NANOSLEEP=1
post-patch:
. if ${MACHINE_ARCH} == "i386"
. 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
${RM} -f ${WRKSRC}/Output/OSS/soundcard.h
.endif
# 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" && ${OPSYS} != "DragonFly"
CONFIGURE_ARGS+= --disable-oss
PLIST_SUBST+= OSS="@comment "
.else
PLIST_SUBST+= OSS=""
.endif
.include "../../audio/libmikmod/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../x11/gtk/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"