mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
89 lines
2.5 KiB
Bash
89 lines
2.5 KiB
Bash
SUMMARY="A comic reader"
|
|
DESCRIPTION="YACReader is a Qt based comic reader for cross-platform reading \
|
|
and managing your digital comic collection."
|
|
HOMEPAGE="http://www.yacreader.com/"
|
|
COPYRIGHT="Luis Ángel San Martín Rodríguez"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="https://bitbucket.org/luisangelsm/yacreader/downloads/yacreader-$portVersion-src.tar.xz"
|
|
CHECKSUM_SHA256="dfb6aa3c8f5971f85971123efb3322df77fbd40014025a8568e8337e1505d01d"
|
|
PATCHES="yacreader-$portVersion.patchset"
|
|
ADDITIONAL_FILES="yacreader.rdef.in"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
yacreader$secondaryArchSuffix = $portVersion
|
|
app:yacreader$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgl$secondaryArchSuffix
|
|
lib:libglu$secondaryArchSuffix
|
|
lib:libpoppler$secondaryArchSuffix
|
|
lib:libpoppler${secondaryArchSuffix}_qt5
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Multimedia$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5OpenGL$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:qmake$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgl$secondaryArchSuffix
|
|
devel:libglu$secondaryArchSuffix
|
|
devel:libpoppler$secondaryArchSuffix
|
|
devel:libpoppler${secondaryArchSuffix}_qt5
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Multimedia$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5OpenGL$secondaryArchSuffix
|
|
devel:libQt5Xml$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
devel:libunarr$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
# The YACLibrary and Server requires Drag and Drop support in Qt.
|
|
# Without it they are useless. Really.
|
|
# Let's build only the standalone viewer for now.
|
|
cd YACReader
|
|
qmake YACReader.pro "CONFIG+=release"
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd YACReader
|
|
mkdir -p $appsDir/YACReader
|
|
cp -R YACReader $appsDir/YACReader/
|
|
strip $appsDir/YACReader/YACReader
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
$portDir/additional-files/yacreader.rdef.in \
|
|
> yacreader.rdef
|
|
|
|
addResourcesToBinaries yacreader.rdef \
|
|
$appsDir/YACReader/YACReader
|
|
|
|
addAppDeskbarSymlink $appsDir/YACReader/YACReader
|
|
|
|
}
|