2008-01-18 05:30:10 +01:00
|
|
|
# $NetBSD: Makefile,v 1.29 2008/01/18 04:30:11 tnn2 Exp $
|
2007-02-01 05:18:19 +01:00
|
|
|
#
|
|
|
|
|
2008-01-01 06:14:57 +01:00
|
|
|
DISTNAME= audacious-plugins-1.4.4
|
2007-11-20 09:05:57 +01:00
|
|
|
#PKGREVISION= 1
|
2008-01-18 05:30:10 +01:00
|
|
|
PKGREVISION= 1
|
2007-02-01 17:33:01 +01:00
|
|
|
CATEGORIES= audio
|
2007-09-15 09:24:46 +02:00
|
|
|
MASTER_SITES= http://distfiles.atheme.org/
|
2007-11-20 09:05:57 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
2007-02-01 05:18:19 +01:00
|
|
|
|
2008-01-11 20:32:16 +01:00
|
|
|
MAINTAINER= jfranz@bsdprojects.net
|
2007-02-01 17:33:01 +01:00
|
|
|
HOMEPAGE= http://audacious-media-player.org/
|
2007-03-14 02:53:13 +01:00
|
|
|
COMMENT= Plugins for Audacious media player
|
2007-02-01 05:18:19 +01:00
|
|
|
|
2007-02-01 17:33:01 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-11-20 09:05:57 +01:00
|
|
|
USE_TOOLS+= gmake intltool pkg-config
|
2007-03-14 02:53:13 +01:00
|
|
|
USE_LIBTOOL= yes
|
2007-02-05 00:47:11 +01:00
|
|
|
|
2007-12-08 23:20:04 +01:00
|
|
|
# This should avoid an error like: libstdc++.so.6: Undefined PLT symbol "_Unwind_GetIP" on NetBSD i386 and maybe amd64, with gcc4 at least.
|
|
|
|
# This seems to happen when libstdc++ gets linked in with the plug-ins and the code is not compiled with g++.
|
|
|
|
# For a similar problem see http://archive.netbsd.se/?ml=netbsd-java&a=2007-08&m=4912662 :
|
|
|
|
LDFLAGS.NetBSD+= -lgcc_s
|
|
|
|
|
2007-02-05 00:47:11 +01:00
|
|
|
# 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.
|
2007-02-01 17:33:01 +01:00
|
|
|
USE_LANGUAGES= c c++
|
2007-03-01 20:12:14 +01:00
|
|
|
LDFLAGS.NetBSD+= -lstdc++ -lm
|
2007-02-01 05:18:19 +01:00
|
|
|
|
2007-02-05 03:14:53 +01:00
|
|
|
# cdaudio plugin complains about missing OSS at runtime
|
2007-03-01 20:12:14 +01:00
|
|
|
LDFLAGS+= ${LIBOSSAUDIO}
|
2007-02-05 03:14:53 +01:00
|
|
|
|
2007-03-14 02:53:13 +01:00
|
|
|
# do not use pkgsrc' flac if it is installed
|
2007-09-16 17:06:34 +02:00
|
|
|
CFLAGS+= -I. -I../flacng -Ilibflacng
|
2007-03-14 02:53:13 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --disable-amidiplug --disable-evdevplug \
|
2007-04-13 02:31:26 +02:00
|
|
|
--disable-coreaudio --disable-projectm \
|
2008-01-03 03:03:17 +01:00
|
|
|
--disable-gnomeshortcuts
|
2007-02-01 05:18:19 +01:00
|
|
|
|
2007-02-01 17:33:01 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2008-01-03 03:03:17 +01:00
|
|
|
.include "options.mk"
|
2007-02-01 05:18:19 +01:00
|
|
|
|
2007-02-05 00:47:11 +01:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
2007-03-01 20:12:14 +01:00
|
|
|
RAWPART_cmd= /sbin/sysctl -n kern.rawpartition | ${TR} 0-9 a-j
|
2007-11-20 09:05:57 +01:00
|
|
|
CONFIGURE_ARGS+= --with-dev-dsp=${DEVOSSSOUND} \
|
|
|
|
--with-cdda-device=/dev/rcd0${RAWPART_cmd:sh} \
|
|
|
|
--with-cdda-dir=/cdrom/
|
|
|
|
PLIST_SUBST+= OSS=""
|
2007-12-09 11:05:20 +01:00
|
|
|
PLIST_SUBST+= SUN=""
|
2007-04-13 02:31:26 +02:00
|
|
|
.elif ${OPSYS} == "FreeBSD"
|
2007-11-20 09:05:57 +01:00
|
|
|
PLIST_SUBST+= OSS=""
|
|
|
|
PLIST_SUBST+= SUN="@comment "
|
2007-04-13 02:31:26 +02:00
|
|
|
.elif ${OPSYS} == "DragonFly"
|
2007-11-20 09:05:57 +01:00
|
|
|
PLIST_SUBST+= OSS=""
|
|
|
|
PLIST_SUBST+= SUN="@comment "
|
2007-04-13 02:31:26 +02:00
|
|
|
.elif ${OPSYS} == "SunOS"
|
2007-11-20 09:05:57 +01:00
|
|
|
PLIST_SUBST+= OSS="@comment "
|
|
|
|
PLIST_SUBST+= SUN=""
|
2007-04-13 02:31:26 +02:00
|
|
|
.elif ${OPSYS} == "Linux"
|
2007-11-20 09:05:57 +01:00
|
|
|
. include "../../wip/alsa-lib/buildlink3.mk"
|
2007-02-14 17:58:14 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS+= lirc
|
2007-11-20 09:05:57 +01:00
|
|
|
. if !empty(PKG_OPTIONS:Mlirc)
|
2007-02-14 17:58:14 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-lirc
|
2007-11-20 09:05:57 +01:00
|
|
|
. include "../../wip/lirc/buildlink3.mk"
|
|
|
|
. endif
|
2007-02-01 17:33:01 +01:00
|
|
|
.endif
|
|
|
|
|
2007-02-01 05:18:19 +01:00
|
|
|
.include "../../wip/audacious/buildlink3.mk"
|
2007-09-16 17:06:34 +02:00
|
|
|
.include "../../wip/libmtp/buildlink3.mk"
|
|
|
|
.include "../../audio/libcddb/buildlink3.mk"
|
2007-03-14 02:53:13 +01:00
|
|
|
.include "../../audio/libmad/buildlink3.mk"
|
|
|
|
.include "../../audio/libmpcdec/buildlink3.mk"
|
|
|
|
.include "../../audio/libvorbis/buildlink3.mk"
|
2007-02-01 05:18:19 +01:00
|
|
|
.include "../../audio/libsndfile/buildlink3.mk"
|
2007-03-14 02:53:13 +01:00
|
|
|
.include "../../audio/taglib/buildlink3.mk"
|
2007-02-05 23:40:00 +01:00
|
|
|
.include "../../audio/wavpack/buildlink3.mk"
|
2007-05-05 00:28:23 +02:00
|
|
|
.include "../../audio/lame/buildlink3.mk"
|
2007-09-15 09:24:46 +02:00
|
|
|
.include "../../devel/libbinio/buildlink3.mk"
|
2007-03-14 02:53:13 +01:00
|
|
|
.include "../../devel/SDL/buildlink3.mk"
|
2007-09-16 17:06:34 +02:00
|
|
|
.include "../../graphics/imlib2/buildlink3.mk"
|
|
|
|
.include "../../misc/libcdio/buildlink3.mk"
|
2007-02-01 05:18:19 +01:00
|
|
|
.include "../../multimedia/libogg/buildlink3.mk"
|
2007-09-16 17:06:34 +02:00
|
|
|
.include "../../net/libmms/buildlink3.mk"
|
2007-02-01 05:18:19 +01:00
|
|
|
.include "../../www/curl/buildlink3.mk"
|
2007-12-09 11:05:20 +01:00
|
|
|
.include "../../www/neon/buildlink3.mk"
|
2007-09-16 17:06:34 +02:00
|
|
|
.include "../../x11/libXcomposite/buildlink3.mk"
|
2007-02-01 17:33:01 +01:00
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
2007-02-01 05:18:19 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|