mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-28 10:08:24 +00:00
ff8627bd64
- Update Abseil C++ libraries to version 20210324.2 - Inferring shared libraries suffix from PORTVERSION does not always work, so obtain correct value from the project's CMake files (SOVERSION) Found out via: repology.org
24 lines
615 B
Makefile
24 lines
615 B
Makefile
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
|
|
PORTNAME= abseil
|
|
PORTVERSION= 20210324.2
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Abseil Common Libraries (C++)
|
|
|
|
LICENSE= APACHE20
|
|
|
|
USES= cmake compiler:c++11-lang
|
|
USE_GITHUB= yes
|
|
GH_PROJECT= ${PORTNAME}-cpp
|
|
|
|
CMAKE_ARGS= -DBUILD_SHARED_LIBS:BOOL=ON \
|
|
-DCMAKE_CXX_STANDARD=17 # force the same highest C++ standard because of ABI differences: see https://github.com/abseil/abseil-cpp/issues/819
|
|
|
|
_GET_SOVER= ${GREP} SOVERSION ${WRKSRC}/CMake/AbseilHelpers.cmake \
|
|
| ${CUT} -d\" -f2
|
|
PLIST_SUB+= LIBSUFX=${_GET_SOVER:sh}
|
|
|
|
.include <bsd.port.mk>
|