Makefile 1.5 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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= wget
  5. PKG_VERSION:= 1.15
  6. PKG_RELEASE:= 2
  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. 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 ${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. AUTOTOOL_STYLE:= autoreconf
  35. wget-install:
  36. ${INSTALL_DIR} ${IDIR_WGET}/etc ${IDIR_WGET}/usr/bin
  37. ${INSTALL_DATA} ${WRKBUILD}/doc/sample.wgetrc \
  38. ${IDIR_WGET}/etc/wgetrc
  39. ${INSTALL_BIN} ${WRKINST}/usr/bin/wget ${IDIR_WGET}/usr/bin
  40. include ${TOPDIR}/mk/pkg-bottom.mk