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/src/sqlite.mk

28 lines
899 B

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := sqlite
$(PKG)_WEBSITE := https://www.sqlite.org/
$(PKG)_DESCR := SQLite
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3330000
$(PKG)_CHECKSUM := 106a2c48c7f75a298a7557bcc0d5f4f454e5b43811cc738b7ca294d6956bbb15
$(PKG)_SUBDIR := $(PKG)-autoconf-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-autoconf-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://www.sqlite.org/2020/$($(PKG)_FILE)
$(PKG)_DEPS := cc
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://www.sqlite.org/download.html' | \
$(SED) -n 's,.*sqlite-autoconf-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--disable-readline \
--enable-threadsafe \
CFLAGS="-Os -DSQLITE_ENABLE_COLUMN_METADATA"
$(MAKE) -C '$(1)' -j 1 install
endef