2011-03-29 19:22:17 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2011/03/29 23:22:17 jakemsr Exp $
|
2009-06-03 14:25:25 -04:00
|
|
|
|
|
|
|
COMMENT = audio player daemon with library management
|
|
|
|
|
2010-04-24 13:37:54 -04:00
|
|
|
V = 0.7
|
|
|
|
DISTNAME = xmms2-${V}DrNo
|
2010-08-25 19:27:21 -04:00
|
|
|
PKGNAME = xmms2-${V}
|
2011-03-29 19:22:17 -04:00
|
|
|
REVISION = 6
|
2009-06-03 14:25:25 -04:00
|
|
|
|
2010-04-24 13:37:54 -04:00
|
|
|
SHARED_LIBS += xmmsclient++ 1.0 # 4.0.0
|
2009-06-03 14:25:25 -04:00
|
|
|
SHARED_LIBS += xmmsclient++-glib 0.0 # 1.0.0
|
|
|
|
SHARED_LIBS += xmmsclient-glib 0.0 # 1.0.0
|
2010-04-24 13:37:54 -04:00
|
|
|
SHARED_LIBS += xmmsclient 1.0 # 6.0.0
|
2009-06-03 14:25:25 -04:00
|
|
|
|
|
|
|
CATEGORIES = audio
|
|
|
|
|
2010-04-24 13:37:54 -04:00
|
|
|
HOMEPAGE = http://wiki.xmms2.xmms.se/
|
2009-06-03 14:25:25 -04:00
|
|
|
|
|
|
|
MAINTAINER= Amaury Gauthier <amaury.gauthier@etu.unilim.fr>
|
|
|
|
|
|
|
|
# LGPLv2.1
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
|
2011-03-29 19:22:17 -04:00
|
|
|
WANTLIB += c gsm faac m mp3lame ncurses ogg orc-0.4 pthread readline
|
2010-10-18 18:43:10 -04:00
|
|
|
WANTLIB += schroedinger-1.0 speex stdc++ theora util vorbis vorbisenc
|
|
|
|
WANTLIB += vorbisfile x264 z gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
|
|
|
|
WANTLIB += gthread-2.0 avcodec avutil ao jack sqlite3 xml2 FLAC curl
|
|
|
|
WANTLIB += mad avahi-client avahi-common avahi-glib vorbisidec
|
2010-10-24 11:53:55 -04:00
|
|
|
WANTLIB += ${MODPY_WANTLIB}
|
2010-10-18 18:43:10 -04:00
|
|
|
|
2009-06-03 14:25:25 -04:00
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=xmms2/}
|
|
|
|
|
|
|
|
EXTRACT_SUFX = .tar.bz2
|
|
|
|
|
|
|
|
MODULES = lang/python \
|
2009-06-08 13:08:48 -04:00
|
|
|
devel/gettext \
|
|
|
|
perl
|
2009-06-03 14:25:25 -04:00
|
|
|
|
2010-10-18 18:43:10 -04:00
|
|
|
USE_GROFF = Yes
|
2009-06-03 14:25:25 -04:00
|
|
|
NO_REGRESS = Yes
|
|
|
|
|
2010-11-14 19:22:45 -05:00
|
|
|
BUILD_DEPENDS = devel/pyrex \
|
|
|
|
devel/boost
|
2009-07-12 16:25:00 -04:00
|
|
|
|
|
|
|
LIB_DEPENDS = ${MODPY_LIB_DEPENDS} \
|
2010-11-14 19:22:45 -05:00
|
|
|
devel/glib2 \
|
2010-11-26 02:07:56 -05:00
|
|
|
graphics/ffmpeg>=20080620p10 \
|
2010-11-14 19:22:45 -05:00
|
|
|
audio/libao \
|
|
|
|
audio/jack \
|
|
|
|
databases/sqlite3 \
|
|
|
|
textproc/libxml \
|
|
|
|
audio/flac \
|
|
|
|
net/curl \
|
|
|
|
audio/libmad \
|
|
|
|
net/avahi \
|
|
|
|
audio/tremor
|
2009-06-03 14:25:25 -04:00
|
|
|
|
2009-07-12 16:25:00 -04:00
|
|
|
WSCRIPT_PATCHES = src/clients/lib/xmmsclient++/wscript \
|
|
|
|
src/clients/lib/xmmsclient++-glib/wscript \
|
2009-06-03 14:25:25 -04:00
|
|
|
src/clients/lib/xmmsclient-glib/wscript \
|
|
|
|
src/clients/lib/xmmsclient/wscript
|
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC} && ${SUBST_CMD} ${WSCRIPT_PATCHES}
|
|
|
|
|
|
|
|
# Xmms2 uses it's own modified Waf, so we cannot use devel/waf.
|
|
|
|
# Disable speex and sun because they are broken
|
|
|
|
# Disable shared memory support for visualization because it requires semtimedop()
|
|
|
|
do-configure:
|
|
|
|
cd ${WRKSRC} && PYTHON=${MODPY_BIN} ${MODPY_BIN} ./waf configure --prefix=${PREFIX} \
|
2010-04-24 13:37:54 -04:00
|
|
|
--mandir=${PREFIX}/man \
|
2009-06-03 14:25:25 -04:00
|
|
|
--conf-prefix=${PREFIX} \
|
|
|
|
--with-default-output-plugin=ao \
|
|
|
|
--disable-shmvis-server \
|
2009-07-12 16:25:00 -04:00
|
|
|
--without-optionals=dns_sd,medialib-updater,tests,xmmsclient-cf,xmmsclient-ecore,ruby \
|
2010-04-24 13:37:54 -04:00
|
|
|
--without-plugins=airplay,alsa,cdda,coreaudio,faad,gme,ices,mac,mms,modplug,mpg123,musepack,nms,ofa,oss,pulse,samba,sid,speex,sun,vocoder,waveout,wavpack
|
2009-06-03 14:25:25 -04:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${MODPY_BIN} ./waf build
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && ${MODPY_BIN} ./waf install
|
|
|
|
# These directories are empty after the fake
|
|
|
|
rmdir ${WRKSRC}/_build_/default/src/clients/lib/perl/pm/XMMSClient
|
|
|
|
rmdir ${WRKSRC}/_build_/default/src/clients/lib/perl/pm
|
2009-06-08 13:08:48 -04:00
|
|
|
/usr/bin/pod2man ${WRKSRC}/src/clients/lib/perl/pm/XMMSClient.pm > ${WRKDIR}/Audio::XMMSClient.3p
|
|
|
|
/usr/bin/pod2man ${WRKSRC}/src/clients/lib/perl/pm/XMMSClient/Glib.pm > ${WRKDIR}/Audio::XMMSClient::Glib.3p
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/*.3p ${PREFIX}/man/man3p/
|
|
|
|
|
2009-06-03 14:25:25 -04:00
|
|
|
.include <bsd.port.mk>
|