first commit
[scm/bb/meta-tizen.git] / recipes-tizen / chrpath / chrpath.inc
1 DESCRIPTION = "Modify rpath of compiled programs"
2 HOMEPAGE = "http://www.tux.org/pub/X-Windows/ftp.hungry.com/chrpath/"
3 SECTION = "Development/Tools"
4 LICENSE = "GPL+"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by chrpath 
13 PROVIDES += "chrpath"
14 RPROVIDES_chrpath += "chrpath"
15
16 RDEPENDS = ""
17
18 DEPENDS = ""
19
20 do_patch() {
21  chmod -Rf a+rX,u+w,g-w,o-w ${S}
22  #setup -q
23  cp ${S}/packaging/chrpath.manifest .
24  
25  
26  
27 }
28
29 do_configure() {
30 }
31
32 do_compile() {
33  LANG=C
34  export LANG
35  unset DISPLAY
36  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
37  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
38  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
39  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
40  
41  
42  
43    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
44    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
45    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
46    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
47          --target=x86_64-tizen-linux \
48          --program-prefix= \
49          --prefix=/usr \
50          --exec-prefix=/usr \
51          --bindir=/usr/bin \
52          --sbindir=/usr/sbin \
53          --sysconfdir=/etc \
54          --datadir=/usr/share \
55          --includedir=/usr/include \
56          --libdir=/usr/lib \
57          --libexecdir=/usr/libexec \
58          --localstatedir=/var \
59          --sharedstatedir=/usr/com \
60          --mandir=/usr/share/man \
61          --infodir=/usr/share/info --disable-static
62  # Call make instruction with smp support
63  make -j16
64  
65  
66  
67 }
68
69 do_install() {
70  echo export RPM_BUILD_ROOT=${D}
71  LANG=C
72  export LANG
73  unset DISPLAY
74  rm -rf ${D} 
75  mkdir -p ${D} 
76  
77  
78    oe_runmake \
79          DESTDIR=${D} \
80          INSTALL_ROOT=${D} \
81          BINDIR=/usr/bin \
82    install  
83    rm -f ${D}/usr/share/info/dir 
84    find ${D} -regex ".*\.la$" | xargs rm -f -- 
85    find ${D} -regex ".*\.a$" | xargs rm -f --
86  
87  rm -fr ${D}/usr/doc
88  
89  
90 }
91
92 PACKAGES = ""
93 PACKAGES += "chrpath"
94
95 chrpath_files = ""
96 chrpath_files += "chrpath.manifest"
97 chrpath_files += "AUTHORS COPYING README"
98 chrpath_files += "/usr/bin/chrpath"
99 chrpath_files += "/usr/share/man/man1/chrpath.1*"
100
101 FILES_${PN} = "${chrpath_files}"
102
103 PKG_chrpath= "chrpath"
104
105 require chrpath-extraconf.inc