Line # Revision Author
1 3 ahitrov@rambler.ru ##############################################################################
2 499 ahitrov # $HeadURL: http://svn.dev.rambler.ru/Contenido/branches/utf8/ports/all/apache13/GNUmakefile $
3 # $Id: GNUmakefile 1526 2010-03-29 11:11:10Z ahitrov $
4 3 ahitrov@rambler.ru ###############################################################################
5
6 PORTVERSION = 1.3.41
7 DISTFILE = apache_${PORTVERSION}.tar.gz
8 MASTER_POST_SITES = http://archive.apache.org/dist/httpd
9 CONFIGURE_ARGS = --prefix=${PREFIX}/apache \
10 --disable-rule=EXPAT
11 499 ahitrov
12 OPSYS ?= ${shell uname}
13 ifeq (${OPSYS},Linux)
14 CONFIGURE_COMMAND ?= OPTIM="-fgnu89-inline" bash ./configure
15 else
16 CONFIGURE_COMMAND ?= OPTIM="-fgnu89-inline" ./configure
17 endif
18
19
20 3 ahitrov@rambler.ru ifndef WITHOUT_REWRITE
21 CONFIGURE_ARGS += --enable-module=rewrite
22 endif
23
24 ifndef WITHOUT_PERL
25 CONFIGURE_ARGS += --activate-module=src/modules/perl/libperl.a
26 endif
27
28 CLEAN_PRECMD = ${MAKE_RECURSIVE} pre-clean
29 pre-clean:
30 ifndef WITHOUT_PERL
31 cd ../mod_perl && ${MAKE_RECURSIVE} clean APACHE_WRKSRC=${WRKSRC}
32 endif
33
34 CONFIGURE_PRECMD = ${MAKE_RECURSIVE} pre-configure
35 pre-configure:
36 cd ${WRKSRC} && patch -p0 < ${PORTDIR}/patch.apache.sighup
37 ifndef WITHOUT_REAPER_DELAY
38 cd ${WRKSRC} && patch -p0 < ${PORTDIR}/patch.reaper.delay
39 endif
40 cd ${WRKSRC} && patch -p0 < ${PORTDIR}/patch-utime
41 sed -i.orig 's/getline/_getline/g' \
42 $(WRKSRC)/src/support/htdigest.c \
43 $(WRKSRC)/src/support/htpasswd.c \
44 $(WRKSRC)/src/support/logresolve.c
45
46 ifndef WITHOUT_PERL
47 cd ../mod_perl && ${MAKE_RECURSIVE} install APACHE_WRKSRC=${WRKSRC}
48 endif
49
50 DEINSTALL_PRECMD = ${MAKE_RECURSIVE} pre-deinstall
51 pre-deinstall:
52 ifndef WITHOUT_PERL
53 cd ../mod_perl && ${MAKE_RECURSIVE} deinstall
54 endif
55
56
57 include ../../etc/ports.mk