aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/mpeg-lib
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>1999-04-11 11:01:57 +0800
committerkris <kris@FreeBSD.org>1999-04-11 11:01:57 +0800
commitd5d23120d244703c01367a762f57912b2068e089 (patch)
tree70f33793587c57d79ee9ed4907ab06a61eb2c68f /graphics/mpeg-lib
parent30b98bcbdcc250f6163aab42cf4ef5fe4266f754 (diff)
downloadfreebsd-ports-gnome-d5d23120d244703c01367a762f57912b2068e089.tar.gz
freebsd-ports-gnome-d5d23120d244703c01367a762f57912b2068e089.tar.zst
freebsd-ports-gnome-d5d23120d244703c01367a762f57912b2068e089.zip
Respect CFLAGS.
Diffstat (limited to 'graphics/mpeg-lib')
-rw-r--r--graphics/mpeg-lib/files/patch-aa39
-rw-r--r--graphics/mpeg-lib/files/patch-ad87
2 files changed, 98 insertions, 28 deletions
diff --git a/graphics/mpeg-lib/files/patch-aa b/graphics/mpeg-lib/files/patch-aa
index 4e46f6c3dbd4..737e72f9c198 100644
--- a/graphics/mpeg-lib/files/patch-aa
+++ b/graphics/mpeg-lib/files/patch-aa
@@ -1,5 +1,14 @@
---- Makefile.in.orig Mon Feb 26 12:12:54 1996
-+++ Makefile.in Sat Sep 19 13:23:32 1998
+--- Makefile.in.orig Tue Feb 27 04:42:54 1996
++++ Makefile.in Sat Apr 10 21:23:36 1999
+@@ -7,7 +7,7 @@
+ # Various programs and their options
+
+ CC = @CC@
+-OPT = @OPT@
++OPT = @CFLAGS@
+ DEFS = @DEFS@
+ INCLUDES = -I.
+ CFLAGS = $(OPT) $(DEFS) $(INCLUDES)
@@ -16,6 +16,7 @@
RANLIB = @RANLIB@
SHELL = /bin/sh
@@ -62,29 +71,3 @@
# Include a system-specific Makefile fragment, if any
---- configure.orig Tue Oct 14 14:31:15 1997
-+++ configure Tue Oct 14 14:32:06 1997
-@@ -817,6 +817,7 @@
- if test $dither = yes; then
- libsrc='$(DECODER_SRC) $(DITHER_SRC)'
- libobj='$(DECODER_SRC:.c=.o) $(DITHER_SRC:.c=.o)'
-+ shlibobj='$(DECODER_SRC:.c=.so) $(DITHER_SRC:.c=.so)'
- cat >> confdefs.h <<\EOF
- #define ENABLE_DITHER 1
- EOF
-@@ -825,6 +826,7 @@
- else
- libsrc='$(DECODER_SRC)'
- libobj='$(DECODER_SRC:.c=.o)'
-+ shlibobj='$(DECODER_SRC:.c=.so)'
- cat >> confdefs.h <<\EOF
- #define ENABLE_DITHER 0
- EOF
-@@ -1459,6 +1461,7 @@
- s%@AR@%$AR%g
- s%@libsrc@%$libsrc%g
- s%@libobj@%$libobj%g
-+s%@shlibobj@%$shlibobj%g
- s%@jrevdct@%$jrevdct%g
- s%@extras@%$extras%g
- /@Makefile_extras@/r $Makefile_extras
diff --git a/graphics/mpeg-lib/files/patch-ad b/graphics/mpeg-lib/files/patch-ad
new file mode 100644
index 000000000000..eca05f698c15
--- /dev/null
+++ b/graphics/mpeg-lib/files/patch-ad
@@ -0,0 +1,87 @@
+--- configure.orig Sat Apr 10 21:32:10 1999
++++ configure Sat Apr 10 21:32:13 1999
+@@ -521,7 +521,7 @@
+ # sure it supports prototypes, void, and enums properly (can't trust
+ # __STDC__).
+
+-CFLAGS=$OPT
++CFLAGS=$CFLAGS
+ # Extract the first word of "gcc", so it can be a program name with args.
+ set dummy gcc; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+@@ -700,51 +700,6 @@
+ fi
+ fi
+
+-# See how high an optimization level (up to -O6) the compiler will
+-# let us go. This is skipped if $opt_level is already set (eg.
+-# by the NeXT-detector code above) because the NeXT cc dies, but
+-# doesn't return an error code if run with an illegal -O option!
+-
+-if test -z "$opt_level" ; then
+- echo $ac_n "checking highest available optimization level""... $ac_c" 1>&6
+- opt_level=""
+- if eval "test \"`echo '$''{'mpeg_cv_opt_level'+set}'`\" = set"; then
+- echo $ac_n "(cached) $ac_c" 1>&6
+-else
+-
+- for opt in "-O" "-O2" "-O3" "-O4" "-O5" "-O6"; do
+- CFLAGS="$OPT$opt"
+- cat > conftest.$ac_ext <<EOF
+-#line 719 "configure"
+-#include "confdefs.h"
+-
+-int main() { return 0; }
+-int t() {
+-
+-; return 0; }
+-EOF
+-if eval $ac_compile; then
+- rm -rf conftest*
+- mpeg_cv_opt_level=$opt
+-fi
+-rm -f conftest*
+-
+- done
+-
+-fi
+-
+- opt_level=$mpeg_cv_opt_level
+- if test -z $opt_level ; then
+- { echo "configure: error: your compiler is broken" 1>&2; exit 1; }
+- fi
+-
+- echo "$ac_t""$opt_level" 1>&6
+-fi
+-OPT="$OPT$opt_level"
+-
+-
+-CFLAGS="$OPT $DEFS" # this is the final, real assigment to CFLAGS!
+-
+ # Extract the first word of "ranlib", so it can be a program name with args.
+ set dummy ranlib; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+@@ -817,6 +772,7 @@
+ if test $dither = yes; then
+ libsrc='$(DECODER_SRC) $(DITHER_SRC)'
+ libobj='$(DECODER_SRC:.c=.o) $(DITHER_SRC:.c=.o)'
++ shlibobj='$(DECODER_SRC:.c=.so) $(DITHER_SRC:.c=.so)'
+ cat >> confdefs.h <<\EOF
+ #define ENABLE_DITHER 1
+ EOF
+@@ -825,6 +781,7 @@
+ else
+ libsrc='$(DECODER_SRC)'
+ libobj='$(DECODER_SRC:.c=.o)'
++ shlibobj='$(DECODER_SRC:.c=.so)'
+ cat >> confdefs.h <<\EOF
+ #define ENABLE_DITHER 0
+ EOF
+@@ -1459,6 +1416,7 @@
+ s%@AR@%$AR%g
+ s%@libsrc@%$libsrc%g
+ s%@libobj@%$libobj%g
++s%@shlibobj@%$shlibobj%g
+ s%@jrevdct@%$jrevdct%g
+ s%@extras@%$extras%g
+ /@Makefile_extras@/r $Makefile_extras