diff options
author | Matt Housh <jaeger@crux.ninja> | 2020-11-14 15:11:33 -0600 |
---|---|---|
committer | Matt Housh <jaeger@crux.ninja> | 2020-11-14 15:11:33 -0600 |
commit | 71e00d88efd371016987ec327ff80f68a99ca276 (patch) | |
tree | 94677bf2abe9adb3b1c338268a7f968da9a508cb /flatbuffers/Pkgfile | |
parent | 79945f16dd470e72516c67568eb4e356a5d8d196 (diff) | |
parent | 145b859b2549fb1fe4eb16a6dc0f9807d2f1b462 (diff) | |
download | contrib-71e00d88efd371016987ec327ff80f68a99ca276.tar.gz contrib-71e00d88efd371016987ec327ff80f68a99ca276.tar.xz |
Merge branch '3.5' into 3.6
Diffstat (limited to 'flatbuffers/Pkgfile')
-rw-r--r-- | flatbuffers/Pkgfile | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/flatbuffers/Pkgfile b/flatbuffers/Pkgfile index e3e99fe22..e2993109b 100644 --- a/flatbuffers/Pkgfile +++ b/flatbuffers/Pkgfile @@ -10,12 +10,16 @@ source=(#https://github.com/google/flatbuffers/archive/v$version/$name-$version. https://github.com/google/flatbuffers/archive/a402b3abaea6490d8aad1fe90d8bafe2a6396fe8/$name-$version-1.tar.gz) build() { - #cmake -S$name-$version -Bbuild \ - cmake -S$name-a402b3abaea6490d8aad1fe90d8bafe2a6396fe8 -Bbuild \ - -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 } |