Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit branch/next] package: add gd package
@ 2012-11-27 19:21 Peter Korsgaard
  2012-11-28  5:26 ` Baruch Siach
  2012-11-28 22:09 ` Arnout Vandecappelle
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Korsgaard @ 2012-11-27 19:21 UTC (permalink / raw)
  To: buildroot

commit: http://git.buildroot.net/buildroot/commit/?id=d0a13821d7f6ceb34061014b9899eb81c3988ccf
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/next

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 package/Config.in              |    1 +
 package/gd/Config.in           |   62 ++++++++++++++++++++++++++++
 package/gd/gd-fontconfig.patch |   28 +++++++++++++
 package/gd/gd-maxcolors.patch  |   20 +++++++++
 package/gd/gd-no-zlib.patch    |   51 +++++++++++++++++++++++
 package/gd/gd.mk               |   87 ++++++++++++++++++++++++++++++++++++++++
 6 files changed, 249 insertions(+), 0 deletions(-)

diff --git a/package/Config.in b/package/Config.in
index 5d9783a..d566a39 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -376,6 +376,7 @@ source "package/cairo/Config.in"
 source "package/fltk/Config.in"
 source "package/fontconfig/Config.in"
 source "package/freetype/Config.in"
+source "package/gd/Config.in"
 source "package/giblib/Config.in"
 source "package/gtk2-engines/Config.in"
 source "package/gtk2-themes/Config.in"
