Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. endif
  30. ifeq (${ADK_PACKAGE_WGET_WITH_GNUTLS},y)
  31. CONFIGURE_ARGS+= --with-ssl=gnutls \
  32. --with-libgnutls-prefix="$(STAGING_TARGET_DIR)/usr"
  33. endif
  34. wget-install:
  35. ${INSTALL_DIR} ${IDIR_WGET}/etc ${IDIR_WGET}/usr/bin
  36. ${INSTALL_DATA} ${WRKBUILD}/doc/sample.wgetrc \
  37. ${IDIR_WGET}/etc/wgetrc
  38. ${INSTALL_BIN} ${WRKINST}/usr/bin/wget ${IDIR_WGET}/usr/bin
  39. include ${ADK_TOPDIR}/mk/pkg-bottom.mk