| @@ -1,102 +1,80 @@ | | | @@ -1,102 +1,80 @@ |
1 | # $NetBSD: Makefile,v 1.91 2019/07/01 04:07:55 ryoon Exp $ | | 1 | # $NetBSD: Makefile,v 1.92 2019/07/05 15:21:18 nia Exp $ |
2 | | | 2 | |
3 | DISTNAME= audacious-plugins-3.5.2 | | 3 | DISTNAME= audacious-plugins-3.5.2 |
4 | PKGREVISION= 28 | | 4 | PKGREVISION= 29 |
5 | CATEGORIES= audio | | 5 | CATEGORIES= audio |
6 | MASTER_SITES= http://distfiles.audacious-media-player.org/ | | 6 | MASTER_SITES= http://distfiles.audacious-media-player.org/ |
7 | EXTRACT_SUFX= .tar.bz2 | | 7 | EXTRACT_SUFX= .tar.bz2 |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://audacious-media-player.org/ | | 10 | HOMEPAGE= https://audacious-media-player.org/ |
11 | COMMENT= Plugins for Audacious media player | | 11 | COMMENT= Plugins for Audacious media player |
12 | LICENSE= 2-clause-bsd | | 12 | LICENSE= 2-clause-bsd |
13 | | | 13 | |
14 | TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen | | 14 | TOOL_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen |
15 | | | 15 | |
16 | USE_LANGUAGES= c c++ | | 16 | USE_LANGUAGES= c c++ |
17 | USE_TOOLS+= gmake intltool pkg-config msgfmt | | 17 | USE_TOOLS+= gmake intltool pkg-config |
| | | 18 | USE_TOOLS+= msgfmt msgmerge xgettext |
18 | GNU_CONFIGURE= yes | | 19 | GNU_CONFIGURE= yes |
19 | #CONFIGURE_ARGS+= --disable-aac | | 20 | #CONFIGURE_ARGS+= --disable-aac |
20 | CONFIGURE_ARGS+= --disable-amidiplug | | 21 | CONFIGURE_ARGS+= --disable-amidiplug |
21 | CONFIGURE_ARGS+= --disable-evdevplug | | | |
22 | #CONFIGURE_ARGS+= --disable-coreaudio | | 22 | #CONFIGURE_ARGS+= --disable-coreaudio |
23 | CONFIGURE_ARGS+= --disable-gnomeshortcuts | | 23 | CONFIGURE_ARGS+= --disable-gnomeshortcuts |
24 | CONFIGURE_ARGS+= --disable-modplug | | 24 | CONFIGURE_ARGS+= --disable-modplug |
25 | CONFIGURE_ARGS+= --disable-projectm | | | |
26 | CONFIGURE_ARGS+= --with-ffmpeg=none | | 25 | CONFIGURE_ARGS+= --with-ffmpeg=none |
27 | | | 26 | |
28 | .include "../../mk/compiler.mk" | | 27 | .include "../../mk/compiler.mk" |
29 | .if empty(PKGSRC_COMPILER:Mclang) | | 28 | .if empty(PKGSRC_COMPILER:Mclang) |
30 | # This should avoid an error like: libstdc++.so.6: Undefined PLT symbol "_Unwind_GetIP" on NetBSD i386 and maybe amd64, with gcc4 at least. | | 29 | # This should avoid an error like: libstdc++.so.6: Undefined PLT symbol "_Unwind_GetIP" on NetBSD i386 and maybe amd64, with gcc4 at least. |
31 | # This seems to happen when libstdc++ gets linked in with the plug-ins and the code is not compiled with g++. | | 30 | # This seems to happen when libstdc++ gets linked in with the plug-ins and the code is not compiled with g++. |
32 | # For a similar problem see http://archive.netbsd.se/?ml=netbsd-java&a=2007-08&m=4912662 : | | 31 | # For a similar problem see http://archive.netbsd.se/?ml=netbsd-java&a=2007-08&m=4912662 : |
33 | # Systems with Clang are supposed to be new enough to have a correctly linked | | 32 | # Systems with Clang are supposed to be new enough to have a correctly linked |
34 | # libstdc++. | | 33 | # libstdc++. |
35 | LDFLAGS.NetBSD+= -lgcc_s | | 34 | LDFLAGS.NetBSD+= -lgcc_s |
36 | .endif | | 35 | .endif |
37 | | | 36 | |
38 | # From audio/bmp/Makefile: | | 37 | # From audio/bmp/Makefile: |
39 | # XXX Workaround a crash during shutdown that happens when dlclose(3)ing | | 38 | # XXX Workaround a crash during shutdown that happens when dlclose(3)ing |
40 | # any open plugin. libstdc++ gets dynamically linked in when the id3lib | | 39 | # any open plugin. libstdc++ gets dynamically linked in when the id3lib |
41 | # library is loaded, and is the one causing problems. See PR pkg/26846 | | 40 | # library is loaded, and is the one causing problems. See PR pkg/26846 |
42 | # for more information. | | 41 | # for more information. |
43 | LDFLAGS.NetBSD+= -lstdc++ -lm | | 42 | LDFLAGS.NetBSD+= -lstdc++ -lm |
44 | | | 43 | |
45 | # cdaudio plugin complains about missing OSS at runtime | | 44 | # cdaudio plugin complains about missing OSS at runtime |
46 | LDFLAGS+= ${LIBOSSAUDIO} | | 45 | LDFLAGS+= ${LIBOSSAUDIO} |
47 | | | 46 | |
48 | # do not use pkgsrc' flac if it is installed | | 47 | # do not use pkgsrc' flac if it is installed |
49 | CFLAGS+= -I. -I../flacng -Ilibflacng | | 48 | CFLAGS+= -I. -I../flacng -Ilibflacng |
50 | | | 49 | |
51 | .include "../../mk/bsd.prefs.mk" | | 50 | .include "../../mk/bsd.prefs.mk" |
52 | .include "options.mk" | | 51 | .include "options.mk" |
53 | | | 52 | |
54 | PLIST_VARS+= oss sun oss4 | | 53 | PLIST_VARS+= oss4 |
55 | | | 54 | |
56 | .if ${OPSYS} == "NetBSD" | | 55 | .if ${OPSYS} == "NetBSD" |
57 | RAWPART_cmd= /sbin/sysctl -n kern.rawpartition | ${TR} 0-9 a-j | | 56 | RAWPART_cmd= /sbin/sysctl -n kern.rawpartition | ${TR} 0-9 a-j |
58 | CONFIGURE_ARGS+= --with-dev-dsp=${DEVOSSSOUND} \ | | | |
59 | --with-cdda-device=/dev/rcd0${RAWPART_cmd:sh} \ | | | |
60 | --with-cdda-dir=/cdrom/ | | | |
61 | PLIST.oss= yes | | | |
62 | PLIST.sun= yes | | | |
63 | .elif ${OPSYS} == "FreeBSD" | | | |
64 | PLIST.oss= yes | | | |
65 | .elif ${OPSYS} == "DragonFly" | | | |
66 | PLIST.oss= yes | | | |
67 | .elif ${OPSYS} == "SunOS" | | 57 | .elif ${OPSYS} == "SunOS" |
68 | CPPFLAGS.SunOS= -D__EXTENSIONS__ -D__uint32_t=uint32_t -D__uint64_t=uint64_t | | 58 | CPPFLAGS.SunOS= -D__EXTENSIONS__ -D__uint32_t=uint32_t -D__uint64_t=uint64_t |
69 | CONFIGURE_ARGS+= --enable-oss4 | | 59 | CONFIGURE_ARGS+= --enable-oss4 |
70 | PLIST.oss4= yes | | 60 | PLIST.oss4= yes |
71 | PLIST.oss= yes | | | |
72 | #.elif ${OPSYS} == "Linux" | | | |
73 | #. include "../../wip/alsa-lib/buildlink3.mk" | | | |
74 | #PKG_SUPPORTED_OPTIONS+= lirc | | | |
75 | #. if !empty(PKG_OPTIONS:Mlirc) | | | |
76 | #CONFIGURE_ARGS+= --enable-lirc | | | |
77 | #. include "../../wip/lirc/buildlink3.mk" | | | |
78 | #. endif | | | |
79 | .endif | | 61 | .endif |
80 | | | 62 | |
81 | .include "../../audio/audacious/buildlink3.mk" | | 63 | .include "../../audio/audacious/buildlink3.mk" |
82 | .include "../../audio/faad2/buildlink3.mk" | | 64 | .include "../../audio/faad2/buildlink3.mk" |
83 | .include "../../audio/lame/buildlink3.mk" | | 65 | .include "../../audio/lame/buildlink3.mk" |
84 | .include "../../audio/libcddb/buildlink3.mk" | | 66 | .include "../../audio/libcddb/buildlink3.mk" |
85 | .include "../../audio/libmad/buildlink3.mk" | | | |
86 | .include "../../audio/libmpcdec/buildlink3.mk" | | | |
87 | .include "../../audio/libsamplerate/buildlink3.mk" | | 67 | .include "../../audio/libsamplerate/buildlink3.mk" |
88 | .include "../../audio/libsndfile/buildlink3.mk" | | 68 | .include "../../audio/libsndfile/buildlink3.mk" |
89 | .include "../../audio/libvorbis/buildlink3.mk" | | 69 | .include "../../audio/libvorbis/buildlink3.mk" |
90 | .include "../../audio/mpg123/buildlink3.mk" | | 70 | .include "../../audio/mpg123/buildlink3.mk" |
91 | .include "../../audio/taglib/buildlink3.mk" | | | |
92 | .include "../../audio/wavpack/buildlink3.mk" | | 71 | .include "../../audio/wavpack/buildlink3.mk" |
93 | .include "../../devel/SDL/buildlink3.mk" | | 72 | .include "../../devel/SDL2/buildlink3.mk" |
94 | .include "../../devel/libbinio/buildlink3.mk" | | 73 | .include "../../devel/libbinio/buildlink3.mk" |
95 | .include "../../graphics/imlib2/buildlink3.mk" | | | |
96 | .include "../../misc/libcdio-paranoia/buildlink3.mk" | | 74 | .include "../../misc/libcdio-paranoia/buildlink3.mk" |
97 | .include "../../multimedia/libogg/buildlink3.mk" | | 75 | .include "../../multimedia/libogg/buildlink3.mk" |
98 | .include "../../net/libmms/buildlink3.mk" | | 76 | .include "../../net/libmms/buildlink3.mk" |
99 | .include "../../www/curl/buildlink3.mk" | | 77 | .include "../../www/curl/buildlink3.mk" |
100 | .include "../../www/neon/buildlink3.mk" | | 78 | .include "../../www/neon/buildlink3.mk" |
101 | .include "../../mk/oss.buildlink3.mk" | | 79 | .include "../../mk/oss.buildlink3.mk" |
102 | .include "../../mk/bsd.pkg.mk" | | 80 | .include "../../mk/bsd.pkg.mk" |