diff --git a/package/gd/Config.in b/package/gd/Config.in
new file mode 100644
index 0000000..efac21d
--- /dev/null
+++ b/package/gd/Config.in
@@ -0,0 +1,62 @@
+config BR2_PACKAGE_GD
+	bool "gd"
+	help
+	  GD is a graphics library. It allows your code to quickly
+	  draw images complete with lines, arcs, text, multiple
+	  colours, cut and paste from other images, flood fills, and
+	  write out the result as a PNG file. This is particularly
+	  useful in World Wide Web applications, where PNG is one of
+	  the formats accepted for inline images by most browsers.
+
+	  http://www.boutell.com/gd/
+
+if BR2_PACKAGE_GD
+
+menu "gd tools"
+
+config BR2_PACKAGE_GD_ANNOTATE
+       bool "annotate"
+
+config BR2_PACKAGE_GD_BDFTOGD
+       bool "bdftogd"
+       depends on BR2_PACKAGE_PERL
+
+config BR2_PACKAGE_GD_GD2COPYPAL
+       bool "gd2copypal"
+
+config BR2_PACKAGE_GD_GD2TOGIF
+       bool "gd2togif"
+
+config BR2_PACKAGE_GD_GD2TOPNG
+       bool "gd2topng"
+       select BR2_PACKAGE_LIBPNG
+
+config BR2_PACKAGE_GD_GDCMPGIF
+       bool "gdcmpgif"
+
+config BR2_PACKAGE_GD_GDPARTTOPNG
+       bool "gdparttopng"
+       select BR2_PACKAGE_LIBPNG
+
+config BR2_PACKAGE_GD_GDTOPNG
+       bool "gdtopng"
+       select BR2_PACKAGE_LIBPNG
+
+config BR2_PACKAGE_GD_GIFTOGD2
+       bool "giftogd2"
+
+config BR2_PACKAGE_GD_PNGTOGD
+       bool "pngtogd"
+       select BR2_PACKAGE_LIBPNG
+
+config BR2_PACKAGE_GD_PNGTOGD2
+       bool "pngtogd2"
+       select BR2_PACKAGE_LIBPNG
+
+config BR2_PACKAGE_GD_WEBPNG
+       bool "webpng"
+       select BR2_PACKAGE_LIBPNG
+
+endmenu
+
+endif
diff --git a/package/gd/gd-fontconfig.patch b/package/gd/gd-fontconfig.patch
new file mode 100644
index 0000000..651fbec
--- /dev/null
+++ b/package/gd/gd-fontconfig.patch
@@ -0,0 +1,28 @@
+Patch from Gentoo:
+http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-libs/gd/files/gd-2.0.35-fontconfig.patch?view=log
+
+fix from upstream
+
+http://bugs.gentoo.org/363367
+
+# HG changeset patch
+# User tabe
+# Date 1239812355 0
+# Node ID 3ea283efcdafcb2acc1dd0ace1d3d48da6d8cec8
+# Parent  4f29a877875f63cee5a64e7bea406a61882a565e
+fixed FS#199
+
+199, Fixed useFontConfig() to work as documented (Ethan Merritt)
+ 
+diff -r 4f29a877875f -r 3ea283efcdaf gdft.c
+--- a/gdft.c	Sat Apr 04 12:00:37 2009 +0000
++++ b/gdft.c	Wed Apr 15 16:19:15 2009 +0000
+@@ -1659,7 +1659,7 @@
+ BGD_DECLARE(int) gdFTUseFontConfig(int flag)
+ {
+ #ifdef HAVE_LIBFONTCONFIG
+-	fontConfigFlag = 1;
++	fontConfigFlag = flag;
+ 	return 1;
+ #else
+ 	return 0;
diff --git a/package/gd/gd-maxcolors.patch b/package/gd/gd-maxcolors.patch
new file mode 100644
index 0000000..161cf19
--- /dev/null
+++ b/package/gd/gd-maxcolors.patch
@@ -0,0 +1,20 @@
+Patch from Gentoo:
+http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-libs/gd/files/gd-2.0.35-maxcolors.patch?view=log
+
+http://bugs.gentoo.org/292130
+
+fix in usptream repo already
+
+--- gd-2.0.35/gd_gd.c
++++ gd-2.0.35/gd_gd.c
+@@ -44,6 +44,10 @@
+ 	    {
+ 	      goto fail1;
+ 	    }
++	  if (im->colorsTotal > gdMaxColors)
++	    {
++		   goto fail1;
++		 }
+ 	}
+       /* Int to accommodate truecolor single-color transparency */
+       if (!gdGetInt (&im->transparent, in))
diff --git a/package/gd/gd-no-zlib.patch b/package/gd/gd-no-zlib.patch
new file mode 100644
index 0000000..cb265b2
--- /dev/null
+++ b/package/gd/gd-no-zlib.patch
@@ -0,0 +1,51 @@
+[PATCH] gd_gd2: provide dummy implementations for all public symbols when !zlib
+
+gd_gd2.c only provides dummy implementations for some of it's public symbols
+when zlib isn't found, causing build failures in several of the tools.
+
+Fix it by providing dummy implementations for all of them.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ gd_gd2.c |   30 ++++++++++++++++++++++++++++++
+ 1 file changed, 30 insertions(+)
+
+Index: gd-2.0.35/gd_gd2.c
+===================================================================
+--- gd-2.0.35.orig/gd_gd2.c
++++ gd-2.0.35/gd_gd2.c
+@@ -1068,4 +1068,34 @@
+   fprintf (stderr, "GD2 support is not available - no libz\n");
+   return NULL;
+ }
++
++BGD_DECLARE(gdImagePtr) gdImageCreateFromGd2Part (FILE * inFile, int srcx, int srcy, int w, int h)
++{
++  fprintf (stderr, "GD2 support is not available - no libz\n");
++  return NULL;
++}
++
++BGD_DECLARE(gdImagePtr) gdImageCreateFromGd2PartPtr (int size, void *data, int srcx, int srcy, int w,
++			     int h)
++{
++  fprintf (stderr, "GD2 support is not available - no libz\n");
++  return NULL;
++}
++
++BGD_DECLARE(gdImagePtr) gdImageCreateFromGd2PartCtx (gdIOCtx * in, int srcx, int srcy, int w, int h)
++{
++  fprintf (stderr, "GD2 support is not available - no libz\n");
++  return NULL;
++}
++
++BGD_DECLARE(void) gdImageGd2 (gdImagePtr im, FILE * outFile, int cs, int fmt)
++{
++  fprintf (stderr, "GD2 support is not available - no libz\n");
++}
++
++BGD_DECLARE(void *) gdImageGd2Ptr (gdImagePtr im, int cs, int fmt, int *size)
++{
++  fprintf (stderr, "GD2 support is not available - no libz\n");
++  return NULL;
++}
+ #endif /* HAVE_LIBZ */
diff --git a/package/gd/gd.mk b/package/gd/gd.mk
new file mode 100644
index 0000000..4769764
--- /dev/null
+++ b/package/gd/gd.mk
@@ -0,0 +1,87 @@
+################################################################################
+#
+# gd
+#
+################################################################################
+
+GD_VERSION = 2.0.35
+GD_SOURCE = gd-$(GD_VERSION).tar.bz2
+GD_SITE = http://distfiles.gentoo.org/distfiles
+# needed because of configure.ac timestamp
+GD_AUTORECONF = YES
+GD_INSTALL_STAGING = YES
+GD_LICENSE = GD license
+GD_LICENSE_FILES = COPYING
+
+GD_CONF_OPT = --without-x --disable-rpath
+
+ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
+GD_DEPENDENCIES += fontconfig
+GD_CONF_OPT += --with-fontconfig
+GD_CONF_ENV += ac_cv_path_FREETYPE_CONFIG=$(STAGING_DIR)/usr/bin/freetype-config
+endif
+
+ifeq ($(BR2_PACKAGE_JPEG),y)
+GD_DEPENDENCIES += jpeg
+GD_CONF_OPT += --with-jpeg
+endif
+
+ifeq ($(BR2_PACKAGE_LIBPNG),y)
+GD_DEPENDENCIES += libpng
+GD_CONF_OPT += --with-png
+endif
+
+ifeq ($(BR2_PACKAGE_XLIB_LIBXPM),y)
+GD_DEPENDENCIES += xlib_libXpm
+GD_CONF_OPT += --with-xpm
+endif
+
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+GD_DEPENDENCIES += zlib
+endif
+
+ifeq ($(BR2_PACKAGE_GETTEXT),y)
+GD_DEPENDENCIES += gettext
+else
+# configure.ac has newer timestamp than aclocal.m4 / configure, so we need
+# to autoreconf to regenerate them (or set configure.ac timestamp to older
+# than them) to make the Makefile happy.
+# configure.ac refers to AM_ICONV which we only have if gettext is enabled,
+# so add a dummy definition elsewise
+define GD_FIXUP_ICONV
+	echo 'm4_ifndef([AM_ICONV],[m4_define([AM_ICONV],[:])])' \
+		>> $(@D)/acinclude.m4
+endef
+
+GD_PRE_CONFIGURE_HOOKS += GD_FIXUP_ICONV
+endif
+
+define GD_FIXUP_GDLIB_CONFIG
+	$(SED) 's%prefix=/usr%prefix=$(STAGING_DIR)/usr%' \
+	    -e 's%exec_prefix=/usr%exec_prefix=$(STAGING_DIR)/usr%' \
+		$(STAGING_DIR)/usr/bin/gdlib-config
+endef
+
+GD_POST_INSTALL_STAGING_HOOKS += GD_FIXUP_GDLIB_CONFIG
+
+GD_TOOLS_                         	+= gdlib-config
+GD_TOOLS_$(BR2_PACKAGE_GD_ANNOTATE)	+= annotate
+GD_TOOLS_$(BR2_PACKAGE_GD_BDFTOGD)	+= bdftogd
+GD_TOOLS_$(BR2_PACKAGE_GD_GD2COPYPAL)	+= gd2copypal
+GD_TOOLS_$(BR2_PACKAGE_GD_GD2TOGIF)	+= gd2togif
+GD_TOOLS_$(BR2_PACKAGE_GD_GD2TOPNG)	+= gd2topng
+GD_TOOLS_$(BR2_PACKAGE_GD_GDCMPGIF)	+= gdcmpgif
+GD_TOOLS_$(BR2_PACKAGE_GD_GDPARTTOPNG)	+= gdparttopng
+GD_TOOLS_$(BR2_PACKAGE_GD_GDTOPNG)	+= gdtopng
+GD_TOOLS_$(BR2_PACKAGE_GD_GIFTOGD2)	+= giftogd2
+GD_TOOLS_$(BR2_PACKAGE_GD_PNGTOGD)	+= pngtogd
+GD_TOOLS_$(BR2_PACKAGE_GD_PNGTOGD2)	+= pngtogd2
+GD_TOOLS_$(BR2_PACKAGE_GD_WEBPNG)	+= webpng
+
+define GD_REMOVE_TOOLS
+	rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(GD_TOOLS_))
+endef
+
+GD_POST_INSTALL_TARGET_HOOKS += GD_REMOVE_TOOLS
+
+$(eval $(autotools-package))

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [git commit branch/next] package: add gd package
  2012-11-27 19:21 [Buildroot] [git commit branch/next] package: add gd package Peter Korsgaard
