Mercurial > mxe-octave
annotate src/qdbm.mk @ 3013:bcc26ffe9a0f
use variable for --host and --build configure arguments
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 12:40:32 -0400 |
parents | 100e618349f7 |
children | b6c7244a2f66 |
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 := | |
6 $(PKG)_CHECKSUM := 8c2ab938c2dad8067c29b0aa93efc6389f0e7076 | |
7 $(PKG)_SUBDIR := qdbm-$($(PKG)_VERSION) | |
8 $(PKG)_FILE := qdbm-$($(PKG)_VERSION).tar.gz | |
9 $(PKG)_URL := http://fallabs.com/qdbm/qdbm-1.8.78.tar.gz | |
2521
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
10 $(PKG)_DEPS := gcc bzip2 libiconv lzo zlib |
2520 | 11 |
12 define $(PKG)_UPDATE | |
13 wget -q -O- 'http://fallabs.com/qdbm/' | \ | |
14 grep 'qdbm-' | \ | |
15 $(SED) -n 's,.*qdbm-\([0-9][^>]*\)\.tar.*,\1,p' | \ | |
16 head -1 | |
17 endef | |
18 | |
19 define $(PKG)_BUILD | |
2521
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
20 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
21 $(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
|
22 --prefix='$(HOST_PREFIX)' \ |
2521
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
23 --enable-lzo \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
24 --enable-bzip \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
25 --enable-zlib \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
26 --enable-iconv |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
27 $(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
|
28 static \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
29 MYBINS= \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
30 MYLIBS=libqdbm.a \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
31 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
|
32 RANLIB=i686-pc-mingw32-ranlib |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2521
diff
changeset
|
33 $(INSTALL) -d '$(HOST_PREFIX)/lib/pkgconfig' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2521
diff
changeset
|
34 $(INSTALL) -m644 '$(1)/libqdbm.a' '$(HOST_PREFIX)/lib/' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2521
diff
changeset
|
35 $(INSTALL) -m644 '$(1)/qdbm.pc' '$(HOST_PREFIX)/lib/pkgconfig/' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2521
diff
changeset
|
36 $(INSTALL) -d '$(HOST_PREFIX)/include' |
2521
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
37 cd '$(1)' && $(INSTALL) -m644 depot.h curia.h relic.h hovel.h \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2521
diff
changeset
|
38 cabin.h villa.h vista.h odeum.h '$(HOST_PREFIX)/include/' |
2521
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
39 |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
40 '$(TARGET)-gcc' \ |
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
41 -W -Wall -Werror -ansi -pedantic \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2521
diff
changeset
|
42 '$(2).c' -o '$(HOST_PREFIX)/bin/test-qdbm.exe' \ |
2521
e7c40b6c3e66
package qdbm: static cross-build, enable optional deps, test program
Tony Theodore <tonyt@logyst.com>
parents:
2520
diff
changeset
|
43 `'$(TARGET)-pkg-config' qdbm --cflags --libs` |
2520 | 44 endef |