mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Phototonic (Image Viewer and Organizer): New Recipe (#3339)
This commit is contained in:
38
media-gfx/phototonic/additional-files/phototonic.rdef.in
Normal file
38
media-gfx/phototonic/additional-files/phototonic.rdef.in
Normal file
@@ -0,0 +1,38 @@
|
||||
resource app_flags B_MULTIPLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
short_info = "Phototonic",
|
||||
long_info = "@LONG_INFO@"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
|
||||
resource file_types message {
|
||||
"types" = "application/x-img"
|
||||
};
|
||||
|
||||
resource vector_icon {
|
||||
$"6E6369660E0500020006023AF8483564E4B643423BF5B5478C444A93B500FC3D"
|
||||
$"5DFDF92145020006023A80000000000000003DC0004740004A200000FFA5A5FF"
|
||||
$"FF6E6E020006023865B337C870BC611E3D03FF4A0E7D4ADA2600910335FFFF90"
|
||||
$"AF040174040064020016023BA4CA3BBF52BC04343BEBDB4B081C49596C00EDFF"
|
||||
$"A505FF0200160232FD6F3A991DBE4480369C0E4AE7C24849BD0091FFB5020006"
|
||||
$"023ACCF03D352ABFAA7A3D335C4BFB9F46977900ECECECFF1446FF03F5FF0502"
|
||||
$"0006023C7FFF0000000000003CC00049C0004A00000033BC50FF1F582D05FF02"
|
||||
$"001602000000C018003B00000000004AC7FF4A4800004BFFBE0A0A0543472C46"
|
||||
$"51585D5860550A042C232E22522E502F0A045056502F522E52550A062C455056"
|
||||
$"5255522E2E222C230A042C232C455056502F0A064C47303C2E3D4E4A4E324C34"
|
||||
$"0A062E272E3D303C302A4C344E320A04302A30394C454C3404032E302A303130"
|
||||
$"2F3631382D0406FA0F303B4C474C3D4C3F483D423A49353E3A39323E31353230"
|
||||
$"3534363036110A050100000A0001031811FF01178400040A0001031A400C3000"
|
||||
$"0000000000400914C079E7BFFD1B001001178400040A060104000A070105000A"
|
||||
$"080106000A090107000A0A0108000A0B0109000A0C0101000A0D0102000A0400"
|
||||
$"000A0000381C2011FF01178400040A00001A3FE444000000000000400201C2E4"
|
||||
$"44C241A1001001178400040A0100000A0300201C200A020000"
|
||||
};
|
||||
23
media-gfx/phototonic/patches/phototonic-2.1.patchset
Normal file
23
media-gfx/phototonic/patches/phototonic-2.1.patchset
Normal file
@@ -0,0 +1,23 @@
|
||||
From ad56d918ac5f3a486887843485fa9d75be494398 Mon Sep 17 00:00:00 2001
|
||||
From: mazbrili <mazbrili@yahoo.com>
|
||||
Date: Tue, 30 Oct 2018 02:50:48 +0700
|
||||
Subject: change project file for haiku specific
|
||||
|
||||
|
||||
diff --git a/phototonic.pro b/phototonic.pro
|
||||
index 2468af5..c82295f 100644
|
||||
--- a/phototonic.pro
|
||||
+++ b/phototonic.pro
|
||||
@@ -30,6 +30,10 @@ DEPENDPATH += $$MINGWEXIVPATH/include
|
||||
|
||||
PRE_TARGETDEPS += $$MINGWEXIVPATH/lib/libexiv2.a $$MINGWEXIVPATH/lib/libexpat.a $$MINGWEXIVPATH/lib/libz.a
|
||||
}
|
||||
+haiku {
|
||||
+ TARGET = Phototonic
|
||||
+ LIBS += -lexiv2 -liconv -lexpat -lnetwork -lz -lintl
|
||||
+ }
|
||||
else: LIBS += -L/usr/local/lib -lexiv2
|
||||
QT += widgets
|
||||
QMAKE_CXXFLAGS += $$(CXXFLAGS)
|
||||
--
|
||||
2.19.0
|
||||
94
media-gfx/phototonic/phototonic-2.1.recipe
Normal file
94
media-gfx/phototonic/phototonic-2.1.recipe
Normal file
@@ -0,0 +1,94 @@
|
||||
SUMMARY="An image viewer and organizer built with Qt and Exiv2"
|
||||
DESCRIPTION="Phototonic features:
|
||||
* Support for common image formats and GIF animation
|
||||
* Supports tagging images, and filtering images by tags (IPTC)
|
||||
* Browse thumbnails recursively down a folder tree
|
||||
* Dynamic thumbnails loading
|
||||
* Image transformation and color manipulation
|
||||
* Display image information and metadata
|
||||
* Does not depend on any desktop environment."
|
||||
HOMEPAGE="https://github.com/oferkv/phototonic"
|
||||
COPYRIGHT="2015-2018 Ofer Kashayov
|
||||
2015-2018 Christopher Roy Bratusek
|
||||
2015-2018 Krzysztof Pyrkosz
|
||||
2015-2018 Roman Chistokhodov
|
||||
2015-2018 Thomas Lübking
|
||||
2015-2018 Tung Le
|
||||
2015-2018 Peter Mattern"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/oferkv/phototonic/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="a8b2dbc81750efabb65a4732b1704641afd4a4f772ef9c90817871ca2a52f5ef"
|
||||
SOURCE_FILENAME="phototonic-$portVersion.tar.gz"
|
||||
PATCHES="phototonic-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="phototonic.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
fi
|
||||
|
||||
USER_SETTINGS_FILES="
|
||||
settings/Phototonic directory
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
phototonic$secondaryArchSuffix = $portVersion
|
||||
app:Phototonic = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libexiv2$secondaryArchSuffix
|
||||
lib:libexpat$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libexiv2$secondaryArchSuffix
|
||||
devel:libexpat$secondaryArchSuffix
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:qmake$secondaryArchSuffix >= 5
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
qmake
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir
|
||||
cp Phototonic $appsDir
|
||||
local APP_SIGNATURE="application/x-vnd.Phototonic"
|
||||
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:-0}|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
$portDir/additional-files/phototonic.rdef.in > phototonic.rdef
|
||||
addResourcesToBinaries phototonic.rdef $appsDir/Phototonic
|
||||
addAppDeskbarSymlink $appsDir/Phototonic
|
||||
}
|
||||
Reference in New Issue
Block a user