first commit
[scm/bb/meta-tizen.git] / recipes-tizen / ccache / ccache.inc
1 DESCRIPTION = "A Fast C/C++ Compiler Cache"
2 HOMEPAGE = "http://ccache.samba.org/"
3 SECTION = "Development/Languages/C and C++"
4 LICENSE = "GPLv3+"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by ccache 
13 PROVIDES += "ccache"
14 RPROVIDES_ccache += "ccache"
15 # the PROVIDES rules is ignore "distcc:/usr/bin/ccache  "
16 PROVIDES += "distcc:/usr/bin/ccache"
17 RPROVIDES_ccache += "distcc:/usr/bin/ccache"
18
19 RDEPENDS = ""
20
21 DEPENDS = ""
22 #DEPENDS of ccache 
23 DEPENDS += "zlib-devel"
24
25 do_patch() {
26  chmod -Rf a+rX,u+w,g-w,o-w ${S}
27  #setup -q
28  cp ${S}/packaging/ccache.manifest .
29  
30  
31 }
32
33 do_configure() {
34 }
35
36 do_compile() {
37  LANG=C
38  export LANG
39  unset DISPLAY
40  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
41  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
42  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
43  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
44  
45  
46    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
47    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
48    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
49    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
50          --target=x86_64-tizen-linux \
51          --program-prefix= \
52          --prefix=/usr \
53          --exec-prefix=/usr \
54          --bindir=/usr/bin \
55          --sbindir=/usr/sbin \
56          --sysconfdir=/etc \
57          --datadir=/usr/share \
58          --includedir=/usr/include \
59          --libdir=/usr/lib \
60          --libexecdir=/usr/libexec \
61          --localstatedir=/var \
62          --sharedstatedir=/usr/com \
63          --mandir=/usr/share/man \
64          --infodir=/usr/share/info
65  make -j16
66  
67  
68  
69 }
70
71 do_install() {
72  echo export RPM_BUILD_ROOT=${D}
73  LANG=C
74  export LANG
75  unset DISPLAY
76  rm -rf ${D} 
77  mkdir -p ${D} 
78  
79  make install DESTDIR=${D}
80  
81  
82 }
83
84 PACKAGES = ""
85 PACKAGES += "ccache"
86
87 ccache_files = ""
88 ccache_files += "ccache.manifest"
89 ccache_files += "AUTHORS.* GPL-3.0.txt INSTALL.* LICENSE.* MANUAL.* NEWS.* README.*"
90 ccache_files += "/usr/share/man/man1/ccache.1.gz"
91 ccache_files += "/usr/bin/ccache"
92
93 FILES_${PN} = "${ccache_files}"
94
95 PKG_ccache= "ccache"
96
97 require ccache-extraconf.inc