@ 2012-11-28  5:26 ` Baruch Siach
  2012-11-28 13:06   ` Thomas Petazzoni
  2012-11-28 14:09   ` Peter Korsgaard
  2012-11-28 22:09 ` Arnout Vandecappelle
  1 sibling, 2 replies; 7+ messages in thread
From: Baruch Siach @ 2012-11-28  5:26 UTC (permalink / raw)
  To: buildroot

Hi Peter,

On Tue, Nov 27, 2012 at 11:21:06AM -0800, Peter Korsgaard wrote:

[...]

> +GD_TOOLS_                         	+= gdlib-config

Shouldn't this be 'GD_TOOLS_y'?

> +GD_TOOLS_$(BR2_PACKAGE_GD_ANNOTATE)	+= annotate
> +GD_TOOLS_$(BR2_PACKAGE_GD_BDFTOGD)	+= bdftogd
> +GD_TOOLS_$(BR2_PACKAGE_GD_GD2COPYPAL)	+= gd2copypal
> +GD_TOOLS_$(BR2_PACKAGE_GD_GD2TOGIF)	+= gd2togif
> +GD_TOOLS_$(BR2_PACKAGE_GD_GD2TOPNG)	+= gd2topng
> +GD_TOOLS_$(BR2_PACKAGE_GD_GDCMPGIF)	+= gdcmpgif
> +GD_TOOLS_$(BR2_PACKAGE_GD_GDPARTTOPNG)	+= gdparttopng
> +GD_TOOLS_$(BR2_PACKAGE_GD_GDTOPNG)	+= gdtopng
> +GD_TOOLS_$(BR2_PACKAGE_GD_GIFTOGD2)	+= giftogd2
> +GD_TOOLS_$(BR2_PACKAGE_GD_PNGTOGD)	+= pngtogd
> +GD_TOOLS_$(BR2_PACKAGE_GD_PNGTOGD2)	+= pngtogd2
> +GD_TOOLS_$(BR2_PACKAGE_GD_WEBPNG)	+= webpng
> +
> +define GD_REMOVE_TOOLS
> +	rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(GD_TOOLS_))

