summaryrefslogtreecommitdiff
path: root/www/mod_dtcl/files
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>2000-01-29 05:51:46 +0000
committerSteve Price <steve@FreeBSD.org>2000-01-29 05:51:46 +0000
commit2afc94ccbe99f9dfabdb754001e892aedee09e09 (patch)
treef43625391e6b2ac52acabbd711ba40632766ed77 /www/mod_dtcl/files
parentAdding p5-Apache-ASP version 0.17. (diff)
Adding mod_dtcl version 0.6.4.2.
Embeds a TCL8 interpreter in the Apache webserver. PR: 16020 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
Diffstat (limited to 'www/mod_dtcl/files')
-rw-r--r--www/mod_dtcl/files/Makefile.bsd28
-rw-r--r--www/mod_dtcl/files/patch-aa14
2 files changed, 42 insertions, 0 deletions
diff --git a/www/mod_dtcl/files/Makefile.bsd b/www/mod_dtcl/files/Makefile.bsd
new file mode 100644
index 000000000000..e8d5430e7cab
--- /dev/null
+++ b/www/mod_dtcl/files/Makefile.bsd
@@ -0,0 +1,28 @@
+# If you link against Tcl like so "-ltcl", leave this blank.
+TCL_VERSION?=8.2
+TCL_NDVER?=${TCL_VERSION:S/.//} # same, but without the dot
+
+PREFIX?= /usr/local
+
+INCLUDES=-I${PREFIX}/include/apache -I${PREFIX}/include/tcl${TCL_VERSION}
+
+CC!= ${PREFIX}/sbin/apxs -q CC
+CFLAGS!= ${PREFIX}/sbin/apxs -q CFLAGS CFLAGS_SHLIB
+CFLAGS+= -Wall -DSTATUS -DNO_DBM_REWRITEMAP ${INCLUDES}
+
+LIB= mod_dtcl
+SHLIB_MAJOR=1
+SHLIB_MINOR=0
+
+LDADD= -L${PREFIX}/lib -ltcl${TCL_NDVER}
+LDFLAGS=${LDADD} -lm
+
+NOPROFILE= True # to avoid building profiled library
+INTERNALLIB= True # to avoid building a static version
+
+SRCS= mod_dtcl.c
+NOMAN= True # don't bother with the man-page here, let the port handle it
+
+all: ${SHLIB_NAME} testdtcl
+
+.include <bsd.lib.mk>
diff --git a/www/mod_dtcl/files/patch-aa b/www/mod_dtcl/files/patch-aa
new file mode 100644
index 000000000000..86f3aa87f6cd
--- /dev/null
+++ b/www/mod_dtcl/files/patch-aa
@@ -0,0 +1,14 @@
+--- testdtcl.c.orig Mon Oct 18 10:29:02 1999
++++ testdtcl.c Sun Jan 9 19:13:53 2000
+@@ -14,4 +14,5 @@
+ #include <tcl.h>
+ #include <unistd.h>
++#include <stdlib.h> /* In older FreeBSD, this is where getopt(3) lives */
+
+ #ifndef DEBUG_SCRIPT_DIR
+@@ -229,4 +230,5 @@
+ }
+ }
++ return 0;
+ }
+