mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] New package: libzip
@ 2014-12-12 16:00 grodriguez
  2015-01-12 15:26 ` Michael Olbrich
  2015-01-13 15:46 ` [ptxdist] [PATCH v2] " grodriguez
  0 siblings, 2 replies; 5+ messages in thread
From: grodriguez @ 2014-12-12 16:00 UTC (permalink / raw)
  To: ptxdist; +Cc: grodriguez

---
 rules/libzip.in   |   12 +++++++++
 rules/libzip.make |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+), 0 deletions(-)
 create mode 100644 rules/libzip.in
 create mode 100644 rules/libzip.make

diff --git a/rules/libzip.in b/rules/libzip.in
new file mode 100644
index 0000000..b871e10
--- /dev/null
+++ b/rules/libzip.in
@@ -0,0 +1,12 @@
+## SECTION=system_libraries
+
+config LIBZIP
+	tristate
+	prompt "libzip"
+	select ZLIB
+	help
+	  libzip is a C library for reading, creating, and modifying
+	  zip archives. Files can be added from data buffers, files,
+	  or compressed data copied directly from other zip archives.
+	  Changes made without closing the archive can be reverted.
+
diff --git a/rules/libzip.make b/rules/libzip.make
new file mode 100644
index 0000000..e7596b7
--- /dev/null
+++ b/rules/libzip.make
@@ -0,0 +1,67 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Guillermo Rodriguez <guille.rodriguez@gmail.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.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBZIP) += libzip
+
+#
+# Paths and names
+#
+LIBZIP_VERSION	:= 0.11.2
+LIBZIP_MD5	:= c5437df15e4825d40cdc3ec8b9b7516c
+LIBZIP		:= libzip-$(LIBZIP_VERSION)
+LIBZIP_SUFFIX	:= tar.gz
+LIBZIP_URL	:= http://www.nih.at/libzip/$(LIBZIP).$(LIBZIP_SUFFIX)
+LIBZIP_SOURCE	:= $(SRCDIR)/$(LIBZIP).$(LIBZIP_SUFFIX)
+LIBZIP_DIR	:= $(BUILDDIR)/$(LIBZIP)
+LIBZIP_LICENSE	:= BSD
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBZIP_CONF_ENV	:= $(CROSS_ENV)
+
+LIBZIP_CONF_TOOL := autoconf
+LIBZIP_CONF_OPT	:= $(CROSS_AUTOCONF_USR) 
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libzip.install.pack:
+	@$(call targetinfo)
+	@$(call world/install.pack, LIBZIP)
+	@sed -i -e 's,libincludedir=/usr/lib,libincludedir=$${libdir},g' \
+		'$(LIBZIP_PKGDIR)/usr/lib/pkgconfig/libzip.pc'
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libzip.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, libzip)
+	@$(call install_fixup, libzip, PRIORITY, optional)
+	@$(call install_fixup, libzip, SECTION, base)
+	@$(call install_fixup, libzip, AUTHOR, "Guillermo Rodriguez <guille.rodriguez@gmail.com>")
+	@$(call install_fixup, libzip, DESCRIPTION, missing)
+
+	@$(call install_lib, libzip, 0, 0, 0644, libzip)
+
+	@$(call install_finish, libzip)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
1.7.0.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2015-01-14 10:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-12 16:00 [ptxdist] [PATCH] New package: libzip grodriguez
2015-01-12 15:26 ` Michael Olbrich
2015-01-13  9:07   ` Guillermo Rodriguez
2015-01-13 15:46 ` [ptxdist] [PATCH v2] " grodriguez
2015-01-14 10:21   ` Michael Olbrich

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