mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
98 lines
2.9 KiB
Bash
98 lines
2.9 KiB
Bash
SUMMARY="A Full-Featured Open-Source Framework for Image Processing"
|
|
DESCRIPTION="G'MIC is a full-featured open-source framework for digital \
|
|
image processing, distributed under the CeCILL free software licenses \
|
|
(LGPL-like and/or GPL-compatible). It provides several user interfaces \
|
|
to convert / manipulate / filter / visualize generic image datasets, \
|
|
ranging from 1D scalar signals to 3D+t sequences of multi-spectral \
|
|
volumetric images, hence including 2D color images."
|
|
HOMEPAGE="https://gmic.eu"
|
|
COPYRIGHT="Sébastien Fourey"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://gmic.eu/files/source/gmic_$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="9f053338752ec96a6b619718037767682c5fd58e2471c08f3740fdb070605bc0"
|
|
SOURCE_DIR="gmic-$portVersion"
|
|
ADDITIONAL_FILES="gmic.rdef.in"
|
|
PATCHES="gmic-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
gmic$secondaryArchSuffix = $portVersion
|
|
app:GMIC$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libfftw3$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libgomp$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libfftw3$secondaryArchSuffix
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:lrelease$secondaryArchSuffix >= 5
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qmake$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cd gmic-qt
|
|
qmake HOST=none
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p "$appsDir/G'MIC"
|
|
cp gmic-qt/gmic_qt "$appsDir/G'MIC/G'MIC"
|
|
cp README "$appsDir/G'MIC/"
|
|
|
|
local APP_SIGNATURE="application/x-vnd.gmic"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/gmic.rdef.in > gmic.rdef
|
|
|
|
addResourcesToBinaries gmic.rdef $appsDir/G\'MIC/G\'MIC
|
|
|
|
addAppDeskbarSymlink $appsDir/G\'MIC/G\'MIC
|
|
}
|