mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
67 lines
1.8 KiB
Bash
67 lines
1.8 KiB
Bash
SUMMARY="Pascal wrapper for Qt5"
|
|
DESCRIPTION="libqt5pas is an interface between Lazarus and the Qt5 libraries.
|
|
Not all Qt5 functions are available, only those necessary for Lazarus \
|
|
functionality."
|
|
HOMEPAGE="https://wiki.freepascal.org/Qt5_Interface"
|
|
COPYRIGHT="2005-2013 Jan Van Hijfte
|
|
2017 Željan Rikalo"
|
|
LICENSE="GNU LGPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/davidbannon/libqt5pas/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="76c9fab44142275fedca4a9c43768d30d9e167399a5684c624428b3784f2f474"
|
|
SOURCE_DIR="libqt5pas-$portVersion/cbindings"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libqt5pas$secondaryArchSuffix = $portVersion
|
|
lib:libQt5Pas$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libqt5Core$secondaryArchSuffix
|
|
lib:libqt5Gui$secondaryArchSuffix
|
|
lib:libqt5Network$secondaryArchSuffix
|
|
lib:libqt5PrintSupport$secondaryArchSuffix
|
|
lib:libqt5Widgets$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libqt5Core$secondaryArchSuffix
|
|
devel:libqt5Gui$secondaryArchSuffix
|
|
devel:libqt5Network$secondaryArchSuffix
|
|
devel:libqt5PrintSupport$secondaryArchSuffix
|
|
devel:libqt5Widgets$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:qmake$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
qmake INSTALL_ROOT=$libDir
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
#hack to fix the install path
|
|
if [ "$targetArchitecture" = x86_64 ]; then
|
|
sed -i "s|(INSTALL_ROOT)/boot/system/lib|(INSTALL_ROOT)|" Makefile
|
|
else
|
|
sed -i "s|(INSTALL_ROOT)/boot/system/lib/x86|(INSTALL_ROOT)|" Makefile
|
|
fi
|
|
|
|
make INSTALL_ROOT=$libDir install
|
|
#clean up for INSTALL_ROOT
|
|
rm -rf $libDir/boot
|
|
}
|