And here.

> +endef

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [git commit branch/next] package: add gd package
  2012-11-28  5:26 ` Baruch Siach
@ 2012-11-28 13:06   ` Thomas Petazzoni
  2012-11-28 14:09   ` Peter Korsgaard
  1 sibling, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2012-11-28 13:06 UTC (permalink / raw)
  To: buildroot

Dear Baruch Siach,

On Wed, 28 Nov 2012 07:26:17 +0200, Baruch Siach wrote:

> On Tue, Nov 27, 2012 at 11:21:06AM -0800, Peter Korsgaard wrote:
> 
> [...]
> 
> > +GD_TOOLS_                         	+= gdlib-config
> 
> Shouldn't this be 'GD_TOOLS_y'?

No, the idea is to have all tools to be kept in GD_TOOLS_y and all
tools to be removed in GD_TOOLS_. Since we always want to remove
gdlib-config from the target, we unconditionally add it to GD_TOOLS_.

> > +define GD_REMOVE_TOOLS
> > +	rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(GD_TOOLS_))
> 
> And here.

No, that's correct. GD_TOOLS_ is the list of things to be removed.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [git commit branch/next] package: add gd package
  2012-11-28  5:26 ` Baruch Siach
  2012-11-28 13:06   ` Thomas Petazzoni
@ 2012-11-28 14:09   ` Peter Korsgaard
  2012-11-28 14:12     ` Baruch Siach
  1 sibling, 1 reply; 7+ messages in thread
From: Peter Korsgaard @ 2012-11-28 14:09 UTC (permalink / raw)
  To: buildroot

>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:

Hi,

 >> +GD_TOOLS_                         	+= gdlib-config

 Baruch> Shouldn't this be 'GD_TOOLS_y'?

 >> +GD_TOOLS_$(BR2_PACKAGE_GD_ANNOTATE)	+= annotate
 >> +GD_TOOLS_$(BR2_PACKAGE_GD_BDFTOGD)	+= bdftogd
 >> +GD_TOOLS_$(BR2_PACKAGE_GD_GD2COPYPAL)	+= gd2copypal
 >> +GD_TOOLS_$(BR2_PACKAGE_GD_GD2TOGIF)	+= gd2togif
 >> +GD_TOOLS_$(BR2_PACKAGE_GD_GD2TOPNG)	+= gd2topng
 >> +GD_TOOLS_$(BR2_PACKAGE_GD_GDCMPGIF)	+= gdcmpgif
 >> +GD_TOOLS_$(BR2_PACKAGE_GD_GDPARTTOPNG)	+= gdparttopng
 >> +GD_TOOLS_$(BR2_PACKAGE_GD_GDTOPNG)	+= gdtopng
 >> +GD_TOOLS_$(BR2_PACKAGE_GD_GIFTOGD2)	+= giftogd2
 >> +GD_TOOLS_$(BR2_PACKAGE_GD_PNGTOGD)	+= pngtogd
 >> +GD_TOOLS_$(BR2_PACKAGE_GD_PNGTOGD2)	+= pngtogd2
 >> +GD_TOOLS_$(BR2_PACKAGE_GD_WEBPNG)	+= webpng
 >> +
 >> +define GD_REMOVE_TOOLS
 >> +	rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(GD_TOOLS_))

 Baruch> And here.

No - The makefile installs everything, so I need to remove all programs
NOT enabled (and gdlib-config is never needed).

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [git commit branch/next] package: add gd package
  2012-11-28 14:09   ` Peter Korsgaard
