From 7cd6cf235eb7734fa980900e8f10deb0b2731a1e Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Thu, 3 Jan 2013 14:40:13 +0100 Subject: libarchive: new package Signed-off-by: Michael Olbrich --- rules/libarchive.in | 24 ++++++++++++++++ rules/libarchive.make | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100644 rules/libarchive.in create mode 100644 rules/libarchive.make diff --git a/rules/libarchive.in b/rules/libarchive.in new file mode 100644 index 000000000..80d1fc8d6 --- /dev/null +++ b/rules/libarchive.in @@ -0,0 +1,24 @@ +## SECTION=system_libraries + +menuconfig LIBARCHIVE + tristate + select GCCLIBS_GCC_S + select ZLIB + select BZIP2 + select BZIP2_LIBBZ2 + select XZ + prompt "libarchive " + help + Multi-format archive and compression library. + +if LIBARCHIVE + +config LIBARCHIVE_BSDTAR + bool + prompt "install bsdtar" + +config LIBARCHIVE_BSDCPIO + bool + prompt "install bsdcpio" + +endif diff --git a/rules/libarchive.make b/rules/libarchive.make new file mode 100644 index 000000000..36d9952d6 --- /dev/null +++ b/rules/libarchive.make @@ -0,0 +1,79 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Michael Olbrich +# +# 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_LIBARCHIVE) += libarchive + +# +# Paths and names +# +LIBARCHIVE_VERSION := 3.0.4 +LIBARCHIVE_MD5 := af443ca9a10ddbcbf00f7ae34ca7fc16 +LIBARCHIVE := libarchive-$(LIBARCHIVE_VERSION) +LIBARCHIVE_SUFFIX := tar.gz +LIBARCHIVE_URL := https://github.com/libarchive/libarchive/downloads/$(LIBARCHIVE).$(LIBARCHIVE_SUFFIX) +LIBARCHIVE_SOURCE := $(SRCDIR)/$(LIBARCHIVE).$(LIBARCHIVE_SUFFIX) +LIBARCHIVE_DIR := $(BUILDDIR)/$(LIBARCHIVE) +LIBARCHIVE_LICENSE := BSD New + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +LIBARCHIVE_CONF_TOOL := autoconf +LIBARCHIVE_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --$(call ptx/endis, PTXCONF_LIBARCHIVE_BSDTAR)-bsdtar \ + --$(call ptx/endis, PTXCONF_LIBARCHIVE_BSDCPIO)-bsdcpio \ + --disable-rpath \ + --disable-xattr \ + --disable-acl \ + $(GLOBAL_LARGE_FILE_OPTION) \ + --with-zlib \ + --with-bz2lib \ + --without-iconv \ + --with-lzma \ + --without-nettle \ + --without-openssl \ + --without-xml2 \ + --without-expat \ + --without-libregex + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libarchive.targetinstall: + @$(call targetinfo) + + @$(call install_init, libarchive) + @$(call install_fixup, libarchive,PRIORITY,optional) + @$(call install_fixup, libarchive,SECTION,base) + @$(call install_fixup, libarchive,AUTHOR,"Michael Olbrich ") + @$(call install_fixup, libarchive,DESCRIPTION,missing) + + @$(call install_lib, libarchive, 0, 0, 0644, libarchive) +ifdef PTXCONF_LIBARCHIVE_BSDTAR + @$(call install_copy, libarchive, 0, 0, 0755, -, /usr/bin/bsdtar) +endif +ifdef PTXCONF_LIBARCHIVE_BSDCPIO + @$(call install_copy, libarchive, 0, 0, 0755, -, /usr/bin/bsdcpio) +endif + + @$(call install_finish, libarchive) + + @$(call touch) + +# vim: syntax=make -- cgit v1.2.3