freebsd-ports/www/apache-jserv/Makefile
Ernst de Haan 8a30760000 Convert this port to use the new bsd.java.mk structure, so it
doesn't try to install jdk-1.1.8 when the user has a newer
version of java installed.

Submitted by:	Dave Glowacki <dglo@hyde.ssec.wisc.edu>
PR:		39902
2002-08-29 18:50:11 +00:00

57 lines
1.5 KiB
Makefile

# New ports collection makefile for: apache mod_jserv
# Date created: 1999/05/29
# Whom: Kensaku Masuda <greg@greg.rim.or.jp>
#
# $FreeBSD$
#
PORTNAME= apache-jserv
PORTVERSION= 1.1.2
PORTREVISION= 1
CATEGORIES= www java
MASTER_SITES= http://java.apache.org/jserv/dist/
DISTNAME= ApacheJServ-${PORTVERSION}
MAINTAINER= greg@greg.rim.or.jp
USE_JAVA= 1.1+
NEED_JAVAC= yes
BUILD_DEPENDS= ${LOCALBASE}/sbin/apachectl:${PORTSDIR}/www/apache13\
${LOCALBASE}/share/java/classes/jsdk.jar:${PORTSDIR}/java/jsdk
RUN_DEPENDS= ${JAVAVM}:${PORTSDIR}/java/javavmwrapper\
${LOCALBASE}/sbin/apachectl:${PORTSDIR}/www/apache13\
${LOCALBASE}/share/java/classes/jsdk.jar:${PORTSDIR}/java/jsdk
USE_GMAKE= yes
GMAKE= ${LOCALBASE}/bin/gmake # Must have the full path.
USE_LIBTOOL= yes
USE_PERL5= yes
JAVAVM?= ${LOCALBASE}/bin/javavm
CONFIGURE_ENV= PERL=${PERL}
CONFIGURE_ARGS= --prefix=${PREFIX}\
--libexecdir=${LOCALBASE}/libexec/apache\
--libdir=${LOCALBASE}/libexec/apache\
--with-logdir=/var/log\
--sysconfdir=${PREFIX}/etc/apache\
--with-apxs=${LOCALBASE}/sbin/apxs\
--with-jdk-home=${JAVA_HOME}\
--with-JSDK=${LOCALBASE}/share/java/classes/jsdk.jar\
--with-java=${JAVA}\
--with-javac=${JAVAC}\
--with-servlets=${PREFIX}/share/java/servlets\
--with-gnu-ld\
--enable-compressed-jar\
--enable-EAPI
.if defined (WITH_JIKES)
CONFIGURE_ARGS+=--with-javac=${LOCALBASE}/bin/jikes
.endif
pre-install:
${MKDIR} ${PREFIX}/share/java/classes
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>