1999-07-03 15:37:30 -04:00
|
|
|
# New ports collection makefile for: xmms
|
|
|
|
# Date created: 3 July 1999
|
1999-09-19 17:01:50 -04:00
|
|
|
# Whom: Espen Skoglund <esk@ira.uka.de>
|
1999-07-03 15:37:30 -04:00
|
|
|
#
|
1999-08-25 00:36:31 -04:00
|
|
|
# $FreeBSD$
|
1999-07-03 15:37:30 -04:00
|
|
|
#
|
|
|
|
|
2000-04-08 17:25:03 -04:00
|
|
|
PORTNAME= xmms
|
2000-11-29 06:22:55 -05:00
|
|
|
PORTVERSION= 1.2.4
|
2001-01-04 15:43:27 -05:00
|
|
|
PORTREVISION= 1
|
1999-07-03 15:37:30 -04:00
|
|
|
CATEGORIES= audio
|
2001-01-22 07:14:51 -05:00
|
|
|
MASTER_SITES= ftp://ftp.xmms.org/xmms/1.2.x/
|
1999-07-03 15:37:30 -04:00
|
|
|
|
2001-03-28 13:23:41 -05:00
|
|
|
MAINTAINER?= esk@ira.uka.de
|
1999-07-03 15:37:30 -04:00
|
|
|
|
2000-10-05 03:22:56 -04:00
|
|
|
LIB_DEPENDS= xml.5:${PORTSDIR}/textproc/libxml
|
1999-07-03 15:37:30 -04:00
|
|
|
|
2000-10-05 03:22:56 -04:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GTK= yes
|
|
|
|
WANT_ESOUND= yes
|
|
|
|
WANT_GNOME= yes
|
|
|
|
USE_LIBTOOL= yes
|
2000-07-31 03:56:10 -04:00
|
|
|
LIBTOOLFILES= configure libxmms/configure
|
2000-10-05 03:22:56 -04:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib" \
|
2000-11-29 06:22:55 -05:00
|
|
|
HAVE_MIKMOD="${HAVE_MIKMOD}" \
|
|
|
|
HAVE_VORBIS="${HAVE_VORBIS}"
|
2000-10-05 03:22:56 -04:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2000-06-21 04:44:23 -04:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_MIKMOD)
|
|
|
|
LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod
|
2000-10-05 03:22:56 -04:00
|
|
|
HAVE_MIKMOD= yes
|
2000-06-21 04:44:23 -04:00
|
|
|
PLIST_SUB+= MIKMODPLUGIN:=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MIKMODPLUGIN:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2000-11-29 06:22:55 -05:00
|
|
|
.if !defined(WITHOUT_VORBIS)
|
|
|
|
LIB_DEPENDS+= vorbis.0:${PORTSDIR}/audio/libvorbis
|
|
|
|
HAVE_VORBIS= yes
|
|
|
|
PLIST_SUB+= VORBISPLUGIN:=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= VORBISPLUGIN:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2000-10-05 03:22:56 -04:00
|
|
|
.if defined(HAVE_GNOME)
|
|
|
|
USE_GNOME= yes
|
2000-06-21 04:44:23 -04:00
|
|
|
.else
|
2000-10-05 03:22:56 -04:00
|
|
|
CONFIGURE_ARGS= --without-gnome
|
2000-06-21 04:44:23 -04:00
|
|
|
.endif
|
2000-06-16 03:45:29 -04:00
|
|
|
|
2000-10-05 03:22:56 -04:00
|
|
|
.if defined(HAVE_ESOUND)
|
|
|
|
USE_ESOUND= yes
|
|
|
|
PLIST_SUB+= ESDPLUGIN:=""
|
2000-06-16 03:45:29 -04:00
|
|
|
.else
|
2000-10-05 03:22:56 -04:00
|
|
|
PLIST_SUB+= ESDPLUGIN:="@comment "
|
2000-06-16 03:45:29 -04:00
|
|
|
.endif
|
1999-11-05 22:11:22 -05:00
|
|
|
|
2000-07-31 03:56:10 -04:00
|
|
|
.if !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021
|
|
|
|
CONFIGURE_ARGS+= --enable-3dnow
|
|
|
|
.endif
|
|
|
|
|
2000-10-05 03:22:56 -04: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);
|
|
|
|
${PERL} -pi.bak -e 's:\.s :\.S :g' ${WRKSRC}/Input/mpg123/Makefile.in
|
|
|
|
${PERL} -pi.bak -e 's:blur_8.s:blur_8.S:g' \
|
|
|
|
${WRKSRC}/Visualization/blur_scope/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
2000-06-16 03:45:29 -04:00
|
|
|
pre-extract:
|
2000-11-29 06:22:55 -05:00
|
|
|
.if !defined(WITHOUT_MIKMOD) || !defined(WITHOUT_VORBIS) || ( !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021 )
|
2000-06-21 04:44:23 -04:00
|
|
|
@${ECHO_MSG}
|
|
|
|
.if !defined(WITHOUT_MIKMOD)
|
|
|
|
@${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_MIKMOD."
|
|
|
|
.endif
|
2000-11-29 06:22:55 -05:00
|
|
|
.if !defined(WITHOUT_VORBIS)
|
|
|
|
@${ECHO_MSG} "You can disable support for vorbis by defining WITHOUT_VORBIS."
|
|
|
|
.endif
|
2000-07-31 03:56:10 -04:00
|
|
|
.if !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021
|
2000-11-29 06:22:55 -05:00
|
|
|
@${ECHO_MSG} "You can disable 3DNow! optimized decoding routines by defining WITHOUT_3DNOW."
|
2000-07-31 03:56:10 -04:00
|
|
|
.endif
|
2000-06-21 04:44:23 -04:00
|
|
|
@${ECHO_MSG}
|
2000-06-16 03:45:29 -04:00
|
|
|
.endif
|
2000-02-10 20:26:05 -05:00
|
|
|
|
2000-09-22 02:21:49 -04:00
|
|
|
pre-patch:
|
2001-03-29 11:35:19 -05:00
|
|
|
@${PERL} -pi -e 's^-l(pthread|c_r)^${PTHREAD_LIBS}^g ; \
|
2000-10-05 03:22:56 -04:00
|
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
|
|
|
|
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
|
|
|
|
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
|
|
|
|
s|\$\(datadir\)/aclocal|\$\(prefix\)/share/aclocal|g ; \
|
|
|
|
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
|
2000-09-22 02:21:49 -04:00
|
|
|
|
2001-03-28 21:32:02 -05:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/xmms/Skins
|
|
|
|
|
2000-07-31 03:56:10 -04:00
|
|
|
.include <bsd.port.post.mk>
|