1999-07-03 19:37:30 +00:00
|
|
|
# New ports collection makefile for: xmms
|
|
|
|
# Date created: 3 July 1999
|
1999-09-19 21:01:50 +00:00
|
|
|
# Whom: Espen Skoglund <esk@ira.uka.de>
|
1999-07-03 19:37:30 +00:00
|
|
|
#
|
1999-08-25 04:36:31 +00:00
|
|
|
# $FreeBSD$
|
1999-07-03 19:37:30 +00:00
|
|
|
#
|
|
|
|
|
2000-04-08 21:25:03 +00:00
|
|
|
PORTNAME= xmms
|
2004-02-24 13:21:17 +00:00
|
|
|
PORTVERSION= 1.2.10
|
2005-04-21 16:13:54 +00:00
|
|
|
PORTREVISION= 4
|
2003-10-03 11:11:03 +00:00
|
|
|
CATEGORIES+= multimedia audio ipv6
|
2004-02-24 13:21:17 +00:00
|
|
|
MASTER_SITES= http://www.xmms.org/files/1.2.x/ \
|
2001-06-21 15:34:31 +00:00
|
|
|
ftp://ftp.sunet.se/pub/multimedia/xmms/1.2.x/
|
2003-12-04 10:42:51 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
1999-07-03 19:37:30 +00:00
|
|
|
|
2001-03-28 18:23:41 +00:00
|
|
|
MAINTAINER?= esk@ira.uka.de
|
2003-02-21 12:51:06 +00:00
|
|
|
COMMENT?= X Multimedia System --- An audio player with a Winamp GUI
|
1999-07-03 19:37:30 +00:00
|
|
|
|
2001-06-21 15:34:31 +00:00
|
|
|
USE_BZIP2= yes
|
2000-10-05 07:22:56 +00:00
|
|
|
USE_X_PREFIX= yes
|
2004-11-02 16:28:29 +00:00
|
|
|
USE_GNOME= gtk12 gnomehack
|
2002-08-21 16:47:55 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-10-05 07:22:56 +00:00
|
|
|
WANT_GNOME= yes
|
2001-06-21 15:34:31 +00:00
|
|
|
USE_GMAKE= yes
|
2004-03-30 19:20:22 +00:00
|
|
|
USE_ICONV= yes
|
2000-10-05 07:22:56 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2002-01-14 13:38:33 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2000-10-05 07:22:56 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib" \
|
2001-06-21 15:34:31 +00:00
|
|
|
INPUT_PLUGINS="${INPUT_PLUGINS}" \
|
|
|
|
OUTPUT_PLUGINS="${OUTPUT_PLUGINS}" \
|
|
|
|
VISUALIZATION_PLUGINS="${VISUALIZATION_PLUGINS}"
|
2004-01-31 14:16:30 +00:00
|
|
|
MAN1= wmxmms.1 xmms.1
|
2001-06-21 15:34:31 +00:00
|
|
|
|
2003-12-08 19:10:14 +00:00
|
|
|
CONFLICTS= ru-xmms-*
|
|
|
|
|
2003-09-07 23:39:27 +00:00
|
|
|
INPUT_PLUGINS= cdaudio,mpg123,tonegen,wav
|
2001-06-21 15:34:31 +00:00
|
|
|
OUTPUT_PLUGINS= OSS,disk_writer
|
|
|
|
VISUALIZATION_PLUGINS= blur_scope,sanalyzer
|
2000-10-05 07:22:56 +00:00
|
|
|
|
2003-08-17 14:26:38 +00:00
|
|
|
PLIST_SUB= DATADIR="share"
|
|
|
|
|
2000-10-05 07:22:56 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2000-06-21 08:44:23 +00:00
|
|
|
|
2003-10-03 11:11:03 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
|
2004-11-02 16:28:29 +00:00
|
|
|
.if defined(WITH_ENCODING_PATCH) || defined(WITH_ID3V2_PATCH)
|
|
|
|
ENC_PATCHLEVEL= 27.4
|
2003-12-04 10:42:51 +00:00
|
|
|
DISTFILES+= ${PORTNAME}-${PORTVERSION}-recode-csa${ENC_PATCHLEVEL}${EXTRACT_SUFX}:enc
|
|
|
|
MASTER_SITES+= ${MASTER_SITE_SOURCEFORGE:S/$/:enc/}
|
2004-01-25 16:32:37 +00:00
|
|
|
MASTER_SITE_SUBDIR+= rusxmms/:enc
|
2003-12-04 10:42:51 +00:00
|
|
|
.endif
|
|
|
|
|
2004-11-02 16:28:29 +00:00
|
|
|
.if defined(WITH_ENCODING_PATCH)
|
|
|
|
PLIST_SUB+= ENCODING=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ENCODING="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-04-21 16:13:54 +00:00
|
|
|
.if defined(WITH_EXTENDED_VORBIS_FILEINFO)
|
|
|
|
CFLAGS+= -DALL_VORBIS_TAGS
|
|
|
|
.endif
|
|
|
|
|
2000-06-21 08:44:23 +00:00
|
|
|
.if !defined(WITHOUT_MIKMOD)
|
|
|
|
LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod
|
2001-06-21 15:34:31 +00:00
|
|
|
INPUT_PLUGINS+= mikmod
|
2000-06-21 08:44:23 +00:00
|
|
|
PLIST_SUB+= MIKMODPLUGIN:=""
|
|
|
|
.else
|
2002-09-14 19:51:37 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-mikmod
|
2000-06-21 08:44:23 +00:00
|
|
|
PLIST_SUB+= MIKMODPLUGIN:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2000-11-29 11:22:55 +00:00
|
|
|
.if !defined(WITHOUT_VORBIS)
|
2003-12-20 16:37:57 +00:00
|
|
|
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
|
2001-06-21 15:34:31 +00:00
|
|
|
INPUT_PLUGINS+= vorbis
|
2000-11-29 11:22:55 +00:00
|
|
|
PLIST_SUB+= VORBISPLUGIN:=""
|
|
|
|
.else
|
2002-09-14 19:51:37 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-vorbis
|
2000-11-29 11:22:55 +00:00
|
|
|
PLIST_SUB+= VORBISPLUGIN:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2002-08-21 16:47:55 +00:00
|
|
|
.if ${HAVE_GNOME:Mesound}!=""
|
|
|
|
USE_GNOME+= esound
|
2001-06-21 15:34:31 +00:00
|
|
|
OUTPUT_PLUGINS+= esd
|
2000-10-05 07:22:56 +00:00
|
|
|
PLIST_SUB+= ESDPLUGIN:=""
|
2002-08-21 16:47:55 +00:00
|
|
|
.if defined(PKGNAMESUFFIX)
|
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-esound
|
|
|
|
.else
|
|
|
|
PKGNAMESUFFIX= -esound
|
|
|
|
.endif
|
2000-06-16 07:45:29 +00:00
|
|
|
.else
|
2002-09-14 19:51:37 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-esd
|
2000-10-05 07:22:56 +00:00
|
|
|
PLIST_SUB+= ESDPLUGIN:="@comment "
|
2000-06-16 07:45:29 +00:00
|
|
|
.endif
|
1999-11-06 03:11:22 +00:00
|
|
|
|
2005-04-12 03:26:56 +00:00
|
|
|
.if ${MACHINE_ARCH} != "i386"
|
2003-11-09 13:34:42 +00:00
|
|
|
WITHOUT_SIMD= yes
|
2002-01-20 19:02:36 +00:00
|
|
|
.endif
|
|
|
|
|
2003-11-09 13:34:42 +00:00
|
|
|
.if !defined(WITHOUT_SIMD) && ${OSVERSION} >= 400021
|
|
|
|
CONFIGURE_ARGS+= --enable-simd
|
2000-07-31 07:56:10 +00:00
|
|
|
.endif
|
|
|
|
|
2003-11-09 13:34:42 +00:00
|
|
|
.if defined(WITHOUT_SIMD) || ${OSVERSION} < 400021
|
2000-10-05 07:22:56 +00:00
|
|
|
post-extract:
|
|
|
|
(cd ${WRKSRC}/Input/mpg123 && ${MV} decode_i586.s decode_i586.S && \
|
|
|
|
cd ${WRKSRC}/Visualization/blur_scope && ${MV} blur_8.s blur_8.S);
|
2004-03-01 14:53:54 +00:00
|
|
|
${REINPLACE_CMD} -e 's:\.s :.S :g' -e 's:\.s$$:.S:g' \
|
|
|
|
-e 's:^\.s\.:.S.:g' ${WRKSRC}/Input/mpg123/Makefile.in
|
|
|
|
${REINPLACE_CMD} -e 's:\.s :.S :g' -e 's:\.s$$:.S:g' \
|
|
|
|
-e 's:^\.s\.:.S.:g' ${WRKSRC}/Visualization/blur_scope/Makefile.in
|
2000-10-05 07:22:56 +00:00
|
|
|
.endif
|
|
|
|
|
2000-06-16 07:45:29 +00:00
|
|
|
pre-extract:
|
2003-11-09 13:34:42 +00:00
|
|
|
.if !defined(WITHOUT_MIKMOD) || !defined(WITHOUT_VORBIS) || ( !defined(WITHOUT_SIMD) && ${OSVERSION} >= 400021 ) || ${HAVE_GNOME:Mesound}!=""
|
2000-06-21 08:44:23 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
.if !defined(WITHOUT_MIKMOD)
|
|
|
|
@${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_MIKMOD."
|
|
|
|
.endif
|
2000-11-29 11:22:55 +00:00
|
|
|
.if !defined(WITHOUT_VORBIS)
|
|
|
|
@${ECHO_MSG} "You can disable support for vorbis by defining WITHOUT_VORBIS."
|
|
|
|
.endif
|
2003-11-09 13:34:42 +00:00
|
|
|
.if !defined(WITHOUT_SIMD) && ${OSVERSION} >= 400021
|
|
|
|
@${ECHO_MSG} "You can disable x86 SIMD (3DNow!/MMX) optimized decoding routines by defining WITHOUT_SIMD."
|
2002-10-22 07:46:10 +00:00
|
|
|
.endif
|
|
|
|
.if ${HAVE_GNOME:Mesound}!=""
|
|
|
|
@${ECHO_MSG} "You can disable support for esound by defining WITHOUT_GNOME=esound."
|
2000-07-31 07:56:10 +00:00
|
|
|
.endif
|
2000-06-21 08:44:23 +00:00
|
|
|
@${ECHO_MSG}
|
2000-06-16 07:45:29 +00:00
|
|
|
.endif
|
2000-02-11 01:26:05 +00:00
|
|
|
|
2002-08-21 16:47:55 +00:00
|
|
|
post-patch:
|
2004-11-02 16:28:29 +00:00
|
|
|
.if defined(WITH_ID3V2_PATCH)
|
|
|
|
@${PATCH} -s -p1 -d ${WRKSRC} < ${WRKDIR}/recode.3rdparty/id3v2.patch
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_ENCODING_PATCH) && defined(WITH_ID3V2_PATCH)
|
|
|
|
@${PATCH} -s -p1 -d ${WRKSRC} < ${WRKDIR}/xmms_id3v2-ds-recode.patch
|
|
|
|
.elif defined(WITH_ENCODING_PATCH)
|
2003-12-04 10:42:51 +00:00
|
|
|
@${PATCH} -s -p1 -d ${WRKSRC} < ${WRKDIR}/xmms-ds-recode.patch
|
|
|
|
.endif
|
2003-11-13 13:30:42 +00:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \
|
2002-08-21 16:47:55 +00:00
|
|
|
's|\(datadir\)/aclocal|(prefix)/share/aclocal|g'
|
2003-09-07 23:39:27 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|{datadir}/locale|{prefix}/share/locale|g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's,-pthread,${PTHREAD_LIBS},g' \
|
|
|
|
${WRKSRC}/configure
|
2000-09-22 06:21:49 +00:00
|
|
|
|
2001-03-29 02:32:02 +00:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/xmms/Skins
|
2001-06-09 04:20:28 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-03-29 02:32:02 +00:00
|
|
|
|
2000-07-31 07:56:10 +00:00
|
|
|
.include <bsd.port.post.mk>
|