first commit
[scm/bb/meta-tizen.git] / recipes-tizen / libgpg-error / libgpg-error.inc
1 DESCRIPTION = "Library That Defines Common Error Values for All GnuPG Components"
2 HOMEPAGE = "http://www.gnupg.org/"
3 SECTION = "Security/Crypto Libraries"
4 LICENSE = "GPL-2.0+  LGPL-2.1+"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by libgpg-error-devel 
13 PROVIDES += "libgpg-error-devel"
14 RPROVIDES_libgpg-error-devel += "libgpg-error-devel"
15 RPROVIDES_libgpg-error-devel += "libgpg-error-dev"
16
17 #PROVIDES by libgpg-error 
18 PROVIDES += "libgpg-error"
19 RPROVIDES_libgpg-error += "libgpg-error"
20
21 #PROVIDES by libgpg-error-locale  
22 PROVIDES += "libgpg-error-locale "
23 RPROVIDES_libgpg-error-locale  += "libgpg-error-locale "
24 # the PROVIDES rules is ignore "libgpg-error-lang-all = 1.10"
25 PROVIDES += "libgpg-error-lang-all"
26 RPROVIDES_libgpg-error-locale  += "libgpg-error-lang-all"
27
28 RDEPENDS = ""
29 #RDEPENDS of libgpg-error-devel (${PN}-devel)
30 RDEPENDS_${PN}-devel += "glibc-dev"
31 RDEPENDS_${PN}-devel += "libgpg-error"
32
33 #RDEPENDS of libgpg-error-locale  (${PN}-locale )
34 RDEPENDS_${PN}-locale  += "libgpg-error"
35
36
37 DEPENDS = ""
38 #DEPENDS of libgpg-error 
39 DEPENDS += "libtool-cross"
40 #Replace "DEPENDS" on gettext by "inherit gettext"
41 inherit gettext
42
43 do_patch() {
44  chmod -Rf a+rX,u+w,g-w,o-w ${S}
45  #setup -q -n libgpg-error-1.10
46  cp ${S}/packaging/libgpg-error.manifest .
47  
48  
49 }
50
51 do_configure() {
52 }
53
54 do_compile() {
55  LANG=C
56  export LANG
57  unset DISPLAY
58  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
59  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
60  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
61  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
62  
63  autoreconf -fiv
64  
65    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
66    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
67    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
68    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
69          --target=x86_64-tizen-linux \
70          --program-prefix= \
71          --prefix=/usr \
72          --exec-prefix=/usr \
73          --bindir=/usr/bin \
74          --sbindir=/usr/sbin \
75          --sysconfdir=/etc \
76          --datadir=/usr/share \
77          --includedir=/usr/include \
78          --libdir=/usr/lib \
79          --libexecdir=/usr/libexec \
80          --localstatedir=/var \
81          --sharedstatedir=/usr/com \
82          --mandir=/usr/share/man \
83          --infodir=/usr/share/info --disable-static --with-pic
84  make -j16
85  
86  
87  
88 }
89
90 do_install() {
91  echo export RPM_BUILD_ROOT=${D}
92  LANG=C
93  export LANG
94  unset DISPLAY
95  rm -rf ${D} 
96  mkdir -p ${D} 
97  
98  
99    oe_runmake \
100          DESTDIR=${D} \
101          INSTALL_ROOT=${D} \
102          BINDIR=/usr/bin \
103    install  
104    rm -f ${D}/usr/share/info/dir 
105    find ${D} -regex ".*\.la$" | xargs rm -f -- 
106    find ${D} -regex ".*\.a$" | xargs rm -f --
107  rm -r ${D}/usr/share/common-lisp
108  /usr/share/spec2yocto/macro/lib/find-lang.sh ${D} libgpg-error
109  
110  
111 }
112
113 PACKAGES = ""
114 PACKAGES += "libgpg-error-devel"
115 PACKAGES += "libgpg-error-locale"
116 PACKAGES += "libgpg-error"
117
118 libgpg-error-devel_files = ""
119 libgpg-error-devel_files += "libgpg-error.manifest"
120 libgpg-error-devel_files += "/usr/share/aclocal/gpg-error.m4"
121 libgpg-error-devel_files += "/usr/include/*"
122 libgpg-error-devel_files += "/usr/bin/*"
123 libgpg-error-devel_files += "/usr/lib/libgpg-error*.so"
124
125 libgpg-error-locale_files = ""
126
127 libgpg-error_files = ""
128 libgpg-error_files += "libgpg-error.manifest"
129 libgpg-error_files += "GPL-2.0+ ; LGPL-2.1+ ; MIT COPYING.LIB COPYING"
130 libgpg-error_files += "/usr/lib/libgpg-error*.so.*"
131
132 FILES_${PN}-devel = "${libgpg-error-devel_files}"
133 FILES_${PN}-locale = "${libgpg-error-locale_files}"
134 FILES_${PN} = "${libgpg-error_files}"
135
136 PKG_libgpg-error-devel= "libgpg-error-devel"
137 PKG_libgpg-error-locale= "libgpg-error-locale"
138 PKG_libgpg-error= "libgpg-error"
139
140 require libgpg-error-extraconf.inc