@ 2012-11-28 14:12     ` Baruch Siach
  0 siblings, 0 replies; 7+ messages in thread
From: Baruch Siach @ 2012-11-28 14:12 UTC (permalink / raw)
  To: buildroot

Hi Peter,

On Wed, Nov 28, 2012 at 06:09:07AM -0800, Peter Korsgaard wrote:
> >>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:
> 
> Hi,
> 
>  >> +GD_TOOLS_                         	+= gdlib-config
> 
>  Baruch> Shouldn't this be 'GD_TOOLS_y'?
> 
>  >> +GD_TOOLS_$(BR2_PACKAGE_GD_ANNOTATE)	+= annotate
>  >> +GD_TOOLS_$(BR2_PACKAGE_GD_BDFTOGD)	+= bdftogd
>  >> +GD_TOOLS_$(BR2_PACKAGE_GD_GD2COPYPAL)	+= gd2copypal
>  >> +GD_TOOLS_$(BR2_PACKAGE_GD_GD2TOGIF)	+= gd2togif
>  >> +GD_TOOLS_$(BR2_PACKAGE_GD_GD2TOPNG)	+= gd2topng
>  >> +GD_TOOLS_$(BR2_PACKAGE_GD_GDCMPGIF)	+= gdcmpgif
>  >> +GD_TOOLS_$(BR2_PACKAGE_GD_GDPARTTOPNG)	+= gdparttopng
>  >> +GD_TOOLS_$(BR2_PACKAGE_GD_GDTOPNG)	+= gdtopng
>  >> +GD_TOOLS_$(BR2_PACKAGE_GD_GIFTOGD2)	+= giftogd2
>  >> +GD_TOOLS_$(BR2_PACKAGE_GD_PNGTOGD)	+= pngtogd
>  >> +GD_TOOLS_$(BR2_PACKAGE_GD_PNGTOGD2)	+= pngtogd2
>  >> +GD_TOOLS_$(BR2_PACKAGE_GD_WEBPNG)	+= webpng
>  >> +
>  >> +define GD_REMOVE_TOOLS
>  >> +	rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(GD_TOOLS_))
> 
>  Baruch> And here.
> 
> No - The makefile installs everything, so I need to remove all programs
> NOT enabled (and gdlib-config is never needed).

I see. I got confused by the inverted logic. Thanks for the explanation.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [git commit branch/next] package: add gd package
  2012-11-27 19:21 [Buildroot] [git commit branch/next] package: add gd package Peter Korsgaard
  2012-11-28  5:26 ` Baruch Siach
