summaryrefslogtreecommitdiff
path: root/textproc/tclxml/files/Makefile
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2001-02-13 12:59:35 +0000
committerJames E. Housley <jeh@FreeBSD.org>2001-02-13 12:59:35 +0000
commitc88e11f89652f120373f04427f40737138c98e1e (patch)
tree54f61fc4a90dd71b0da354414fad23e7f2d1b575 /textproc/tclxml/files/Makefile
parentUpgrade to 2.3.3. (diff)
New Port: textproc/tclExpat
This is the TCL interface to the Expat library. I updated it to link against the modern Expat, as installed by the expat2 port. PR: 22879 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
Diffstat (limited to 'textproc/tclxml/files/Makefile')
-rw-r--r--textproc/tclxml/files/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/textproc/tclxml/files/Makefile b/textproc/tclxml/files/Makefile
new file mode 100644
index 000000000000..14d2ccc80f79
--- /dev/null
+++ b/textproc/tclxml/files/Makefile
@@ -0,0 +1,27 @@
+#
+# $FreeBSD$
+#
+SRCS= tclexpat.c
+
+LIB= tclexpat
+SHLIB_MAJOR?= 1
+SHLIB_MINOR?= 1
+INTERNALLIB= static library is useless
+LIBDIR= ${LOCALBASE}/lib
+
+TCL_VERSION?= 8.3
+TCL_DVER?= ${TCL_VERSION:S/.//}
+
+CFLAGS= -I${LOCALBASE}/include/tcl${TCL_VERSION} -I${LOCALBASE}/include -Wall -Werror
+LDADD+= -L${LOCALBASE}/lib -lexpat
+
+USE_STUBS!= . ${LOCALBASE}/lib/tcl${TCL_VERSION}/tclConfig.sh; echo $$TCL_SUPPORTS_STUBS
+
+.if ${USE_STUBS} == "1"
+LDADD+= -ltclstub${TCL_DVER}
+CFLAGS+=-DUSE_TCL_STUBS
+.else
+LDADD+= -ltcl${TCL_DVER}
+.endif
+
+.include <bsd.lib.mk>