summaryrefslogtreecommitdiff
path: root/www/mod_cplusplus/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-12-30 23:24:37 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-12-30 23:24:37 +0000
commite881321bb08506a42198b1f78418d78fe469ba31 (patch)
tree55246408c67b7924ef9ea579785489e857f6b7bf /www/mod_cplusplus/Makefile
parent- Fix undefined references in library (previously it could only be used with (diff)
mod_cplusplus is a proper apache module which allows you to load cpp objects
as handlers for Apache-2.0. It differs from other modules i've seen in that it manages the loading and calling of separate shared objects containing your handler classes. This allows you to easily and cleanly run an entire site with c++ handlers. WWW: http://modcplusplus.sourceforge.net/ PR: ports/107361 Submitted by: Michael Durian <durian at shadetreesoftware.com>
Notes
Notes: svn path=/head/; revision=181111
Diffstat (limited to 'www/mod_cplusplus/Makefile')
-rw-r--r--www/mod_cplusplus/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/www/mod_cplusplus/Makefile b/www/mod_cplusplus/Makefile
new file mode 100644
index 000000000000..a290a33211ee
--- /dev/null
+++ b/www/mod_cplusplus/Makefile
@@ -0,0 +1,47 @@
+# Ports collection makefile for: mod_cplusplus for Apache 2.x
+# Date created: Dec 29, 2006
+# Whom: Michael Durian <durian@shadetreesoftware.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mod_cplusplus
+PORTVERSION= 1.5.2
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= modcplusplus
+
+MAINTAINER= durian@shadetreesoftware.com
+COMMENT= Apache module for loading C++ objects as handlers
+
+USE_APACHE= 2.0+
+USE_AUTOTOOLS= autoconf:259 autoheader:259 libtool:15 automake:19 aclocal:19
+# ${LOCALBASE}/share/aclocal19 does not contain libtool.m4 and that causes
+# problems. Explicitly include ${LOCALBASE}/share/aclocal in the search
+# patch since that directory does contain libtool.m4
+ACLOCAL_ARGS+= -I ${LOCALBASE}/share/aclocal
+AUTOMAKE_ARGS+= -a
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-apxs=${APXS}
+
+SUB_FILES= pkg-message
+SUB_LIST= "APACHEMODDIR=${APACHEMODDIR}"
+
+# Redefine the autotools run order to match what would happen in the
+# autogen.sh script. We cannot use that script directly since it does
+# not use the versioned autotools.
+run-autotools: run-autotools-aclocal patch-autotools run-autotools-autoheader \
+ run-libtoolize run-autotools-automake run-autotools-autoconf
+
+run-libtoolize:
+ @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} \
+ ${LIBTOOLIZE} --force --copy)
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/${APACHEINCLUDEDIR}
+ ${INSTALL_DATA} ${WRKSRC}/src/.libs/libmod_cplusplus.so ${PREFIX}/${APACHEMODDIR}/mod_cplusplus.so
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>