Mercurial > mxe-octave
annotate src/qdbm.mk @ 4039:1c72016826aa
of-fl-core: update patch for --enable-64
* src/of-fl-core-1-fixes.patch: update patch
author | John Donoghue |
---|---|
date | Wed, 30 Sep 2015 14:11:45 -0400 |
parents | 13be64f9f16d |
children | 6466e4c98c93 |
rev | line source |
---|---|
2520 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := qdbm | |
5 $(PKG)_IGNORE := | |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := 1.8.78 |
2520 | 7 $(PKG)_CHECKSUM := 8c2ab938c2dad8067c29b0aa93efc6389f0e7076 |
8 $(PKG)_SUBDIR := qdbm-$($(PKG)_VERSION) | |
9 $(PKG)_FILE := qdbm-$($(PKG)_VERSION).tar.gz | |
10 $(PKG)_URL := http://fallabs.com/qdbm/qdbm-1.8.78.tar.gz | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := bzip2 libiconv lzo zlib |
2520 | 12 |
13 define $(PKG)_UPDATE | |
14 wget -q -O- 'http://fallabs.com/qdbm/' | \ | |
15 grep 'qdbm-' | \ | |
16 $(SED) -n 's,.*qdbm-\([0-9][^>]*\)\.tar.*,\1,p' | \ | |
17 head -1 | |
18 endef | |
19 | |
20 define $(PKG)_BUILD | |
2521
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
21 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2521
diff
changeset
|
23 --prefix='$(HOST_PREFIX)' \ |
2521
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
24 --enable-lzo \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
25 --enable-bzip \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
26 --enable-zlib \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
27 --enable-iconv |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
28 $(MAKE) -C '$(1)' -j '$(JOBS)' \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
29 static \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
30 MYBINS= \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
31 MYLIBS=libqdbm.a \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
32 AR=i686-pc-mingw32-ar \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
33 RANLIB=i686-pc-mingw32-ranlib |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
34 $(INSTALL) -d '$(HOST_LIBDIR)/pkgconfig' |
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
35 $(INSTALL) -m644 '$(1)/libqdbm.a' '$(HOST_LIBDIR)' |
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
36 $(INSTALL) -m644 '$(1)/qdbm.pc' '$(HOST_LIBDIR)/pkgconfig/' |
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
37 $(INSTALL) -d '$(HOST_INCDIR)' |
2521
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
38 cd '$(1)' && $(INSTALL) -m644 depot.h curia.h relic.h hovel.h \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
39 cabin.h villa.h vista.h odeum.h '$(HOST_INCDIR)' |
2521
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
40 |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
41 '$(MXE_CC)' \ |
2521
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
42 -W -Wall -Werror -ansi -pedantic \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
43 '$(2).c' -o '$(HOST_BINDIR)/test-qdbm.exe' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
44 `'$(MXE_PKG_CONFIG)' qdbm --cflags --libs` |
2520 | 45 endef |