/
Makefile
32 lines (24 loc) · 942 Bytes
/
Makefile
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
32
PORTNAME= gdstk
DISTVERSIONPREFIX= v
DISTVERSION= 0.9.46
CATEGORIES= cad
#MASTER_SITES= PYPI # build fails from PYPI: https://github.com/heitzmann/gdspy/issues/236
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Library for creation and manipulation of GDSII and OASIS files
WWW= https://heitzmann.github.io/gdstk/
LICENSE= BSL
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= cmake:devel/cmake-core \
${PY_SETUPTOOLS} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
${PYNUMPY}
LIB_DEPENDS= libqhull_r.so:math/qhull
USES= compiler:c++11-lang python
USE_PYTHON= pep517 autoplist pytest # tests fail to run, see https://github.com/heitzmann/gdspy/issues/237
USE_GITHUB= yes
GH_ACCOUNT= heitzmann
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/gdstk/gdstk${PYTHON_EXT_SUFFIX}.so
.include <bsd.port.mk>