1
0

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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= wget
  5. PKG_VERSION:= 1.15
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 506df41295afc6486662cc47470b4618
  8. PKG_DESCR:= retrieving files using HTTP(S) and FTP
  9. PKG_SECTION:= www
  10. PKG_BUILDDEP:= autotool
  11. PKG_URL:= http://www.gnu.org/software/wget/
  12. PKG_SITES:= ${MASTER_SITE_GNU:=wget/}
  13. PKG_CHOICES_WGET:= WITH_GNUTLS WITH_OPENSSL WITHOUT_SSL
  14. PKGCD_WITHOUT_SSL:= use no SSL
  15. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  16. PKGCS_WITH_OPENSSL:= libopenssl ca-certificates libgmp
  17. PKGCB_WITH_OPENSSL:= openssl
  18. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  19. PKGCS_WITH_GNUTLS:= libgnutls ca-certificates libgmp
  20. PKGCB_WITH_GNUTLS:= gnutls
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,WGET,wget,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. ifeq (${ADK_PACKAGE_WGET_WITHOUT_SSL},y)
  24. CONFIGURE_ARGS+= --with-ssl=no
  25. endif
  26. ifeq (${ADK_PACKAGE_WGET_WITH_OPENSSL},y)
  27. CONFIGURE_ARGS+= --with-ssl=openssl
  28. endif
  29. ifeq (${ADK_PACKAGE_WGET_WITH_GNUTLS},y)
  30. CONFIGURE_ARGS+= --with-ssl=gnutls \
  31. --with-libgnutls-prefix="$(STAGING_TARGET_DIR)/usr"
  32. endif
  33. AUTOTOOL_STYLE:= autoreconf
  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 ${TOPDIR}/mk/pkg-bottom.mk