www/osrm-backend: Disable compiler warnings as errors

When -DNDEBUG is defined -Werror=all needs to be disabled otherwise
port won't build

PR:		266852
Approved by:	portmgr (maintainer timeout, 2+ weeks)
This commit is contained in:
Daniel Engberg 2022-10-20 10:03:36 +02:00
parent 6cfe697000
commit fa14b345d7

View File

@ -42,6 +42,10 @@ CMAKE_ON= BUILD_STATIC_LIBS
CXXFLAGS+= -Wno-range-loop-construct
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-Werror=all -Werror=extra|-Werror=extra|g' \
${PATCH_WRKSRC}/CMakeLists.txt
pre-install:
@${MKDIR} ${STAGEDIR}/var/db/osrm-backend