Mercurial > mxe-octave
annotate src/sqlite.mk @ 5504:9f9ed6a325bd
Build SUNDIALS IDA for Linux with KLU (bug #58795).
* src/suitesparse.mk: Create symlinks to libraries without version suffix.
* src/sundials-ida.mk: Unify build rules for all other platforms.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 31 Jul 2020 14:59:35 +0200 |
parents | f058d270b901 |
children | 337467229225 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2288
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
409
diff
changeset
|
3 |
318 | 4 PKG := sqlite |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
432
diff
changeset
|
5 $(PKG)_IGNORE := |
5473
f058d270b901
* src/sqlite.mk: update to v3320300
John Donoghue <john.donoghue@ieee.org>
parents:
5461
diff
changeset
|
6 $(PKG)_VERSION := 3320300 |
f058d270b901
* src/sqlite.mk: update to v3320300
John Donoghue <john.donoghue@ieee.org>
parents:
5461
diff
changeset
|
7 $(PKG)_CHECKSUM := ea14ef2dc4cc7fcbc5ebbb018d3a03faa3a41cb4 |
1498
1bb2b5a951f5
fixed package sqlite
Volker Grabsch <vog@notjusthosting.com>
parents:
1494
diff
changeset
|
8 $(PKG)_SUBDIR := $(PKG)-autoconf-$($(PKG)_VERSION) |
1499
9e587ca588dc
remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents:
1498
diff
changeset
|
9 $(PKG)_FILE := $(PKG)-autoconf-$($(PKG)_VERSION).tar.gz |
5290 | 10 $(PKG)_URL := http://www.sqlite.org/2020/$($(PKG)_FILE) |
5461
d7a5ef5c3882
* src/sqlite.mk: tercap dependancy only for mingw
John Donoghue <john.donoghue@ieee.org>
parents:
5454
diff
changeset
|
11 $(PKG)_DEPS := readline zlib |
d7a5ef5c3882
* src/sqlite.mk: tercap dependancy only for mingw
John Donoghue <john.donoghue@ieee.org>
parents:
5454
diff
changeset
|
12 |
d7a5ef5c3882
* src/sqlite.mk: tercap dependancy only for mingw
John Donoghue <john.donoghue@ieee.org>
parents:
5454
diff
changeset
|
13 ifeq ($(MXE_SYSTEM),mingw) |
d7a5ef5c3882
* src/sqlite.mk: tercap dependancy only for mingw
John Donoghue <john.donoghue@ieee.org>
parents:
5454
diff
changeset
|
14 $(PKG)_DEPS += termcap |
d7a5ef5c3882
* src/sqlite.mk: tercap dependancy only for mingw
John Donoghue <john.donoghue@ieee.org>
parents:
5454
diff
changeset
|
15 endif |
318 | 16 |
17 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2517
diff
changeset
|
18 $(WGET) -q -O- 'http://www.sqlite.org/download.html' | \ |
1494 | 19 $(SED) -n 's,.*sqlite-autoconf-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
318 | 20 head -1 |
21 endef | |
22 | |
23 define $(PKG)_BUILD | |
5105 | 24 if [ $(MXE_NATIVE_BUILD) = no ]; then \ |
25 mkdir '$(1).native' && cd '$(1).native' && '$(1)/configure' \ | |
26 --enable-static --disable-shared \ | |
27 --prefix='$(BUILD_TOOLS_PREFIX)' && \ | |
28 $(MAKE) -C '$(1).native' -j 1 install; \ | |
29 fi | |
5220
3ed8bcdf4672
* src/sqlite.mk: onlt remove pkg-config cflags in windows
John Donoghue
parents:
5183
diff
changeset
|
30 if [ $(MXE_WINDOWS_BUILD) = yes ]; then \ |
3ed8bcdf4672
* src/sqlite.mk: onlt remove pkg-config cflags in windows
John Donoghue
parents:
5183
diff
changeset
|
31 $(SED) -i 's/^Cflags/#Cflags/;' '$(1)/sqlite3.pc.in'; \ |
3ed8bcdf4672
* src/sqlite.mk: onlt remove pkg-config cflags in windows
John Donoghue
parents:
5183
diff
changeset
|
32 fi |
4865
38bc9910cd35
sqlite: autoreconf and use --enable-threadsafe
John W. Eaton <jwe@octave.org>
parents:
4858
diff
changeset
|
33 cd '$(1)' && autoreconf && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
34 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2813
diff
changeset
|
35 $(ENABLE_SHARED_OR_STATIC) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
36 --prefix='$(HOST_PREFIX)' \ |
4735 | 37 CFLAGS="-Os -DSQLITE_ENABLE_COLUMN_METADATA" \ |
4865
38bc9910cd35
sqlite: autoreconf and use --enable-threadsafe
John W. Eaton <jwe@octave.org>
parents:
4858
diff
changeset
|
38 --disable-readline |
4008
332e6ebba379
* sqlite.mk: Avoid parallel build problem.
John W. Eaton <jwe@octave.org>
parents:
4001
diff
changeset
|
39 $(MAKE) -C '$(1)' -j 1 |
5425
7ba6499a66d4
Proj requires the sqlite binary, tiff and curl libs
John Donoghue <john.donoghue@ieee.org>
parents:
5414
diff
changeset
|
40 $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_DOCS) DESTDIR='$(3)' |
318 | 41 endef |