aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_jk2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/mod_jk2/Makefile')
-rw-r--r--www/mod_jk2/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/www/mod_jk2/Makefile b/www/mod_jk2/Makefile
index f38831baa471..aa7d087b935d 100644
--- a/www/mod_jk2/Makefile
+++ b/www/mod_jk2/Makefile
@@ -29,14 +29,14 @@ WRKSRC= ${WRKDIR}/jakarta-tomcat-connectors-jk2-${PORTVERSION}-src/jk/native2
.include <bsd.port.pre.mk>
-.if ${ARCH} == "sparc64"
-BROKEN= "Fails to link on sparc64"
-.endif
-
.if exists(${LOCALBASE}/include/apache2/apr.h)
WITH_APACHE2= yes
.endif
+.if ${ARCH} == "sparc64" && !defined(WITH_APACHE2)
+BROKEN= "Fails to link on sparc64"
+.endif
+
.if defined(WITH_APACHE2)
APACHE2= 2
PLIST_SUB= APACHE2=2