freebsd-ports/www/mod_http2/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

44 lines
1.4 KiB
Makefile

PORTNAME= mod_http2
DISTVERSION= 2.0.7
CATEGORIES= www
MASTER_SITES= https://github.com/icing/mod_h2/releases/download/v${DISTVERSION}/
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
MAINTAINER= brnrd@FreeBSD.org
COMMENT= HTTP/2 modules for Apache httpd
WWW= https://github.com/icing/mod_h2
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libnghttp2.so:www/libnghttp2
USES= apache libtool ssl pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-curl
MODULENAME= mod_h2
SUB_FILES= 200_mod_http2.conf 300_mod_proxy_http2.conf
PORTDOCS= README README.md
OPTIONS_DEFINE= DOCS
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d
${INSTALL_DATA} ${WRKDIR}/200_mod_http2.conf \
${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d/200_mod_h2.conf.sample
${INSTALL_DATA} ${WRKDIR}/300_mod_proxy_http2.conf \
${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d/300_mod_proxy_h2.conf.sample
# Rename mod_http2 to mod_h2 to avoid conflict with Apache24
${MV} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_http2.so \
${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${MODULENAME}.so
${MV} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_proxy_http2.so \
${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_proxy_h2.so
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${MODULENAME}.so \
${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_proxy_h2.so
${RM} ${STAGEDIR}${DOCSDIR}/LICENSE
.include <bsd.port.mk>