openbsd-ports/audio/audacious-plugins/Makefile
2011-09-16 08:26:09 +00:00

119 lines
2.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.37 2011/09/16 08:26:10 espie Exp $
SHARED_ONLY = Yes
COMMENT-main = input and output plugins for audacious
COMMENT-jack = jack plugin for audacious
V = 2.4.5
DISTNAME = audacious-plugins-$V
PKGNAME-main = ${DISTNAME}
REVISION-main = 2
PKGNAME-jack = audacious-jack-$V
REVISION-jack = 1
CATEGORIES = audio multimedia
HOMEPAGE = http://audacious-media-player.org/
# GPL
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB += Xrandr Xrender atk-1.0 audcore audgui cairo dbus-1
WANTLIB += dbus-glib-1 expat fontconfig freetype gdk-x11-2.0
WANTLIB += gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB += gthread-2.0 gtk-x11-2.0 m mcs mowgli pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 samplerate z ${MODGETTEXT_WANTLIB}
WANTLIB-main += ${WANTLIB} FLAC SDL audtag avcodec avformat avutil
WANTLIB-main += bz2 cddb cdio cdio_cdda cue curl faad gsm mp3lame
WANTLIB-main += neon notify ogg orc-0.4 schroedinger-1.0 sndfile
WANTLIB-main += sndio speex stdc++ theoradec theoraenc vorbis
WANTLIB-main += vorbisenc vorbisfile vpx wavpack x264 xml2
WANTLIB-jack += ${WANTLIB} jack
MASTER_SITES = http://distfiles.atheme.org/
EXTRACT_SUFX = .tgz
MULTI_PACKAGES = -main
MODULES = devel/gettext
BUILD_DEPENDS = ${RUN_DEPENDS-main}
RUN_DEPENDS-main = audio/audacious>=${V}
RUN_DEPENDS-jack = audio/audacious-plugins,-main
LIB_DEPENDS-main = audio/faad \
audio/flac \
audio/lame \
audio/libcdio \
audio/libcue \
audio/libmpcdec \
audio/libsamplerate \
audio/libsndfile \
audio/libvorbis \
audio/taglib>=1.4 \
audio/wavpack \
devel/libnotify>=0.7.2 \
devel/sdl \
graphics/ffmpeg \
net/curl \
net/neon \
textproc/libxml \
x11/gtk+2 \
x11/dbus-glib \
devel/mcs
LIB_DEPENDS-jack = audio/jack \
x11/gtk+2 \
x11/dbus-glib \
devel/mcs
PSEUDO_FLAVORS = no_jack
FLAVOR ?=
.if ${FLAVOR:Mno_jack}
CONFIGURE_ARGS += --disable-jack
.else
MULTI_PACKAGES += -jack
.endif
USE_GMAKE = Yes
CONFIGURE_STYLE = autoconf
AUTOCONF_VERSION = 2.68
CONFIGURE_ARGS += --enable-ipv6 \
--enable-sndio \
--disable-pulse \
--disable-altivec \
--disable-lirc \
--disable-adplug \
--disable-sid \
--disable-oss \
--disable-alsa \
--disable-amidiplug \
--disable-mms \
--disable-mtp_up \
--disable-projectm \
--disable-projectm-1.0
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if ${MACHINE_ARCH} != "amd64"
CONFIGURE_ARGS += --disable-sse2
.endif
NO_REGRESS = Yes
post-patch:
@mkdir -p ${WRKSRC}/src/sndio
@cp ${FILESDIR}/{Makefile,sndio.c} ${WRKSRC}/src/sndio
.include <bsd.port.mk>