summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-23 08:23:54 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-23 08:23:54 +0000
commit260db3b0fbfb2229aa157f9134fb2de403dcc655 (patch)
tree0e640929265d5b269a7e3e0b3d7a3b8b4ec1df0a
parent4089ac8ba3c0dba9cc061b770c8d6a36ce925a2c (diff)
All libungif package
-rw-r--r--package/Config.in1
-rw-r--r--package/libungif/Config.in7
-rw-r--r--package/libungif/libungif.mk69
3 files changed, 77 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 442a0c3ff..2e55ba428 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -287,6 +287,7 @@ comment "graphic libraries"
source "package/directfb/Config.in"
source "package/jpeg/Config.in"
source "package/libpng/Config.in"
+source "package/libungif/Config.in"
source "package/sdl/Config.in"
source "package/tiff/Config.in"
diff --git a/package/libungif/Config.in b/package/libungif/Config.in
new file mode 100644
index 000000000..d48d2b03f
--- /dev/null
+++ b/package/libungif/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBUNGIF
+ bool "libungif"
+ default n
+ help
+ libungif is a library for handling the uncompressed GIF image format.
+
+ http://sourceforge.net/projects/libungif
diff --git a/package/libungif/libungif.mk b/package/libungif/libungif.mk
new file mode 100644
index 000000000..283a92486
--- /dev/null
+++ b/package/libungif/libungif.mk
@@ -0,0 +1,69 @@
+#############################################################
+#
+# libungif
+#
+#############################################################
+LIBUNGIF_VER:=4.1.4
+LIBUNGIF_SOURCE:=libungif-$(LIBUNGIF_VER).tar.bz2
+LIBUNGIF_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libungif/$(LIBUNGIF_SOURCE)
+LIBUNGIF_DIR:=$(BUILD_DIR)/libungif-$(LIBUNGIF_VER)
+LIBUNGIF_CAT:=$(BZCAT)
+LIBUNGIF_BINARY:=libungif.so.$(LIBUNGIF_VER)
+LIBUNGIF_TARGET_BINARY:=usr/lib/libungif.so
+
+$(DL_DIR)/$(LIBUNGIF_SOURCE):
+ $(WGET) -P $(DL_DIR) $(LIBUNGIF_SITE)/$(LIBUNGIF_SOURCE)
+
+$(LIBUNGIF_DIR)/.unpacked: $(DL_DIR)/$(LIBUNGIF_SOURCE)
+ $(LIBUNGIF_CAT) $(DL_DIR)/$(LIBUNGIF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(LIBUNGIF_DIR) package/libungif/ libungif-$(LIBUNGIF_VER)\*.patch\*
+ $(CONFIG_UPDATE) $(LIBUNGIF_DIR)
+ touch $@
+
+$(LIBUNGIF_DIR)/.configured: $(LIBUNGIF_DIR)/.unpacked
+ (cd $(LIBUNGIF_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --sysconfdir=/etc \
+ --enable-shared \
+ --enable-static \
+ --prefix=/usr \
+ --without-x \
+ );
+ touch $@
+
+$(LIBUNGIF_DIR)/lib/.libs/libungif.a: $(LIBUNGIF_DIR)/.configured
+ $(MAKE) -C $(LIBUNGIF_DIR)
+ touch -c $(LIBUNGIF_DIR)/lib/.libs/libungif.a
+
+$(STAGING_DIR)/lib/libungif.a: $(LIBUNGIF_DIR)/lib/.libs/libungif.a
+ $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBUNGIF_DIR) install
+ rm $(STAGING_DIR)/lib/libungif.la
+ touch -c $(STAGING_DIR)/lib/libungif.a
+
+$(TARGET_DIR)/$(LIBUNGIF_TARGET_BINARY): $(STAGING_DIR)/lib/libungif.a
+ cp -dpf $(STAGING_DIR)/$(LIBUNGIF_TARGET_BINARY)* $(TARGET_DIR)/usr/lib/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/$(LIBUNGIF_TARGET_BINARY)*
+ touch -c $(TARGET_DIR)/$(LIBUNGIF_TARGET_BINARY)
+
+libungif: uclibc $(TARGET_DIR)/$(LIBUNGIF_TARGET_BINARY)
+
+libungif-clean:
+ rm -f $(TARGET_DIR)/$(LIBUNGIF_TARGET_BINARY)*
+ -$(MAKE) -C $(LIBUNGIF_DIR) clean
+
+libungif-dirclean:
+ rm -rf $(LIBUNGIF_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LIBUNGIF)),y)
+TARGETS+=libungif
+endif