summaryrefslogtreecommitdiff
path: root/www/libwww
diff options
context:
space:
mode:
authorjlam <jlam>2001-06-28 20:58:12 +0000
committerjlam <jlam>2001-06-28 20:58:12 +0000
commit6a346ea59a9a849e0253185e6c636de401918f1f (patch)
tree345e32e5f7f244e991125e01da094779e5c80b64 /www/libwww
parentf4654e2a163e77cdcd5f0d60e9146f1f9405191a (diff)
downloadpkgsrc-6a346ea59a9a849e0253185e6c636de401918f1f.tar.gz
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'www/libwww')
-rw-r--r--www/libwww/buildlink.mk69
1 files changed, 69 insertions, 0 deletions
diff --git a/www/libwww/buildlink.mk b/www/libwww/buildlink.mk
new file mode 100644
index 00000000000..0d507d94984
--- /dev/null
+++ b/www/libwww/buildlink.mk
@@ -0,0 +1,69 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/06/28 20:58:12 jlam Exp $
+#
+# This Makefile fragment is included by packages that use libwww.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.libwww to the dependency pattern
+# for the version of libwww desired.
+# (2) Include this Makefile fragment in the package Makefile,
+# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
+# search path, and
+# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
+# path.
+
+.if !defined(LIBWWW_BUILDLINK_MK)
+LIBWWW_BUILDLINK_MK= # defined
+
+BUILDLINK_DEPENDS.libwww?= libwww>=5.3.2
+DEPENDS+= ${BUILDLINK_DEPENDS.libwww}:../../www/libwww
+
+BUILDLINK_PREFIX.libwww= ${LOCALBASE}
+BUILDLINK_FILES.libwww= include/wwwconf.h
+BUILDLINK_FILES.libwww+= include/w3c-libwww/*
+BUILDLINK_FILES.libwww+= lib/libmd5.*
+BUILDLINK_FILES.libwww+= lib/libpics.*
+BUILDLINK_FILES.libwww+= lib/libwwwapp.*
+BUILDLINK_FILES.libwww+= lib/libwwwcache.*
+BUILDLINK_FILES.libwww+= lib/libwwwcore.*
+BUILDLINK_FILES.libwww+= lib/libwwwdir.*
+BUILDLINK_FILES.libwww+= lib/libwwwfile.*
+BUILDLINK_FILES.libwww+= lib/libwwwftp.*
+BUILDLINK_FILES.libwww+= lib/libwwwgopher.*
+BUILDLINK_FILES.libwww+= lib/libwwwhttp.*
+BUILDLINK_FILES.libwww+= lib/libwwwhtml.*
+BUILDLINK_FILES.libwww+= lib/libwwwinit.*
+BUILDLINK_FILES.libwww+= lib/libwwwmime.*
+BUILDLINK_FILES.libwww+= lib/libwwwmux.*
+BUILDLINK_FILES.libwww+= lib/libwwwnews.*
+BUILDLINK_FILES.libwww+= lib/libwwwssl.*
+BUILDLINK_FILES.libwww+= lib/libwwwstream.*
+BUILDLINK_FILES.libwww+= lib/libwwwtelnet.*
+BUILDLINK_FILES.libwww+= lib/libwwwtrans.*
+BUILDLINK_FILES.libwww+= lib/libwwwutils.*
+BUILDLINK_FILES.libwww+= lib/libwwwxml.*
+BUILDLINK_FILES.libwww+= lib/libwwwzip.*
+BUILDLINK_FILES.libwww+= lib/libxmlparse.*
+BUILDLINK_FILES.libwww+= lib/libxmltok.*
+
+.include "../../devel/zlib/buildlink.mk"
+.include "../../security/openssl/buildlink.mk"
+
+BUILDLINK_TARGETS.libwww= libwww-buildlink
+BUILDLINK_TARGETS.libwww+= libwww-buildlink-config-wrapper
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libwww}
+
+BUILDLINK_CONFIG.libwww= ${LOCALBASE}/bin/libwww-config
+BUILDLINK_CONFIG_WRAPPER.libwww= ${BUILDLINK_DIR}/bin/libwww-config
+
+.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE)
+CONFIGURE_ENV+= LIBWWW_CONFIG="${BUILDLINK_CONFIG_WRAPPER.libwww}"
+.endif
+
+pre-configure: ${BUILDLINK_TARGETS.libwww}
+libwww-buildlink: _BUILDLINK_USE
+libwww-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # LIBWWW_BUILDLINK_MK