first commit
[scm/bb/meta-tizen.git] / recipes-tizen / util-macros / util-macros.inc
1 DESCRIPTION = "X.Org build utilities"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Development/System"
4 LICENSE = "MIT/X11"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by util-macros 
13 PROVIDES += "util-macros"
14 RPROVIDES_util-macros += "util-macros"
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 -n util-macros-1.17
23  cp ${S}/packaging/util-macros.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  
41    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
42    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
43    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
44    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
45          --target=x86_64-tizen-linux \
46          --program-prefix= \
47          --prefix=/usr \
48          --exec-prefix=/usr \
49          --bindir=/usr/bin \
50          --sbindir=/usr/sbin \
51          --sysconfdir=/etc \
52          --datadir=/usr/share \
53          --includedir=/usr/include \
54          --libdir=/usr/lib \
55          --libexecdir=/usr/libexec \
56          --localstatedir=/var \
57          --sharedstatedir=/usr/com \
58          --mandir=/usr/share/man \
59          --infodir=/usr/share/info
60  make
61  
62  
63  
64 }
65
66 do_install() {
67  echo export RPM_BUILD_ROOT=${D}
68  LANG=C
69  export LANG
70  unset DISPLAY
71  rm -rf ${D} 
72  mkdir -p ${D} 
73  
74  
75    oe_runmake \
76          DESTDIR=${D} \
77          INSTALL_ROOT=${D} \
78          BINDIR=/usr/bin \
79    install  
80    rm -f ${D}/usr/share/info/dir 
81    find ${D} -regex ".*\.la$" | xargs rm -f -- 
82    find ${D} -regex ".*\.a$" | xargs rm -f --
83  
84  
85    rm -rf ${D}/usr/share/info 
86    rm -rf ${D}/usr/share/doc/packages 
87    rm -rf ${D}/usr/share/doc/util-macros 
88    rm -rf ${D}/usr/share/doc/util-macros-1.17 
89    rm -rf ${D}/usr/share/gtk-doc 
90    rm -rf ${D}/usr/share/doc 
91    rm -rf ${D}/usr/share/man 
92    find ${D} -regex ".*/man/man./.*.[0-9]" | xargs rm -f -- 
93    find ${D} -regex ".*/man/../man./.*.[0-9]" | xargs rm -f -- 
94    find ${D} -regex ".*/man/man./.*.[0-9]pm" | xargs rm -f --
95  rm -rf ${D}/usr/share/util-macros/INSTALL
96  
97  
98 }
99
100 PACKAGES = ""
101 PACKAGES += "util-macros"
102
103 util-macros_files = ""
104 util-macros_files += "util-macros.manifest"
105 util-macros_files += "/usr/share/aclocal/*"
106 util-macros_files += "/usr/share/pkgconfig/*"
107
108 FILES_${PN} = "${util-macros_files}"
109
110 PKG_util-macros= "util-macros"
111
112 require util-macros-extraconf.inc