openbsd-ports/www/jserv/Makefile
brad 4c8b958d9b add ONLY_FOR_ARCHS and specify archs which our in-tree Apache supports
DSO's on. This is so we don't get tripped up on archs that do not have DSO
support yet (i.e. ELF-based archs & static only archs).
--
Pointed out by pval@'s macppc broken ports list
2001-12-15 04:07:29 +00:00

49 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2001/12/15 04:07:29 brad Exp $
# Build just the Tomcat connector for our in-tree Apache
COMMENT= "Tomcat (Servlet/JSP) - Apache Connector"
# This port currently only works with archs supporting dynamic loading
# and has Apache that supports DSO's.
ONLY_FOR_ARCHS= i386 m68k sparc
V= 3.2.3
PKGNAME= jserv-${V}
DISTNAME= jakarta-tomcat-${V}-src
CATEGORIES= www
NEED_VERSION= 1.499
MASTER_SITES= http://jakarta.apache.org/builds/jakarta-tomcat/release/v${V}/src/
EXTRACT_SUFX= .zip
HOMEPAGE= http://jakarta.apache.org/
MAINTAINER= Reinhard J. Sammer <reinhard@openbsd.org>
JDK_VERSION= 1.2-blackdown
JAVA_HOME= ${LOCALBASE}/jdk${JDK_VERSION}
RUN_DEPENDS= ::www/jakarta-tomcat
# Apache Software License
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_REGRESS= Yes
do-build:
cd ${WRKSRC}/src/native/apache/jserv && /usr/sbin/apxs -c *.c -o mod_jserv.so
post-build:
strip ${WRKSRC}/src/native/apache/jserv/mod_jserv.so
do-install:
sed 's,y0y0y0,${TRUEPREFIX},' \
<${FILESDIR}/jserv-enable >${WRKSRC}/jserv-enable
${INSTALL_SCRIPT} ${WRKSRC}/jserv-enable ${PREFIX}/sbin/jserv-enable
${INSTALL_DATA} ${WRKSRC}/src/native/apache/jserv/mod_jserv.so ${PREFIX}/lib
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/jserv
${INSTALL_DATA} ${FILESDIR}/server.xml ${PREFIX}/share/examples/jserv
.include "bsd.port.mk"