forked from Lainports/opnsense-ports
Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
40 lines
1.4 KiB
Text
40 lines
1.4 KiB
Text
--- autoconf/flac.orig
|
|
+++ autoconf/flac
|
|
@@ -14,7 +14,7 @@
|
|
#* flags */
|
|
#*---------------------------------------------------------------------*/
|
|
cflags=
|
|
-flaclib=-lFLAC
|
|
+libs=
|
|
|
|
#*---------------------------------------------------------------------*/
|
|
#* We parse the arguments */
|
|
@@ -27,8 +27,8 @@
|
|
--cflags=*|-cflags=*)
|
|
cflags="`echo $1 | sed 's/^[-a-z]*=//'`";;
|
|
|
|
- --flaclib=*)
|
|
- flaclib="`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 $flaclib >/dev/null"
|
|
+compile="$CC $cflags $file.c -o $aout $libs >/dev/null"
|
|
|
|
#*---------------------------------------------------------------------*/
|
|
#* The test C file */
|
|
@@ -252,7 +252,7 @@
|
|
#* Compilation test */
|
|
#*---------------------------------------------------------------------*/
|
|
if eval "$BUILDSH $compile"; then
|
|
- echo "$flaclib"
|
|
+ echo "yes"
|
|
else
|
|
echo "no"
|
|
fi
|