b08a5a69e5
From Brad.
101 lines
3.0 KiB
Makefile
101 lines
3.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.68 2010/06/11 20:05:57 landry Exp $
|
|
|
|
COMMENT-main= Multimedia player for the X Window System
|
|
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}p7
|
|
PKGNAME-vorbis= xmms-vorbis-${VERSION}p1
|
|
PKGNAME-mikmod= xmms-mikmod-${VERSION}p2
|
|
PKGNAME-mp3= xmms-mp3-${VERSION}p3
|
|
SHARED_LIBS= xmms 4.2
|
|
CATEGORIES= audio
|
|
HOMEPAGE= http://www.xmms.org
|
|
|
|
MAINTAINER= Robert Nagy <robert@openbsd.org>
|
|
|
|
# GPLv2
|
|
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 pthread-stubs xcb
|
|
|
|
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/
|
|
|
|
MULTI_PACKAGES= -main -vorbis -mikmod -mp3
|
|
|
|
WANTLIB-main= ${WANTLIB} GL ICE c Xxf86vm SM pthread sndio
|
|
|
|
MODULES= devel/gettext
|
|
BUILD_DEPENDS= ${MODGNU_AUTOCONF_DEPENDS} ${MODGNU_AUTOMAKE_DEPENDS}
|
|
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= gnu
|
|
AUTOCONF_VERSION= 2.59
|
|
AUTOMAKE_VERSION= 1.9
|
|
CONFIGURE_ARGS= --without-gnome \
|
|
--disable-esd \
|
|
--disable-oss \
|
|
--enable-ipv6 \
|
|
--with-ogg-prefix=${LOCALBASE} \
|
|
--with-vorbis-prefix=${LOCALBASE} \
|
|
--with-mikmod-prefix=${LOCALBASE}
|
|
|
|
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"
|
|
|
|
.if ${MACHINE_ARCH} == "sh"
|
|
CFLAGS += -O0
|
|
.endif
|
|
|
|
DOCS= README NEWS FAQ
|
|
|
|
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
|
|
WANTLIB-mikmod= ${WANTLIB} sndio
|
|
|
|
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
|
|
|
|
post-patch:
|
|
@mkdir -p ${WRKSRC}/Output/sndio
|
|
@cp ${FILESDIR}/{Makefile.am,audio_sndio.c} ${WRKSRC}/Output/sndio
|
|
.for dir in $${WRKSRC} $${WRKSRC}/libxmms
|
|
cd ${dir} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} aclocal
|
|
cd ${dir} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoheader
|
|
cd ${dir} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} automake
|
|
cd ${dir} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoconf
|
|
.endfor
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xmms
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/xmms
|
|
|
|
.include <bsd.port.mk>
|