2004-08-03 06:22:40 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.34 2004/08/03 10:22:40 espie Exp $
|
2001-07-20 10:26:16 -04:00
|
|
|
|
2001-07-25 08:52:24 -04:00
|
|
|
COMMENT= "Multimedia player for the X Window System"
|
|
|
|
COMMENT-esd= "Esound output plugin for XMMS"
|
|
|
|
COMMENT-vorbis= "Ogg Vorbis input plugin for XMMS"
|
2002-02-04 23:07:57 -05:00
|
|
|
COMMENT-mikmod= "Mikmod input plugin for XMMS"
|
2002-09-02 21:22:21 -04:00
|
|
|
COMMENT-mp3= "MP3 input plugin for XMMS"
|
2001-07-25 08:52:24 -04:00
|
|
|
|
2004-04-15 15:23:46 -04:00
|
|
|
VERSION= 1.2.10
|
2001-07-25 08:52:24 -04:00
|
|
|
DISTNAME= xmms-${VERSION}
|
2002-08-07 18:34:54 -04:00
|
|
|
PKGNAME-esd= xmms-esd-${VERSION}
|
|
|
|
PKGNAME-vorbis= xmms-vorbis-${VERSION}
|
|
|
|
PKGNAME-mikmod= xmms-mikmod-${VERSION}
|
2002-09-02 21:22:21 -04:00
|
|
|
PKGNAME-mp3= xmms-mp3-${VERSION}
|
2001-07-20 10:26:16 -04:00
|
|
|
CATEGORIES= audio
|
|
|
|
HOMEPAGE= http://www.xmms.org
|
|
|
|
|
2004-04-18 10:19:02 -04:00
|
|
|
MAINTAINER= Robert Nagy <robert@openbsd.org>
|
2001-07-25 08:52:24 -04:00
|
|
|
|
2001-07-20 10:26:16 -04:00
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2002-05-13 14:50:36 -04:00
|
|
|
V= 1.2.x
|
2004-04-15 15:23:46 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}/files/$V/ \
|
2002-05-13 14:50:36 -04:00
|
|
|
ftp://ftp.xmms.org/xmms/$V/ \
|
|
|
|
ftp://ftp.sunet.se/pub/multimedia/xmms/$V/ \
|
|
|
|
ftp://ftp.stealth.net/xmms/$V/
|
2001-07-20 10:26:16 -04:00
|
|
|
|
2003-04-05 19:48:23 -05:00
|
|
|
PSEUDO_FLAVORS= no_esd no_vorbis no_mikmod no_mp3
|
2001-07-20 10:26:16 -04:00
|
|
|
FLAVOR?=
|
2002-03-11 12:38:05 -05:00
|
|
|
MULTI_PACKAGES=
|
2001-07-26 08:29:25 -04:00
|
|
|
.if !${FLAVOR:L:Mno_esd}
|
2001-07-25 08:52:24 -04:00
|
|
|
MULTI_PACKAGES+= -esd
|
|
|
|
.endif
|
2001-07-26 08:29:25 -04:00
|
|
|
.if !${FLAVOR:L:Mno_vorbis}
|
2001-07-25 08:52:24 -04:00
|
|
|
MULTI_PACKAGES+= -vorbis
|
|
|
|
.endif
|
2002-02-04 23:07:57 -05:00
|
|
|
.if !${FLAVOR:L:Mno_mikmod}
|
|
|
|
MULTI_PACKAGES+= -mikmod
|
|
|
|
.endif
|
2002-09-02 21:22:21 -04:00
|
|
|
.if !${FLAVOR:L:Mno_mp3}
|
|
|
|
MULTI_PACKAGES+= -mp3
|
|
|
|
.endif
|
2001-07-20 10:26:16 -04:00
|
|
|
|
2001-07-25 08:52:24 -04:00
|
|
|
SUBPACKAGE?=
|
2001-07-20 10:26:16 -04:00
|
|
|
|
2004-08-03 06:22:40 -04:00
|
|
|
MODULES= devel/gettext
|
2001-10-24 08:09:04 -04:00
|
|
|
RUN_DEPENDS= :unzip-*:archivers/unzip
|
|
|
|
LIB_DEPENDS= gtk.1.2,gdk.1.2::x11/gtk+ \
|
2003-12-12 13:30:02 -05:00
|
|
|
gthread.1.2::devel/glib \
|
2001-07-25 08:52:24 -04:00
|
|
|
xml.9::textproc/libxml1
|
2001-07-20 10:26:16 -04:00
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
CONFIGURE_STYLE= autoconf
|
2004-05-24 09:17:40 -04:00
|
|
|
AUTOCONF_VERSION= 2.59
|
2003-04-05 19:48:23 -05:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2004-04-15 15:23:46 -04:00
|
|
|
--without-gnome \
|
|
|
|
--enable-ipv6
|
2001-07-20 10:26:16 -04:00
|
|
|
|
2004-04-15 15:23:46 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
CFLAGS="${CFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
|
|
|
|
XML_CONFIG="${LOCALBASE}/bin/xml-config" \
|
2001-07-20 10:26:16 -04:00
|
|
|
|
2004-05-24 09:17:40 -04:00
|
|
|
DOCS= README NEWS FAQ
|
2002-03-11 12:38:05 -05:00
|
|
|
|
2001-07-25 08:52:24 -04:00
|
|
|
|
2002-03-11 12:38:05 -05:00
|
|
|
.if defined(PACKAGING)
|
2002-02-04 23:07:57 -05:00
|
|
|
. if ${SUBPACKAGE} == "-esd"
|
2001-07-25 11:48:26 -04:00
|
|
|
LIB_DEPENDS= esd.2::audio/esound
|
2002-03-11 15:32:55 -05:00
|
|
|
RUN_DEPENDS= ::audio/xmms
|
2002-02-04 23:07:57 -05:00
|
|
|
. endif
|
|
|
|
. if ${SUBPACKAGE} == "-vorbis"
|
2001-10-24 08:09:04 -04:00
|
|
|
LIB_DEPENDS= vorbis.0,vorbisfile.1::audio/libvorbis
|
2002-03-11 15:32:55 -05:00
|
|
|
RUN_DEPENDS= ::audio/xmms
|
2002-02-04 23:07:57 -05:00
|
|
|
. endif
|
|
|
|
. if ${SUBPACKAGE} == "-mikmod"
|
|
|
|
LIB_DEPENDS= mikmod.0::audio/libmikmod
|
2002-03-11 15:32:55 -05:00
|
|
|
RUN_DEPENDS= ::audio/xmms
|
2002-02-04 23:07:57 -05:00
|
|
|
. endif
|
2002-09-02 21:22:21 -04:00
|
|
|
. if ${SUBPACKAGE} == "-mp3"
|
|
|
|
PERMIT_PACKAGE_CDROM= "patent issues"
|
|
|
|
PERMIT_DISTFILES_CDROM= "patent issues"
|
|
|
|
RUN_DEPENDS= ::audio/xmms
|
|
|
|
. endif
|
2001-07-20 10:26:16 -04:00
|
|
|
.else
|
2002-02-04 23:07:57 -05:00
|
|
|
. if ${MULTI_PACKAGES:M-esd}
|
|
|
|
LIB_DEPENDS+= esd.2::audio/esound
|
2001-07-25 08:52:24 -04:00
|
|
|
CONFIGURE_ARGS+= --with-esd-prefix=${LOCALBASE}
|
2002-02-04 23:07:57 -05:00
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --disable-esd
|
|
|
|
. endif
|
|
|
|
. if ${MULTI_PACKAGES:M-vorbis}
|
|
|
|
LIB_DEPENDS+= vorbis.0,vorbisfile.1::audio/libvorbis
|
2001-07-20 10:26:16 -04:00
|
|
|
CONFIGURE_ARGS+= --with-ogg-prefix=${LOCALBASE} \
|
|
|
|
--with-vorbis-prefix=${LOCALBASE}
|
2002-02-04 23:07:57 -05:00
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --disable-vorbis
|
|
|
|
. endif
|
|
|
|
. if ${MULTI_PACKAGES:M-mikmod}
|
|
|
|
LIB_DEPENDS+= mikmod.2::audio/libmikmod
|
|
|
|
CONFIGURE_ARGS+= --with-mikmod-prefix=${LOCALBASE}
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --disable-mikmod
|
|
|
|
. endif
|
2001-07-20 10:26:16 -04:00
|
|
|
.endif
|
|
|
|
|
2001-07-27 13:37:38 -04:00
|
|
|
pre-configure:
|
2004-04-15 15:23:46 -04:00
|
|
|
@cd ${WRKSRC}/libxmms && ${LOCALBASE}/bin/autoconf-${AUTOCONF_VERSION}
|
2001-07-27 13:37:38 -04:00
|
|
|
|
2001-07-20 10:26:16 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xmms
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/xmms
|
2002-03-11 12:38:05 -05:00
|
|
|
|
2001-07-20 10:26:16 -04:00
|
|
|
.include <bsd.port.mk>
|