@ 2012-11-28 22:09 ` Arnout Vandecappelle
  2012-11-28 22:28   ` Peter Korsgaard
  1 sibling, 1 reply; 7+ messages in thread
From: Arnout Vandecappelle @ 2012-11-28 22:09 UTC (permalink / raw)
  To: buildroot

On 27/11/12 20:21, Peter Korsgaard wrote:
[snip]
> +# configure.ac has newer timestamp than aclocal.m4 / configure, so we need
> +# to autoreconf to regenerate them (or set configure.ac timestamp to older
> +# than them) to make the Makefile happy.
> +# configure.ac refers to AM_ICONV which we only have if gettext is enabled,
> +# so add a dummy definition elsewise
> +define GD_FIXUP_ICONV
> +	echo 'm4_ifndef([AM_ICONV],[m4_define([AM_ICONV],[:])])' \
> +		>>  $(@D)/acinclude.m4
> +endef
> +
> +GD_PRE_CONFIGURE_HOOKS += GD_FIXUP_ICONV

  Is there any reason why this is a pre-configure hook instead of a
post-patch hook?

  The reason I ask is because I am thinking about putting the _patched_
source in the tarballs created by legal-info.  That would imply doing
a <pkg>-dirclean followed by a <pkg>-patch, but if there is any patching
that is done in one of the later steps, it will be missed.

  Regards,
  Arnout
-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [git commit branch/next] package: add gd package
  2012-11-28 22:09 ` Arnout Vandecappelle
@ 2012-11-28 22:28   ` Peter Korsgaard
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2012-11-28 22:28 UTC (permalink / raw)
  To: buildroot

>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:

 Arnout> On 27/11/12 20:21, Peter Korsgaard wrote:
 Arnout> [snip]
 >> +# configure.ac has newer timestamp than aclocal.m4 / configure, so we need
 >> +# to autoreconf to regenerate them (or set configure.ac timestamp to older
 >> +# than them) to make the Makefile happy.
 >> +# configure.ac refers to AM_ICONV which we only have if gettext is enabled,
 >> +# so add a dummy definition elsewise
 >> +define GD_FIXUP_ICONV
 >> +	echo 'm4_ifndef([AM_ICONV],[m4_define([AM_ICONV],[:])])' \
 >> +		>>  $(@D)/acinclude.m4
 >> +endef
 >> +
 >> +GD_PRE_CONFIGURE_HOOKS += GD_FIXUP_ICONV

 Arnout>  Is there any reason why this is a pre-configure hook instead of a
 Arnout> post-patch hook?

 Arnout>  The reason I ask is because I am thinking about putting the
 Arnout> _patched_ source in the tarballs created by legal-info.  That
 Arnout> would imply doing a <pkg>-dirclean followed by a <pkg>-patch,
 Arnout> but if there is any patching that is done in one of the later
 Arnout> steps, it will be missed.

No, it is completely arbitrary. I just selected pre-configure as it was
related to the configure step, but post-patch would have been just as
good.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-11-28 22:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27 19:21 [Buildroot] [git commit branch/next] package: add gd package Peter Korsgaard
2012-11-28  5:26 ` Baruch Siach
2012-11-28 13:06   ` Thomas Petazzoni
2012-11-28 14:09   ` Peter Korsgaard
2012-11-28 14:12     ` Baruch Siach
2012-11-28 22:09 ` Arnout Vandecappelle
2012-11-28 22:28   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox