Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: haikuports/haikuports
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 76f19495c6e5
Choose a base ref
...
head repository: haikuports/haikuports
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9593996edb4a
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 4, 2021

  1. Copy the full SHA
    9593996 View commit details
Showing with 18 additions and 6 deletions.
  1. +18 −6 media-gfx/gmic/gmic-2.9.9.recipe
24 changes: 18 additions & 6 deletions media-gfx/gmic/gmic-2.9.9.recipe
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ volumetric images, hence including 2D color images."
HOMEPAGE="https://gmic.eu"
COPYRIGHT="Sébastien Fourey"
LICENSE="GNU GPL v3"
REVISION="5"
REVISION="6"
SOURCE_URI="https://gmic.eu/files/source/gmic_$portVersion.tar.gz"
CHECKSUM_SHA256="9f053338752ec96a6b619718037767682c5fd58e2471c08f3740fdb070605bc0"
SOURCE_DIR="gmic-$portVersion"
@@ -100,9 +100,15 @@ BUILD()
{
export DISABLE_ASLR=1

local CUSTOM_CXX_FLAGS="-O3"
if [ "$targetArchitecture" = x86_gcc2 ]; then
CUSTOM_CXX_FLAGS="-O0"
fi

cmake $cmakeDirArgs \
-B build -S . \
-DCMAKE_CXX_FLAGS="-O3" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS=$CUSTOM_CXX_FLAGS \
-DCUSTOM_CFLAGS=ON \
-DBUILD_BASH_COMPLETION=OFF \
-DBUILD_CLI=OFF \
@@ -122,12 +128,15 @@ BUILD()
-DENABLE_ZLIB=ON \
-DENABLE_LTO=OFF

cmake --build build -j1
cd build
make
cd ..

export LDFLAGS="$LDFLAGS -L../build"

cmake -B build-qt -S ./gmic-qt \
-DCMAKE_CXX_FLAGS="-O3" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS=$CUSTOM_CXX_FLAGS \
-DCUSTOM_CFLAGS=ON \
-DGMIC_PATH=$sourceDir/src \
-DGMIC_QT_HOST=none \
@@ -137,12 +146,15 @@ BUILD()
-DENABLE_FFTW3=ON \
-DENABLE_LTO=OFF

cmake --build build-qt -j1
cd build-qt
make
}

INSTALL()
{
cmake --install build
cd build
make install
cd ..

mkdir -p "$appsDir/G'MIC"
cp build-qt/gmic_qt "$appsDir/G'MIC/G'MIC"