sthen 3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00

51 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.86 2021/02/23 19:39:35 sthen Exp $
COMMENT = retrieve files from the web via HTTP, HTTPS and FTP
DISTNAME = wget-1.20.3
CATEGORIES = net
REVISION = 3
HOMEPAGE = https://www.gnu.org/software/wget/
MAINTAINER = Nam Nguyen <namn@berkeley.edu>
# GPLv3
PERMIT_PACKAGE = Yes
WANTLIB += c crypto iconv idn2 intl pcre2-8 psl ssl unistring z
BUILD_DEPENDS = devel/gettext,-tools
LIB_DEPENDS = converters/libunistring \
devel/gettext,-runtime \
devel/libidn2 \
devel/pcre2 \
net/libpsl
MASTER_SITES = ${MASTER_SITE_GNU:=wget/}
# some regression tests require python3
MODULES += lang/python
MODPY_BUILDDEP = No
MODPY_RUNDEP = No
TEST_DEPENDS = www/p5-HTTP-Daemon ${MODPY_RUN_DEPENDS}
# Test-proxied-https-auth.px
TEST_DEPENDS += www/p5-HTTP-Message security/p5-IO-Socket-SSL
FAKE_FLAGS = sysconfdir="${PREFIX}/share/examples/wget"
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --with-ssl=openssl
# hack to avoid depending on python3 at build time
CONFIGURE_ARGS += PYTHON="" \
am_cv_pathless_PYTHON="${MODPY_BIN}"
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC}/build-aux
pre-build:
@${SUBST_CMD} ${WRKSRC}/doc/wget.texi ${WRKSRC}/doc/sample.wgetrc
.include <bsd.port.mk>