mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
187 lines
6.1 KiB
Bash
187 lines
6.1 KiB
Bash
SUMMARY="Tool for indexing, searching, and viewing images"
|
|
DESCRIPTION="If you have hundreds or even thousands of images on your hard drive, it becomes \
|
|
impossible to remember the story behind every single image or the names of the persons \
|
|
photographed. KPhotoAlbum was created to help you describe your images and then search the big \
|
|
pile of pictures quickly and efficiently.
|
|
|
|
With KPhotoAlbum it is possible to find any image in less than 5 seconds based on a powerful tag \
|
|
system, let that be an image with a special person, an image from a special place, or even both.
|
|
|
|
Adding tags is easy with KPhotoAlbum — it is highly optimised for tagging images. You can tag \
|
|
hundreds of images quickly with just a bit of practice."
|
|
HOMEPAGE="https://www.kphotoalbum.org/"
|
|
COPYRIGHT="2010-2024 KDE Organisation
|
|
2021 Andreas Kainz
|
|
2018-2023 Johannes Zarl-Zierl
|
|
2012 Miika Turkia
|
|
2004-2009 Jesper K. Pederson"
|
|
LICENSE="CC-BY-SA-4.0
|
|
GNU GPL v3
|
|
GNU LGPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/kphotoalbum/$portVersion/kphotoalbum-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="9881e1ee314efeea4b2488eb473427c4b53a9fbad455e234170650cb64814156"
|
|
ADDITIONAL_FILES="kphotoalbum.rdef.in"
|
|
|
|
ARCHITECTURES="?all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
GLOBAL_WRITABLE_FILES="settings/xdg/kphotoalbumrc keep-old"
|
|
|
|
PROVIDES="
|
|
kphotoalbum$secondaryArchSuffix = $portVersion
|
|
cmd:kpa_backup.sh$secondaryArchSuffix = $portVersion
|
|
cmd:kpa_thumbnailtool$secondaryArchSuffix = $portVersion
|
|
cmd:kphotoalbum$secondaryArchSuffix = $portVersion
|
|
cmd:open_raw.pl$secondaryArchSuffix = $portVersion
|
|
lib:libkpabase$secondaryArchSuffix
|
|
lib:libkpaexif$secondaryArchSuffix
|
|
lib:libkpathumbnails$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libKF5KDcraw$secondaryArchSuffix
|
|
lib:libexiv2$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libmarblewidget_qt5$secondaryArchSuffix
|
|
lib:libQtAV$secondaryArchSuffix
|
|
# KF5
|
|
lib:libKF5Archive$secondaryArchSuffix
|
|
lib:libKF5Auth$secondaryArchSuffix
|
|
lib:libKF5Codecs$secondaryArchSuffix
|
|
lib:libKF5Completion$secondaryArchSuffix
|
|
lib:libKF5ConfigCore$secondaryArchSuffix
|
|
lib:libKF5ConfigWidgets$secondaryArchSuffix
|
|
lib:libKF5CoreAddons$secondaryArchSuffix
|
|
lib:libKF5I18n$secondaryArchSuffix
|
|
lib:libKF5IconThemes$secondaryArchSuffix
|
|
lib:libKF5JobWidgets$secondaryArchSuffix
|
|
lib:libKF5KIOCore$secondaryArchSuffix
|
|
lib:libKF5Purpose$secondaryArchSuffix
|
|
lib:libKF5Service$secondaryArchSuffix
|
|
lib:libKF5Solid$secondaryArchSuffix
|
|
lib:libKF5SonnetCore$secondaryArchSuffix
|
|
lib:libKF5TextWidgets$secondaryArchSuffix
|
|
lib:libKF5WidgetsAddons$secondaryArchSuffix
|
|
lib:libKF5WindowSystem$secondaryArchSuffix
|
|
lib:libKF5XmlGui$secondaryArchSuffix
|
|
lib:libphonon4qt5$secondaryArchSuffix
|
|
# Qt5
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5DBus$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5PrintSupport$secondaryArchSuffix
|
|
lib:libQt5Positioning$secondaryArchSuffix
|
|
lib:libQt5Qml$secondaryArchSuffix
|
|
lib:libQt5Quick$secondaryArchSuffix
|
|
lib:libQt5Sql$secondaryArchSuffix
|
|
lib:libQt5Webengine$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libKF5KDcraw$secondaryArchSuffix
|
|
devel:libexiv2$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libmarblewidget_qt5$secondaryArchSuffix
|
|
devel:libQtAV$secondaryArchSuffix
|
|
# KF5
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:libKF5Archive$secondaryArchSuffix
|
|
devel:libKF5Auth$secondaryArchSuffix
|
|
devel:libKF5Bookmarks$secondaryArchSuffix
|
|
devel:libKF5Codecs$secondaryArchSuffix
|
|
devel:libKF5Completion$secondaryArchSuffix
|
|
devel:libKF5ConfigCore$secondaryArchSuffix
|
|
devel:libKF5ConfigWidgets$secondaryArchSuffix
|
|
devel:libKF5CoreAddons$secondaryArchSuffix
|
|
devel:libKF5I18n$secondaryArchSuffix
|
|
devel:libKF5IconThemes$secondaryArchSuffix
|
|
devel:libKF5ItemViews$secondaryArchSuffix
|
|
devel:libKF5JobWidgets$secondaryArchSuffix
|
|
devel:libKF5KIOCore$secondaryArchSuffix
|
|
devel:libKF5Purpose$secondaryArchSuffix
|
|
devel:libKF5Service$secondaryArchSuffix
|
|
devel:libKF5Solid$secondaryArchSuffix
|
|
devel:libKF5SonnetCore$secondaryArchSuffix
|
|
devel:libKF5TextWidgets$secondaryArchSuffix
|
|
devel:libKF5WidgetsAddons$secondaryArchSuffix
|
|
devel:libKF5WindowSystem$secondaryArchSuffix
|
|
devel:libKF5XmlGui$secondaryArchSuffix
|
|
devel:libphonon4qt5$secondaryArchSuffix
|
|
# Qt5
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5DBus$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5Qml$secondaryArchSuffix
|
|
devel:libQt5Quick$secondaryArchSuffix
|
|
devel:libQt5Webengine$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
devel:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgfmt
|
|
cmd:msgmerge
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
qthaikuplugins$secondaryArchSuffix
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -e '/add_subdirectory(doc)/ s/^#*/#/' -i CMakeLists.txt
|
|
sed -e '/kdoctools_install(po)/ s/^#*/#/' -i CMakeLists.txt
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
|
|
-DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \
|
|
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# cleanup
|
|
rm -rf $dataDir/{applications,icons,metainfo}
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local APP_NAME="kphotoalbum"
|
|
local LONG_INFO="$SUMMARY"
|
|
local APP_SIGNATURE="application/x-vnd.kphotoalbum"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
-e "s|@APP_NAME@|$APP_NAME|" \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
$portDir/additional-files/kphotoalbum.rdef.in > kphotoalbum.rdef
|
|
|
|
addResourcesToBinaries kphotoalbum.rdef $binDir/kphotoalbum
|
|
addAppDeskbarSymlink $binDir/kphotoalbum kphotoalbum
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make -C build test
|
|
}
|