mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
31 lines
807 B
Makefile
31 lines
807 B
Makefile
# Created by: William Grzybowski <wg@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= cffi
|
|
PORTVERSION= 1.2.1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= wg@FreeBSD.org
|
|
COMMENT= Foreign Function Interface for Python calling C code
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libffi.so:${PORTSDIR}/devel/libffi
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycparser>=2.10:${PORTSDIR}/devel/py-pycparser
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include -Wl,-rpath,${LOCALBASE}/lib
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
regression-test: patch
|
|
cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} build_ext -i &&
|
|
${LOCALBASE}/bin/py.test
|
|
|
|
.include <bsd.port.mk>
|