Moved the gcc2 patch done via sed into an actual patch file.

This commit is contained in:
Philippe Houdoin
2010-11-18 10:20:52 +00:00
parent 85af43d145
commit 2bd516acfb
2 changed files with 12 additions and 2 deletions

View File

@@ -10,8 +10,7 @@ DEPEND="dev-util/pkconfig >= 0.23"
BUILD {
cd flam3-3.0/src
if [ -n "$(setgcc | grep '2')" ]; then
echo "Patching Makefile.am to support gcc2..."
sed -i "s/-std=gnu99 //" Makefile.am
patch -p0 -ui ../../../patches/flam3-3.0-gcc2.patch
fi
libtoolize --force --copy --install
autoreconf -i

View File

@@ -0,0 +1,11 @@
--- Makefile.am 2010-10-11 22:35:32.020447232 +0200
+++ Makefile.am 2010-11-18 11:10:09.946339840 +0100
@@ -1,7 +1,7 @@
AUTOMAKE_OPTIONS = foreign no-dependencies
SVN_DEF = -D'SVN_REV="$(shell svnversion -n .)"'
-AM_CFLAGS = -g -O3 -std=gnu99 -ffast-math -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" $(SVN_DEF)
+AM_CFLAGS = -g -O3 -ffast-math -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" $(SVN_DEF)
ACLOCAL_AMFLAGS = -I m4