aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-zbar-py/Makefile
blob: 92d183d7fa085b2135b22b9cba0dd67a683418d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>

PORTNAME=	zbar-py
PORTVERSION=	1.0.4
CATEGORIES=	graphics python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Interface to the zbar bar-code reading library

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libzbar.so:graphics/zbar
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR}

USES=		iconv:wchar_t python:3.6+
USE_PYTHON=	autoplist distutils

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/zbar/_zbar*.so

.include <bsd.port.mk>