summaryrefslogtreecommitdiffstats
path: root/rules/host-apache2.make
blob: a58662d682a9f846a9f7639f7ba921c3d2f43ce2 (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
50
51
52
53
54
55
56
57
58
59
# -*-makefile-*-
#
# Copyright (C) 2005 by Robert Schwebel
#               2009 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

#
# Paths and names
#
HOST_APACHE2		= $(APACHE2)
HOST_APACHE2_DIR	= $(HOST_BUILDDIR)/$(HOST_APACHE2)

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

HOST_APACHE2_ENV 	:= $(HOST_ENV)

#
# autoconf
#
HOST_APACHE2_AUTOCONF := --prefix=/

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

$(STATEDIR)/host-apache2.compile:
	@$(call targetinfo)
	cd $(HOST_APACHE2_DIR)/srclib/apr-util/uri && $(HOST_APACHE2_ENV) $(MAKE)
	cd $(HOST_APACHE2_DIR)/srclib/pcre && $(HOST_APACHE2_ENV) $(MAKE) dftables
	cd $(HOST_APACHE2_DIR)/server && $(HOST_APACHE2_ENV) $(MAKE) gen_test_char
	@$(call touch)

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

$(STATEDIR)/host-apache2.install:
	@$(call targetinfo)
	install -D -m 755 "$(HOST_APACHE2_DIR)/srclib/apr-util/uri/gen_uri_delims" \
		"$(HOST_APACHE2_PKGDIR)/bin/apache2/gen_uri_delims"
	install -D -m 755 "$(HOST_APACHE2_DIR)/srclib/pcre/dftables" \
		"$(HOST_APACHE2_PKGDIR)/bin/apache2/dftables"
	install -D -m 755 "$(HOST_APACHE2_DIR)/server/gen_test_char" \
		"$(HOST_APACHE2_PKGDIR)/bin/apache2/gen_test_char"
	@$(call touch)

# vim: syntax=make