view src/sqlite.mk @ 935:9993be51f18d

disable the use of the buggy Pthreads-w32 library in packages freetds, guile, libmikmod, libshout, libxml2, sqlite, tiff, vorbis and xerces
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 02 May 2010 17:58:37 +0200
parents 47a4cf923d20
children e878941387e3
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  := 3.6.23.1
$(PKG)_CHECKSUM := 0f4a1390f6405b8f00ecc3694c99ba4e87b40308
$(PKG)_SUBDIR   := sqlite-$($(PKG)_VERSION)
$(PKG)_FILE     := sqlite-amalgamation-$($(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' | \
    grep 'sqlite-amalgamation-' | \
    $(SED) -n 's,.*sqlite-amalgamation-\([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