The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / apr / apr.mk
1 ################################################################################
2 #
3 # apr
4 #
5 ################################################################################
6
7 APR_VERSION = 1.5.1
8 APR_SITE = http://archive.apache.org/dist/apr
9 APR_LICENSE = Apache-2.0
10 APR_LICENSE_FILES = LICENSE
11 APR_INSTALL_STAGING = YES
12 # We have a patch touching configure.in and Makefile.in,
13 # so we need to autoreconf:
14 APR_AUTORECONF = YES
15
16 APR_CONF_ENV = \
17         CC_FOR_BUILD="$(HOSTCC)" \
18         CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \
19         ac_cv_file__dev_zero=yes \
20         ac_cv_func_setpgrp_void=yes \
21         apr_cv_process_shared_works=yes \
22         apr_cv_mutex_robust_shared=no \
23         apr_cv_tcp_nodelay_with_cork=yes \
24         ac_cv_sizeof_struct_iovec=8 \
25         ac_cv_struct_rlimit=yes \
26         ac_cv_o_nonblock_inherited=no \
27         apr_cv_mutex_recursive=yes
28 APR_CONFIG_SCRIPTS = apr-1-config
29
30 # Doesn't even try to guess when cross compiling
31 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
32 APR_CONF_ENV += apr_cv_pthreads_lib="-lpthread"
33 endif
34
35 # Fix lfs detection when cross compiling
36 APR_CONF_ENV += apr_cv_use_lfs64=yes
37
38 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
39 APR_DEPENDENCIES += util-linux
40 endif
41
42 define APR_CLEANUP_UNNEEDED_FILES
43         $(RM) -rf $(TARGET_DIR)/usr/build-1/
44 endef
45
46 APR_POST_INSTALL_TARGET_HOOKS += APR_CLEANUP_UNNEEDED_FILES
47
48 define APR_FIXUP_RULES_MK
49         $(SED) 's%apr_builddir=%apr_builddir=$(STAGING_DIR)%' \
50                 $(STAGING_DIR)/usr/build-1/apr_rules.mk
51         $(SED) 's%apr_builders=%apr_builders=$(STAGING_DIR)%' \
52                 $(STAGING_DIR)/usr/build-1/apr_rules.mk
53         $(SED) 's%top_builddir=%top_builddir=$(STAGING_DIR)%' \
54                 $(STAGING_DIR)/usr/build-1/apr_rules.mk
55 endef
56
57 APR_POST_INSTALL_STAGING_HOOKS += APR_FIXUP_RULES_MK
58
59 $(eval $(autotools-package))