1
0
forked from ports/contrib

obs-studio: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-08 09:14:00 +00:00
parent 4af38184cb
commit b14589f175
2 changed files with 13 additions and 15 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF37ZRpC/Fk+Qjqw15EAO8e0GFNurwR737LB8oNt/EucKhgWaoMb1Ub045nsyIzUZt8e7fjqBMaqygcF/ylRSBhAM=
SHA256 (Pkgfile) = f874777d7fbe0af362a8f56391038427ceba115a3a87e56c57b780a8638f5ee8
RWSagIOpLGJF3+vQjumUMSjaRQFNRSEpDFEN3UFMBI8F5GeaAzjeq7D3sp6raZZOWK+NJccgtlzsurJjiNcaG89LPuJVkfwR0As=
SHA256 (Pkgfile) = 664103b12343dc21a8ea7dc4f409285152cbaf452c30e28d224658615670e759
SHA256 (.footprint) = 8f267744499154d459b759e3fcd54b0a69e52054d327386da77360b24e8f7055
SHA256 (obs-studio-25.0.8.tar.gz) = ef1179c23256c312212e3dce9083d4fa67751db05c3001ad824e2b6995943941

View File

@ -10,23 +10,21 @@ release=1
source=(https://github.com/obsproject/$name/archive/$version/$name-$version.tar.gz)
build() {
cd $name-$version
mkdir build
cd build
# cmake ..
# cmake -LA
cmake .. \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_INSTALL_LIBDIR='/usr/lib' \
-DOBS_VERSION_OVERRIDE="$version" \
-DUNIX_STRUCTURE=ON \
-DCMAKE_BUILD_TYPE=Release
cmake -S $name-$version -B build -G Ninja \
-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 OBS_VERSION_OVERRIDE="$version" \
-D UNIX_STRUCTURE=ON \
-W no-dev
make
make DESTDIR="$PKG" install
cmake --build build
DESTDIR=$PKG cmake --install build
chmod -R g-w $PKG