first commit
[scm/bb/meta-tizen.git] / recipes-tizen / wget / wget.inc
1 DESCRIPTION = "A Tool for Mirroring FTP and HTTP Servers"
2 HOMEPAGE = "http://www.gnu.org/software/wget/"
3 SECTION = "Productivity/Networking/Web/Utilities"
4 LICENSE = "GPL-3.0+"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by wget 
13 PROVIDES += "wget"
14 RPROVIDES_wget += "wget"
15
16 #PROVIDES by wget-locale  
17 PROVIDES += "wget-locale "
18 RPROVIDES_wget-locale  += "wget-locale "
19 # the PROVIDES rules is ignore "wget-lang-all = 1.13.4"
20 PROVIDES += "wget-lang-all"
21 RPROVIDES_wget-locale  += "wget-lang-all"
22
23 RDEPENDS = ""
24 #RDEPENDS of wget-locale  (${PN}-locale )
25 RDEPENDS_${PN}-locale  += "wget"
26
27
28 DEPENDS = ""
29 #DEPENDS of wget 
30 DEPENDS += "libidn"
31 DEPENDS += "openssl"
32 DEPENDS += "automake-native"
33
34 do_patch() {
35  chmod -Rf a+rX,u+w,g-w,o-w ${S}
36  #setup -q
37  cp ${S}/packaging/wget.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=x86_64-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 --with-ssl=openssl
74  make -j16
75  
76  
77  
78 }
79
80 do_install() {
81  echo export RPM_BUILD_ROOT=${D}
82  LANG=C
83  export LANG
84  unset DISPLAY
85  rm -rf ${D} 
86  mkdir -p ${D} 
87  
88  
89    oe_runmake \
90          DESTDIR=${D} \
91          INSTALL_ROOT=${D} \
92          BINDIR=/usr/bin \
93    install  
94    rm -f ${D}/usr/share/info/dir 
95    find ${D} -regex ".*\.la$" | xargs rm -f -- 
96    find ${D} -regex ".*\.a$" | xargs rm -f --
97  /usr/share/spec2yocto/macro/lib/find-lang.sh ${D} wget
98  
99  
100  
101 }
102
103 PACKAGES = ""
104 PACKAGES += "wget"
105 PACKAGES += "wget-locale"
106
107 wget_files = ""
108 wget_files += "wget.manifest"
109 wget_files += "doc/sample.wgetrc util/rmold.pl"
110 wget_files += "/usr/share/man/*/wget*"
111 wget_files += "/usr/share/info/wget*"
112 wget_files += "/etc/wgetrc"
113 wget_files += "/usr/bin/*"
114
115 wget-locale_files = ""
116
117 FILES_${PN} = "${wget_files}"
118 FILES_${PN}-locale = "${wget-locale_files}"
119
120 PKG_wget= "wget"
121 PKG_wget-locale= "wget-locale"
122
123 require wget-extraconf.inc