forked from ports/contrib
flatbuffers: updated cmake syntax
This commit is contained in:
parent
498d216b0c
commit
f1f07a191b
@ -22,9 +22,9 @@ drwxr-xr-x root/root usr/lib/cmake/
|
|||||||
drwxr-xr-x root/root usr/lib/cmake/flatbuffers/
|
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/FlatbuffersConfig.cmake
|
||||||
-rw-r--r-- root/root usr/lib/cmake/flatbuffers/FlatbuffersConfigVersion.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/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
|
-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 -> libflatbuffers.so.1
|
||||||
lrwxrwxrwx root/root usr/lib/libflatbuffers.so.1 -> libflatbuffers.so.1.12.0
|
lrwxrwxrwx root/root usr/lib/libflatbuffers.so.1 -> libflatbuffers.so.1.12.0
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
untrusted comment: verify with /etc/ports/contrib.pub
|
untrusted comment: verify with /etc/ports/contrib.pub
|
||||||
RWSagIOpLGJF37fxXj2f3rQhC3Fi+ZYcNeo1z+M0VLlmnW/Zfzn69c0jz8L8uOX9ksXdUUtiAfv4eBFi4h5AqSCSh+X9wY5lmQU=
|
RWSagIOpLGJF3+zZaGsypiZjVGkLvFeKZQ9gDDK+Erkh6Tvr7jNWwi6BaggOe+KJNsdXj5Hslv1m4IkUUp91MtTsnJ5WrSooZQk=
|
||||||
SHA256 (Pkgfile) = 9e72eddf1254479b109bf6aef1cbfa6597046cb262ae7ef9215080932b51a292
|
SHA256 (Pkgfile) = 6632435521697576b1a5ed7da7fbc9f10f98af68430c54bc0ca4b285ed6954fe
|
||||||
SHA256 (.footprint) = c3adb3bafa7c6407301f2ccc474178450f514356bd1018f88ae8751011088dc3
|
SHA256 (.footprint) = 1400e81bd782be6fcb092c5931837006d4b489279f5176b98c3d2eaa3a47e5f5
|
||||||
SHA256 (flatbuffers-1.12.0.tar.gz) = 62f2223fb9181d1d6338451375628975775f7522185266cd5296571ac152bc45
|
SHA256 (flatbuffers-1.12.0.tar.gz) = 62f2223fb9181d1d6338451375628975775f7522185266cd5296571ac152bc45
|
||||||
|
@ -9,12 +9,16 @@ release=1
|
|||||||
source=(https://github.com/google/flatbuffers/archive/v$version/$name-$version.tar.gz)
|
source=(https://github.com/google/flatbuffers/archive/v$version/$name-$version.tar.gz)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
[[ -e /usr/bin/ninja ]] && PKGMK_FLATBUFFERS_OPTIONS=' -GNinja'
|
[[ -e /usr/bin/ninja ]] && PKGMK_FLATBUFFERS+=' -G Ninja'
|
||||||
cmake -S$name-$version -Bbuild $PKGMK_FLATBUFFERS_OPTIONS \
|
cmake -S $name-$version -B build $PKGMK_FLATBUFFERS \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
||||||
-DFLATBUFFERS_BUILD_FLATLIB=OFF \
|
-D CMAKE_BUILD_TYPE=Release \
|
||||||
-DFLATBUFFERS_BUILD_SHAREDLIB=ON
|
-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
|
cmake --build build
|
||||||
DESTDIR=$PKG cmake --install build
|
DESTDIR=$PKG cmake --install build
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user