45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
# $NetBSD: Makefile.common,v 1.7 2012/10/21 21:33:25 erh Exp $
|
|
# used by www/ap-jk/Makefile
|
|
# used by www/ap2-jk/Makefile
|
|
|
|
JK_VERSION= 1.2.37
|
|
CATEGORIES= www java
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:=tomcat/tomcat-connectors/jk/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://tomcat.apache.org/connectors-doc/
|
|
COMMENT= Apache connector for accessing Jakarta Tomcat
|
|
LICENSE= apache-2.0
|
|
|
|
CONFLICTS= ap-jk-[0-9]*
|
|
|
|
PATCHDIR= ${.CURDIR}/../../www/ap-jk/patches
|
|
DISTINFO_FILE= ${.CURDIR}/../../www/ap-jk/distinfo
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/native
|
|
APACHE_MODULE= YES
|
|
BUILD_DEFS+= JK_ENABLE_JNI
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake
|
|
|
|
SUBST_CLASSES+= jk-lt
|
|
SUBST_STAGE.jk-lt= post-configure
|
|
SUBST_FILES.jk-lt= Makefile common/Makefile apache-2.0/Makefile
|
|
SUBST_SED.jk-lt= -e "s|^\\(LIBTOOL =\\) [^ ]*\$$|\\1 \$$(SHELL) \$$(top_builddir)/libtool|g"
|
|
SUBST_MESSAGE.jk-lt= Fixing libtool references.
|
|
|
|
# XXX The standard --with-apxs2 when using apache2 doesn't work
|
|
CONFIGURE_ARGS+= --with-apxs=${APXS:Q}
|
|
|
|
.if defined(JK_ENABLE_JNI)
|
|
USE_JAVA= yes
|
|
CONFIGURE_ARGS+= --enable-jni
|
|
CONFIGURE_ARGS+= --with-java-home=${JAVA_HOME:Q}
|
|
SUBST_FILES.jk-lt+= jni/Makefile
|
|
.endif
|
|
|
|
.if defined(JK_ENABLE_JNI)
|
|
.include "../../mk/java-vm.mk"
|
|
.endif
|