Hello,
I’m porting my project, QPrompt, to run on Haiku. QPrompt is written in C++ using Qt and KDE libraries. I’m having trouble getting the recipe to build. Running haikuporter in verbose mode returns:
$ haikuporter -v qprompt-1.0.0.recipe
Checking if any dependency-infos need to be updated …
/boot/home/haikuports/kde-apps/qprompt/work-1.0.0/port.recipe: line 11: $’\r’: command not found
recipe for qprompt-1.0.0 is still broken:
Error: Can’t evaluate config file: /boot/home/haikuports/kde-apps/qprompt/work-1.0.0/port.recipe
I don’t know what command it is failing to find…
Here’s a copy of my recipe. A big thanks to anyone who can point me in the right direction:
SUMMARY=“Personal Teleprompter App”
DESCRIPTION=“Teleprompter software for all video creators. Built with ease of use, productivity, control accuracy, and smooth performance in mind.”
HOMEPAGE=“https://qprompt.app”
COPYRIGHT=“2022 Javier O. Cordero Perez”
LICENSE=“GNU GPL v3”
REVISION=“1”
SOURCE_URI=“https://github.com/Cuperino/QPrompt/archive/refs/tags/v$portVersion.tar.xz”
CHECKSUM_SHA256=“dbafdebc84921ca3b69e86194efb3d728d7b8ac932b84ffc5e4a7682c671d199”
SOURCE_DIR=“qprompt-$portVersion”
ADDITIONAL_FILES=“qprompt.rdef.in”ARCHITECTURES=“all !x86_gcc2”
SECONDARY_ARCHITECTURES=“x86”PROVIDES="
qprompt$secondaryArchSuffix = $portVersion
app:QPrompt = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
qqc2_desktop_style$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libKF5CoreAddons$secondaryArchSuffix
lib:libKF5I18n$secondaryArchSuffix
lib:libKF5IconThemes$secondaryArchSuffix
lib:libKF5Kirigami2$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
lib:libQt5QuickControls2$secondaryArchSuffix
"BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
qqc2_desktop_style${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= 5.68
devel:libKF5CoreAddons$secondaryArchSuffix
devel:libKF5I18n$secondaryArchSuffix
devel:libKF5IconThemes$secondaryArchSuffix
devel:libKF5Kirigami2$secondaryArchSuffix
devel:libQCoro5Core$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5QuickControls2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:g++$secondaryArchSuffix
cmd:cmake
cmd:make
"#PATCHES="
#"BUILD()
{
sed -e ‘/ecm_find_qmlmodule/ s/^#*/#/’ -i CMakeLists.txtmkdir -p build
cd build
cmake …
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=$appsDir
-DCMAKE_INSTALL_BINDIR=$appsDir
-DCMAKE_INSTALL_DATADIR=$dataDir
-DCMAKE_INSTALL_DATAROOTDIR=$dataDir
-DSHARE_INSTALL_PREFIX=$dataDir
-DECM_DIR=/system/data/cmake/Modules/ECM/cmakemake $jobArgs
}INSTALL()
{
cd build
make installmv $appsDir/qprompt $appsDir/QPrompt
local APP_SIGNATURE=“application/x-vnd.cuperino.qprompt”
local MAJOR="echo "$portVersion" | cut -d. -f1
"
local MIDDLE="echo "$portVersion" | cut -d. -f2
"
local MINOR="echo "$portVersion" | cut -d. -f3
"
local LONG_INFO="$SUMMARY"
sed
-e “s|@APP_SIGNATURE@|$APP_SIGNATURE|”
-e “s|@MAJOR@|$MAJOR|”
-e “s|@MIDDLE@|$MIDDLE|”
-e “s|@MINOR@|$MINOR|”
-e “s|@LONG_INFO@|$LONG_INFO|”
$portDir/additional-files/qprompt.rdef.in > qprompt.rdefaddResourcesToBinaries qprompt.rdef $appsDir/QPrompt
addAppDeskbarSymlink $appsDir/QPrompt
}