--- Makefile 2007-11-28 13:27:12.000000000 +0300 +++ Makefile 2007-11-28 13:27:16.000000000 +0300 @@ -45,6 +45,14 @@ SUB_LIST+= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX} LIBTOOLFILES= configure +# for slave ports +.if !defined(MASTERDIR) +APACHEDIR= ${.CURDIR} +.else +APACHEDIR= ${MASTERDIR} +.endif + + .if !defined(WITHOUT_APACHE_OPTIONS) OPTIONS= \ APR_FROM_PORTS "Use devel/apr as APR (beware!)" Off \ @@ -54,7 +62,7 @@ SQLITE "Enable SQLite support for apr-dbd" Off \ IPV6 "Enable IPv6 support" On \ PCRE_FROM_PORTS "Use devel/pcre instead of bundled one" Off -.include "${.CURDIR}/Makefile.options" +.include "${APACHEDIR}/Makefile.options" .endif CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ @@ -94,14 +102,6 @@ CONFIGURE_ARGS+= --enable-exception-hook .endif -# for slave ports -.if !defined(MASTERDIR) -APACHEDIR= ${.CURDIR} -.else -APACHEDIR= ${MASTERDIR} -.endif - - .include "${APACHEDIR}/Makefile.doc" .include "${APACHEDIR}/Makefile.modules" .include