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
|
2002-03-05 21:09:09 +00:00
|
|
|
PORTVERSION= 1.2.7
|
2002-07-20 15:32:43 +00:00
|
|
|
PORTREVISION= 2
|
2001-05-22 18:16:59 +00:00
|
|
|
CATEGORIES+= audio
|
2001-06-21 15:34:31 +00:00
|
|
|
MASTER_SITES= ftp://ftp.xmms.org/xmms/1.2.x/ \
|
|
|
|
http://www.xmms.org/files/1.2.x/ \
|
|
|
|
ftp://ftp.sunet.se/pub/multimedia/xmms/1.2.x/
|
1999-07-03 19:37:30 +00:00
|
|
|
|
2001-03-28 18:23:41 +00:00
|
|
|
MAINTAINER?= esk@ira.uka.de
|
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
|
2002-08-21 16:47:55 +00:00
|
|
|
USE_GNOMENG= yes
|
|
|
|
USE_GNOME= gtk12 gnomehack libxml
|
|
|
|
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
|
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}"
|
|
|
|
MAN1= gnomexmms.1 wmxmms.1 xmms.1
|
|
|
|
|
|
|
|
INPUT_PLUGINS= cdaudio,idcin,mpg123,tonegen,wav
|
|
|
|
OUTPUT_PLUGINS= OSS,disk_writer
|
|
|
|
VISUALIZATION_PLUGINS= blur_scope,sanalyzer
|
2000-10-05 07:22:56 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
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)
|
2002-07-20 15:32:43 +00:00
|
|
|
LIB_DEPENDS+= vorbis.2:${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
|
|
|
|
2002-08-21 16:47:55 +00:00
|
|
|
.if ${HAVE_GNOME:Mlibpanel}!=""
|
|
|
|
USE_GNOME+= libpanel gnomeprefix
|
|
|
|
.if defined(PKGNAMESUFFIX)
|
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-gnome
|
|
|
|
.else
|
|
|
|
PKGNAMESUFFIX= -gnome
|
|
|
|
.endif
|
|
|
|
PLIST_SUB+= DATADIR="share/gnome"
|
|
|
|
.else
|
2002-09-14 19:51:37 +00:00
|
|
|
CONFIGURE_ARGS+= --without-gnome
|
2002-08-21 16:47:55 +00:00
|
|
|
PLIST_SUB+= DATADIR="share"
|
|
|
|
.endif
|
|
|
|
|
2002-01-20 19:02:36 +00:00
|
|
|
.if ${MACHINE_ARCH} != "i386"
|
|
|
|
WITHOUT_3DNOW= yes
|
|
|
|
.endif
|
|
|
|
|
2000-07-31 07:56:10 +00:00
|
|
|
.if !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021
|
|
|
|
CONFIGURE_ARGS+= --enable-3dnow
|
|
|
|
.endif
|
|
|
|
|
2000-10-05 07:22:56 +00:00
|
|
|
.if defined(WITHOUT_3DNOW) || ${OSVERSION} < 400021
|
|
|
|
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);
|
2002-08-21 16:47:55 +00:00
|
|
|
${REINPLACE_CMD} -e 's:\.s :\.S :g' ${WRKSRC}/Input/mpg123/Makefile.in
|
|
|
|
${REINPLACE_CMD} -e 's:blur_8.s:blur_8.S:g' \
|
2000-10-05 07:22:56 +00:00
|
|
|
${WRKSRC}/Visualization/blur_scope/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
2000-06-16 07:45:29 +00:00
|
|
|
pre-extract:
|
2002-10-22 07:46:10 +00:00
|
|
|
.if !defined(WITHOUT_MIKMOD) || !defined(WITHOUT_VORBIS) || ( !defined(WITHOUT_3DNOW) && ${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
|
2000-07-31 07:56:10 +00:00
|
|
|
.if !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021
|
2000-11-29 11:22:55 +00:00
|
|
|
@${ECHO_MSG} "You can disable 3DNow! optimized decoding routines by defining WITHOUT_3DNOW."
|
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:
|
|
|
|
@find ${WRKSRC} -name "Makefile.in*" | xargs ${REINPLACE_CMD} -e \
|
|
|
|
's|\(datadir\)/aclocal|(prefix)/share/aclocal|g'
|
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>
|