Update recipes generation.
[scm/bb/meta-tizen.git] / recipes-tizen / fdupes / fdupes.inc
1 DESCRIPTION = "Identifying or deleting duplicate files"
2 HOMEPAGE = "http://premium.caribe.net/~adrian2/fdupes.html"
3 SECTION = "Productivity/Archiving/Compression"
4 LICENSE = "X11/MIT"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 inherit autotools-brokensep
11
12 BBCLASSEXTEND += ""
13 PROVIDES = ""
14
15 #PROVIDES by fdupes 
16
17
18 RDEPENDS = ""
19
20 DEPENDS = ""
21
22 do_prep() {
23  cd ${S}
24  chmod -Rf a+rX,u+w,g-w,o-w ${S}
25  #setup -q
26  cp ${S}/packaging/fdupes.manifest .
27  
28  
29 }
30 do_patch_append() {
31     bb.build.exec_func('do_prep', d)
32 }
33
34 do_configure() {
35 }
36
37 do_compile() {
38  cd ${S}
39  LANG=C
40  export LANG
41  unset DISPLAY
42  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
43  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
44  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
45  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
46  
47  make
48  
49  
50  
51 }
52
53 do_install() {
54  echo export RPM_BUILD_ROOT=${D}
55  cd ${S}
56  LANG=C
57  export LANG
58  unset DISPLAY
59  rm -rf ${D} 
60  mkdir -p ${D} 
61  
62  install -D -m755 fdupes ${D}/usr/bin/fdupes
63  install -D -m644 fdupes.1 ${D}/usr/share/man/man1/fdupes.1
64  install -D -m644 ${S}/packaging/macros.fdupes ${D}${sysconfdir}/rpm/macros.fdupes
65  
66  
67 }
68
69
70 fdupes_files = ""
71 fdupes_files += "fdupes.manifest"
72 fdupes_files += "CHANGES"
73 fdupes_files += "${prefix}/bin/fdupes"
74 fdupes_files += "${mandir}/*/*"
75 fdupes_files += "${sysconfdir}/rpm"
76
77 FILES_${PN} = "${fdupes_files}"
78
79 PKG_fdupes= "fdupes"
80
81 require fdupes-extraconf.inc
82