view src/sqlite.mk @ 4580:5875a3c3404c

update additional PKG_UPDATE rules * src/blas.mk (PKG_UPDATE): add actual check for blas version * src/gnuplot.mk (PKG_UPDATE): implement working macro * src/libarchive.mk, src/librsvg.mk: update PKG_UPDATE macro
author John Donoghue <john.donoghue@ieee.org>
date Sun, 17 Dec 2017 17:09:44 -0500
parents ba6c050833d5
children 2472723fc655
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := sqlite
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 3200100
$(PKG)_CHECKSUM := 48593dcd19473f25fe6fcd08048e13ddbff4c983
$(PKG)_SUBDIR   := $(PKG)-autoconf-$($(PKG)_VERSION)
$(PKG)_FILE     := $(PKG)-autoconf-$($(PKG)_VERSION).tar.gz
$(PKG)_URL      := http://www.sqlite.org/2017/$($(PKG)_FILE)
$(PKG)_DEPS     :=

define $(PKG)_UPDATE
    $(WGET) -q -O- 'http://www.sqlite.org/download.html' | \
    $(SED) -n 's,.*sqlite-autoconf-\([0-9][^>]*\)\.tar.*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    $(SED) -i 's/^Cflags/#Cflags/;' '$(1)/sqlite3.pc.in'
    cd '$(1)' && ./configure \
        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
        $(ENABLE_SHARED_OR_STATIC) \
        --prefix='$(HOST_PREFIX)' \
        --disable-readline \
        --disable-threadsafe
    $(MAKE) -C '$(1)' -j 1
    $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)'
endef