this port uses cmake behind setuptools, cmake tries to detect various toolchain bits, then at some points finds llvm-strip if llvm port is installed.. then blows if llvm port is junked. should fix a build failure seen by naddy@ idea from sthen@, until i find a better way to make this port directly use cmake or pass cmake arguments to disable toolchain detection.
49 lines
1.0 KiB
Makefile
49 lines
1.0 KiB
Makefile
COMMENT = Python bindings for libosmium
|
|
|
|
MODPY_EGG_VERSION = 3.4.1
|
|
GH_TAGNAME = v${MODPY_EGG_VERSION}
|
|
GH_ACCOUNT = osmcode
|
|
GH_PROJECT = pyosmium
|
|
PKGNAME = py-osmium-${MODPY_EGG_VERSION}
|
|
REVISION = 0
|
|
|
|
CATEGORIES = geo
|
|
|
|
HOMEPAGE = https://osmcode.org/pyosmium/
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
# C++
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
FLAVORS = python3
|
|
FLAVOR = python3
|
|
|
|
MODULES = lang/python
|
|
|
|
MODPY_PYBUILD = setuptools
|
|
MODPY_PYTEST = Yes
|
|
# tests make python segfault
|
|
# cf https://github.com/osmcode/pyosmium/issues/199
|
|
MODPY_PYTEST_ARGS = -v
|
|
|
|
LIB_DEPENDS = archivers/lz4
|
|
WANTLIB += ${COMPILER_LIBCXX} bz2 expat lz4 m z
|
|
|
|
# cmake is run under the control of the setuptools script, this
|
|
# doesn't work with MODULES=devel/cmake
|
|
BUILD_DEPENDS += devel/boost \
|
|
devel/cmake \
|
|
devel/llvm \
|
|
geo/libosmium \
|
|
devel/protozero \
|
|
devel/py-pybind11${MODPY_FLAVOR}
|
|
|
|
MAKE_ENV = pybind11_DIR=`pybind11-config --cmakedir` \
|
|
MODCMAKE_PORT_BUILD=yes \
|
|
CXXFLAGS="${CXXFLAGS}"
|
|
CONFIGURE_ENV += MODCMAKE_PORT_BUILD=yes
|
|
|
|
.include <bsd.port.mk>
|