Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # $OpenBSD: Makefile,v 1.72 2017/02/22 02:49:25 danj Exp $
  2. COMMENT = retrieve files from the web via HTTP, HTTPS and FTP
  3. DISTNAME = wget-1.19.1
  4. CATEGORIES = net
  5. HOMEPAGE = https://www.gnu.org/software/wget/
  6. # GPLv3
  7. PERMIT_PACKAGE_CDROM = Yes
  8. WANTLIB = c crypto idn2 pcre psl ssl unistring z
  9. LIB_DEPENDS = converters/libunistring \
  10. devel/libidn2 \
  11. devel/pcre \
  12. net/libpsl
  13. MASTER_SITES = ${MASTER_SITE_GNU:=wget/}
  14. EXTRACT_SUFX = .tar.xz
  15. MODULES = devel/gettext
  16. # some regression tests require python3
  17. MODULES += lang/python
  18. MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
  19. MODPY_BUILDDEP = No
  20. MODPY_RUNDEP = No
  21. TEST_DEPENDS = www/p5-HTTP-Daemon ${MODPY_RUN_DEPENDS}
  22. # Test-proxied-https-auth.px
  23. TEST_DEPENDS += www/p5-HTTP-Message security/p5-IO-Socket-SSL
  24. FAKE_FLAGS = sysconfdir="${PREFIX}/share/examples/wget"
  25. CONFIGURE_STYLE = gnu
  26. CONFIGURE_ARGS = --with-ssl=openssl
  27. # hack to avoid depending on python3 at build time
  28. CONFIGURE_ARGS += PYTHON="" \
  29. am_cv_pathless_PYTHON="${MODPY_BIN}"
  30. CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \
  31. LDFLAGS="-L${LOCALBASE}/lib"
  32. MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC}/build-aux
  33. pre-build:
  34. @${SUBST_CMD} ${WRKSRC}/doc/wget.texi ${WRKSRC}/doc/sample.wgetrc
  35. pre-test:
  36. @ln -s ${MODPY_BIN} ${WRKDIR}/bin/python3
  37. .include <bsd.port.mk>