| 1 |
3 |
ahitrov@rambler.ru |
############################################################################## |
| 2 |
|
|
# $HeadURL: http://svn.dev.rambler.ru/Contenido/trunk/ports/all/apache13/GNUmakefile $ |
| 3 |
|
|
# $Id: GNUmakefile 1509 2010-01-25 09:03:39Z lonerr $ |
| 4 |
|
|
############################################################################### |
| 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 |
|
|
ifndef WITHOUT_REWRITE |
| 12 |
|
|
CONFIGURE_ARGS += --enable-module=rewrite |
| 13 |
|
|
endif |
| 14 |
|
|
|
| 15 |
|
|
ifndef WITHOUT_PERL |
| 16 |
|
|
CONFIGURE_ARGS += --activate-module=src/modules/perl/libperl.a |
| 17 |
|
|
endif |
| 18 |
|
|
|
| 19 |
|
|
CLEAN_PRECMD = ${MAKE_RECURSIVE} pre-clean |
| 20 |
|
|
pre-clean: |
| 21 |
|
|
ifndef WITHOUT_PERL |
| 22 |
|
|
cd ../mod_perl && ${MAKE_RECURSIVE} clean APACHE_WRKSRC=${WRKSRC} |
| 23 |
|
|
endif |
| 24 |
|
|
|
| 25 |
|
|
CONFIGURE_PRECMD = ${MAKE_RECURSIVE} pre-configure |
| 26 |
|
|
pre-configure: |
| 27 |
|
|
cd ${WRKSRC} && patch -p0 < ${PORTDIR}/patch.apache.sighup |
| 28 |
|
|
ifndef WITHOUT_REAPER_DELAY |
| 29 |
|
|
cd ${WRKSRC} && patch -p0 < ${PORTDIR}/patch.reaper.delay |
| 30 |
|
|
endif |
| 31 |
|
|
cd ${WRKSRC} && patch -p0 < ${PORTDIR}/patch-utime |
| 32 |
|
|
sed -i.orig 's/getline/_getline/g' \ |
| 33 |
|
|
$(WRKSRC)/src/support/htdigest.c \ |
| 34 |
|
|
$(WRKSRC)/src/support/htpasswd.c \ |
| 35 |
|
|
$(WRKSRC)/src/support/logresolve.c |
| 36 |
|
|
|
| 37 |
|
|
ifndef WITHOUT_PERL |
| 38 |
|
|
cd ../mod_perl && ${MAKE_RECURSIVE} install APACHE_WRKSRC=${WRKSRC} |
| 39 |
|
|
endif |
| 40 |
|
|
|
| 41 |
|
|
DEINSTALL_PRECMD = ${MAKE_RECURSIVE} pre-deinstall |
| 42 |
|
|
pre-deinstall: |
| 43 |
|
|
ifndef WITHOUT_PERL |
| 44 |
|
|
cd ../mod_perl && ${MAKE_RECURSIVE} deinstall |
| 45 |
|
|
endif |
| 46 |
|
|
|
| 47 |
|
|
|
| 48 |
|
|
include ../../etc/ports.mk |