From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Robert Schwebel Date: Sun, 30 Oct 2011 23:00:55 +0100 Message-Id: <1320012059-24971-24-git-send-email-r.schwebel@pengutronix.de> In-Reply-To: <1320012059-24971-1-git-send-email-r.schwebel@pengutronix.de> References: <20111030220011.GK14918@pengutronix.de> <1320012059-24971-1-git-send-email-r.schwebel@pengutronix.de> Subject: [ptxdist] [PATCH 24/28] freetype: clean up patches Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Robert Schwebel Signed-off-by: Robert Schwebel --- .../0001-make-freetype-config-SYSROOT-aware.patch | 83 ++++++++++++++++++++ .../builds_unix_freetype-config_in_sysroot.diff | 80 ------------------- patches/freetype-2.3.11/series | 1 - 3 files changed, 83 insertions(+), 81 deletions(-) create mode 100644 patches/freetype-2.3.11/0001-make-freetype-config-SYSROOT-aware.patch delete mode 100644 patches/freetype-2.3.11/builds_unix_freetype-config_in_sysroot.diff delete mode 100644 patches/freetype-2.3.11/series diff --git a/patches/freetype-2.3.11/0001-make-freetype-config-SYSROOT-aware.patch b/patches/freetype-2.3.11/0001-make-freetype-config-SYSROOT-aware.patch new file mode 100644 index 0000000..7fb25b8 --- /dev/null +++ b/patches/freetype-2.3.11/0001-make-freetype-config-SYSROOT-aware.patch @@ -0,0 +1,83 @@ +From 50860d6517b7b9f12501e1eebdabf1a1971337a6 Mon Sep 17 00:00:00 2001 +From: Marc Kleine-Budde +Date: Sun, 30 Oct 2011 22:27:04 +0100 +Subject: [PATCH] make freetype-config $SYSROOT aware + +Currently, freetype-config is not $SYSROOT aware, which is fixed by this +patch. + +Signed-off-by: Marc Kleine-Budde +--- + builds/unix/freetype-config.in | 22 +++++++++++----------- + 1 files changed, 11 insertions(+), 11 deletions(-) + +diff --git a/builds/unix/freetype-config.in b/builds/unix/freetype-config.in +index 9606d31..0a7a767 100644 +--- a/builds/unix/freetype-config.in ++++ b/builds/unix/freetype-config.in +@@ -101,11 +101,11 @@ if test "$local_prefix" = "yes" ; then + fi + + if test "$echo_prefix" = "yes" ; then +- echo $prefix ++ echo ${SYSROOT}$prefix + fi + + if test "$echo_exec_prefix" = "yes" ; then +- echo $exec_prefix ++ echo ${SYSROOT}$exec_prefix + fi + + if test "$exec_prefix_set" = "yes" ; then +@@ -118,22 +118,22 @@ else + fi + + if test "$echo_ft_version" = "yes" ; then +- major=`grep define $includedir/freetype2/freetype/freetype.h \ ++ major=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \ + | grep FREETYPE_MAJOR \ + | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'` +- minor=`grep define $includedir/freetype2/freetype/freetype.h \ ++ minor=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \ + | grep FREETYPE_MINOR \ + | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'` +- patch=`grep define $includedir/freetype2/freetype/freetype.h \ ++ patch=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \ + | grep FREETYPE_PATCH \ + | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'` + echo $major.$minor.$patch + fi + + if test "$echo_cflags" = "yes" ; then +- cflags="-I$includedir/freetype2" +- if test "$includedir" != "/usr/include" ; then +- echo $cflags -I$includedir ++ cflags="-I${SYSROOT}$includedir/freetype2" ++ if test "${SYSROOT}$includedir" != "/usr/include" ; then ++ echo $cflags -I${SYSROOT}$includedir + else + echo $cflags + fi +@@ -145,8 +145,8 @@ if test "$echo_libs" = "yes" ; then + eval "rpath=\"$hardcode_libdir_flag_spec\"" + fi + libs="-lfreetype @LIBZ@ @FT2_EXTRA_LIBS@" +- if test "$libdir" != "/usr/lib" && test "$libdir" != "/usr/lib64"; then +- echo -L$libdir $rpath $libs ++ if test "${SYSROOT}$libdir" != "/usr/lib" && test "${SYSROOT}$libdir" != "/usr/lib64"; then ++ echo -L${SYSROOT}$libdir $libs + else + echo $libs + fi +@@ -154,7 +154,7 @@ fi + + if test "$echo_libtool" = "yes" ; then + convlib="libfreetype.la" +- echo $libdir/$convlib ++ echo ${SYSROOT}$libdir/$convlib + fi + + # EOF +-- +1.7.7 + diff --git a/patches/freetype-2.3.11/builds_unix_freetype-config_in_sysroot.diff b/patches/freetype-2.3.11/builds_unix_freetype-config_in_sysroot.diff deleted file mode 100644 index 78fa52f..0000000 --- a/patches/freetype-2.3.11/builds_unix_freetype-config_in_sysroot.diff +++ /dev/null @@ -1,80 +0,0 @@ -From: Marc Kleine-Budde -Subject: [patch] make freetype-config $SYSROOT aware - -Currently, freetype-config is not $SYSROOT aware, which is fixed by this -patch. - -Signed-off-by: Marc Kleine-Budde ---- -# 20091221 rsc: submitted as https://savannah.nongnu.org/patch/index.php?7040 - - builds/unix/freetype-config.in | 22 +++++++++++----------- - 1 file changed, 11 insertions(+), 11 deletions(-) - -Index: freetype-2.3.9/builds/unix/freetype-config.in -=================================================================== ---- freetype-2.3.9.orig/builds/unix/freetype-config.in -+++ freetype-2.3.9/builds/unix/freetype-config.in -@@ -101,11 +101,11 @@ if test "$local_prefix" = "yes" ; then - fi - - if test "$echo_prefix" = "yes" ; then -- echo $prefix -+ echo ${SYSROOT}$prefix - fi - - if test "$echo_exec_prefix" = "yes" ; then -- echo $exec_prefix -+ echo ${SYSROOT}$exec_prefix - fi - - if test "$exec_prefix_set" = "yes" ; then -@@ -118,22 +118,22 @@ else - fi - - if test "$echo_ft_version" = "yes" ; then -- major=`grep define $includedir/freetype2/freetype/freetype.h \ -+ major=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \ - | grep FREETYPE_MAJOR \ - | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'` -- minor=`grep define $includedir/freetype2/freetype/freetype.h \ -+ minor=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \ - | grep FREETYPE_MINOR \ - | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'` -- patch=`grep define $includedir/freetype2/freetype/freetype.h \ -+ patch=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \ - | grep FREETYPE_PATCH \ - | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'` - echo $major.$minor.$patch - fi - - if test "$echo_cflags" = "yes" ; then -- cflags="-I$includedir/freetype2" -- if test "$includedir" != "/usr/include" ; then -- echo $cflags -I$includedir -+ cflags="-I${SYSROOT}$includedir/freetype2" -+ if test "${SYSROOT}$includedir" != "/usr/include" ; then -+ echo $cflags -I${SYSROOT}$includedir - else - echo $cflags - fi -@@ -145,8 +145,8 @@ if test "$echo_libs" = "yes" ; then - eval "rpath=\"$hardcode_libdir_flag_spec\"" - fi - libs="-lfreetype @LIBZ@ @FT2_EXTRA_LIBS@" -- if test "$libdir" != "/usr/lib" && test "$libdir" != "/usr/lib64"; then -- echo -L$libdir $rpath $libs -+ if test "${SYSROOT}$libdir" != "/usr/lib" && test "${SYSROOT}$libdir" != "/usr/lib64"; then -+ echo -L${SYSROOT}$libdir $libs - else - echo $libs - fi -@@ -154,7 +154,7 @@ fi - - if test "$echo_libtool" = "yes" ; then - convlib="libfreetype.la" -- echo $libdir/$convlib -+ echo ${SYSROOT}$libdir/$convlib - fi - - # EOF diff --git a/patches/freetype-2.3.11/series b/patches/freetype-2.3.11/series deleted file mode 100644 index 5d703e3..0000000 --- a/patches/freetype-2.3.11/series +++ /dev/null @@ -1 +0,0 @@ -builds_unix_freetype-config_in_sysroot.diff -- 1.7.7 -- ptxdist mailing list ptxdist@pengutronix.de