openbsd-ports/geo/osrm-backend/Makefile
cwen 8cee9092a2 osrm-backend: update to 5.22, add powerpc to NOT_FOR_ARCHS, disable ccache
Changelog:
https://github.com/Project-OSRM/osrm-backend/blob/v5.22.0/CHANGELOG.md

This can't be built on powerpc because devel/tbb does not support 64-bits
atomics on ppc32 and forcing them does not help.

OK bentley@
2020-05-18 17:02:35 +00:00

46 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.7 2020/05/18 17:02:35 cwen Exp $
# devel/tbb does not support 64-bits atomics on ppc32, forcing them does
# not help, see tbb's ${WRKSRC}/include/tbb/machine/mac_ppc.h
NOT_FOR_ARCHS = powerpc
COMMENT = high-performance road network routing engine
GH_ACCOUNT = Project-OSRM
GH_PROJECT = osrm-backend
GH_TAGNAME = v5.22.0
CATEGORIES = geo
HOMEPAGE = http://project-osrm.org/
# BSD 2-clause
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} ${MODLUA_WANTLIB}
WANTLIB += boost_chrono-mt boost_date_time-mt boost_filesystem-mt
WANTLIB += boost_iostreams-mt boost_program_options-mt boost_regex-mt
WANTLIB += boost_system-mt boost_thread-mt bz2 c expat m tbb tbbmalloc z
COMPILER = base-clang ports-gcc base-gcc
MODULES = devel/cmake \
lang/lua
MODLUA_VERSION = 5.3
BUILD_DEPENDS = devel/protozero \
devel/utfcpp \
geo/libosmium
LIB_DEPENDS = archivers/bzip2 \
devel/boost \
devel/tbb
CONFIGURE_ARGS = -DOSMIUM_INCLUDE_DIR=${LOCALBASE}/include/osmium \
-DCMAKE_CXX_FLAGS="-I${LOCALBASE}/include/utfcpp \
${CXXFLAGS}" \
-DENABLE_CCACHE=Off
# Requires network access, and http access to sample osrm data is 403'd
NO_TEST = Yes
.include <bsd.port.mk>