Fix VARBASE and PKG_SYSCONFBASEDIR handling. Bump PKGREVISION.diff -r1.69 -r1.70 pkgsrc/audio/pulseaudio/Makefile
(markd)
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.69 2013/02/16 11:20:17 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.70 2013/05/06 20:44:18 markd Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= pulseaudio-2.1 | 4 | DISTNAME= pulseaudio-2.1 | |
5 | PKGREVISION= 3 | 5 | PKGREVISION= 4 | |
6 | CATEGORIES= audio | 6 | CATEGORIES= audio | |
7 | MASTER_SITES= http://freedesktop.org/software/pulseaudio/releases/ | 7 | MASTER_SITES= http://freedesktop.org/software/pulseaudio/releases/ | |
8 | EXTRACT_SUFX= .tar.xz | 8 | EXTRACT_SUFX= .tar.xz | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://www.freedesktop.org/wiki/Software/PulseAudio | 11 | HOMEPAGE= http://www.freedesktop.org/wiki/Software/PulseAudio | |
12 | COMMENT= Sound server for POSIX and Win32 systems | 12 | COMMENT= Sound server for POSIX and Win32 systems | |
13 | LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 | 13 | LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 | |
14 | 14 | |||
15 | GNU_CONFIGURE= yes | 15 | GNU_CONFIGURE= yes | |
16 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
17 | USE_TOOLS+= gmake gm4 intltool msgfmt pkg-config | 17 | USE_TOOLS+= gmake gm4 intltool msgfmt pkg-config | |
18 | USE_LANGUAGES= c c++ | 18 | USE_LANGUAGES= c c++ | |
@@ -22,26 +22,28 @@ USE_LANGUAGES= c c++ | @@ -22,26 +22,28 @@ USE_LANGUAGES= c c++ | |||
22 | .if ${OPSYS} == "NetBSD" | 22 | .if ${OPSYS} == "NetBSD" | |
23 | CONFIGURE_ARGS+= --disable-default-build-tests | 23 | CONFIGURE_ARGS+= --disable-default-build-tests | |
24 | .endif | 24 | .endif | |
25 | .if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[45].*) | 25 | .if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[45].*) | |
26 | # broken test for TLS | 26 | # broken test for TLS | |
27 | CONFIGURE_ENV+= ac_cv_tls=none | 27 | CONFIGURE_ENV+= ac_cv_tls=none | |
28 | .endif | 28 | .endif | |
29 | 29 | |||
30 | CONFIGURE_ENV+= EGDIR=${EGDIR} | 30 | CONFIGURE_ENV+= EGDIR=${EGDIR} | |
31 | MAKE_ENV+= EGDIR=${EGDIR} | 31 | MAKE_ENV+= EGDIR=${EGDIR} | |
32 | 32 | |||
33 | CONFIGURE_ARGS+= --enable-samplerate | 33 | CONFIGURE_ARGS+= --enable-samplerate | |
34 | CONFIGURE_ARGS+= --disable-tcpwrap | 34 | CONFIGURE_ARGS+= --disable-tcpwrap | |
35 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} | |||
36 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR:Q} | |||
35 | 37 | |||
36 | # Use native atomic ops on NetBSD >= 5.0, otherwise | 38 | # Use native atomic ops on NetBSD >= 5.0, otherwise | |
37 | # fallback to libatomic_ops | 39 | # fallback to libatomic_ops | |
38 | .if !(${OPSYS} == "NetBSD" && exists(/usr/include/sys/atomic.h)) | 40 | .if !(${OPSYS} == "NetBSD" && exists(/usr/include/sys/atomic.h)) | |
39 | .include "../../devel/libatomic_ops/buildlink3.mk" | 41 | .include "../../devel/libatomic_ops/buildlink3.mk" | |
40 | .endif | 42 | .endif | |
41 | 43 | |||
42 | # Build module-mmkbd-evdev.so under Linux | 44 | # Build module-mmkbd-evdev.so under Linux | |
43 | .if ${OPSYS} == "Linux" && exists(/usr/include/linux/input.h) | 45 | .if ${OPSYS} == "Linux" && exists(/usr/include/linux/input.h) | |
44 | PLIST.evdev= yes | 46 | PLIST.evdev= yes | |
45 | .endif | 47 | .endif | |
46 | 48 | |||
47 | .include "options.mk" | 49 | .include "options.mk" |
@@ -1,30 +1,30 @@ | @@ -1,30 +1,30 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.11 2012/11/17 22:20:48 markd Exp $ | 1 | @comment $NetBSD: PLIST,v 1.12 2013/05/06 20:44:18 markd Exp $ | |
2 | bin/esdcompat | 2 | bin/esdcompat | |
3 | bin/pacat | 3 | bin/pacat | |
4 | bin/pacmd | 4 | bin/pacmd | |
5 | bin/pactl | 5 | bin/pactl | |
6 | ${PLIST.oss}bin/padsp | 6 | ${PLIST.oss}bin/padsp | |
7 | bin/pamon | 7 | bin/pamon | |
8 | bin/paplay | 8 | bin/paplay | |
9 | bin/parec | 9 | bin/parec | |
10 | bin/parecord | 10 | bin/parecord | |
11 | bin/pasuspender | 11 | bin/pasuspender | |
12 | ${PLIST.x11}bin/pax11publish | 12 | ${PLIST.x11}bin/pax11publish | |
13 | bin/pulseaudio | 13 | bin/pulseaudio | |
14 | ${PLIST.x11}bin/start-pulseaudio-kde | 14 | ${PLIST.x11}bin/start-pulseaudio-kde | |
15 | ${PLIST.x11}bin/start-pulseaudio-x11 | 15 | ${PLIST.x11}bin/start-pulseaudio-x11 | |
16 | ${PLIST.x11}etc/xdg/autostart/pulseaudio-kde.desktop | 16 | ${PLIST.x11}share/examples/pulseaudio/pulseaudio-kde.desktop | |
17 | ${PLIST.x11}etc/xdg/autostart/pulseaudio.desktop | 17 | ${PLIST.x11}share/examples/pulseaudio/pulseaudio.desktop | |
18 | include/pulse/cdecl.h | 18 | include/pulse/cdecl.h | |
19 | include/pulse/channelmap.h | 19 | include/pulse/channelmap.h | |
20 | include/pulse/context.h | 20 | include/pulse/context.h | |
21 | include/pulse/def.h | 21 | include/pulse/def.h | |
22 | include/pulse/error.h | 22 | include/pulse/error.h | |
23 | include/pulse/ext-device-manager.h | 23 | include/pulse/ext-device-manager.h | |
24 | include/pulse/ext-device-restore.h | 24 | include/pulse/ext-device-restore.h | |
25 | include/pulse/ext-stream-restore.h | 25 | include/pulse/ext-stream-restore.h | |
26 | include/pulse/format.h | 26 | include/pulse/format.h | |
27 | include/pulse/gccmacro.h | 27 | include/pulse/gccmacro.h | |
28 | include/pulse/glib-mainloop.h | 28 | include/pulse/glib-mainloop.h | |
29 | include/pulse/introspect.h | 29 | include/pulse/introspect.h | |
30 | include/pulse/mainloop-api.h | 30 | include/pulse/mainloop-api.h |
@@ -1,9 +1,9 @@ | @@ -1,9 +1,9 @@ | |||
1 | $NetBSD: distinfo,v 1.35 2013/01/29 15:34:55 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.36 2013/05/06 20:44:18 markd Exp $ | |
2 | 2 | |||
3 | SHA1 (pulseaudio-2.1.tar.xz) = 56b4ad9207ea3aec0ad1b8be4b55793b426a4f01 | 3 | SHA1 (pulseaudio-2.1.tar.xz) = 56b4ad9207ea3aec0ad1b8be4b55793b426a4f01 | |
4 | RMD160 (pulseaudio-2.1.tar.xz) = 87f6051bbbe59c26e505a9765f388d3ee4d3a485 | 4 | RMD160 (pulseaudio-2.1.tar.xz) = 87f6051bbbe59c26e505a9765f388d3ee4d3a485 | |
5 | Size (pulseaudio-2.1.tar.xz) = 1355004 bytes | 5 | Size (pulseaudio-2.1.tar.xz) = 1355004 bytes | |
6 | SHA1 (patch-aa) = 59dbd4e6670bc401d2254226b6ba1f4549f35ff7 | 6 | SHA1 (patch-aa) = 59dbd4e6670bc401d2254226b6ba1f4549f35ff7 | |
7 | SHA1 (patch-configure) = 74eb6cbc606103c9a7c1a9e196a0fd58abc839d3 | 7 | SHA1 (patch-configure) = 79f938c79a2c3a714d9c81b22030084a421da360 | |
8 | SHA1 (patch-dc) = 48baff12528f09940d63c6bdaf4369cab7e56de3 | 8 | SHA1 (patch-dc) = 48baff12528f09940d63c6bdaf4369cab7e56de3 | |
9 | SHA1 (patch-src_Makefile.in) = 50f5903cf93e2b59318be177e38bd49a7a34557e | 9 | SHA1 (patch-src_Makefile.in) = 21daf6069ae067dd235de6d43a013e4e70bbca78 |
@@ -1,16 +1,15 @@ | @@ -1,16 +1,15 @@ | |||
1 | $NetBSD: patch-configure,v 1.2 2013/01/29 15:02:24 tsutsui Exp $ | 1 | $NetBSD: patch-configure,v 1.3 2013/05/06 20:44:18 markd Exp $ | |
2 | 2 | |||
3 | - use ${EGDIR} for config file | |||
4 | - always use atomic_ops(3) on NetBSD, even on arm | 3 | - always use atomic_ops(3) on NetBSD, even on arm | |
5 | - kill test(1) bash'ism | 4 | - kill test(1) bash'ism | |
6 | 5 | |||
7 | --- configure.orig 2012-07-19 11:30:11.000000000 +0000 | 6 | --- configure.orig 2012-07-19 11:30:11.000000000 +0000 | |
8 | +++ configure | 7 | +++ configure | |
9 | @@ -7995,6 +7995,11 @@ else | 8 | @@ -7995,6 +7995,11 @@ else | |
10 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking architecture for native atomic operations" >&5 | 9 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking architecture for native atomic operations" >&5 | |
11 | $as_echo_n "checking architecture for native atomic operations... " >&6; } | 10 | $as_echo_n "checking architecture for native atomic operations... " >&6; } | |
12 | case $host in | 11 | case $host in | |
13 | + *-netbsd*) | 12 | + *-netbsd*) | |
14 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 13 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15 | +$as_echo "yes" >&6; } | 14 | +$as_echo "yes" >&6; } | |
16 | + need_libatomic_ops=no | 15 | + need_libatomic_ops=no | |
@@ -38,22 +37,13 @@ $NetBSD: patch-configure,v 1.2 2013/01/2 | @@ -38,22 +37,13 @@ $NetBSD: patch-configure,v 1.2 2013/01/2 | |||
38 | +if test "$ac_cv_tls" = "__thread"; then : | 37 | +if test "$ac_cv_tls" = "__thread"; then : | |
39 | 38 | |||
40 | $as_echo "#define SUPPORT_TLS___THREAD 1" >>confdefs.h | 39 | $as_echo "#define SUPPORT_TLS___THREAD 1" >>confdefs.h | |
41 | 40 | |||
42 | @@ -20146,7 +20146,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu | 41 | @@ -20146,7 +20146,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
43 | 42 | |||
44 | fi | 43 | fi | |
45 | 44 | |||
46 | -if test "x$ax_pthread_ok" == "xyes"; then : | 45 | -if test "x$ax_pthread_ok" == "xyes"; then : | |
47 | +if test "x$ax_pthread_ok" = "xyes"; then : | 46 | +if test "x$ax_pthread_ok" = "xyes"; then : | |
48 | 47 | |||
49 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 48 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
50 | 49 | |||
51 | @@ -26138,7 +26138,7 @@ _ACEOF | |||
52 | PA_SOEXT=.so | |||
53 | ||||
54 | ||||
55 | -pulseconfdir="${sysconfdir}/pulse" | |||
56 | +pulseconfdir="${EGDIR}" | |||
57 | ||||
58 | ||||
59 | prefix_NONE= |
@@ -1,15 +1,28 @@ | @@ -1,15 +1,28 @@ | |||
1 | $NetBSD: patch-src_Makefile.in,v 1.2 2013/01/29 15:34:47 wiz Exp $ | 1 | $NetBSD: patch-src_Makefile.in,v 1.3 2013/05/06 20:44:18 markd Exp $ | |
2 | 2 | |||
3 | Use pkgsrc infrastructure for config files. | 3 | Use pkgsrc infrastructure for config files. | |
4 | 4 | |||
5 | --- src/Makefile.in.orig 2012-07-19 11:30:13.000000000 +0000 | 5 | --- src/Makefile.in.orig 2012-07-19 11:30:13.000000000 +0000 | |
6 | +++ src/Makefile.in | 6 | +++ src/Makefile.in | |
7 | @@ -2943,7 +2943,7 @@ pulselibexecdir = $(libexecdir)/pulse | 7 | @@ -2927,7 +2927,7 @@ pdfdir = @pdfdir@ | |
8 | @HAVE_X11_TRUE@xdgautostartdir = $(sysconfdir)/xdg/autostart | 8 | prefix = @prefix@ | |
9 | program_transform_name = @program_transform_name@ | |||
10 | psdir = @psdir@ | |||
11 | -pulseconfdir = @pulseconfdir@ | |||
12 | +pulseconfdir = ${EGDIR} | |||
13 | sbindir = @sbindir@ | |||
14 | sharedstatedir = @sharedstatedir@ | |||
15 | srcdir = @srcdir@ | |||
16 | @@ -2940,10 +2940,10 @@ udevrulesdir = @udevrulesdir@ | |||
17 | pulseincludedir = $(includedir)/pulse | |||
18 | pulsecoreincludedir = $(includedir)/pulsecore | |||
19 | pulselibexecdir = $(libexecdir)/pulse | |||
20 | -@HAVE_X11_TRUE@xdgautostartdir = $(sysconfdir)/xdg/autostart | |||
21 | +@HAVE_X11_TRUE@xdgautostartdir = ${EGDIR} | |||
9 | @HAVE_ALSA_TRUE@alsaprofilesetsdir = $(datadir)/pulseaudio/alsa-mixer/profile-sets | 22 | @HAVE_ALSA_TRUE@alsaprofilesetsdir = $(datadir)/pulseaudio/alsa-mixer/profile-sets | |
10 | @HAVE_ALSA_TRUE@alsapathsdir = $(datadir)/pulseaudio/alsa-mixer/paths | 23 | @HAVE_ALSA_TRUE@alsapathsdir = $(datadir)/pulseaudio/alsa-mixer/paths | |
11 | -@HAVE_DBUS_TRUE@dbuspolicydir = $(sysconfdir)/dbus-1/system.d | 24 | -@HAVE_DBUS_TRUE@dbuspolicydir = $(sysconfdir)/dbus-1/system.d | |
12 | +@HAVE_DBUS_TRUE@dbuspolicydir = ${EGDIR} | 25 | +@HAVE_DBUS_TRUE@dbuspolicydir = ${EGDIR} | |
13 | 26 | |||
14 | ################################### | 27 | ################################### | |
15 | # Compiler/linker flags # | 28 | # Compiler/linker flags # |