From cb8ef070dc912d01a96e5e5e305c01689228c385 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Tue, 15 Jun 2021 17:27:41 +0200 Subject: [PATCH] libqt5pas, new recipe (#5988) --- dev-qt/libqt5pas/libqt5pas-1.2.9.recipe | 77 +++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 dev-qt/libqt5pas/libqt5pas-1.2.9.recipe diff --git a/dev-qt/libqt5pas/libqt5pas-1.2.9.recipe b/dev-qt/libqt5pas/libqt5pas-1.2.9.recipe new file mode 100644 index 000000000..83251d401 --- /dev/null +++ b/dev-qt/libqt5pas/libqt5pas-1.2.9.recipe @@ -0,0 +1,77 @@ +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="a40c69f56dcce909417d63d5e1fa8a9f0ddaec9024de6e6f5a99043b99e2f151" +SOURCE_DIR="libqt5pas-$portVersion/cbindings" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + libqt5pas$secondaryArchSuffix = $portVersion + lib:libQt5Pas$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libqt5Core$secondaryArchSuffix + lib:libqt5Gui$secondaryArchSuffix + lib:libqt5Network$secondaryArchSuffix + lib:libqt5PrintSupport$secondaryArchSuffix + lib:libqt5Widgets$secondaryArchSuffix + " + +PROVIDES_devel=" + libqt5pas${secondaryArchSuffix}_devel = $portVersion + devel:libQt5Pas$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + libqt5pas$secondaryArchSuffix == $portVersion base + " + +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|/boot/system/lib||" Makefile + else + sed -i "s|/boot/system/lib/x86||" Makefile + fi + + make INSTALL_ROOT=$libDir install + + prepareInstalledDevelLib \ + libQt5Pas + packageEntries devel \ + $developDir + + #clean up for INSTALL_ROOT + rm -rf $libDir/boot +}