From 2bd516acfbc4e7b40e149925b82449078eaffd29 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Thu, 18 Nov 2010 10:20:52 +0000 Subject: [PATCH] Moved the gcc2 patch done via sed into an actual patch file. --- media-gfx/flam3/flam3-3.0.bep | 3 +-- media-gfx/flam3/patches/flam3-3.0-gcc2.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 media-gfx/flam3/patches/flam3-3.0-gcc2.patch diff --git a/media-gfx/flam3/flam3-3.0.bep b/media-gfx/flam3/flam3-3.0.bep index 8aa2ec837..e5faf7032 100644 --- a/media-gfx/flam3/flam3-3.0.bep +++ b/media-gfx/flam3/flam3-3.0.bep @@ -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 diff --git a/media-gfx/flam3/patches/flam3-3.0-gcc2.patch b/media-gfx/flam3/patches/flam3-3.0-gcc2.patch new file mode 100644 index 000000000..b5ddbdcfb --- /dev/null +++ b/media-gfx/flam3/patches/flam3-3.0-gcc2.patch @@ -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 +