first commit
[scm/bb/meta-tizen.git] / recipes-tizen / boost-jam / boost-jam.inc
1 DESCRIPTION = "An Enhanced Make Replacement"
2 HOMEPAGE = "http://www.boost.org/"
3 SECTION = "Development/Tools/Building"
4 LICENSE = "BSD-3-Clause"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by boost-jam 
13 PROVIDES += "boost-jam"
14 RPROVIDES_boost-jam += "boost-jam"
15
16 RDEPENDS = ""
17
18 DEPENDS = ""
19 #DEPENDS of boost-jam 
20 DEPENDS += "xz"
21
22 do_patch() {
23  chmod -Rf a+rX,u+w,g-w,o-w ${S}
24  #setup -q
25  cp ${S}/packaging/boost-jam.manifest .
26  find . -type f|xargs chmod -R u+w
27  
28  
29 }
30
31 do_configure() {
32 }
33
34 do_compile() {
35  LANG=C
36  export LANG
37  unset DISPLAY
38  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
39  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
40  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
41  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
42  
43  export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"
44  export CFLAGS="$RPM_OPT_FLAGS"
45  LOCATE_TARGET=bin ./build.sh gcc --symbols
46  # Trivial test: -- Documented used of bjam -v: Print the version of jam and exit:
47  bin/bjam -v
48  ln  -s bin bin.linux
49  cd ..
50  tar xvf ${S}/packaging/test.tar.gz
51  ln -s boost-jam-201104 src
52  cd test
53  sh test.sh || if [ $? -gt 5 ]; then sh test.sh;fi
54  
55  
56  
57 }
58
59 do_install() {
60  echo export RPM_BUILD_ROOT=${D}
61  LANG=C
62  export LANG
63  unset DISPLAY
64  rm -rf ${D} 
65  mkdir -p ${D} 
66  
67  mkdir -p ${D}/usr/bin
68  mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/boost-jam-201104
69  install -m 755 bin/bjam ${D}/usr/bin/bjam-201104
70  ln -sf bjam-201104 ${D}/usr/bin/bjam
71  ln -sf bjam-201104 ${D}/usr/bin/jam
72  
73  
74 }
75
76 PACKAGES = ""
77 PACKAGES += "boost-jam"
78
79 boost-jam_files = ""
80 boost-jam_files += "boost-jam.manifest"
81
82 FILES_${PN} = "${boost-jam_files}"
83
84 PKG_boost-jam= "boost-jam"
85
86 require boost-jam-extraconf.inc