mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
128 lines
4.0 KiB
Bash
128 lines
4.0 KiB
Bash
SUMMARY="A raw image processing program"
|
|
DESCRIPTION="RawTherapee is a powerful, cross-platform raw photo processing system, released \
|
|
as Free Software (GPLv3). It is designed for developing raw files from a broad range of \
|
|
digital cameras and targeted at users ranging from enthusiast newcomers who wish to broaden \
|
|
their understanding of how digital imaging works to professional photographers.
|
|
|
|
RawTherapee provides a powerful suite of tools for you to produce amazing photos and showcase your creativity."
|
|
HOMEPAGE="https://www.rawtherapee.com/"
|
|
COPYRIGHT="2022 The RawTherapee Team"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://www.rawtherapee.com/shared/source/rawtherapee-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="8eaf28c428185c165ef5a28f69595dc77a1c98826065a1f51a28c86c7b0d4823"
|
|
PATCHES="rawtherapee-$portVersion.patchset"
|
|
ADDITIONAL_FILES="rawtherapee.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
rawtherapee$secondaryArchSuffix = $portVersion
|
|
app:RawTherapee = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libatk_1.0$secondaryArchSuffix
|
|
lib:libatkmm_1.6$secondaryArchSuffix
|
|
lib:libatomic$secondaryArchSuffix
|
|
lib:libcairo$secondaryArchSuffix
|
|
lib:libcairo_gobject$secondaryArchSuffix
|
|
lib:libcairomm_1.0$secondaryArchSuffix
|
|
lib:libgdk_3$secondaryArchSuffix
|
|
lib:libgdk_pixbuf_2.0$secondaryArchSuffix
|
|
lib:libexpat$secondaryArchSuffix
|
|
lib:libfftw3f$secondaryArchSuffix
|
|
lib:libgtk_3$secondaryArchSuffix
|
|
lib:libgtkmm_3.0$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libglibmm_2.4$secondaryArchSuffix
|
|
lib:libiptcdata$secondaryArchSuffix
|
|
lib:libgomp$secondaryArchSuffix
|
|
lib:libharfbuzz$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:liblcms2$secondaryArchSuffix
|
|
lib:liblensfun$secondaryArchSuffix
|
|
lib:libpango_1.0$secondaryArchSuffix
|
|
lib:libpangomm_1.4$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:librsvg_2$secondaryArchSuffix
|
|
lib:libsigc_2.0$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libatk_1.0$secondaryArchSuffix
|
|
devel:libatkmm_1.6$secondaryArchSuffix
|
|
devel:libcairo_gobject$secondaryArchSuffix
|
|
devel:libcairomm_1.0$secondaryArchSuffix
|
|
devel:libgdk_3$secondaryArchSuffix
|
|
devel:libgdk_pixbuf_2.0$secondaryArchSuffix
|
|
devel:libexpat$secondaryArchSuffix
|
|
devel:libfftw3$secondaryArchSuffix
|
|
devel:libgtk_3$secondaryArchSuffix
|
|
devel:libgtkmm_3.0$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libglibmm_2.4$secondaryArchSuffix
|
|
devel:libiptcdata$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:liblcms2$secondaryArchSuffix
|
|
devel:liblensfun$secondaryArchSuffix
|
|
devel:libpango_1.0$secondaryArchSuffix
|
|
devel:libpangomm_1.4$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:librsvg_2$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:itstool
|
|
cmd:ninja
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:xargs
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake . $cmakeDirArgs -B build -GNinja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DBINDIR=$prefix/bin \
|
|
-DDATADIR=$dataDir/rawtherapee \
|
|
-DDOCDIR=$docDir \
|
|
-DICONSDIR=$dataDir/icons \
|
|
-DAPPDATADIR=$dataDir/metainfo \
|
|
-DUSE_LIBCANBERRA=OFF
|
|
|
|
ninja -C build -v
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja install -C build
|
|
|
|
mkdir -p $appsDir
|
|
mv $prefix/bin/rawtherapee $appsDir/RawTherapee
|
|
rm -rf $prefix/{bin,share} $dataDir/icons
|
|
|
|
local APP_SIGNATURE="application/x-vnd.rawtherapee"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
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/rawtherapee.rdef.in > rawtherapee.rdef
|
|
|
|
addResourcesToBinaries rawtherapee.rdef $appsDir/RawTherapee
|
|
addAppDeskbarSymlink $appsDir/RawTherapee
|
|
}
|