summaryrefslogtreecommitdiff
path: root/www/ap-jk/Makefile
blob: aceed98480fce22ece744115d6904d159fef6776 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $NetBSD: Makefile,v 1.28 2005/05/22 20:08:44 jlam Exp $

DISTNAME=	jakarta-tomcat-connectors-${JK_VERSION}-src
PKGNAME=	ap-jk-${JK_VERSION}
JK_VERSION=	1.2.8
CATEGORIES=	www java
MASTER_SITES=	http://www.apache.org/dist/jakarta/tomcat-connectors/jk/source/jk-${JK_VERSION}/

MAINTAINER=	erh@NetBSD.org
HOMEPAGE=	http://jakarta.apache.org/tomcat/connectors-doc/
COMMENT=	Apache connector for accessing Jakarta Tomcat

WRKSRC=			${WRKDIR}/${DISTNAME}/jk/native
APACHE_MODULE=	YES
BUILD_DEFS+=	JK_ENABLE_JNI

GNU_CONFIGURE=	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}"

.if defined(JK_ENABLE_JNI)
USE_JAVA=	yes
CONFIGURE_ARGS+=	--enable-jni
CONFIGURE_ARGS+=	--with-java-home=${JAVA_HOME}
SUBST_FILES.jk-lt+=	jni/Makefile
.endif

.include "../../mk/apache.mk"
.if defined(JK_ENABLE_JNI)
.include "../../mk/java-vm.mk"
.endif
.include "../../mk/bsd.pkg.mk"