mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] giflib: add new package
@ 2018-06-29 14:31 Denis OSTERLAND
  0 siblings, 0 replies; only message in thread
From: Denis OSTERLAND @ 2018-06-29 14:31 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com>
---
 rules/giflib.in   | 17 ++++++++++++++
 rules/giflib.make | 59 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)
 create mode 100644 rules/giflib.in
 create mode 100644 rules/giflib.make

diff --git a/rules/giflib.in b/rules/giflib.in
new file mode 100644
index 000000000..335c8cb4d
--- /dev/null
+++ b/rules/giflib.in
@@ -0,0 +1,17 @@
+## SECTION=system_libraries
+
+menuconfig GIFLIB
+	tristate
+	prompt "giflib                        "
+	help
+	  GIFLIB is a package of portable tools and library routines for working with GIF images.
+
+if GIFLIB
+
+config GIFLIB_TOOLS
+	bool "install gif tools"
+	help
+	  giftext gif2rgb gifinto gifecho
+	  gifbuild giftool giffix gifclrmp
+
+endif # GIFLIB
diff --git a/rules/giflib.make b/rules/giflib.make
new file mode 100644
index 000000000..363fa1241
--- /dev/null
+++ b/rules/giflib.make
@@ -0,0 +1,59 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Denis Osterland <Denis.Osterland@diehl.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+PACKAGES-$(PTXCONF_GIFLIB) += giflib
+
+GIFLIB_VERSION       := 5.1.4
+GIFLIB_MD5           := 2c171ced93c0e83bb09e6ccad8e3ba2b
+GIFLIB               := giflib-$(GIFLIB_VERSION)
+GIFLIB_SUFFIX        := tar.bz2
+GIFLIB_URL           := $(call ptx/mirror, SF, giflib/$(GIFLIB).$(GIFLIB_SUFFIX))
+GIFLIB_SOURCE        := $(SRCDIR)/$(GIFLIB).$(GIFLIB_SUFFIX)
+GIFLIB_DIR           := $(BUILDDIR)/$(GIFLIB)
+GIFLIB_LICENSE       := MIT
+GIFLIB_LICENSE_FILES := file://COPYING;md5=ae11c61b04b2917be39b11f78d71519a
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+GIFLIB_CONF_TOOL := autoconf
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/giflib.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, giflib)
+	@$(call install_fixup, giflib,PRIORITY,optional)
+	@$(call install_fixup, giflib,SECTION,base)
+	@$(call install_fixup, giflib,AUTHOR,"Denis Osterland <Denis.Osterland@diehl.com>")
+	@$(call install_fixup, giflib,DESCRIPTION,missing)
+
+	@$(call install_lib, giflib, 0, 0, 0644, libgif)
+
+ifdef GIFLIB_TOOLS
+	@$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/giftext)
+	@$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/gif2rgb)
+	@$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/gifinfo)
+	@$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/gifecho)
+	@$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/gifbuild)
+	@$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/giftool)
+	@$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/giffix)
+	@$(call install_copy, giflib, 0, 0, 0755, -, /usr/bin/gifclrmp)
+endif
+
+	@$(call install_finish, giflib)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.18.0



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited. 

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-06-29 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-29 14:31 [ptxdist] [PATCH] giflib: add new package Denis OSTERLAND

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