125 lines
3.6 KiB
Makefile
125 lines
3.6 KiB
Makefile
# $NetBSD: Makefile,v 1.10 2007/02/15 11:15:49 netcap Exp $
|
|
#
|
|
|
|
DISTNAME= audacious-plugins-1.2.5
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://audacious-media-player.org/release/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= jfranz@bsdprojects.net
|
|
HOMEPAGE= http://audacious-media-player.org/
|
|
COMMENT= Plugins for Audacious media player
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_TOOLS= gmake intltool pkg-config
|
|
USE_LIBTOOL= yes
|
|
|
|
# From audio/bmp/Makefile:
|
|
# XXX Workaround a crash during shutdown that happens when dlclose(3)ing
|
|
# any open plugin. libstdc++ gets dynamically linked in when the id3lib
|
|
# library is loaded, and is the one causing problems. See PR pkg/26846
|
|
# for more information.
|
|
USE_LANGUAGES= c c++
|
|
LDFLAGS.NetBSD+= -lstdc++ -lm
|
|
|
|
# cdaudio plugin complains about missing OSS at runtime
|
|
LDFLAGS+= ${LIBOSSAUDIO}
|
|
|
|
CONFIGURE_ARGS+= --disable-amidiplug
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.audacious-plugins
|
|
PKG_SUPPORTED_OPTIONS= arts esound gnome inet6 jack midi pulse
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Marts)
|
|
. include "../../audio/arts/buildlink3.mk"
|
|
PLIST_SUBST+= ARTS=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-arts
|
|
PLIST_SUBST+= ARTS="@comment "
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mesound)
|
|
. include "../../audio/esound/buildlink3.mk"
|
|
PLIST_SUBST+= ESD=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-esd
|
|
PLIST_SUBST+= ESD="@comment "
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mgnome)
|
|
CONFIGURE_ARGS+= --enable-gconf
|
|
CONFIGURE_ARGS+= --enable-gnome-vfs
|
|
. include "../../devel/GConf2/buildlink3.mk"
|
|
. include "../../sysutils/gnome-vfs2/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mjack)
|
|
. include "../../audio/jack/buildlink3.mk"
|
|
PLIST_SUBST+= JACK=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-jack
|
|
PLIST_SUBST+= JACK="@comment "
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mmidi)
|
|
BUILD_DEPENDS+= timidity>=0:../../audio/timidity
|
|
PLIST_SUBST+= MIDI=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-timidity
|
|
PLIST_SUBST+= MIDI="@comment "
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mpulse)
|
|
. include "../../wip/pulseaudio/buildlink3.mk"
|
|
PLIST_SUBST+= PULSE=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-pulse
|
|
PLIST_SUBST+= PULSE="@comment "
|
|
.endif
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
RAWPART_cmd= /sbin/sysctl -n kern.rawpartition | ${TR} 0-9 a-j
|
|
CONFIGURE_ARGS+= --with-dev-dsp=${DEVOSSSOUND:Q} \
|
|
--with-cdda-device=/dev/rcd0${RAWPART_cmd:sh} \
|
|
--with-cdda-dir=/cdrom/
|
|
.endif
|
|
|
|
.if ${OPSYS} == "Linux"
|
|
. include "../../wip/alsa-lib/buildlink3.mk"
|
|
PKG_SUPPORTED_OPTIONS+= lirc
|
|
. if !empty(PKG_OPTIONS:Mlirc)
|
|
CONFIGURE_ARGS+= --enable-lirc
|
|
. include "../../wip/lirc/buildlink3.mk"
|
|
. endif
|
|
.endif
|
|
|
|
#CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib" \
|
|
# CFLAGS="-I${LOCALBASE}/include/audacious"
|
|
|
|
#BUILD_DEPENDS+= audacious-[0-9]*:../../wip/audacious
|
|
|
|
.include "../../wip/audacious/buildlink3.mk"
|
|
.include "../../wip/libnms/buildlink3.mk"
|
|
.include "../../wip/libadplug/buildlink3.mk"
|
|
.include "../../audio/flac/buildlink3.mk"
|
|
.include "../../audio/libvorbis/buildlink3.mk"
|
|
.include "../../audio/taglib/buildlink3.mk"
|
|
.include "../../audio/libmodplug/buildlink3.mk"
|
|
.include "../../audio/libsidplay/buildlink3.mk"
|
|
#.include "../../audio/libsidplay2/buildlink3.mk"
|
|
.include "../../audio/libmpcdec/buildlink3.mk"
|
|
.include "../../audio/libsndfile/buildlink3.mk"
|
|
.include "../../audio/wavpack/buildlink3.mk"
|
|
.include "../../multimedia/libogg/buildlink3.mk"
|
|
.include "../../www/curl/buildlink3.mk"
|
|
.include "../../devel/SDL/buildlink3.mk"
|
|
.include "../../mk/oss.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|