summaryrefslogtreecommitdiffstats
path: root/rules/host-apache2.make
blob: a9b39d0f64347b742215a916952dd88304578432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*-makefile-*-
#
# Copyright (C) 2005 by Robert Schwebel
#               2009, 2012 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# 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_APACHE2) += host-apache2

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

HOST_APACHE2_CONF_TOOL := autoconf
HOST_APACHE2_CONF_OPT := \
	--prefix=/ \
	--with-apr=$(PTXDIST_SYSROOT_HOST)/bin/apr-config \
	--with-apr-util=$(PTXDIST_SYSROOT_HOST)/bin/apu-config

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

$(STATEDIR)/host-apache2.compile:
	@$(call targetinfo)
	@make -C $(HOST_APACHE2_DIR)/server gen_test_char
	@make -C $(HOST_APACHE2_DIR)/srclib/pcre dftables
	@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

$(STATEDIR)/host-apache2.install:
	@$(call targetinfo)
	@install -D -m 755 ${HOST_APACHE2_DIR}/server/gen_test_char \
		${HOST_APACHE2_PKGDIR}/bin/gen_test_char
	@install -D -m 755 ${HOST_APACHE2_DIR}/srclib/pcre/dftables \
		${HOST_APACHE2_PKGDIR}/bin/dftables
	@$(call touch)

# vim: syntax=make