view src/sqlite.mk @ 1995:653bed40084e

update package sqlite
author Mark Brand <mabrand@mabrand.nl>
date Mon, 19 Sep 2011 21:49:30 +0200
parents 067ecccf2f6b
children b8f34b4f066a
line wrap: on
line source

# This file is part of mingw-cross-env.
# See doc/index.html for further information.

# SQLite
PKG             := sqlite
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 3070800
$(PKG)_CHECKSUM := 34852cfd49ddea440eb26a35ad32deee0176a724
$(PKG)_SUBDIR   := $(PKG)-autoconf-$($(PKG)_VERSION)
$(PKG)_FILE     := $(PKG)-autoconf-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE  := http://www.sqlite.org/
$(PKG)_URL      := http://www.sqlite.org/$($(PKG)_FILE)
$(PKG)_DEPS     := gcc

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
    cd '$(1)' && ./configure \
        --host='$(TARGET)' \
        --disable-shared \
        --prefix='$(PREFIX)/$(TARGET)' \
        --disable-readline \
        --disable-threadsafe
    $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef