first commit
[scm/bb/meta-tizen.git] / recipes-tizen / unifdef / unifdef.inc
1 DESCRIPTION = "Removes ifdefs from C files"
2 HOMEPAGE = "http://dotat.at/prog/unifdef/"
3 SECTION = "Development/Tools"
4 LICENSE = "BSD"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by unifdef 
13 PROVIDES += "unifdef"
14 RPROVIDES_unifdef += "unifdef"
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/unifdef.manifest .
24  
25  
26 }
27
28 do_configure() {
29 }
30
31 do_compile() {
32  LANG=C
33  export LANG
34  unset DISPLAY
35  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
36  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
37  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
38  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
39  
40  make -j16 CC=gcc CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables"
41  
42  
43  
44 }
45
46 do_install() {
47  echo export RPM_BUILD_ROOT=${D}
48  LANG=C
49  export LANG
50  unset DISPLAY
51  rm -rf ${D} 
52  mkdir -p ${D} 
53  
54  make install DESTDIR=${D} prefix=/usr
55  
56  
57 }
58
59 PACKAGES = ""
60 PACKAGES += "unifdef"
61
62 unifdef_files = ""
63 unifdef_files += "unifdef.manifest"
64 unifdef_files += "/usr/bin/unifdef"
65 unifdef_files += "/usr/bin/unifdefall"
66 unifdef_files += "/usr/share/man/man1/unifdef.1*"
67 unifdef_files += "/usr/share/man/man1/unifdefall.1*"
68
69 FILES_${PN} = "${unifdef_files}"
70
71 PKG_unifdef= "unifdef"
72
73 require unifdef-extraconf.inc