From 7187ee3b1b0927a2436f546b69960af436ceea42 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Thu, 3 May 2012 19:37:19 +0200 Subject: apr: add Apache's Portable Runtime Library Signed-off-by: Marc Kleine-Budde --- rules/apr.in | 9 ++++++ rules/apr.make | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++ rules/host-apr.in | 5 ++++ rules/host-apr.make | 37 +++++++++++++++++++++++++ 4 files changed, 130 insertions(+) create mode 100644 rules/apr.in create mode 100644 rules/apr.make create mode 100644 rules/host-apr.in create mode 100644 rules/host-apr.make (limited to 'rules') diff --git a/rules/apr.in b/rules/apr.in new file mode 100644 index 000000000..fbda15651 --- /dev/null +++ b/rules/apr.in @@ -0,0 +1,9 @@ +## SECTION=networking + +config APR + tristate + prompt "apr" + help + APR is Apache's Portable Runtime Library, designed to be a + support library that provides a predictable and consistent + interface to underlying platform-specific implementations. diff --git a/rules/apr.make b/rules/apr.make new file mode 100644 index 000000000..8c6791899 --- /dev/null +++ b/rules/apr.make @@ -0,0 +1,79 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Marc Kleine-Budde +# +# 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_APR) += apr + +# +# Paths and names +# +APR_VERSION := 0.9.20 +APR_MD5 := 6dd59a88ee75b8cdf719a90b5a2f2485 +APR := apr-$(APR_VERSION) +APR_SUFFIX := tar.bz2 +APR_URL := http://archive.apache.org/dist/apr/$(APR).$(APR_SUFFIX) +APR_SOURCE := $(SRCDIR)/$(APR).$(APR_SUFFIX) +APR_DIR := $(BUILDDIR)/$(APR) +APR_LICENSE := APLv2 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +APR_CONF_ENV := \ + $(CROSS_ENV) \ + ac_cv_file__dev_zero=yes \ + ac_cv_sizeof_size_t=4 \ + ac_cv_sizeof_ssize_t=4 \ + ac_cv_struct_rlimit=yes \ + apr_cv_mutex_robust_shared=no \ + apr_cv_process_shared_works=yes + +# +# autoconf +# +APR_CONF_TOOL := autoconf +APR_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --enable-threads + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/apr.install.post: + @$(call targetinfo) + @$(call world/install.post, APR) + sed -i -e "s~@SYSROOT@~${PTXDIST_SYSROOT_TARGET}~g" \ + $(PTXDIST_SYSROOT_TARGET)/usr/build/apr_rules.mk + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/apr.targetinstall: + @$(call targetinfo) + + @$(call install_init, apr) + @$(call install_fixup, apr,PRIORITY,optional) + @$(call install_fixup, apr,SECTION,base) + @$(call install_fixup, apr,AUTHOR,"Marc Kleine-Budde ") + @$(call install_fixup, apr,DESCRIPTION,missing) + + @$(call install_lib, apr, 0, 0, 0644, libapr-0) + + @$(call install_finish, apr) + + @$(call touch) + +# vim: syntax=make diff --git a/rules/host-apr.in b/rules/host-apr.in new file mode 100644 index 000000000..19feb1c06 --- /dev/null +++ b/rules/host-apr.in @@ -0,0 +1,5 @@ +## SECTION=hosttools_noprompt + +config HOST_APR + tristate + default ALLYES diff --git a/rules/host-apr.make b/rules/host-apr.make new file mode 100644 index 000000000..2ef54c3a4 --- /dev/null +++ b/rules/host-apr.make @@ -0,0 +1,37 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Marc Kleine-Budde +# +# 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 +# +HOST_PACKAGES-$(PTXCONF_HOST_APR) += host-apr + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +HOST_APR_CONF_TOOL := autoconf + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/host-apr.install.post: + @$(call targetinfo) + @$(call world/install.post, HOST_APR) + @sed -i -e "s~@SYSROOT@~$(PTXDIST_SYSROOT_HOST)~g" \ + $(PTXDIST_SYSROOT_HOST)/build/apr_rules.mk \ + $(PTXDIST_SYSROOT_HOST)/bin/apr-config + @$(call touch) + +# vim: syntax=make -- cgit v1.2.3