Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= wget
  5. PKG_VERSION:= 1.16
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= b977fc10ac7a72d987d48136251aeb332f2dced1aabd50d6d56bdf72e2b79101
  8. PKG_DESCR:= retrieving files using http(s) and ftp
  9. PKG_SECTION:= net/http
  10. PKG_URL:= http://www.gnu.org/software/wget/
  11. PKG_SITES:= ${MASTER_SITE_GNU:=wget/}
  12. PKG_BB:= 1
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. PKG_CHOICES_WGET:= WITH_GNUTLS WITH_OPENSSL WITHOUT_SSL
  15. PKGCD_WITHOUT_SSL:= use no SSL
  16. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  17. PKGCS_WITH_OPENSSL:= libopenssl ca-certificates libgmp
  18. PKGCB_WITH_OPENSSL:= openssl
  19. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  20. PKGCS_WITH_GNUTLS:= libgnutls ca-certificates libgmp
  21. PKGCB_WITH_GNUTLS:= gnutls
  22. include ${ADK_TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,WGET,wget,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. ifeq (${ADK_PACKAGE_WGET_WITHOUT_SSL},y)
  25. CONFIGURE_ARGS+= --with-ssl=no
  26. endif
  27. ifeq (${ADK_PACKAGE_WGET_WITH_OPENSSL},y)
  28. CONFIGURE_ARGS+= --with-ssl=openssl \
  29. --with-openssl=yes \
  30. --with-libssl-prefix=${STAGING_TARGET_DIR}
  31. endif
  32. ifeq (${ADK_PACKAGE_WGET_WITH_GNUTLS},y)
  33. CONFIGURE_ARGS+= --with-ssl=gnutls \
  34. --with-libgnutls-prefix="$(STAGING_TARGET_DIR)/usr"
  35. endif
  36. wget-install:
  37. ${INSTALL_DIR} ${IDIR_WGET}/etc ${IDIR_WGET}/usr/bin
  38. ${INSTALL_DATA} ${WRKBUILD}/doc/sample.wgetrc \
  39. ${IDIR_WGET}/etc/wgetrc
  40. ${INSTALL_BIN} ${WRKINST}/usr/bin/wget ${IDIR_WGET}/usr/bin
  41. include ${ADK_TOPDIR}/mk/pkg-bottom.mk