# $OpenBSD: Makefile,v 1.90 2021/02/25 21:59:27 sthen Exp $

COMMENT =	marisa-trie bindings for Python (SWIG)

VERSION =	0.2.6
GH_ACCOUNT =	s-yata
GH_PROJECT =	marisa-trie
GH_TAGNAME =	v${VERSION}
DISTNAME =	marisa-${VERSION}
PKGNAME =	py-marisa-${VERSION}

CATEGORIES =	textproc

HOMEPAGE =	https://www.s-yata.jp/marisa-trie/docs/readme.en.html

MODULES =	lang/python

FLAVORS =	python3
FLAVOR =	python3

WRKSRC =	${WRKDIST}/bindings/python

# BSD 2-clause, LGPLv2.1+
PERMIT_PACKAGE =	Yes

WANTLIB =	${COMPILER_LIBCXX} m marisa
CFLAGS =	-I /usr/local/include -Wno-deprecated

COMPILER =	base-clang ports-gcc base-gcc

LIB_DEPENDS  =	textproc/libmarisa

BUILD_DEPENDS =	devel/swig

pre-configure:
	cd ${WRKDIST}/bindings && make swig-python

.include <bsd.port.mk>
