diff options
author | Tony Theodore <tonyt@logyst.com> | 2017-10-10 11:07:17 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2017-10-10 11:07:17 (GMT) |
commit | 1a293c0fab6b48b42abdc8f0c8aef0b7c9dac8a3 (patch) | |
tree | da339867d1c0ceac9edc2f5d89b6d86da22a1662 /src/tcl.mk | |
parent | 4309cb764c69fd3a10c68e382a1e90f29981a85a (diff) | |
download | mxe-1a293c0fab6b48b42abdc8f0c8aef0b7c9dac8a3.zip mxe-1a293c0fab6b48b42abdc8f0c8aef0b7c9dac8a3.tar.gz mxe-1a293c0fab6b48b42abdc8f0c8aef0b7c9dac8a3.tar.bz2 |
tcl: add native build for sqlcipher
Diffstat (limited to 'src/tcl.mk')
-rw-r--r-- | src/tcl.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/tcl.mk b/src/tcl.mk new file mode 100644 index 0000000..b669a8c --- /dev/null +++ b/src/tcl.mk @@ -0,0 +1,34 @@ +# This file is part of MXE. See LICENSE.md for licensing information. + +PKG := tcl +$(PKG)_WEBSITE := https://tcl.tk/ +$(PKG)_OWNER := https://github.com/highperformancecoder +$(PKG)_IGNORE := +$(PKG)_VERSION := 8.6.4 +$(PKG)_CHECKSUM := 9e6ed94c981c1d0c5f5fefb8112d06c6bf4d050a7327e95e71d417c416519c8d +$(PKG)_SUBDIR := tcl$($(PKG)_VERSION) +$(PKG)_FILE := tcl$($(PKG)_VERSION)-src.tar.gz +$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/tcl/Tcl/$($(PKG)_VERSION)/$($(PKG)_FILE) +$(PKG)_TARGETS := $(BUILD) +$(PKG)_DEPS_$(BUILD) := zlib + +$(PKG)_SOURCE_SUBDIR = $(if $(findstring mingw,$(TARGET)),win,unix) +$(PKG)_CONFIGURE_OPTS = $(if $(findstring mingw,$(TARGET)),CFLAGS=-D__MINGW_EXCPT_DEFINE_PSDK) + +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://sourceforge.net/projects/tcl/files/Tcl/' | \ + $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + # autoreconf to treat unrecognized options as warnings + cd '$(SOURCE_DIR)/$($(PKG)_SOURCE_SUBDIR)' && autoreconf -fi + cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/$($(PKG)_SOURCE_SUBDIR)/configure' \ + $(MXE_CONFIGURE_OPTS) \ + --enable-threads \ + $(if $(findstring x86_64,$(TARGET)), --enable-64bit) \ + $($(PKG)_CONFIGURE_OPTS) + $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' PKGS_DIR= + $(MAKE) -C '$(BUILD_DIR)' -j 1 install install-private-headers PKGS_DIR= +endef |