Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Add giflib package
@ 2008-03-11  0:59 Sunil Gupta
  2008-03-13 15:01 ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Sunil Gupta @ 2008-03-11  0:59 UTC (permalink / raw)
  To: buildroot


-------------- next part --------------
A non-text attachment was scrubbed...
Name: br2_add_pkg_giflib.diff
Type: text/x-diff
Size: 3110 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20080310/14415bde/attachment.bin 

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

* [Buildroot] Add giflib package
  2008-03-11  0:59 [Buildroot] Add giflib package Sunil Gupta
@ 2008-03-13 15:01 ` Peter Korsgaard
  2008-03-13 15:14   ` Andrew Dyer
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2008-03-13 15:01 UTC (permalink / raw)
  To: buildroot

>>>>> "Sunil" == Sunil Gupta <sg@monsoon.com> writes:

Did you manually edit the patch? It was slightly corrupted (missing
newline at end)

Is this a replacement for libungif? Should we remove libungif?

Index: package/Config.in
===================================================================
--- package/Config.in	(revision 21284)
+++ package/Config.in	(working copy)
@@ -308,6 +308,7 @@
 comment "graphic libraries"
 source "package/directfb/Config.in"
 source "package/fusion/Config.in"
+source "package/giflib/Config.in"
 source "package/imagemagick/Config.in"
 source "package/jpeg/Config.in"
 source "package/libpng/Config.in"
Index: package/giflib/giflib.mk
===================================================================
--- package/giflib/giflib.mk	(revision 0)
+++ package/giflib/giflib.mk	(revision 0)
@@ -0,0 +1,60 @@
+#############################################################
+#
+# giflib
+#
+#############################################################
+GIFLIB_VERSION:=4.1.6
+GIFLIB_SOURCE:=giflib-$(GIFLIB_VERSION).tar.gz
+GIFLIB_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/giflib
+GIFLIB_DIR:=$(BUILD_DIR)/giflib-$(GIFLIB_VERSION)
+GIFLIB_BINARY:=lib/.libs/libgif.so
+GIFLIB_TARGET_BINARY:=usr/lib/libgif.so
+GIFLIB_INSTALL_DIR:=$(STAGING_DIR)
+
+$(DL_DIR)/$(GIFLIB_SOURCE):
+	$(WGET) -P $(DL_DIR) $(GIFLIB_SITE)/$(GIFLIB_SOURCE)
+
+$(GIFLIB_DIR)/.source: $(DL_DIR)/$(GIFLIB_SOURCE)
+	zcat $(DL_DIR)/$(GIFLIB_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+	touch $(GIFLIB_DIR)/.source

please use touch $@ instead.

+
+$(GIFLIB_DIR)/.configured: $(GIFLIB_DIR)/.source
+	(cd $(GIFLIB_DIR); \
+		$(TARGET_CONFIGURE_OPTS) \
+		CFLAGS="$(TARGET_CFLAGS)" \
+		./configure \
+		--target=$(GNU_TARGET_NAME) \
+		--host=$(GNU_TARGET_NAME) \
+		--prefix=$(GIFLIB_INSTALL_DIR) \
+		--disable-static \
+		--without-x \
+	);
+	touch $(GIFLIB_DIR)/.configured;

please use touch $@ instead.
+
+$(GIFLIB_DIR)/$(GIFLIB_BINARY): $(GIFLIB_DIR)/.configured
+	$(MAKE) CC=$(TARGET_CC) -C $(GIFLIB_DIR)
+
+$(TARGET_DIR)/$(GIFLIB_TARGET_BINARY): $(GIFLIB_DIR)/$(GIFLIB_BINARY)
+	$(MAKE) prefix=$(GIFLIB_INSTALL_DIR) -C $(GIFLIB_DIR) install
+	$(MAKE) prefix=$(GIFLIB_INSTALL_DIR) libdir=$(TARGET_DIR)/usr/lib -C $(GIFLIB_DIR) install

I think it would be clearer to split these two. With the above it
isn't clear that it does a full install into the staging dir and only
the libs into target.

+	rm -f $(TARGET_DIR)/usr/lib/libgif.la

There recently were some discussion about that - But lets leave it for
now ..

+
+giflib: uclibc $(TARGET_DIR)/$(GIFLIB_TARGET_BINARY)
+
+giflib-source: $(DL_DIR)/$(GIFLIB_SOURCE)
+
+giflib-clean:
+	$(MAKE) prefix=$(TARGET_DIR)/usr -C $(GIFLIB_DIR) uninstall

This fails if giflib hasn't been unpacked yet.

+	-$(MAKE) -C $(GIFLIB_DIR) clean
+
+giflib-dirclean:
+	rm -rf $(GIFLIB_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_GIFLIB)),y)
+TARGETS+=giflib
+endif
Index: package/giflib/Config.in
===================================================================
--- package/giflib/Config.in	(revision 0)
+++ package/giflib/Config.in	(revision 0)
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_GIFLIB
+	bool "giflib"
+	default n
+	help
+	  The giflib package contains libraries for reading
+	  and writing GIFs.
+
+	  http://sourceforge.net/projects/giflib
+
+config BR2_PACKAGE_GIFLIB_PROGRAMS

