1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 4f4a673b6d466efa50fbfba796bd84a46ae24e370fa562ede5b21ab53c11a920
10 PKG_DESCR
:= retrieving files using http
(s
) and ftp
11 PKG_SECTION
:= net
/http
12 HOST_BUILDDEP
:= libressl-host
13 PKG_URL
:= http
://www.gnu.org
/software
/wget
/
14 PKG_SITES
:= ${MASTER_SITE_GNU
:=wget
/}
17 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
19 PKG_CHOICES_WGET
:= WITH_LIBRESSL WITH_GNUTLS WITHOUT_SSL
20 PKGCD_WITH_LIBRESSL
:= use libressl for crypto
21 PKGCS_WITH_LIBRESSL
:= libressl ca-certificates libgmp
22 PKGCB_WITH_LIBRESSL
:= libressl
23 PKGCD_WITH_GNUTLS
:= use gnutls for crypto
24 PKGCS_WITH_GNUTLS
:= libgnutls ca-certificates libgmp
25 PKGCB_WITH_GNUTLS
:= gnutls
26 PKGCD_WITHOUT_SSL
:= use no ssl
28 include ${ADK_TOPDIR}/mk
/host.mk
29 include ${ADK_TOPDIR}/mk
/package.mk
31 $(eval
$(call HOST_template
,WGET
,wget
,${PKG_VERSION}-${PKG_RELEASE}))
32 $(eval
$(call PKG_template
,WGET
,wget
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
34 CONFIGURE_ARGS
+= --disable-pcre
36 ifeq (${ADK_PACKAGE_WGET_WITHOUT_SSL},y
)
37 CONFIGURE_ARGS
+= --with-ssl
=no
39 ifeq (${ADK_PACKAGE_WGET_WITH_LIBRESSL},y
)
40 CONFIGURE_ARGS
+= --with-ssl
=openssl \
42 --with-libssl-prefix
=${STAGING_TARGET_DIR}
44 ifeq (${ADK_PACKAGE_WGET_WITH_GNUTLS},y
)
45 CONFIGURE_ARGS
+= --with-ssl
=gnutls \
46 --with-libgnutls-prefix
="$(STAGING_TARGET_DIR)/usr"
49 HOST_CONFIGURE_ARGS
+= --with-ssl
=openssl \
51 --with-libssl-prefix
=$(STAGING_HOST_DIR
)/usr
54 ${INSTALL_DIR} ${IDIR_WGET}/etc
${IDIR_WGET}/usr
/bin
55 ${INSTALL_DATA} ${WRKBUILD}/doc
/sample.wgetrc \
56 ${IDIR_WGET}/etc
/wgetrc
57 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/wget
${IDIR_WGET}/usr
/bin
59 include ${ADK_TOPDIR}/mk
/host-bottom.mk
60 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk