From e72bf7eb35e712af260974e5f514c6aa55bd4238 Mon Sep 17 00:00:00 2001 From: hfsfox Date: Mon, 5 Feb 2024 16:22:17 +0200 Subject: [PATCH] libqt6pas: add recipe (#10028) * libqt6pas: add recipe --- dev-qt/libqt6pas/libqt6pas-6.2.7.recipe | 67 +++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 dev-qt/libqt6pas/libqt6pas-6.2.7.recipe diff --git a/dev-qt/libqt6pas/libqt6pas-6.2.7.recipe b/dev-qt/libqt6pas/libqt6pas-6.2.7.recipe new file mode 100644 index 000000000..0f8ae6497 --- /dev/null +++ b/dev-qt/libqt6pas/libqt6pas-6.2.7.recipe @@ -0,0 +1,67 @@ +SUMMARY="Pascal wrapper for Qt6" +DESCRIPTION="libqt5pas is an interface between Lazarus and the Qt6 libraries. +Not all Qt6 functions are available, only those necessary for Lazarus \ +functionality." +HOMEPAGE="https://wiki.freepascal.org/Qt6_Interface" +COPYRIGHT="2005-2013 Jan Van Hijfte + 2022 Željan Rikalo" +LICENSE="GNU LGPL v3" +REVISION="1" +SOURCE_URI="https://github.com/davidbannon/libqt6pas/archive/refs/tags/v$portVersion.tar.gz" +CHECKSUM_SHA256="4cf8d79628f0f48a9bbcbb2d80b627c38a3673e1ed1767663861bb76f7f9f0e3" +SOURCE_DIR="libqt6pas-$portVersion/cbindings" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + libqt6pas$secondaryArchSuffix = $portVersion + lib:libQt6Pas$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libqt6Core$secondaryArchSuffix + lib:libqt6Gui$secondaryArchSuffix + lib:libqt6Network$secondaryArchSuffix + lib:libqt6PrintSupport$secondaryArchSuffix + lib:libqt6Widgets$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libqt6Core$secondaryArchSuffix + devel:libqt6Gui$secondaryArchSuffix + devel:libqt6Network$secondaryArchSuffix + devel:libqt6PrintSupport$secondaryArchSuffix + devel:libqt6Widgets$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:make + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:qmake6$secondaryArchSuffix + " + +BUILD() +{ + qmake6 INSTALL_ROOT=$libDir + make $jobArgs +} + +INSTALL() +{ + #hack to fix the install path + if [ -z "$secondaryArchSuffix" ]; 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 +}