summaryrefslogtreecommitdiff
path: root/recipes/apache2/apache2-native_2.2.14.bb
blob: fcbb7dd34bd8c941dc2ff4002c3ee430d8124a9b (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
SECTION = "net"
DEPENDS = "expat pcre"

inherit native 

PR ="r1"
SRC_URI = "http://www.apache.org/dist/httpd/httpd-${PV}.tar.bz2"

S = "${WORKDIR}/httpd-${PV}"

do_configure () {
	./configure --with-included-apr --prefix=${prefix}
}

do_stage () {
	install -d ${STAGING_BINDIR_NATIVE}
	cp server/gen_test_char ${STAGING_BINDIR_NATIVE}
	cp srclib/apr/apr-1-config ${STAGING_BINDIR_NATIVE}
	cp srclib/apr-util/apu-1-config ${STAGING_BINDIR_NATIVE}
	cp support/apxs ${STAGING_BINDIR_NATIVE}
	chmod 755 ${STAGING_BINDIR_NATIVE}/apxs
	mkdir -p ${STAGING_DIR_NATIVE}//usr/build
	cp build/*.mk ${STAGING_DIR_NATIVE}/usr/build
	cp build/instdso.sh ${STAGING_DIR_NATIVE}/usr/build
	cp .libs/httpd ${STAGING_BINDIR_NATIVE}

	(cd srclib/apr/.libs; tar -cf - libapr-*.so* ) |
	  (cd ${STAGING_LIBDIR_NATIVE}; tar -xf - )
	(cd srclib/apr-util/.libs; tar -cf - libaprutil-*.so* ) |
	  (cd ${STAGING_LIBDIR_NATIVE}; tar -xf - )

	mkdir -p ${STAGING_INCDIR_NATIVE}/apache2
	cp include/* ${STAGING_INCDIR_NATIVE}/apache2
	cp os/unix/os.h ${STAGING_INCDIR_NATIVE}/apache2
	cp os/unix/unixd.h ${STAGING_INCDIR_NATIVE}/apache2

  	cp support/envvars-std ${STAGING_BINDIR_NATIVE}/envvars
    	chmod 755 ${STAGING_BINDIR_NATIVE}/envvars
}

SRC_URI[md5sum] = "a5226203aaf97e5b941c41a71c112704"
SRC_URI[sha256sum] = "b2deab8a5e797fde7a04fb4a5ebfa9c80f767d064dd19dcd2857c94838ae3ac6"