aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/tk80/Makefile
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-08-21 04:00:00 +0800
committerjkh <jkh@FreeBSD.org>1997-08-21 04:00:00 +0800
commit9f2fa6c4745b8aaee723e6fd5c410d6e8bfa5206 (patch)
tree039a55542909e0ddd64b3a18a20a2089c62a7771 /x11-toolkits/tk80/Makefile
parentefae08a7bea648e339524bf897041bc22919192f (diff)
downloadfreebsd-ports-gnome-9f2fa6c4745b8aaee723e6fd5c410d6e8bfa5206.tar.gz
freebsd-ports-gnome-9f2fa6c4745b8aaee723e6fd5c410d6e8bfa5206.tar.zst
freebsd-ports-gnome-9f2fa6c4745b8aaee723e6fd5c410d6e8bfa5206.zip
This is the port of tk8.0 to go along with the tcl8.0 port.
Note that this requires the presence of the tcl port, e.g. it needs portions of the unpacked tcl distribution sources. Some unfortunate hackery for this was therefore required in the Makefile.
Diffstat (limited to 'x11-toolkits/tk80/Makefile')
-rw-r--r--x11-toolkits/tk80/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/x11-toolkits/tk80/Makefile b/x11-toolkits/tk80/Makefile
new file mode 100644
index 000000000000..946170ababf6
--- /dev/null
+++ b/x11-toolkits/tk80/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: tk8.0
+# Version required: tk8.0
+# Date created: 19 August 1997
+# Whom: jkh
+#
+# $Id$
+#
+
+DISTNAME= tk8.0
+PKGNAME= tk-8.0
+CATEGORIES= x11
+MASTER_SITES= ftp://ftp.sunlabs.com/pub/tcl/
+
+MAINTAINER= jkh@Freebsd.ORG
+
+LIB_DEPENDS= tcl80\\.1\\.:${PORTSDIR}/lang/tcl80
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/unix
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --enable-shared
+CONFIGURE_ENV= PORTSDIR=${PORTSDIR}
+
+# This is totally vile and gross, but using something like BUILD_DEPENDS
+# instead for this would cause a gratuitous rebuild/reinstall for what is
+# really one of those "I just need some of your bits" cases."
+pre-configure:
+ @if [ ! -d ${PORTSDIR}/lang/tcl80 ]; then \
+ echo "Sorry, this port only works when ${PORTSDIR}/lang/tcl80 is also"; \
+ echo "available. Please correct this problem and try again."; \
+ exit 1; \
+ fi
+ @echo Unpacking and configuring tcl80 sources...
+ @cd ${PORTSDIR}/lang/tcl80 && make configure ECHO_MSG="echo >/dev/null"
+
+post-install:
+ ${LDCONFIG} -m ${PREFIX}/lib
+
+test:
+ cd ${WRKSRC}; make test
+
+.include <bsd.port.mk>