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
|
2000-09-22 06:21:49 +00:00
|
|
|
PORTVERSION= 1.2.3
|
2000-09-27 09:41:42 +00:00
|
|
|
PORTREVISION= 1
|
1999-07-03 19:37:30 +00:00
|
|
|
CATEGORIES= audio
|
2000-06-20 08:56:04 +00:00
|
|
|
MASTER_SITES= ftp://ftp.xmms.org/xmms/1.2.x/ \
|
|
|
|
ftp://ftp.uk.xmms.org/xmms/1.2.x/ \
|
|
|
|
ftp://ftp.us.xmms.org/xmms/1.2.x/ \
|
|
|
|
ftp://ftp.ca.us.xmms.org/xmms/1.2.x/ \
|
|
|
|
ftp://ftp.md.us.xmms.org/xmms/1.2.x/ \
|
|
|
|
ftp://ftp.nl.xmms.org/xmms/1.2.x/ \
|
|
|
|
ftp://ftp.de.xmms.org/xmms/1.2.x/
|
1999-07-03 19:37:30 +00:00
|
|
|
|
2000-07-31 07:56:10 +00:00
|
|
|
PATCH_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
PATCH_SITE_SUBDIR= sobomax
|
|
|
|
|
1999-09-19 21:01:50 +00:00
|
|
|
MAINTAINER= esk@ira.uka.de
|
1999-07-03 19:37:30 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
|
1999-11-06 03:11:22 +00:00
|
|
|
glib12.3:${PORTSDIR}/devel/glib12 \
|
2000-06-21 08:44:23 +00:00
|
|
|
xml.5:${PORTSDIR}/textproc/libxml
|
1999-07-03 19:37:30 +00:00
|
|
|
|
2000-06-21 08:44:23 +00:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_LIBTOOL= yes
|
2000-07-31 07:56:10 +00:00
|
|
|
LIBTOOLFILES= configure libxmms/configure
|
2000-06-21 08:44:23 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_MIKMOD)
|
|
|
|
LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod
|
|
|
|
HAVE_MIKMOD_OVERRIDE=
|
|
|
|
PLIST_SUB+= MIKMODPLUGIN:=""
|
|
|
|
.else
|
|
|
|
HAVE_MIKMOD_OVERRIDE= yes
|
|
|
|
PLIST_SUB+= MIKMODPLUGIN:="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_ESD)
|
|
|
|
LIB_DEPENDS+= esd.2:${PORTSDIR}/audio/esound
|
|
|
|
HAVE_ESD_OVERRIDE=
|
|
|
|
PLIST_SUB+= ESDPLUGIN:=""
|
|
|
|
.else
|
|
|
|
HAVE_ESD_OVERRIDE= yes
|
|
|
|
PLIST_SUB+= ESDPLUGIN:="@comment "
|
|
|
|
.endif
|
2000-06-16 07:45:29 +00:00
|
|
|
|
|
|
|
.if defined(WITH_GNOME)
|
2000-06-21 08:44:23 +00:00
|
|
|
LIB_DEPENDS+= gnome.4:${PORTSDIR}/x11/gnomelibs \
|
|
|
|
panel_applet.4:${PORTSDIR}/x11/gnomecore
|
|
|
|
CONFIGURE_ARGS+= --with-gnome
|
|
|
|
PLIST_SUB+= GNOME:=""
|
2000-06-16 07:45:29 +00:00
|
|
|
.else
|
2000-06-21 08:44:23 +00:00
|
|
|
CONFIGURE_ARGS+= --without-gnome
|
|
|
|
PLIST_SUB+= GNOME:="@comment "
|
2000-06-16 07:45:29 +00:00
|
|
|
.endif
|
1999-11-06 03:11:22 +00:00
|
|
|
|
|
|
|
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
|
|
|
|
GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
|
|
|
|
|
2000-06-21 08:44:23 +00:00
|
|
|
CONFIGURE_ENV+= GTK_CONFIG="${GTK_CONFIG}" \
|
2000-06-16 21:52:40 +00:00
|
|
|
GLIB_CONFIG="${GLIB_CONFIG}" \
|
2000-06-16 07:45:29 +00:00
|
|
|
CPPFLAGS="-I${LOCALBASE}/include" \
|
2000-06-21 08:44:23 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
HAVE_ESD_OVERRIDE="${HAVE_ESD_OVERRIDE}" \
|
|
|
|
HAVE_MIKMOD_OVERRIDE="${HAVE_MIKMOD_OVERRIDE}"
|
2000-06-16 07:45:29 +00:00
|
|
|
|
2000-07-31 07:56:10 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021
|
2000-09-22 06:21:49 +00:00
|
|
|
PATCHFILES= xmms-${PORTVERSION}-3dnow.patch.gz
|
2000-07-31 07:56:10 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-3dnow
|
|
|
|
.endif
|
|
|
|
|
2000-06-16 07:45:29 +00:00
|
|
|
pre-extract:
|
2000-07-31 07:56:10 +00:00
|
|
|
.if !defined(WITH_GNOME) || !defined(WITHOUT_ESD) || !defined(WITHOUT_MIKMOD) || \
|
|
|
|
( !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021 )
|
2000-06-21 08:44:23 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
.if !defined(WITH_GNOME)
|
|
|
|
@${ECHO_MSG} "You can add support for GNOME by defining WITH_GNOME."
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_ESD)
|
|
|
|
@${ECHO_MSG} "You can disable support for ESD sound daemon by defining WITHOUT_ESD."
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_MIKMOD)
|
|
|
|
@${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_MIKMOD."
|
|
|
|
.endif
|
2000-07-31 07:56:10 +00:00
|
|
|
.if !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021
|
|
|
|
@${ECHO_MSG} "You can disable 3DNOW optimized decoding routines by defining WITHOUT_3DNOW."
|
|
|
|
.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
|
|
|
|
2000-07-31 07:56:10 +00:00
|
|
|
.if defined(WITHOUT_3DNOW) || ${OSVERSION} < 400021
|
2000-07-13 20:20:21 +00:00
|
|
|
post-extract:
|
|
|
|
(cd ${WRKSRC}/Input/mpg123 && ${MV} decode_i586.s decode_i586.S && \
|
|
|
|
${MV} getbits.s getbits.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
|
2000-07-31 07:56:10 +00:00
|
|
|
.endif
|
2000-07-13 20:20:21 +00:00
|
|
|
|
2000-09-22 06:21:49 +00:00
|
|
|
pre-patch:
|
|
|
|
@${PERL} -pi -e 's|-lpthread|-pthread|g' ${WRKSRC}/configure
|
|
|
|
|
2000-07-31 07:56:10 +00:00
|
|
|
.include <bsd.port.post.mk>
|