summaryrefslogtreecommitdiffstats
path: root/extra/boost/Pkgfile
blob: 0c3941441a87dd64c2151d8e2595998673362c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Description: Free peer-reviewed portable C++ source libraries
# URL: http://boost.sourceforge.net/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on:

name=boost
version=1.45.0
release=1
_boostver=1_45_0

source=(http://downloads.sourceforge.net/$name/boost_${version//./_}.tar.bz2 )

build() {
        cd boost_${version//./_}
	  
# build bjam
	cd $SRC/boost_${_boostver}/tools/
  	echo "using python : 2.7 : /usr/bin/python2 ;" >> build/v2/user-config.jam
  	cd $SRC/boost_${_boostver}/tools/build/v2/engine/src
  	./build.sh cc

  	_bindir="bin.linuxx86"
  	[ "`uname -m`" = "x86_64" ] && _bindir="bin.linuxx86_64"

  	install -m755 -d $PKG/usr/bin
  	install -m755 ${_bindir}/bjam $PKG/usr/bin/bjam 

# build bcp
  	cd $SRC/boost_${_boostver}/tools/bcp
	
	../build/v2/engine/src/${_bindir}/bjam --toolset=gcc
	
  	install -m755 $SRC/boost_${_boostver}/dist/bin/bcp $PKG/usr/bin/bcp  	


# build libs
  	cd $SRC/boost_${_boostver}

  # default "minimal" install: "release link=shared,static
  #      runtime-link=shared threading=multi"
  # --layout=tagged will add the "-mt" suffix for multithreaded libraries
  # and installs includes in /usr/include/boost.
  # --layout=system no longer adds the -mt suffix for multi-threaded libs.

  	./tools/build/v2/engine/src/${_bindir}/bjam \
		release debug-symbols=off threading=single,multi \
      		runtime-link=shared link=shared,static \
      		cflags=-fno-strict-aliasing \
      		toolset=gcc \
      		--prefix=$PKG/ \
      		-sTOOLS=gcc \
      		--layout=tagged \
      		${MAKEFLAGS} \
      	install

# build pyste
  	cd $SRC/boost_${_boostver}/libs/python/pyste/install
  	python2 setup.py install --root=$PKG 

}