summaryrefslogtreecommitdiffstats
path: root/src/tcl.mk
diff options
context:
space:
mode:
authorRoy Storey <roy.storey@plantandfood.co.nz>2014-05-21 01:02:57 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-06-15 22:32:33 (GMT)
commitc79e4df74697e603d37215bc2909e9f02b1acdc4 (patch)
tree87606efe31f1fbddc023952227640ff55812bb31 /src/tcl.mk
parent647bf358f0474d396f8c48e37776917e16249df7 (diff)
downloadmxe-c79e4df74697e603d37215bc2909e9f02b1acdc4.zip
mxe-c79e4df74697e603d37215bc2909e9f02b1acdc4.tar.gz
mxe-c79e4df74697e603d37215bc2909e9f02b1acdc4.tar.bz2
Add packages tcl and tk
Closes #410 and #412. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/tcl.mk')
-rw-r--r--src/tcl.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/tcl.mk b/src/tcl.mk
new file mode 100644
index 0000000..0530d27
--- /dev/null
+++ b/src/tcl.mk
@@ -0,0 +1,26 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := tcl
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 8.6.1
+$(PKG)_CHECKSUM := 5c83d44152cc0496cc0847a2495f659502a30e40
+$(PKG)_SUBDIR := tcl$($(PKG)_VERSION)
+$(PKG)_FILE := tcl$($(PKG)_VERSION)-src.tar.gz
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/tcl/Tcl/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc sqlite
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://sourceforge.net/projects/tcl/files/Tcl/' | \
+ $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)/win' && ./configure \
+ $(MXE_CONFIGURE_OPTS) \
+ --enable-threads \
+ $(if $(findstring 64,$(TARGET)), --enable-64bit) \
+ CFLAGS=-D__MINGW_EXCPT_DEFINE_PSDK
+ $(MAKE) -C '$(1)/win' install install-private-headers bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+endef