first commit
[scm/bb/meta-tizen.git] / recipes-tizen / xdg-utils / xdg-utils.inc
1 DESCRIPTION = "Utilities to uniformly interface desktop environments"
2 HOMEPAGE = "http://portland.freedesktop.org/"
3 SECTION = "System/GUI/Other"
4 LICENSE = "MIT"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by xdg-utils 
13 PROVIDES += "xdg-utils"
14 RPROVIDES_xdg-utils += "xdg-utils"
15
16 #PROVIDES by xdg-utils-docs  
17 PROVIDES += "xdg-utils-docs "
18 RPROVIDES_xdg-utils-docs  += "xdg-utils-docs "
19
20 RDEPENDS = ""
21 #RDEPENDS of xdg-utils (${PN})
22 RDEPENDS_${PN} += "perl-Net-DBus"
23 RDEPENDS_${PN} += "perl-X11-Protocol"
24 RDEPENDS_${PN} += "perl"
25
26
27 DEPENDS = ""
28 #DEPENDS of xdg-utils 
29 DEPENDS += "xz"
30 DEPENDS += "make"
31 DEPENDS += "xmlto"
32 DEPENDS += "links"
33
34 do_patch() {
35  chmod -Rf a+rX,u+w,g-w,o-w ${S}
36  #setup -q -n xdg-utils-20120310
37  cp ${S}/packaging/xdg-utils.manifest .
38  
39  
40 }
41
42 do_configure() {
43 }
44
45 do_compile() {
46  LANG=C
47  export LANG
48  unset DISPLAY
49  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
50  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
51  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
52  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
53  
54  
55    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
56    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
57    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
58    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
59          --target=noarch-tizen-linux \
60          --program-prefix= \
61          --prefix=/usr \
62          --exec-prefix=/usr \
63          --bindir=/usr/bin \
64          --sbindir=/usr/sbin \
65          --sysconfdir=/etc \
66          --datadir=/usr/share \
67          --includedir=/usr/include \
68          --libdir=/usr/lib \
69          --libexecdir=/usr/libexec \
70          --localstatedir=/var \
71          --sharedstatedir=/usr/com \
72          --mandir=/usr/share/man \
73          --infodir=/usr/share/info
74  (cd scripts; make scripts-clean; make scripts)
75  make 
76  
77  
78  
79 }
80
81 do_install() {
82  echo export RPM_BUILD_ROOT=${D}
83  LANG=C
84  export LANG
85  unset DISPLAY
86  rm -rf ${D} 
87  mkdir -p ${D} 
88  
89  
90    oe_runmake \
91          DESTDIR=${D} \
92          INSTALL_ROOT=${D} \
93          BINDIR=/usr/bin \
94    install  
95    rm -f ${D}/usr/share/info/dir 
96    find ${D} -regex ".*\.la$" | xargs rm -f -- 
97    find ${D} -regex ".*\.a$" | xargs rm -f --
98  
99  
100  
101  
102 }
103
104 PACKAGES = ""
105 PACKAGES += "xdg-utils"
106 PACKAGES += "xdg-utils-docs"
107
108 xdg-utils_files = ""
109 xdg-utils_files += "xdg-utils.manifest"
110 xdg-utils_files += "LICENSE"
111 xdg-utils_files += "/usr/bin/xdg-desktop-icon"
112 xdg-utils_files += "/usr/bin/xdg-desktop-menu"
113 xdg-utils_files += "/usr/bin/xdg-email"
114 xdg-utils_files += "/usr/bin/xdg-icon-resource"
115 xdg-utils_files += "/usr/bin/xdg-mime"
116 xdg-utils_files += "/usr/bin/xdg-open"
117 xdg-utils_files += "/usr/bin/xdg-su"
118 xdg-utils_files += "/usr/bin/xdg-screensaver"
119 xdg-utils_files += "/usr/bin/xdg-settings"
120 xdg-utils_files += "/usr/bin/xdg-terminal"
121
122 xdg-utils-docs_files = ""
123 xdg-utils-docs_files += "/usr/share/info"
124 xdg-utils-docs_files += "/usr/share/man"
125
126 FILES_${PN} = "${xdg-utils_files}"
127 FILES_${PN}-docs = "${xdg-utils-docs_files}"
128
129 PKG_xdg-utils= "xdg-utils"
130 PKG_xdg-utils-docs= "xdg-utils-docs"
131
132 require xdg-utils-extraconf.inc