mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
Nomacs : new recipe (#1962)
This commit is contained in:
120
media-gfx/nomacs/nomacs-3.8.0.recipe
Normal file
120
media-gfx/nomacs/nomacs-3.8.0.recipe
Normal file
@@ -0,0 +1,120 @@
|
||||
SUMMARY="Qt-based image viewer"
|
||||
DESCRIPTION="nomacs is a free, open source image viewer, which supports \
|
||||
multiple platforms. You can use it for viewing all common image formats \
|
||||
including RAW and psd images."
|
||||
HOMEPAGE="https://nomacs.org/"
|
||||
COPYRIGHT="2011-2013 Markus Diem
|
||||
2011-2013 Stefan Fiel
|
||||
2011-2013 Florian Kleber"
|
||||
LICENSE="GNU LGPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI_1="https://github.com/nomacs/nomacs/archive/3.8.0.tar.gz"
|
||||
SOURCE_URI_2="https://github.com/nomacs/nomacs-plugins/archive/3.8.0.tar.gz"
|
||||
SOURCE_FILENAME_1="nomacs-$portVersion.tar.gz"
|
||||
SOURCE_FILENAME_2="nomacs-plugins-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256_1="f43ad1507f2890db2fbaa0cb110de3ac5efe754cf2e7a053eaabfed4d5e06845"
|
||||
CHECKSUM_SHA256_2="5a700b27990fb72ae8582e69143389d0cf9c9313f9b361348b9bb8339b3dabdc"
|
||||
|
||||
ADDITIONAL_FILES="nomacs.rdef.in"
|
||||
#PATCHES="nomacs-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
krita$secondaryArchSuffix = $portVersion
|
||||
app:Krita$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libexiv2$secondaryArchSuffix
|
||||
lib:libexpat$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:liblcms2$secondaryArchSuffix
|
||||
lib:libopencv_core$secondaryArchSuffix
|
||||
lib:libopencv_imgproc$secondaryArchSuffix
|
||||
lib:libQt5Concurrent$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5PrintSupport$secondaryArchSuffix
|
||||
lib:libQt5Svg$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
lib:libraw$secondaryArchSuffix
|
||||
lib:libtiff$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libexiv2$secondaryArchSuffix
|
||||
devel:libexpat$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:liblcms2$secondaryArchSuffix
|
||||
devel:libopencv_core$secondaryArchSuffix
|
||||
devel:libopencv_imgproc$secondaryArchSuffix
|
||||
devel:libQt5Concurrent$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5PrintSupport$secondaryArchSuffix
|
||||
devel:libQt5Svg$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libraw$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:lcov
|
||||
cmd:make
|
||||
cmd:python2
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd ImageLounge
|
||||
mkdir -p plugins
|
||||
cp -r $sourceDir2/nomacs-plugins-$portVersion/* plugins
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
cmake .. \
|
||||
$cmakeDirArgs
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd ImageLounge/build
|
||||
make install
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.qt5-ImageLounge"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local INTERNAL="0"
|
||||
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|@INTERNAL@|$INTERNAL|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
$portDir/additional-files/nomacs.rdef.in > nomacs.rdef
|
||||
|
||||
mkdir -p $appsDir/Nomacs $manDir
|
||||
mv $prefix/bin/nomacs $appsDir/Nomacs/Nomacs
|
||||
mv $prefix/lib $appsDir/Nomacs
|
||||
mv $prefix/share/man/man1 $manDir
|
||||
rm -rf $prefix/bin $prefix/share
|
||||
|
||||
addResourcesToBinaries nomacs.rdef $appsDir/Nomacs/Nomacs
|
||||
addAppDeskbarSymlink $appsDir/Nomacs/Nomacs
|
||||
}
|
||||
Reference in New Issue
Block a user