openbsd-ports/audio/xmms/Makefile

115 lines
2.8 KiB
Makefile
Raw Normal View History

2001-07-25 10:45:10 -04:00
# $OpenBSD: Makefile,v 1.4 2001/07/25 14:45:10 espie Exp $
# $Id: Makefile,v 1.4 2001/07/25 14:45:10 espie Exp $
NOT_FOR_ARCHS=${NO_SHARED_ARCHS}
COMMENT= "Multimedia player for the X Window System"
COMMENT-esd= "Esound output plugin for XMMS"
COMMENT-vorbis= "Ogg Vorbis input plugin for XMMS"
VERSION= 1.2.5
DISTNAME= xmms-${VERSION}
PKGNAME-esd= xmms-esd-${VERSION}
PKGNAME-vorbis= xmms-vorbis-${VERSION}
DISTDRIVER= xmms_sun-${VERSION}-p1
CATEGORIES= audio
NEED_VERSION= 1.402
HOMEPAGE= http://www.xmms.org
MAINTAINER= Wilbern Cobb <cobb@vedge.com.ar>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITE_SUBDIR= 1.2.x
MASTER_SITES= http://www.xmms.org/files/%SUBDIR%/ \
ftp://ftp.xmms.org/xmms/%SUBDIR%/ \
ftp://ftp.sunet.se/pub/multimedia/xmms/%SUBDIR%/ \
ftp://ftp.stealth.net/xmms/%SUBDIR%/
MASTER_SITES0= http://vedge.com.ar/hack/
FLAVORS= no_esd no_vorbis
FLAVOR?=
MULTI_PACKAGES=
.if ${FLAVOR:L:Mno_esd}
FLAVOR:=${FLAVOR:L:Nno_esd}
.else
MULTI_PACKAGES+= -esd
.endif
.if ${FLAVOR:L:Mno_vorbis}
FLAVOR:=${FLAVOR:L:Nno_vorbis}
.else
MULTI_PACKAGES+= -vorbis
.endif
SUBPACKAGE?=
RUN_DEPENDS= unzip::archivers/unzip
LIB_DEPENDS= gtk.1.2::x11/gtk+ \
iconv.2::converters/libiconv \
intl.1::devel/gettext \
xml.9::textproc/libxml1
USE_X11= Yes
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= ${CONFIGURE_SHARED} --without-gnome
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib" \
XML_CONFIG="${LOCALBASE}/bin/xml-config" \
LIBMIKMOD_CONFIG=/no
DISTFILES= ${DISTNAME}.tar.gz \
${DISTDRIVER}.tar.gz:0
DOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS \
README TODO
2001-07-25 10:45:10 -04:00
SUBST_VARS= MAINTAINER PKGNAME-vorbis PKGNAME-esd
.if defined(PACKAGING)
. if ${SUBPACKAGE} == "-esd"
LIB_DEPENDS= esd.::audio/esound
RUN_DEPENDS= xmms::audio/xmms
. endif
. if ${SUBPACKAGE} == "-vorbis"
LIB_DEPENDS= vorbis.::audio/libvorbis
RUN_DEPENDS= xmms::audio/xmms
. endif
.else
. if ${MULTI_PACKAGES:M-esd}
LIB_DEPENDS += esd.::audio/esound
CONFIGURE_ARGS+= --with-esd-prefix=${LOCALBASE}
. else
CONFIGURE_ENV+= ESD_CONFIG=/no
. endif
. if ${MULTI_PACKAGES:M-vorbis}
LIB_DEPENDS += vorbis.::audio/libvorbis
CONFIGURE_ARGS+= --with-ogg-prefix=${LOCALBASE} \
--with-vorbis-prefix=${LOCALBASE}
. else
CONFIGURE_ENV+= OGG_LIBS=its-not-my-godamn-planet-understand-monkey-boy
. endif
.endif
post-extract:
@mv -f ${WRKDIR}/${DISTDRIVER}/Output/sun ${WRKSRC}/Output/sun
pre-build:
@ln -sf ${LOCALBASE}/include/libintl.h ${WRKSRC}/intl
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xmms
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/xmms
.include <bsd.port.mk>