From: grodriguez <guille.rodriguez@gmail.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Cc: grodriguez <guille.rodriguez@gmail.com>
Subject: [ptxdist] [PATCH] New package: libzip
Date: Fri, 12 Dec 2014 17:00:36 +0100 [thread overview]
Message-ID: <1418400036-6269-1-git-send-email-guille.rodriguez@gmail.com> (raw)
---
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
next reply other threads:[~2014-12-12 16:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-12 16:00 grodriguez [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1418400036-6269-1-git-send-email-guille.rodriguez@gmail.com \
--to=guille.rodriguez@gmail.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox