From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YB3gC-0007y1-KB for ptxdist@pengutronix.de; Tue, 13 Jan 2015 16:46:53 +0100 Received: by mail-wg0-f50.google.com with SMTP id a1so3703858wgh.9 for ; Tue, 13 Jan 2015 07:46:46 -0800 (PST) From: grodriguez Date: Tue, 13 Jan 2015 16:46:36 +0100 Message-Id: <1421163996-2655-1-git-send-email-guille.rodriguez@gmail.com> In-Reply-To: <1418400036-6269-1-git-send-email-guille.rodriguez@gmail.com> References: <1418400036-6269-1-git-send-email-guille.rodriguez@gmail.com> Subject: [ptxdist] [PATCH v2] New package: libzip Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: grodriguez Added missing signed-off-by line. Signed-off-by: Guillermo Rodriguez --- 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 +# +# 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 ") + @$(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