mxe/src/sqlite.mk

28 lines
899 B
Makefile
Raw Permalink Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2009-04-15 10:03:55 +01:00
PKG := sqlite
2017-03-05 03:41:39 +00:00
$(PKG)_WEBSITE := https://www.sqlite.org/
$(PKG)_DESCR := SQLite
$(PKG)_IGNORE :=
2020-08-16 23:05:53 +01:00
$(PKG)_VERSION := 3330000
$(PKG)_CHECKSUM := 106a2c48c7f75a298a7557bcc0d5f4f454e5b43811cc738b7ca294d6956bbb15
2010-12-11 22:19:47 +00:00
$(PKG)_SUBDIR := $(PKG)-autoconf-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-autoconf-$($(PKG)_VERSION).tar.gz
2020-01-23 15:56:56 +00:00
$(PKG)_URL := https://www.sqlite.org/2020/$($(PKG)_FILE)
$(PKG)_DEPS := cc
2009-04-15 10:03:55 +01:00
define $(PKG)_UPDATE
2017-03-05 03:41:39 +00:00
$(WGET) -q -O- 'https://www.sqlite.org/download.html' | \
2010-12-08 08:32:17 +00:00
$(SED) -n 's,.*sqlite-autoconf-\([0-9][^>]*\)\.tar.*,\1,p' | \
2009-04-15 10:03:55 +01:00
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
2009-04-15 10:03:55 +01:00
--disable-readline \
2014-03-10 21:06:08 +00:00
--enable-threadsafe \
CFLAGS="-Os -DSQLITE_ENABLE_COLUMN_METADATA"
2015-05-08 11:07:30 +01:00
$(MAKE) -C '$(1)' -j 1 install
2009-04-15 10:03:55 +01:00
endef