first commit
[scm/bb/meta-tizen.git] / recipes-tizen / autoconf / autoconf.inc
1 DESCRIPTION = "A GNU Tool for Automatically Configuring Source Code"
2 HOMEPAGE = "http://www.gnu.org/software/autoconf"
3 SECTION = "Development/Tools/Building"
4 LICENSE = "GPL-3.0+"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by autoconf 
13 PROVIDES += "autoconf"
14 RPROVIDES_autoconf += "autoconf"
15
16 RDEPENDS = ""
17 #RDEPENDS of autoconf (${PN})
18 RDEPENDS_${PN} += "m4"
19 RDEPENDS_${PN} += "perl"
20
21
22 DEPENDS = ""
23 #DEPENDS of autoconf 
24 DEPENDS += "xz"
25 DEPENDS += "m4"
26
27 do_patch() {
28  chmod -Rf a+rX,u+w,g-w,o-w ${S}
29  #setup -q -n autoconf-2.69
30  cp ${S}/packaging/autoconf.manifest .
31  
32  
33 }
34
35 do_configure() {
36 }
37
38 do_compile() {
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  
48    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
49    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
50    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
51    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
52          --target=noarch-tizen-linux \
53          --program-prefix= \
54          --prefix=/usr \
55          --exec-prefix=/usr \
56          --bindir=/usr/bin \
57          --sbindir=/usr/sbin \
58          --sysconfdir=/etc \
59          --datadir=/usr/share \
60          --includedir=/usr/include \
61          --libdir=/usr/lib \
62          --libexecdir=/usr/libexec \
63          --localstatedir=/var \
64          --sharedstatedir=/usr/com \
65          --mandir=/usr/share/man \
66          --infodir=/usr/share/info
67  make -j16
68  
69  exit 0
70  trap 'test $? -ne 0 && cat tests/testsuite.log' EXIT
71  make check
72  
73  
74  
75 }
76
77 do_install() {
78  echo export RPM_BUILD_ROOT=${D}
79  LANG=C
80  export LANG
81  unset DISPLAY
82  rm -rf ${D} 
83  mkdir -p ${D} 
84  
85  
86    oe_runmake \
87          DESTDIR=${D} \
88          INSTALL_ROOT=${D} \
89          BINDIR=/usr/bin \
90    install  
91    rm -f ${D}/usr/share/info/dir 
92    find ${D} -regex ".*\.la$" | xargs rm -f -- 
93    find ${D} -regex ".*\.a$" | xargs rm -f -- 
94  rm -f $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/*.el*
95  # info's dir file is not auto ignored on some systems
96  rm -rf ${D}/usr/share/info/dir
97  
98  
99 }
100
101 PACKAGES = ""
102 PACKAGES += "autoconf"
103
104 autoconf_files = ""
105 autoconf_files += "autoconf.manifest"
106 autoconf_files += "COPYING"
107 autoconf_files += "/usr/bin/*"
108 autoconf_files += "/usr/share/autoconf"
109 autoconf_files += "/usr/share/info/*.gz"
110 autoconf_files += "/usr/share/man/man1/*.gz"
111
112 FILES_${PN} = "${autoconf_files}"
113
114 PKG_autoconf= "autoconf"
115
116 require autoconf-extraconf.inc