mirror of
https://git.freebsd.org/ports.git
synced 2025-07-14 15:59:18 -04:00
- Replace pre-configure with USE_AUTOTOOLS=libtoolize - Use INSTALL_LIB to install library
39 lines
1 KiB
Makefile
39 lines
1 KiB
Makefile
# Created by: Michael Durian <durian@shadetreesoftware.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mod_cplusplus
|
|
PORTVERSION= 1.5.4
|
|
PORTREVISION= 3
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/modcplusplus/modcplusplus/${PORTNAME}-${PORTVERSION}
|
|
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= apache@FreeBSD.org
|
|
COMMENT= Apache module for loading C++ objects as handlers
|
|
|
|
USES= libtool
|
|
USE_APACHE= 22
|
|
USE_AUTOTOOLS= libtoolize aclocal autoconf autoheader automake
|
|
AUTOMAKE_ARGS= -a -c -f
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-apxs=${APXS}
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= "APACHEMODDIR=${APACHEMODDIR}"
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,-Werror,,' ${WRKSRC}/configure.in
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEINCLUDEDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/${APACHEINCLUDEDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
|
|
${INSTALL_LIB} ${WRKSRC}/src/.libs/libmod_cplusplus.so \
|
|
${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_cplusplus.so
|
|
|
|
.include <bsd.port.mk>
|