freebsd-ports/www/mod_jk/Makefile
Muhammad Moinur Rahman 40843b1ccb Mk/Uses/apache.mk: Refactor after removal of older versions
apache22 and apache25 had been removed a long time ago however the
apache.mk file has never been refactored and is out of sync from the
file Mk/bsd.default-versions.mk. These changes refactors the removals of
the older versions. In addition:

- Move some keywords like USE_APACHE, USE_APACHE_BUILD, USE_APACHE_RUN
  from SANITY_DEPRECATED to SANITY_UNSUPPORTED
- Remove apache versions from ports Makefiles as currently there is only
  one available version in the tree. However the version checks are
  still valid and should work flawlessly whenever a new version is
  added. For example USES=apache:2.2+ are simply replaced with
  USES=apache. As currently there are no other versions available for
  test this could not be checked on it's own ground.
- Update FOO_USE=APACHE=yes to FOO_USES=apache
- Remove trailing whitespaces

Approved by:    portmgr
Differential Revision: https://reviews.freebsd.org/D38113
2023-01-25 11:54:07 -06:00

37 lines
1.2 KiB
Makefile

PORTNAME= mod_jk
PORTVERSION= 1.2.48
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= APACHE/tomcat/tomcat-connectors/jk/
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
DISTNAME= tomcat-connectors-${PORTVERSION}-src
MAINTAINER?= girgen@FreeBSD.org
COMMENT?= Apache JK module for connecting to Tomcat using AJP1X
WWW= https://tomcat.apache.org/connectors-doc/
LICENSE= APACHE20
USES= apache gmake
APACHE_VER= 2.0
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-apxs=${APXS}
WRKSRC= ${WRKDIR}/tomcat-connectors-${PORTVERSION}-src/native
SUB_FILES= mod_jk.conf.sample pkg-message
post-patch:
@${REINPLACE_CMD} -e 's|APXSLDFLAGS=@APXSLDFLAGS@|APXSLDFLAGS=@LDFLAGS@|g' \
${WRKSRC}/apache-2.0/Makefile.in
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
${APXS} -i -n jk -S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR} ${WRKSRC}/apache-${APACHE_VER}/mod_jk.so
${MKDIR} ${STAGEDIR}${LOCALBASE}/${APACHEETCDIR}
${INSTALL_DATA} ${WRKDIR}/mod_jk.conf.sample ${STAGEDIR}${LOCALBASE}/${APACHEETCDIR}
${INSTALL_DATA} ${FILESDIR}/workers.properties.sample ${STAGEDIR}${LOCALBASE}/${APACHEETCDIR}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_jk.so
.include <bsd.port.mk>