| @@ -1,87 +1,87 @@ | | | @@ -1,87 +1,87 @@ |
1 | # $NetBSD: Makefile,v 1.3 2008/11/10 12:06:06 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.4 2008/12/14 19:14:33 hasso Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= audacious-plugins-1.5.1 | | 4 | DISTNAME= audacious-plugins-1.5.1 |
5 | CATEGORIES= audio | | 5 | CATEGORIES= audio |
6 | MASTER_SITES= http://distfiles.atheme.org/ | | 6 | MASTER_SITES= http://distfiles.atheme.org/ |
7 | EXTRACT_SUFX= .tgz | | 7 | EXTRACT_SUFX= .tgz |
8 | | | 8 | |
9 | MAINTAINER= jfranz@bsdprojects.net | | 9 | MAINTAINER= jfranz@bsdprojects.net |
10 | HOMEPAGE= http://audacious-media-player.org/ | | 10 | HOMEPAGE= http://audacious-media-player.org/ |
11 | COMMENT= Plugins for Audacious media player | | 11 | COMMENT= Plugins for Audacious media player |
12 | | | 12 | |
13 | GNU_CONFIGURE= yes | | 13 | GNU_CONFIGURE= yes |
14 | USE_TOOLS+= gmake intltool pkg-config | | 14 | USE_TOOLS+= gmake intltool pkg-config msgfmt |
15 | USE_LIBTOOL= yes | | 15 | USE_LIBTOOL= yes |
16 | | | 16 | |
17 | # This should avoid an error like: libstdc++.so.6: Undefined PLT symbol "_Unwind_GetIP" on NetBSD i386 and maybe amd64, with gcc4 at least. | | 17 | # This should avoid an error like: libstdc++.so.6: Undefined PLT symbol "_Unwind_GetIP" on NetBSD i386 and maybe amd64, with gcc4 at least. |
18 | # This seems to happen when libstdc++ gets linked in with the plug-ins and the code is not compiled with g++. | | 18 | # This seems to happen when libstdc++ gets linked in with the plug-ins and the code is not compiled with g++. |
19 | # For a similar problem see http://archive.netbsd.se/?ml=netbsd-java&a=2007-08&m=4912662 : | | 19 | # For a similar problem see http://archive.netbsd.se/?ml=netbsd-java&a=2007-08&m=4912662 : |
20 | LDFLAGS.NetBSD+= -lgcc_s | | 20 | LDFLAGS.NetBSD+= -lgcc_s |
21 | | | 21 | |
22 | # From audio/bmp/Makefile: | | 22 | # From audio/bmp/Makefile: |
23 | # XXX Workaround a crash during shutdown that happens when dlclose(3)ing | | 23 | # XXX Workaround a crash during shutdown that happens when dlclose(3)ing |
24 | # any open plugin. libstdc++ gets dynamically linked in when the id3lib | | 24 | # any open plugin. libstdc++ gets dynamically linked in when the id3lib |
25 | # library is loaded, and is the one causing problems. See PR pkg/26846 | | 25 | # library is loaded, and is the one causing problems. See PR pkg/26846 |
26 | # for more information. | | 26 | # for more information. |
27 | USE_LANGUAGES= c c++ | | 27 | USE_LANGUAGES= c c++ |
28 | LDFLAGS.NetBSD+= -lstdc++ -lm | | 28 | LDFLAGS.NetBSD+= -lstdc++ -lm |
29 | | | 29 | |
30 | # cdaudio plugin complains about missing OSS at runtime | | 30 | # cdaudio plugin complains about missing OSS at runtime |
31 | LDFLAGS+= ${LIBOSSAUDIO} | | 31 | LDFLAGS+= ${LIBOSSAUDIO} |
32 | | | 32 | |
33 | # do not use pkgsrc' flac if it is installed | | 33 | # do not use pkgsrc' flac if it is installed |
34 | CFLAGS+= -I. -I../flacng -Ilibflacng | | 34 | CFLAGS+= -I. -I../flacng -Ilibflacng |
35 | | | 35 | |
36 | CONFIGURE_ARGS+= --disable-amidiplug --disable-evdevplug \ | | 36 | CONFIGURE_ARGS+= --disable-amidiplug --disable-evdevplug \ |
37 | --disable-coreaudio --disable-projectm \ | | 37 | --disable-coreaudio --disable-projectm \ |
38 | --disable-gnomeshortcuts | | 38 | --disable-gnomeshortcuts |
39 | | | 39 | |
40 | .include "../../mk/bsd.prefs.mk" | | 40 | .include "../../mk/bsd.prefs.mk" |
41 | .include "options.mk" | | 41 | .include "options.mk" |
42 | | | 42 | |
43 | PLIST_VARS+= oss sun | | 43 | PLIST_VARS+= oss sun |
44 | | | 44 | |
45 | .if ${OPSYS} == "NetBSD" | | 45 | .if ${OPSYS} == "NetBSD" |
46 | RAWPART_cmd= /sbin/sysctl -n kern.rawpartition | ${TR} 0-9 a-j | | 46 | RAWPART_cmd= /sbin/sysctl -n kern.rawpartition | ${TR} 0-9 a-j |
47 | CONFIGURE_ARGS+= --with-dev-dsp=${DEVOSSSOUND} \ | | 47 | CONFIGURE_ARGS+= --with-dev-dsp=${DEVOSSSOUND} \ |
48 | --with-cdda-device=/dev/rcd0${RAWPART_cmd:sh} \ | | 48 | --with-cdda-device=/dev/rcd0${RAWPART_cmd:sh} \ |
49 | --with-cdda-dir=/cdrom/ | | 49 | --with-cdda-dir=/cdrom/ |
50 | PLIST.oss= yes | | 50 | PLIST.oss= yes |
51 | PLIST.sun= yes | | 51 | PLIST.sun= yes |
52 | .elif ${OPSYS} == "FreeBSD" | | 52 | .elif ${OPSYS} == "FreeBSD" |
53 | PLIST.oss= yes | | 53 | PLIST.oss= yes |
54 | .elif ${OPSYS} == "DragonFly" | | 54 | .elif ${OPSYS} == "DragonFly" |
55 | PLIST.oss= yes | | 55 | PLIST.oss= yes |
56 | .elif ${OPSYS} == "SunOS" | | 56 | .elif ${OPSYS} == "SunOS" |
57 | PLIST.sun= yes | | 57 | PLIST.sun= yes |
58 | #.elif ${OPSYS} == "Linux" | | 58 | #.elif ${OPSYS} == "Linux" |
59 | #. include "../../wip/alsa-lib/buildlink3.mk" | | 59 | #. include "../../wip/alsa-lib/buildlink3.mk" |
60 | #PKG_SUPPORTED_OPTIONS+= lirc | | 60 | #PKG_SUPPORTED_OPTIONS+= lirc |
61 | #. if !empty(PKG_OPTIONS:Mlirc) | | 61 | #. if !empty(PKG_OPTIONS:Mlirc) |
62 | #CONFIGURE_ARGS+= --enable-lirc | | 62 | #CONFIGURE_ARGS+= --enable-lirc |
63 | #. include "../../wip/lirc/buildlink3.mk" | | 63 | #. include "../../wip/lirc/buildlink3.mk" |
64 | #. endif | | 64 | #. endif |
65 | .endif | | 65 | .endif |
66 | | | 66 | |
67 | .include "../../audio/audacious/buildlink3.mk" | | 67 | .include "../../audio/audacious/buildlink3.mk" |
68 | .include "../../audio/libcddb/buildlink3.mk" | | 68 | .include "../../audio/libcddb/buildlink3.mk" |
69 | .include "../../audio/libmad/buildlink3.mk" | | 69 | .include "../../audio/libmad/buildlink3.mk" |
70 | .include "../../audio/libmpcdec/buildlink3.mk" | | 70 | .include "../../audio/libmpcdec/buildlink3.mk" |
71 | .include "../../audio/libvorbis/buildlink3.mk" | | 71 | .include "../../audio/libvorbis/buildlink3.mk" |
72 | .include "../../audio/libsndfile/buildlink3.mk" | | 72 | .include "../../audio/libsndfile/buildlink3.mk" |
73 | .include "../../audio/taglib/buildlink3.mk" | | 73 | .include "../../audio/taglib/buildlink3.mk" |
74 | .include "../../audio/wavpack/buildlink3.mk" | | 74 | .include "../../audio/wavpack/buildlink3.mk" |
75 | .include "../../audio/lame/buildlink3.mk" | | 75 | .include "../../audio/lame/buildlink3.mk" |
76 | .include "../../devel/libbinio/buildlink3.mk" | | 76 | .include "../../devel/libbinio/buildlink3.mk" |
77 | .include "../../devel/libmtp/buildlink3.mk" | | 77 | .include "../../devel/libmtp/buildlink3.mk" |
78 | .include "../../devel/SDL/buildlink3.mk" | | 78 | .include "../../devel/SDL/buildlink3.mk" |
79 | .include "../../graphics/imlib2/buildlink3.mk" | | 79 | .include "../../graphics/imlib2/buildlink3.mk" |
80 | .include "../../misc/libcdio/buildlink3.mk" | | 80 | .include "../../misc/libcdio/buildlink3.mk" |
81 | .include "../../multimedia/libogg/buildlink3.mk" | | 81 | .include "../../multimedia/libogg/buildlink3.mk" |
82 | .include "../../net/libmms/buildlink3.mk" | | 82 | .include "../../net/libmms/buildlink3.mk" |
83 | .include "../../www/curl/buildlink3.mk" | | 83 | .include "../../www/curl/buildlink3.mk" |
84 | .include "../../www/neon/buildlink3.mk" | | 84 | .include "../../www/neon/buildlink3.mk" |
85 | .include "../../x11/libXcomposite/buildlink3.mk" | | 85 | .include "../../x11/libXcomposite/buildlink3.mk" |
86 | .include "../../mk/oss.buildlink3.mk" | | 86 | .include "../../mk/oss.buildlink3.mk" |
87 | .include "../../mk/bsd.pkg.mk" | | 87 | .include "../../mk/bsd.pkg.mk" |