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

50 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2021/02/23 19:39:38 sthen Exp $
COMMENT = access the Expert Witness Compression Format
VERSION = 20140808
DISTNAME = libewf-${VERSION}
EPOCH = 0
REVISION = 0
SHARED_LIBS += ewf 1.0 # 3.0
CATEGORIES = security
HOMEPAGE = https://github.com/libyal/libewf-legacy/
MAINTAINER = Remi Pointel <rpointel@openbsd.org>
# LGPLv3+
PERMIT_PACKAGE = Yes
WANTLIB = ${MODPY_WANTLIB}
WANTLIB += bfio bz2 c crypto fuse iconv intl m pthread smdev smraw util
WANTLIB += z
MASTER_SITES = https://github.com/libyal/libewf-legacy/releases/download/${VERSION}/
MODULES = lang/python
BUILD_DEPENDS = devel/gettext,-tools
LIB_DEPENDS += devel/libbfio \
archivers/bzip2 \
sysutils/libsmdev \
sysutils/libsmraw
CONFIGURE_STYLE = simple
CONFIGURE_ARGS += --prefix='${PREFIX}' \
--mandir=${PREFIX}/man \
--enable-python3 \
--with-pythondir3=${MODPY_SITEPKG} \
--with-libuuid=no \
AWK=/usr/bin/awk \
MKDIR_P='/bin/mkdir -p'
WRKDIST = ${WRKDIR}/${PKGNAME}
NO_TEST = Yes
.include <bsd.port.mk>