Mercurial > mxe-octave
annotate src/boost.mk @ 238:2815bfcdc270
corrected typo
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sat, 14 Feb 2009 23:41:35 +0100 |
parents | 29c1b87b3293 |
children | 5bf9071e67b6 |
rev | line source |
---|---|
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
1 # Boost C++ Library |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
2 # http://www.boost.org/ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 PKG := boost |
229
29c1b87b3293
update version of packages binutils and boost
Volker Grabsch <vog@notjusthosting.com>
parents:
220
diff
changeset
|
5 $(PKG)_VERSION := 1_38_0 |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
6 $(PKG)_SUBDIR := boost_$($(PKG)_VERSION) |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
7 $(PKG)_FILE := boost_$($(PKG)_VERSION).tar.bz2 |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/boost/$($(PKG)_FILE) |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_DEPS := gcc zlib bzip2 expat |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 define $(PKG)_UPDATE |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041' | \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 grep 'boost_' | \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 $(SED) -n 's,.*boost_\([1-9][^>]*\)\.tar.*,\1,p' | \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 head -1 |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 endef |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 define $(PKG)_BUILD |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 echo 'using gcc : : $(TARGET)-g++ : ;' > '$(1)/user-config.jam' |
238 | 20 # make the build script generate .a library files instead of .lib |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 $(SED) 's,<target-os>windows : lib ;,<target-os>windows : a ;,' -i '$(1)/tools/build/v2/tools/types/lib.jam' |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 # compile boost jam |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 cd '$(1)/tools/jam/src' && ./build.sh |
220
32eef23cb982
portability fixes for MacOS X
Volker Grabsch <vog@notjusthosting.com>
parents:
208
diff
changeset
|
24 cd '$(1)' && tools/jam/src/bin.*/bjam \ |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 -j '$(JOBS)' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 --user-config=user-config.jam \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 target-os=windows \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 threading=multi \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 link=static \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 threadapi=win32 \ |
208
773d8984b5b8
shorter Boost library names
Volker Grabsch <vog@notjusthosting.com>
parents:
205
diff
changeset
|
31 --layout=system \ |
205
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 --without-mpi \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 --without-python \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 --prefix='$(PREFIX)/$(TARGET)' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 --exec-prefix='$(PREFIX)/$(TARGET)/bin' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 --libdir='$(PREFIX)/$(TARGET)/lib' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 --includedir='$(PREFIX)/$(TARGET)/include' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
38 -sEXPAT_INCLUDE='$(PREFIX)/$(TARGET)/include' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
39 -sEXPAT_LIBPATH='$(PREFIX)/$(TARGET)/lib' \ |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 stage install |
74275a3f9e54
new package: boost (by Andreas Roever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
41 endef |