aboutsummaryrefslogtreecommitdiff
path: root/archivers/py-brotlicffi/Makefile
blob: c0f993e110d9ce5afef5fba8aa9aa6e8f82fe970 (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
25
26
27
28
29
30
31
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>

PORTNAME=	brotlicffi
PORTVERSION=	1.0.9.2
CATEGORIES=	archivers python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Python CFFI bindings to the Brotli library

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR}
LIB_DEPENDS=	libbrotlienc.so:archivers/brotli
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR}

USES=		localbase python:3.6+
USE_PYTHON=	autoplist concurrent distutils

MAKE_ENV=	USE_SHARED_BROTLI=1

post-patch:
# Clean up bundled libraries
	@${RM} -r ${WRKSRC}/libbrotli/

post-install:
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +

.include <bsd.port.mk>