aboutsummaryrefslogtreecommitdiffstats
path: root/lang/tcl80
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>1998-03-18 08:56:29 +0800
committerjmz <jmz@FreeBSD.org>1998-03-18 08:56:29 +0800
commit980a359917f70c27516c352e5946789abbfb3832 (patch)
tree85e9eb66e9c84920e7cf3c52387622149203effa /lang/tcl80
parent8abe034b61718a2ff444374b340f366f759a80ed (diff)
downloadfreebsd-ports-gnome-980a359917f70c27516c352e5946789abbfb3832.tar.gz
freebsd-ports-gnome-980a359917f70c27516c352e5946789abbfb3832.tar.zst
freebsd-ports-gnome-980a359917f70c27516c352e5946789abbfb3832.zip
Do the Right Thing when building static libraries.
Diffstat (limited to 'lang/tcl80')
-rw-r--r--lang/tcl80/Makefile14
-rw-r--r--lang/tcl80/files/Makefile.lib49
-rw-r--r--lang/tcl80/files/makefile8
3 files changed, 70 insertions, 1 deletions
diff --git a/lang/tcl80/Makefile b/lang/tcl80/Makefile
index de99a3458f9a..9dc790aef49f 100644
--- a/lang/tcl80/Makefile
+++ b/lang/tcl80/Makefile
@@ -3,7 +3,7 @@
# Date created: 19 August 1997
# Whom: jkh
#
-# $Id: Makefile,v 1.3 1997/11/26 22:48:50 pst Exp $
+# $Id: Makefile,v 1.4 1997/12/01 16:50:49 pst Exp $
#
DISTNAME= tcl8.0p2
@@ -18,6 +18,18 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared
CONFIGURE_ENV= PORTSDIR=${PORTSDIR}
+SHLIB_MAJOR= 1
+SHLIB_MINOR= 2
+MAKEFILE= makefile
+
+post-configure:
+ @${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}
+ @${CP} ${FILESDIR}/makefile ${WRKSRC}
+
+pre-build:
+ @cd ${WRKSRC} && ${MAKE} -f Makefile.lib PREFIX=${PREFIX} \
+ SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR}
+
post-install:
${LDCONFIG} -m ${PREFIX}/lib
diff --git a/lang/tcl80/files/Makefile.lib b/lang/tcl80/files/Makefile.lib
new file mode 100644
index 000000000000..aa89c9ecf2e8
--- /dev/null
+++ b/lang/tcl80/files/Makefile.lib
@@ -0,0 +1,49 @@
+NOPROFILE= yes
+LIB= tcl80
+TCL_LIBRARY= ${PREFIX}/lib/tcl8.0
+CFLAGS+= -I. -I./../generic \
+ -DHAVE_GETCWD=1 -DNO_VALUES_H=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1\
+ -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1\
+ -DHAVE_TM_GMTOFF=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1\
+ -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1\
+ -DHAVE_SYS_FILIO_H=1 \
+ -DTCL_LIBRARY=\"${TCL_LIBRARY}\" \
+ -DTCL_PACKAGE_PATH="\"${PREFIX}/lib\""
+
+
+
+GENERIC_DIR= ../generic
+UNIX_DIR= .
+
+SRCS= \
+ $(GENERIC_DIR)/panic.c $(GENERIC_DIR)/regexp.c\
+ $(GENERIC_DIR)/tclAsync.c $(GENERIC_DIR)/tclBasic.c \
+ $(GENERIC_DIR)/tclCkalloc.c $(GENERIC_DIR)/tclClock.c \
+ $(GENERIC_DIR)/tclCmdAH.c $(GENERIC_DIR)/tclCmdIL.c \
+ $(GENERIC_DIR)/tclCmdMZ.c $(GENERIC_DIR)/tclDate.c \
+ $(GENERIC_DIR)/tclEnv.c $(GENERIC_DIR)/tclEvent.c \
+ $(GENERIC_DIR)/tclFCmd.c \
+ $(GENERIC_DIR)/tclFileName.c \
+ $(GENERIC_DIR)/tclGet.c $(GENERIC_DIR)/tclHash.c \
+ $(GENERIC_DIR)/tclHistory.c $(GENERIC_DIR)/tclInterp.c \
+ $(GENERIC_DIR)/tclIO.c $(GENERIC_DIR)/tclIOCmd.c \
+ $(GENERIC_DIR)/tclIOSock.c $(GENERIC_DIR)/tclIOUtil.c \
+ $(GENERIC_DIR)/tclLink.c $(GENERIC_DIR)/tclLoad.c \
+ $(GENERIC_DIR)/tclMain.c $(GENERIC_DIR)/tclNotify.c \
+ $(GENERIC_DIR)/tclParse.c $(GENERIC_DIR)/tclPkg.c \
+ $(GENERIC_DIR)/tclPosixStr.c $(GENERIC_DIR)/tclPreserve.c \
+ $(GENERIC_DIR)/tclProc.c $(GENERIC_DIR)/tclUtil.c \
+ $(GENERIC_DIR)/tclVar.c $(UNIX_DIR)/tclMtherr.c \
+ $(GENERIC_DIR)/tclCompile.c $(GENERIC_DIR)/tclExecute.c\
+ $(GENERIC_DIR)/tclBinary.c $(GENERIC_DIR)/tclCompExpr.c\
+ $(GENERIC_DIR)/tclIndexObj.c $(GENERIC_DIR)/tclListObj.c\
+ $(GENERIC_DIR)/tclNamesp.c\
+ $(GENERIC_DIR)/tclObj.c $(GENERIC_DIR)/tclPipe.c\
+ $(GENERIC_DIR)/tclStringObj.c $(GENERIC_DIR)/tclTimer.c\
+ $(UNIX_DIR)/tclUnixChan.c $(UNIX_DIR)/tclUnixFCmd.c \
+ $(UNIX_DIR)/tclUnixFile.c $(UNIX_DIR)/tclUnixNotfy.c \
+ $(UNIX_DIR)/tclUnixPipe.c $(UNIX_DIR)/tclUnixSock.c \
+ $(UNIX_DIR)/tclUnixTime.c $(UNIX_DIR)/tclUnixInit.c \
+ $(UNIX_DIR)/tclLoadDl.c $(UNIX_DIR)/tclUnixEvent.c
+
+.include <bsd.lib.mk>
diff --git a/lang/tcl80/files/makefile b/lang/tcl80/files/makefile
new file mode 100644
index 000000000000..4f51bb5255f1
--- /dev/null
+++ b/lang/tcl80/files/makefile
@@ -0,0 +1,8 @@
+all:
+ for f in ../generic/*.o; do ln -sf $$f; done
+ make -f Makefile tclsh
+test:
+ make -f Makefile test
+install:
+ make -f Makefile install
+