openbsd-ports/audio/xmms/Makefile
2008-01-14 01:16:37 +00:00

122 lines
3.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.58 2008/01/14 01:16:37 jakemsr Exp $
COMMENT-main= Multimedia player for the X Window System
COMMENT-esd= Esound output plugin for XMMS
COMMENT-vorbis= Ogg Vorbis input plugin for XMMS
COMMENT-mikmod= Mikmod input plugin for XMMS
COMMENT-mp3= MP3 input plugin for XMMS
SHARED_ONLY= Yes
VERSION= 1.2.11
DISTNAME= xmms-${VERSION}
PKGNAME-main= xmms-${VERSION}p1
PKGNAME-esd= xmms-esd-${VERSION}p0
PKGNAME-vorbis= xmms-vorbis-${VERSION}p0
PKGNAME-mikmod= xmms-mikmod-${VERSION}p0
PKGNAME-mp3= xmms-mp3-${VERSION}p0
SHARED_LIBS= xmms 4.2
CATEGORIES= audio
HOMEPAGE= http://www.xmms.org
MAINTAINER= Robert Nagy <robert@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 Xau Xdmcp Xext Xi glib gmodule m
V= 1.2.x
MASTER_SITES= ${HOMEPAGE}/files/$V/ \
ftp://ftp.xmms.org/xmms/$V/ \
ftp://ftp.sunet.se/pub/multimedia/xmms/$V/ \
ftp://ftp.stealth.net/xmms/$V/
PSEUDO_FLAVORS= no_esd no_vorbis no_mikmod no_mp3
FLAVOR?=
MULTI_PACKAGES= -main
.if !${FLAVOR:L:Mno_esd}
MULTI_PACKAGES+= -esd
.endif
.if !${FLAVOR:L:Mno_vorbis}
MULTI_PACKAGES+= -vorbis
.endif
.if !${FLAVOR:L:Mno_mikmod}
MULTI_PACKAGES+= -mikmod
.endif
.if !${FLAVOR:L:Mno_mp3}
MULTI_PACKAGES+= -mp3
.endif
.if ${MACHINE_ARCH} == "sparc64"
PATCH_LIST= patch-* gcc-*
.endif
WANTLIB-main= ${WANTLIB} GL ICE c Xxf86vm SM pthread
MODULES= devel/gettext
RUN_DEPENDS= :unzip-*:archivers/unzip
LIB_DEPENDS= gtk.>=1.2,gdk.>=1.2::x11/gtk+ \
gthread.>=1.2::devel/glib
USE_X11= Yes
USE_LIBTOOL= Yes
LIBTOOL_FLAGS= --tag=disable-static
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.59
CONFIGURE_ARGS= --without-gnome \
--enable-ipv6
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
CFLAGS="${CFLAGS:C/ *$//} -I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
DOCS= README NEWS FAQ
LIB_DEPENDS-esd= ${LIB_DEPENDS} esd.>=2::audio/esound
RUN_DEPENDS-esd= ::audio/xmms
WANTLIB-esd= ${WANTLIB} audiofile
LIB_DEPENDS-vorbis= ${LIB_DEPENDS} vorbis,vorbisfile.>=1::audio/libvorbis
RUN_DEPENDS-vorbis= ::audio/xmms
WANTLIB-vorbis= ${WANTLIB} ogg
LIB_DEPENDS-mikmod= ${LIB_DEPENDS} mikmod::audio/libmikmod
RUN_DEPENDS-mikmod= ::audio/xmms
PERMIT_PACKAGE_CDROM-mp3= patent issues
PERMIT_DISTFILES_CDROM-mp3= patent issues
LIB_DEPENDS-mp3= ${LIB_DEPENDS} xmms.>=4:xmms-${VERSION}*:${BUILD_PKGPATH}
WANTLIB-mp3= ${WANTLIB} z
.if ${MULTI_PACKAGES:M-esd}
CONFIGURE_ARGS+= --with-esd-prefix=${LOCALBASE}
.else
CONFIGURE_ARGS+= --disable-esd
.endif
.if ${MULTI_PACKAGES:M-vorbis}
CONFIGURE_ARGS+= --with-ogg-prefix=${LOCALBASE} \
--with-vorbis-prefix=${LOCALBASE}
.else
CONFIGURE_ARGS+= --disable-vorbis
.endif
.if ${MULTI_PACKAGES:M-mikmod}
CONFIGURE_ARGS+= --with-mikmod-prefix=${LOCALBASE}
.else
CONFIGURE_ARGS+= --disable-mikmod
.endif
pre-configure:
@cd ${WRKSRC}/libxmms && ${LOCALBASE}/bin/autoconf-${AUTOCONF_VERSION}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xmms
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/xmms
.include <bsd.port.mk>