aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/Makefile1
-rw-r--r--www/tcldom-libxml2/Makefile33
-rw-r--r--www/tcldom-libxml2/files/patch-docs-tcldom.n26
-rw-r--r--www/tcldom-libxml2/files/patch-src-libxml2-configure11
-rw-r--r--www/tcldom-libxml2/pkg-descr9
-rw-r--r--www/tcldom-libxml2/pkg-plist10
6 files changed, 90 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 5bf3c2898fe0..05d9a7db110a 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1291,6 +1291,7 @@
SUBDIR += swish-e
SUBDIR += syndigator
SUBDIR += tcldom
+ SUBDIR += tcldom-libxml2
SUBDIR += tclhttpd
SUBDIR += tclwebtest
SUBDIR += tdiary
diff --git a/www/tcldom-libxml2/Makefile b/www/tcldom-libxml2/Makefile
new file mode 100644
index 000000000000..0ae2a187b354
--- /dev/null
+++ b/www/tcldom-libxml2/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: TclDOM-libxml2
+# Date created: 28 April 2008
+# Whom: Frank Fenor <frank@fenor.de>
+#
+# $FreeBSD$
+#
+
+PORTVERSION= 3.1
+PKGNAMESUFFIX= -libxml2
+
+MAINTAINER= frank@fenor.de
+COMMENT= DOM API for Tcl using libxml2
+
+BUILD_DEPENDS= ${LOCALBASE}/include/tclxml-libxml2/tclxml-libxml2Decls.h:${PORTSDIR}/devel/tclxml-libxml2
+RUN_DEPENDS= ${LOCALBASE}/lib/TclXML_libxml2${PORTVERSION}/libTclXML_libxml2${PORTVERSION}.so:${PORTSDIR}/devel/tclxml-libxml2
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src-libxml2
+PATCHDIR= ${.CURDIR}/files
+USE_LDCONFIG= yes
+NOPORTDOCS= yes
+PLIST_SUB= VER=${PORTVERSION}
+
+MASTERDIR= ${.CURDIR}/../tcldom
+
+post-build:
+ ${REINPLACE_CMD} -e 's|@tcldomxml_LIB_FILE@|libtcldom_libxml2${PORTVERSION}.so|' \
+ -e 's|@tcldomxml_LIB_SPEC@|${LOCALBASE}/lib/tcldom_libxml2${PORTVERSION}/libtcldom_libxml2${PORTVERSION}.so|' \
+ -e 's|@tcldomxmlstub_LIB_FILE@|libtcldom_libxml2stub${PORTVERSION}.a|' \
+ -e 's|@tcldomxml_STUB_LIB_SPEC@|${LOCALBASE}/lib/tcldom_libxml2${PORTVERSION}/libtcldom_libxml2stub${PORTVERSION}.a|' \
+ -e 's|@tcldomxml_STUB_LIB_PATH@|${LOCALBASE}/lib/tcldom_libxml2${PORTVERSION}|' \
+ ${WRKSRC}/tcldomlibxml2Config.sh
+
+.include "${MASTERDIR}/Makefile"
diff --git a/www/tcldom-libxml2/files/patch-docs-tcldom.n b/www/tcldom-libxml2/files/patch-docs-tcldom.n
new file mode 100644
index 000000000000..454109d59eb9
--- /dev/null
+++ b/www/tcldom-libxml2/files/patch-docs-tcldom.n
@@ -0,0 +1,26 @@
+--- ../docs/tcldom.n.orig 2005-11-04 07:36:33.000000000 +0100
++++ ../docs/tcldom.n 2008-04-29 00:14:09.000000000 +0200
+@@ -1,15 +1,15 @@
+ '\"
+ '\" Copyright (c) 2004 Zveno Pty Ltd
+ '\"
+-Zveno makes this software and all associated data and documentation
+-('Software') available free of charge for any purpose. This software may
+-be copied, and distributed, with or without modifications; but this notice
+-must be included on any copy.
++'\" Zveno makes this software and all associated data and documentation
++'\" ('Software') available free of charge for any purpose. This software may
++'\" be copied, and distributed, with or without modifications; but this notice
++'\" must be included on any copy.
+ '\"
+-The Software was developed for research purposes and Zveno does not
+-warrant that it is error free or fit for any purpose. Zveno disclaims any
+-liability for all claims, expenses, losses, damages and costs any user may
+-incur as a result of using, copying or modifying the Software.
++'\" The Software was developed for research purposes and Zveno does not
++'\" warrant that it is error free or fit for any purpose. Zveno disclaims any
++'\" liability for all claims, expenses, losses, damages and costs any user may
++'\" incur as a result of using, copying or modifying the Software.
+ '\"
+ '\"
+ '\" RCS: @(#) $Id: nroff.xsl,v 1.4 2004/01/15 08:18:34 balls Exp $
diff --git a/www/tcldom-libxml2/files/patch-src-libxml2-configure b/www/tcldom-libxml2/files/patch-src-libxml2-configure
new file mode 100644
index 000000000000..ae2a197b84b9
--- /dev/null
+++ b/www/tcldom-libxml2/files/patch-src-libxml2-configure
@@ -0,0 +1,11 @@
+--- configure.orig 2008-04-28 10:45:06.000000000 +0200
++++ configure 2008-04-28 10:45:36.000000000 +0200
+@@ -3192,7 +3192,7 @@
+
+ TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
+
+-
++ TCL_SRC_DIR=${with_tclinclude}
+
+
+ echo $ac_n "checking for Tcl private include files""... $ac_c" 1>&6
diff --git a/www/tcldom-libxml2/pkg-descr b/www/tcldom-libxml2/pkg-descr
new file mode 100644
index 000000000000..13c7d139a18e
--- /dev/null
+++ b/www/tcldom-libxml2/pkg-descr
@@ -0,0 +1,9 @@
+TclDOM is a Tcl language binding for the W3C's DOM standard. DOM
+provides a tree view of an XML document.
+
+TclDOM is a package with several implementations, including one
+written in pure Tcl, one written in C based on TclDOMPro and
+another that wraps the Gnome libxml2 library.
+This port installs the libxml2 part.
+
+WWW: http://tclxml.sourceforge.net/tcldom.html
diff --git a/www/tcldom-libxml2/pkg-plist b/www/tcldom-libxml2/pkg-plist
new file mode 100644
index 000000000000..28410ab2ed7c
--- /dev/null
+++ b/www/tcldom-libxml2/pkg-plist
@@ -0,0 +1,10 @@
+include/tcldom-libxml2/tcldom.h
+include/tcldom-libxml2/tcldomlibxml2.h
+include/tcldom-libxml2/tcldomlibxml2Decls.h
+lib/tcldom_libxml2%%VER%%/impl.tcl
+lib/tcldom_libxml2%%VER%%/libtcldom_libxml2%%VER%%.so
+lib/tcldom_libxml2%%VER%%/libtcldom_libxml2stub%%VER%%.a
+lib/tcldom_libxml2%%VER%%/pkgIndex.tcl
+lib/tcldomlibxml2Config.sh
+@dirrm lib/tcldom_libxml2%%VER%%
+@dirrm include/tcldom-libxml2