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

44 lines
910 B
Makefile

# $OpenBSD: Makefile,v 1.23 2021/02/23 19:39:38 sthen Exp $
COMMENT = fuse-based cryptographic filesystem
V = 1.9.5
DISTNAME = encfs-$V
REVISION = 2
CATEGORIES = security
HOMEPAGE = http://www.arg0.net/encfs
# GPLv3+
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} c crypto fuse intl m ssl tinyxml2
MASTER_SITES = https://github.com/vgough/encfs/releases/download/v$V/
COMPILER = base-clang ports-clang ports-gcc
MODULES = devel/cmake \
lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
MODPY_RUNDEP = No
BUILD_DEPENDS = devel/gettext,-tools
LIB_DEPENDS = devel/gettext,-runtime \
textproc/tinyxml2
CONFIGURE_ARGS = -DUSE_INTERNAL_TINYXML=Off \
-DCMAKE_DISABLE_FIND_PACKAGE_Git=On
CONFIGURE_ENV = CXXFLAGS="-DHAVE_UTIMENSAT -D_DIRENT_HAVE_D_TYPE"
TEST_TARGET = unittests test
.include <bsd.port.mk>
.if ${CHOSEN_COMPILER} == "ports-gcc"
WANTLIB += atomic
.endif