This isn't handled in the make file?

+	bool "giflib programs"
+	default n
+	depends on BR2_PACKAGE_GIFLIB
+	help
+	  The giflib programs are useful for conversion
+	  purposes as well as cleaning up images.
+
 Sunil> _______________________________________________
 Sunil> buildroot mailing list
 Sunil> buildroot at uclibc.org
 Sunil> http://busybox.net/mailman/listinfo/buildroot

-- 
Bye, Peter Korsgaard

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

* [Buildroot] Add giflib package
  2008-03-13 15:01 ` Peter Korsgaard
@ 2008-03-13 15:14   ` Andrew Dyer
  2008-03-13 16:09     ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Dyer @ 2008-03-13 15:14 UTC (permalink / raw)
  To: buildroot

On Thu, Mar 13, 2008 at 10:01 AM, Peter Korsgaard <jacmet@uclibc.org> wrote:
> >>>>> "Sunil" == Sunil Gupta <sg@monsoon.com> writes:
>
>  Did you manually edit the patch? It was slightly corrupted (missing
>  newline at end)
>
>  Is this a replacement for libungif? Should we remove libungif?

see this post about giflib and libungif:

http://sourceforge.net/forum/forum.php?forum_id=753553

-- 
Hardware, n.:
 The parts of a computer system that can be kicked.

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

* [Buildroot] Add giflib package
  2008-03-13 15:14   ` Andrew Dyer
@ 2008-03-13 16:09     ` Peter Korsgaard
  2015-01-26 19:25       ` Bernd Kuhls
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2008-03-13 16:09 UTC (permalink / raw)
  To: buildroot

>>>>> "Andrew" == Andrew Dyer <amdyer@gmail.com> writes:

Hi,

 >> Is this a replacement for libungif? Should we remove libungif?

 Andrew> see this post about giflib and libungif:

 Andrew> http://sourceforge.net/forum/forum.php?forum_id=753553

Ok, thanks!

-- 
Bye, Peter Korsgaard

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

* [Buildroot] Add giflib package
  2008-03-13 16:09     ` Peter Korsgaard
@ 2015-01-26 19:25       ` Bernd Kuhls
  0 siblings, 0 replies; 5+ messages in thread
From: Bernd Kuhls @ 2015-01-26 19:25 UTC (permalink / raw)
  To: buildroot

Peter Korsgaard <jacmet@uclibc.org> wrote in 
news:87abl27gia.fsf at macbook.be.48ers.dk:

>>>>>> "Andrew" == Andrew Dyer <amdyer-
Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> 
> Hi,
> 
> >> Is this a replacement for libungif? Should we remove libungif?
> 
>  Andrew> see this post about giflib and libungif:
> 
>  Andrew> http://sourceforge.net/forum/forum.php?forum_id=753553
> 
> Ok, thanks!
> 

Hi,

I just posted a patch series to replace libungif with giflib:
http://patchwork.ozlabs.org/patch/432988/
http://patchwork.ozlabs.org/patch/432989/
http://patchwork.ozlabs.org/patch/432987/
http://patchwork.ozlabs.org/patch/432991/
http://patchwork.ozlabs.org/patch/432990/

Regards, Bernd

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

end of thread, other threads:[~2015-01-26 19:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-11  0:59 [Buildroot] Add giflib package Sunil Gupta
2008-03-13 15:01 ` Peter Korsgaard
2008-03-13 15:14   ` Andrew Dyer
2008-03-13 16:09     ` Peter Korsgaard
2015-01-26 19:25       ` Bernd Kuhls

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