annotate src/qdbm.mk @ 5534:372ea4c0afb2

Move of-ocs PKG_XXXX to inst dir and add break patch * src/of-ocs-3-break-fixes.patch, src/of-ocs-4-pkgadd-fixes.patch: new files * dist-files.mk: add ref to files
author John Donoghue <john.donoghue@ieee.org>
date Sun, 13 Sep 2020 08:15:14 -0400
parents 13be64f9f16d
children 6466e4c98c93
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2520
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
1 # This file is part of MXE.
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
2 # See index.html for further information.
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
3
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
4 PKG := qdbm
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
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
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
7 $(PKG)_CHECKSUM := 8c2ab938c2dad8067c29b0aa93efc6389f0e7076
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := qdbm-$($(PKG)_VERSION)
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
9 $(PKG)_FILE := qdbm-$($(PKG)_VERSION).tar.gz
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
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
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
12
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
14 wget -q -O- 'http://fallabs.com/qdbm/' | \
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
15 grep 'qdbm-' | \
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
16 $(SED) -n 's,.*qdbm-\([0-9][^>]*\)\.tar.*,\1,p' | \
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
17 head -1
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
18 endef
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
19
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
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
5f1a945bb458 new package: qdbm
Bishwa Shrestha <bishwa.shrestha@gmail.com>
parents:
diff changeset
45 endef