diff options
Diffstat (limited to 'www/mod_proctitle')
-rw-r--r-- | www/mod_proctitle/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/www/mod_proctitle/Makefile b/www/mod_proctitle/Makefile index fa09709c332d..ff89abd6302b 100644 --- a/www/mod_proctitle/Makefile +++ b/www/mod_proctitle/Makefile @@ -15,14 +15,21 @@ COMMENT= Set httpd process titles to reflect currently processed request MAKE_JOBS_SAFE= yes -USE_APACHE?= 2.0+ +USE_APACHE= 2.0+ GNU_CONFIGURE= yes USE_BZIP2= yes CFLAGS+= -I${LOCALBASE}/include PLIST_FILES= ${APACHEMODDIR}/${PORTNAME}.so +.include <bsd.port.pre.mk> +.if ${APACHE_VERSION} == 20 +CFLAGS+= -I${LOCALBASE}/include/apr-0 +.else +CFLAGS+= -I${LOCALBASE}/include/apr-1 +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/.libs/mod_proctitle.so \ ${PREFIX}/${APACHEMODDIR}/ -.include <bsd.port.mk> +.include <bsd.port.post.mk> |