diff options
author | rillig <rillig> | 2007-02-22 19:11:25 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-02-22 19:11:25 +0000 |
commit | 9f4511a59cc42b0d32cd1e6633feb1a97b5cc83c (patch) | |
tree | cf7a6a90be8bf60a36db1a1f313b333854febe76 /audio/flac/patches | |
parent | 5895e8cab53be9857ed405815ba88a107d8b10d4 (diff) | |
download | pkgsrc-9f4511a59cc42b0d32cd1e6633feb1a97b5cc83c.tar.gz |
Fixed patch-ad (unportable usage of test(1)).
Diffstat (limited to 'audio/flac/patches')
-rw-r--r-- | audio/flac/patches/patch-af | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/audio/flac/patches/patch-af b/audio/flac/patches/patch-af index 3e957e20df7..8da936f7186 100644 --- a/audio/flac/patches/patch-af +++ b/audio/flac/patches/patch-af @@ -1,13 +1,27 @@ -$NetBSD: patch-af,v 1.3 2006/07/06 12:39:10 markd Exp $ +$NetBSD: patch-af,v 1.4 2007/02/22 19:11:26 rillig Exp $ ---- strip_non_asm_libtool_args.sh.orig 2004-07-29 18:52:52.000000000 +1200 -+++ strip_non_asm_libtool_args.sh -@@ -6,7 +6,7 @@ +--- strip_non_asm_libtool_args.sh.orig 2004-07-29 08:43:23.000000000 +0200 ++++ strip_non_asm_libtool_args.sh 2007-02-22 20:11:41.000000000 +0100 +@@ -5,15 +5,12 @@ + # Also, on some versions of OS X it tries to pass -fno-common # to 'as' which causes problems. command="" - while [ $1 ]; do +-while [ $1 ]; do - if [ "$1" != "-fPIC" ]; then -+ if [ "$1" != "-fPIC" -a "$1" != "-KPIC" ]; then - if [ "$1" != "-DPIC" ]; then - if [ "$1" != "-fno-common" ]; then - command="$command $1" +- if [ "$1" != "-DPIC" ]; then +- if [ "$1" != "-fno-common" ]; then +- command="$command $1" +- fi +- fi +- fi +- shift ++for arg; do ++ case "$arg" in ++ -[DfK]PIC |\ ++ -fno-common) continue;; ++ esac ++ command="$command $arg" + done +-echo $command ++echo "$command" + exec $command |