mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
105 lines
3.2 KiB
Bash
105 lines
3.2 KiB
Bash
SUMMARY="Handwriting notetaking software with PDF annotation support"
|
|
DESCRIPTION="Xournal++ is a handwriting notetaking software with PDF annotation support. Written \
|
|
in C++ with GTK3, supporting Linux (e.g. Ubuntu, Debian, Arch, SUSE), macOS and Windows 10. \
|
|
Supports pen input from devices such as Wacom Tablets."
|
|
HOMEPAGE="https://github.com/xournalpp/xournalpp"
|
|
COPYRIGHT="2024 Xournal Team Members"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="8817abd1794760c2a3be3a35e56a5588a51e517bc591384fa321994d50e14e7c"
|
|
ADDITIONAL_FILES="xournalpp.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
xournalpp$secondaryArchSuffix = $portVersion
|
|
app:Xournal++ = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libatk_1.0$secondaryArchSuffix
|
|
lib:libcairo$secondaryArchSuffix
|
|
lib:libcairo_gobject$secondaryArchSuffix
|
|
lib:libexecinfo$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgthread_2.0$secondaryArchSuffix
|
|
lib:libgtk_3$secondaryArchSuffix
|
|
lib:libgdk_pixbuf_2.0$secondaryArchSuffix
|
|
lib:libgtksourceview_4$secondaryArchSuffix
|
|
lib:libharfbuzz$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:liblua$secondaryArchSuffix
|
|
lib:libpango_1.0$secondaryArchSuffix
|
|
lib:libpangocairo_1.0$secondaryArchSuffix
|
|
lib:libpoppler_glib$secondaryArchSuffix
|
|
lib:libportaudio$secondaryArchSuffix
|
|
lib:librsvg_2$secondaryArchSuffix
|
|
lib:libsndfile$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
lib:libzip$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libexecinfo$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libgthread_2.0$secondaryArchSuffix
|
|
devel:libgtk_3$secondaryArchSuffix
|
|
devel:libgtksourceview_4$secondaryArchSuffix
|
|
devel:liblua$secondaryArchSuffix >= 5.3
|
|
devel:libpoppler_glib$secondaryArchSuffix >= 8.26.0
|
|
devel:libportaudio$secondaryArchSuffix
|
|
devel:librsvg_2$secondaryArchSuffix
|
|
devel:libsndfile$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
devel:libzip$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=$appsDir/Xournalpp
|
|
make -Cbuild $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -Cbuild install
|
|
|
|
mv $appsDir/Xournalpp/bin/xournalpp $appsDir/Xournalpp/bin/"Xournal++"
|
|
rm -f $appsDir/Xournalpp/bin/xournalpp-thumbnailer # crashes
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local APP_NAME="Xournal++"
|
|
local LONG_INFO="$SUMMARY"
|
|
local APP_SIGNATURE="application/x-vnd.xournalpp"
|
|
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/xournalpp.rdef.in > xournalpp.rdef
|
|
|
|
addResourcesToBinaries xournalpp.rdef $appsDir/Xournalpp/bin/"Xournal++"
|
|
|
|
addAppDeskbarSymlink $appsDir/Xournalpp/bin/"Xournal++"
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make -Cbuild check
|
|
}
|