diff options
author | Tim Biermann <tbier@posteo.de> | 2020-11-08 11:02:14 +0000 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2020-11-08 13:41:14 +0000 |
commit | f1f07a191bce65bdee6e0974320cf2f0e882984f (patch) | |
tree | 7d3467e15c24ab85234f8987b0441bf822e36e5d /flatbuffers | |
parent | 498d216b0c787408243aedee02eab05b747c83f6 (diff) | |
download | contrib-f1f07a191bce65bdee6e0974320cf2f0e882984f.tar.gz contrib-f1f07a191bce65bdee6e0974320cf2f0e882984f.tar.xz |
flatbuffers: updated cmake syntax
Diffstat (limited to 'flatbuffers')
-rw-r--r-- | flatbuffers/.footprint | 4 | ||||
-rw-r--r-- | flatbuffers/.signature | 6 | ||||
-rw-r--r-- | flatbuffers/Pkgfile | 16 |
3 files changed, 15 insertions, 11 deletions
diff --git a/flatbuffers/.footprint b/flatbuffers/.footprint index 69259696a..c628e4885 100644 --- a/flatbuffers/.footprint +++ b/flatbuffers/.footprint @@ -22,9 +22,9 @@ drwxr-xr-x root/root usr/lib/cmake/ drwxr-xr-x root/root usr/lib/cmake/flatbuffers/ -rw-r--r-- root/root usr/lib/cmake/flatbuffers/FlatbuffersConfig.cmake -rw-r--r-- root/root usr/lib/cmake/flatbuffers/FlatbuffersConfigVersion.cmake --rw-r--r-- root/root usr/lib/cmake/flatbuffers/FlatbuffersSharedTargets-noconfig.cmake +-rw-r--r-- root/root usr/lib/cmake/flatbuffers/FlatbuffersSharedTargets-release.cmake -rw-r--r-- root/root usr/lib/cmake/flatbuffers/FlatbuffersSharedTargets.cmake --rw-r--r-- root/root usr/lib/cmake/flatbuffers/FlatcTargets-noconfig.cmake +-rw-r--r-- root/root usr/lib/cmake/flatbuffers/FlatcTargets-release.cmake -rw-r--r-- root/root usr/lib/cmake/flatbuffers/FlatcTargets.cmake lrwxrwxrwx root/root usr/lib/libflatbuffers.so -> libflatbuffers.so.1 lrwxrwxrwx root/root usr/lib/libflatbuffers.so.1 -> libflatbuffers.so.1.12.0 diff --git a/flatbuffers/.signature b/flatbuffers/.signature index e62438a52..148829903 100644 --- a/flatbuffers/.signature +++ b/flatbuffers/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF37fxXj2f3rQhC3Fi+ZYcNeo1z+M0VLlmnW/Zfzn69c0jz8L8uOX9ksXdUUtiAfv4eBFi4h5AqSCSh+X9wY5lmQU= -SHA256 (Pkgfile) = 9e72eddf1254479b109bf6aef1cbfa6597046cb262ae7ef9215080932b51a292 -SHA256 (.footprint) = c3adb3bafa7c6407301f2ccc474178450f514356bd1018f88ae8751011088dc3 +RWSagIOpLGJF3+zZaGsypiZjVGkLvFeKZQ9gDDK+Erkh6Tvr7jNWwi6BaggOe+KJNsdXj5Hslv1m4IkUUp91MtTsnJ5WrSooZQk= +SHA256 (Pkgfile) = 6632435521697576b1a5ed7da7fbc9f10f98af68430c54bc0ca4b285ed6954fe +SHA256 (.footprint) = 1400e81bd782be6fcb092c5931837006d4b489279f5176b98c3d2eaa3a47e5f5 SHA256 (flatbuffers-1.12.0.tar.gz) = 62f2223fb9181d1d6338451375628975775f7522185266cd5296571ac152bc45 diff --git a/flatbuffers/Pkgfile b/flatbuffers/Pkgfile index 6185a2d20..63e8e86ef 100644 --- a/flatbuffers/Pkgfile +++ b/flatbuffers/Pkgfile @@ -9,12 +9,16 @@ release=1 source=(https://github.com/google/flatbuffers/archive/v$version/$name-$version.tar.gz) build() { - [[ -e /usr/bin/ninja ]] && PKGMK_FLATBUFFERS_OPTIONS=' -GNinja' - cmake -S$name-$version -Bbuild $PKGMK_FLATBUFFERS_OPTIONS \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DFLATBUFFERS_BUILD_FLATLIB=OFF \ - -DFLATBUFFERS_BUILD_SHAREDLIB=ON + [[ -e /usr/bin/ninja ]] && PKGMK_FLATBUFFERS+=' -G Ninja' + cmake -S $name-$version -B build $PKGMK_FLATBUFFERS \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_INSTALL_LIBDIR=lib \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \ + -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \ + -D FLATBUFFERS_BUILD_FLATLIB=OFF \ + -D FLATBUFFERS_BUILD_SHAREDLIB=ON \ + -Wno-dev cmake --build build DESTDIR=$PKG cmake --install build } |