Files
haikuports/media-gfx/optipng/patches/optipng-0.7.4.patchset
Chris Roberts 2a3641bc15 Add gcc2 support for optipng
Also switched it to use the system lib{png,z}
2013-12-23 12:29:53 -07:00

46 lines
1.1 KiB
Plaintext

From 9aeb37585d609791981ff00956a99d54a9bf446e Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Mon, 23 Dec 2013 12:13:23 -0700
Subject: applying patch optipng-0.7.4.patch
diff --git a/configure b/configure
index 5437b74..f7087fe 100755
--- a/configure
+++ b/configure
@@ -305,7 +305,7 @@ sed_config="
s#@ARFLAGS@#${ARFLAGS-cru}#g
s#@RANLIB@#${RANLIB-ranlib}#g
s#@LIBS@#${LIBS-}#g
- s#@LIBM@#${LIBM--lm}#g
+ s#@LIBM@#${LIBM-}#g
s#@LIBZ@#${LIBZ--lz}#g
s#@LIBPNG@#${LIBPNG--lpng}#g
s#@DIFF@#${DIFF-diff -b -u}#g
--
1.8.3.4
From 02727f980a432201225b91c51f7f76fad3d12cca Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Mon, 23 Dec 2013 12:16:17 -0700
Subject: Remove Wextra from CFLAGS to make gcc2 happy
diff --git a/configure b/configure
index f7087fe..f3bca47 100755
--- a/configure
+++ b/configure
@@ -192,7 +192,7 @@ rm -f $test.c $test.o
if test $gccish -ne 0
then
CC="${CC-$cc}"
- CFLAGS="${CFLAGS--O2 -Wall -Wextra}"
+ CFLAGS="${CFLAGS--O2 -Wall}"
else
CC="${CC-cc}"
CFLAGS="${CFLAGS--O}"
--
1.8.3.4