summaryrefslogtreecommitdiff
path: root/www/apache/buildlink2.mk
diff options
context:
space:
mode:
Diffstat (limited to 'www/apache/buildlink2.mk')
-rw-r--r--www/apache/buildlink2.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/www/apache/buildlink2.mk b/www/apache/buildlink2.mk
new file mode 100644
index 00000000000..f370d53398b
--- /dev/null
+++ b/www/apache/buildlink2.mk
@@ -0,0 +1,33 @@
+# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:40:17 jlam Exp $
+
+.if !defined(APACHE_BUILDLINK2_MK)
+APACHE_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= apache
+BUILDLINK_DEPENDS.apache?= apache{,6}-1.3.*
+BUILDLINK_PKGSRCDIR.apache?= ../../www/apache
+
+# For "apxs":
+BUILD_DEPENDS+= perl>=${PERL5_REQD}:../../lang/perl5
+.if defined(APACHE_MODULE)
+BUILDLINK_DEPMETHOD.apache?= full
+.else
+BUILDLINK_DEPMETHOD.apache?= build
+.endif
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.apache=apache
+BUILDLINK_PREFIX.apache_DEFAULT= ${LOCALBASE}
+
+BUILDLINK_FILES.apache= include/httpd/*/*.[ch]
+BUILDLINK_FILES.apache+= include/httpd/*.[ch]
+
+BUILDLINK_TARGETS+= apache-buildlink
+
+APXS?= ${BUILDLINK_PREFIX.apache}/sbin/apxs
+.if defined(GNU_CONFIGURE)
+CONFIGURE_ARGS+= --with-apxs="${APXS}"
+.endif
+
+apache-buildlink: _BUILDLINK_USE
+
+.endif # APACHE_BUILDLINK2_MK