Mercurial > mxe-octave
annotate src/boost.mk @ 7207:9ed6500e56d3 default tip @
maint: Merge release to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 17 May 2024 20:16:41 +0200 |
parents | 979f5b397e51 |
children |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2252
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:
408
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
4 PKG := boost |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
437
diff
changeset
|
5 $(PKG)_IGNORE := |
3642 | 6 $(PKG)_VERSION := 1.53.0 |
7 $(PKG)_CHECKSUM := e6dd1b62ceed0a51add3dda6f3fc3ce0f636a7f3 | |
1033
dd28c487a6b1
improved version recognition of packages: boost freetype gcc glew libgee mingwrt openssl pcre pdcurses w32api wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
971
diff
changeset
|
8 $(PKG)_SUBDIR := boost_$(subst .,_,$($(PKG)_VERSION)) |
1499
9e587ca588dc
remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents:
1462
diff
changeset
|
9 $(PKG)_FILE := boost_$(subst .,_,$($(PKG)_VERSION)).tar.bz2 |
4538 | 10 $(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/boost/boost/$($(PKG)_VERSION)/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := zlib bzip2 expat |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
4538 | 14 $(WGET) -q -O- 'https://sourceforge.net/projects/boost/files/boost/' | \ |
1822
fe8af58d10b5
provide a faster version recognition for package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
1650
diff
changeset
|
15 $(SED) -n 's,.*/boost/\([0-9][^"/]*\)/".*,\1,p' | \ |
534
fae9e962bf83
avoid beta versions of package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
16 grep -v beta | \ |
1033
dd28c487a6b1
improved version recognition of packages: boost freetype gcc glew libgee mingwrt openssl pcre pdcurses w32api wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
971
diff
changeset
|
17 head -1 |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 endef |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 define $(PKG)_BUILD |
2708 | 21 # context switched library introduced in boost 1.51.0 does not build |
22 rm -r '$(1)/libs/context' | |
2648 | 23 # old version appears to interfere |
3642 | 24 rm -rf '$(HOST_INCDIR)/boost/' |
25 echo 'using gcc : : $(MXE_CXX) : <rc>$(MXE_WINDRES) <archiver>$(MXE_AR) <ranlib>$(MXE_RANDLIB) ;' > '$(1)/user-config.jam' | |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 # compile boost jam |
1931 | 27 cd '$(1)/tools/build/v2/engine' && ./build.sh |
28 cd '$(1)' && tools/build/v2/engine/bin.*/bjam \ | |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 -j '$(JOBS)' \ |
555
96ed9e4e854c
ensure that the cross build won't be confused by /etc/site-config.jam in package boost (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
534
diff
changeset
|
30 --ignore-site-config \ |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 --user-config=user-config.jam \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 target-os=windows \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 threading=multi \ |
3642 | 34 link=$(if $(filter $(BUILD_STATIC),,yes),static,shared) \ |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 threadapi=win32 \ |
437
fa53f265a028
update version of package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
419
diff
changeset
|
36 --layout=tagged \ |
3642 | 37 --disable-icu \ |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
38 --without-mpi \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
39 --without-python \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2843
diff
changeset
|
40 --prefix='$(HOST_PREFIX)' \ |
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:
3012
diff
changeset
|
41 --exec-prefix='$(HOST_BINDIR)' \ |
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:
3012
diff
changeset
|
42 --libdir='$(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:
3012
diff
changeset
|
43 --includedir='$(HOST_INCDIR)' \ |
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:
3012
diff
changeset
|
44 -sEXPAT_INCLUDE='$(HOST_INCDIR)' \ |
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:
3012
diff
changeset
|
45 -sEXPAT_LIBPATH='$(HOST_LIBDIR)' \ |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
46 stage install |
900
27fc875921a2
add test program for package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
899
diff
changeset
|
47 |
3642 | 48 '$(TARGET)-g++' \ |
971
d22c7eaea312
improved coding style in package boost
Volker Grabsch <vog@notjusthosting.com>
parents:
956
diff
changeset
|
49 -W -Wall -Werror -ansi -U__STRICT_ANSI__ -pedantic \ |
3642 | 50 '$(2).cpp' -o '$(1)/test-boost.exe' \ |
1336
01510a2ca4bf
fixed build command of test program of package boost
Lothar May <lothar.imap@googlemail.com>
parents:
1120
diff
changeset
|
51 -DBOOST_THREAD_USE_LIB \ |
2648 | 52 -lboost_serialization-mt \ |
53 -lboost_thread_win32-mt \ | |
54 -lboost_system-mt \ | |
55 -lboost_chrono-mt | |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
56 endef |