aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_cplusplus
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-09-14 00:47:09 +0800
committertijl <tijl@FreeBSD.org>2014-09-14 00:47:09 +0800
commitaf59bdb112c89bcae4d7a1c38c758c70704cfd7f (patch)
tree6562654eee8ece1b060aa54bdf65324983bb1b7e /www/mod_cplusplus
parenta8f29a2e079d368f18be9659fb090e065e9f706e (diff)
downloadfreebsd-ports-gnome-af59bdb112c89bcae4d7a1c38c758c70704cfd7f.tar.gz
freebsd-ports-gnome-af59bdb112c89bcae4d7a1c38c758c70704cfd7f.tar.zst
freebsd-ports-gnome-af59bdb112c89bcae4d7a1c38c758c70704cfd7f.zip
- Convert to USES=libtool
- Replace pre-configure with USE_AUTOTOOLS=libtoolize - Use INSTALL_LIB to install library
Diffstat (limited to 'www/mod_cplusplus')
-rw-r--r--www/mod_cplusplus/Makefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/www/mod_cplusplus/Makefile b/www/mod_cplusplus/Makefile
index ae4c854b1a5b..084da5bb3d0f 100644
--- a/www/mod_cplusplus/Makefile
+++ b/www/mod_cplusplus/Makefile
@@ -3,7 +3,7 @@
PORTNAME= mod_cplusplus
PORTVERSION= 1.5.4
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= SF/modcplusplus/modcplusplus/${PORTNAME}-${PORTVERSION}
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
@@ -11,33 +11,29 @@ PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
MAINTAINER= apache@FreeBSD.org
COMMENT= Apache module for loading C++ objects as handlers
-
+USES= libtool
USE_APACHE= 22
-USE_AUTOTOOLS= autoconf autoheader libtool automake aclocal
-CFLAGS+= -I${LOCALBASE}/include
+USE_AUTOTOOLS= libtoolize aclocal autoconf autoheader automake
+AUTOMAKE_ARGS= -a -c -f
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --with-apxs=${APXS}
-ACLOCAL_ARGS+= -I ${LOCALBASE}/share/aclocal
-AUTOMAKE_ARGS+= -a
+CONFIGURE_ARGS= --with-apxs=${APXS}
+CPPFLAGS+= -I${LOCALBASE}/include
SUB_FILES= pkg-message
SUB_LIST= "APACHEMODDIR=${APACHEMODDIR}"
WRKSRC= ${WRKDIR}/${PORTNAME}
-post-extract:
+post-patch:
${REINPLACE_CMD} -e 's,-Werror,,' ${WRKSRC}/configure.in
-pre-configure:
- (cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} --force --copy)
-
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEINCLUDEDIR}
${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/${APACHEINCLUDEDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
- ${INSTALL_DATA} ${WRKSRC}/src/.libs/libmod_cplusplus.so \
+ ${INSTALL_LIB} ${WRKSRC}/src/.libs/libmod_cplusplus.so \
${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_cplusplus.so
.include <bsd.port.mk>