scribus: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-08 13:25:44 +00:00
parent 540d12de5e
commit 602b81f9cb
2 changed files with 23 additions and 16 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF34wfrF38We5c6pfKI59i8C0j/l2I27w4aMl28Jz5qeaFxDLU3M38/MFO7GtUuXVFg1/xhl3G0fuCa+CcAiqxDwM=
SHA256 (Pkgfile) = ba75c68fc8da080a846ee791872df4cb7d5fa4efc97134f7699d216d15a41a51
RWSagIOpLGJF3z/aP21GNuWSbFXvVSBvetYhqIeVLQfjPUSXKXw/WTRp0oRF6jI0PV/w7gZv6dH91Vq+6vanZrSqylNPKROFVgQ=
SHA256 (Pkgfile) = 5c1e98fdd0ec405307d09b3290ddcc7d5831fb485a3a7cb3ca4d6b3dbd4d8a17
SHA256 (.footprint) = 833e7fc010236a1ab333bd103b2d72b50fa75565c720ad10b54274d6de0678a1
SHA256 (scribus-1.5.5.tar.xz) = 7908b21a6ce843269f58cedf5f8f791893257e6201cce5fbddc70daca2fe3f71
SHA256 (6db15ec1.patch) = a948a5ee53842ffc8acc3f6720291819d55d2ff370c2b46ddffc1122cba07e7f

View File

@ -17,18 +17,22 @@ source=(https://downloads.sourceforge.net/$name/$name-$version.tar.xz
# snatched from contrib/inkscape, thx romster :>
poppler() {
cmake -Spoppler-0.90.0 -Bbuild-poppler -GNinja \
-DCMAKE_INSTALL_PREFIX=$SRC/poppler \
-DCMAKE_INSTALL_LIBDIR=$SRC/poppler/lib \
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
-DENABLE_UTILS=ON \
-DENABLE_SPLASH=ON \
-DENABLE_CPP=ON \
-DENABLE_GLIB=ON \
-DENABLE_QT5=OFF \
-DENABLE_ZLIB=ON \
-DENABLE_CMS=lcms2 \
-DENABLE_LIBOPENJPEG=none \
-DWITH_NSS3=OFF
-D CMAKE_INSTALL_PREFIX=$SRC/poppler \
-D CMAKE_INSTALL_LIBDIR=$SRC/poppler/lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-D ENABLE_UNSTABLE_API_ABI_HEADERS=ON \
-D ENABLE_UTILS=ON \
-D ENABLE_SPLASH=ON \
-D ENABLE_CPP=ON \
-D ENABLE_GLIB=ON \
-D ENABLE_QT5=OFF \
-D ENABLE_ZLIB=ON \
-D ENABLE_CMS=lcms2 \
-D ENABLE_LIBOPENJPEG=none \
-D WITH_NSS3=OFF \
-Wno-dev
cmake --build build-poppler
cmake --install build-poppler
@ -58,8 +62,11 @@ build() {
-e 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
-i $name-$version/scribus/plugins/scriptplugin/{samples,scripts}/*
cmake -S$name-$version -Bbuild -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build