summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2005-07-29 00:41:51 +0000
committergrant <grant@pkgsrc.org>2005-07-29 00:41:51 +0000
commit4e3d6324392664d48b0dbe835437f29bd86e9774 (patch)
treef53a626f527bbc9cd39c7e1ce6b2dabf8168f58a /audio
parentad767b4bf891c8982a8737aff3318d1071402801 (diff)
downloadpkgsrc-4e3d6324392664d48b0dbe835437f29bd86e9774.tar.gz
don't assume that all platforms will be able to build a shared library
out of non-PIC code; do it on NetBSD and Linux/i386 where it is known to be OK.
Diffstat (limited to 'audio')
-rw-r--r--audio/liba52/Makefile10
-rw-r--r--audio/liba52/distinfo4
-rw-r--r--audio/liba52/patches/patch-ab15
3 files changed, 24 insertions, 5 deletions
diff --git a/audio/liba52/Makefile b/audio/liba52/Makefile
index affc8ebb6c0..afbf50199da 100644
--- a/audio/liba52/Makefile
+++ b/audio/liba52/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2005/04/11 21:44:53 tv Exp $
+# $NetBSD: Makefile,v 1.15 2005/07/29 00:41:51 grant Exp $
#
DISTNAME= a52dec-0.7.4
@@ -18,4 +18,12 @@ CONFIGURE_ARGS+= --disable-oss
CONFIGURE_ARGS+= --disable-mlib
CONFIGURE_ARGS+= --enable-shared
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} == "i386"
+. if ${OPSYS} == "NetBSD" || ${OPSYS} == "Linux"
+CONFIGURE_ENV+= LIBA52_CFLAGS=-prefer-non-pic
+. endif
+.endif
+
.include "../../mk/bsd.pkg.mk"
diff --git a/audio/liba52/distinfo b/audio/liba52/distinfo
index 991dc3193c7..0cc88f59a20 100644
--- a/audio/liba52/distinfo
+++ b/audio/liba52/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.6 2005/02/23 20:39:47 agc Exp $
+$NetBSD: distinfo,v 1.7 2005/07/29 00:41:51 grant Exp $
SHA1 (a52dec-0.7.4.tar.gz) = 79b33bd8d89dad7436f85b9154ad35667aa37321
RMD160 (a52dec-0.7.4.tar.gz) = 5b63b34c5840e7182b733cad41e916a8d4875eb1
Size (a52dec-0.7.4.tar.gz) = 241507 bytes
SHA1 (patch-aa) = f31a0e354ab7f1111c03196bf1a11d7caab0f1e9
-SHA1 (patch-ab) = 7673335451c9e58853cd0a543073dac2607114f8
+SHA1 (patch-ab) = 79341f97816b93731bdb5999957e36f36b30e63a
SHA1 (patch-ac) = d226b58ae1314deaa8c938d39669139bd513be18
SHA1 (patch-ad) = 680e399e79211fb3f788111d5221c5f8227f23b6
diff --git a/audio/liba52/patches/patch-ab b/audio/liba52/patches/patch-ab
index 0eb2e2b600c..f909bde9c08 100644
--- a/audio/liba52/patches/patch-ab
+++ b/audio/liba52/patches/patch-ab
@@ -1,7 +1,18 @@
-$NetBSD: patch-ab,v 1.3 2002/08/30 23:43:08 wiz Exp $
+$NetBSD: patch-ab,v 1.4 2005/07/29 00:41:51 grant Exp $
---- configure.orig Sun Jul 28 05:50:42 2002
+--- configure.orig 2002-07-28 13:50:42.000000000 +1000
+++ configure
+@@ -9639,8 +9639,8 @@ _ACEOF
+
+
+
+-
+-LIBA52_CFLAGS="$LIBA52_CFLAGS -prefer-non-pic"
++# we set LIBA52_CFLAGS in CONFIGURE_ENV
++# LIBA52_CFLAGS="$LIBA52_CFLAGS -prefer-non-pic"
+
+ # Check whether --enable-double or --disable-double was given.
+ if test "${enable_double+set}" = set; then
@@ -9743,6 +9743,11 @@ if test $ac_cv_lib_ossaudio__oss_ioctl =
LIBAO_LIBS="$LIBAO_LIBS -lossaudio"
fi