You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/plugins/tcl.tk/tk.mk

32 lines
1.2 KiB

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := tk
$(PKG)_WEBSITE := https://tcl.tk/
$(PKG)_OWNER := https://github.com/highperformancecoder
$(PKG)_IGNORE :=
$(PKG)_VERSION := 8.6.10
$(PKG)_CHECKSUM := 63df418a859d0a463347f95ded5cd88a3dd3aaa1ceecaeee362194bc30f3e386
$(PKG)_SUBDIR := tk$($(PKG)_VERSION)
$(PKG)_FILE := tk$($(PKG)_VERSION)-src.tar.gz
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/tcl/Tcl/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := cc tcl
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)/win' && autoreconf -fi
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/win/configure' \
$(MXE_CONFIGURE_OPTS) \
--enable-threads \
--with-tcl='$(PREFIX)/$(TARGET)/lib' \
$(if $(findstring x86_64,$(TARGET)), --enable-64bit) \
CFLAGS='-D__MINGW_EXCPT_DEFINE_PSDK'
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' LIBS='-lmincore -lnetapi32 -lz -ltclstub86 -limm32 -lcomctl32 -luuid -lole32 -lgdi32 -lcomdlg32'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
endef