freebsd-ports/lang/bigloo/files/patch-autoconf__mpg123
Martin Wilke cbb450de56 - Update to 4.0.a
PR:		174204
Submitted by:	ports fury
2013-02-10 07:52:02 +00:00

40 lines
1.4 KiB
Text

--- autoconf/mpg123.orig
+++ autoconf/mpg123
@@ -14,7 +14,7 @@
#* flags */
#*---------------------------------------------------------------------*/
cflags=
-mpg123lib=-lmpg123
+libs=
#*---------------------------------------------------------------------*/
#* We parse the arguments */
@@ -27,8 +27,8 @@
--cflags=*|-cflags=*)
cflags="`echo $1 | sed 's/^[-a-z]*=//'`";;
- --mpg123lib=*)
- mpg123lib="`echo $1 | sed 's/^[-a-z]*=//'`";;
+ --libs=*)
+ libs="`echo $1 | sed 's/^[-a-z]*=//'`";;
-*)
echo "Unknown option \"$1\", ignored" >&2;;
@@ -43,7 +43,7 @@
#*---------------------------------------------------------------------*/
#* compile */
#*---------------------------------------------------------------------*/
-compile="$CC $cflags $file.c -o $aout $mpg123lib >/dev/null"
+compile="$CC $cflags $file.c -o $aout $libs >/dev/null"
#*---------------------------------------------------------------------*/
#* The test C file */
@@ -154,7 +154,7 @@
#* Compilation test */
#*---------------------------------------------------------------------*/
if eval "$BUILDSH $compile"; then
- echo "$mpg123lib"
+ echo "yes"
else
echo "no"
fi