1SUMMARY="The Open Source CAD System For Everyone" 2DESCRIPTION="QCAD is a free, open source application for computer aided drafting \ 3(CAD) in two dimensions (2D). With QCAD you can create technical drawings such as \ 4plans for buildings, interiors, mechanical parts or schematics and diagrams. QCAD \ 5works on Windows, macOS and Linux. The source code of QCAD is released under the \ 6GPL version 3 (GPLv3), a popular Open Source license. 7 8QCAD was designed with modularity, extensibility and portability in mind. But what \ 9people notice most often about QCAD is its intuitive user interface. QCAD is an easy \ 10to use but powerful 2D CAD system for everyone. You don't need any CAD experience to \ 11get started with QCAD immediately." 12HOMEPAGE="https://www.qcad.org/" 13COPYRIGHT="RibbonSoft GmbH" 14LICENSE="GNU GPL v3" 15REVISION="1" 16SOURCE_URI="https://github.com/qcad/qcad/archive/refs/tags/v$portVersion.tar.gz" 17CHECKSUM_SHA256="a6736d38cc14a36fee390a1bbf97ddeb8ad9c2bd5a572ff4992c2028fc3a4612" 18PATCHES="qcad-$portVersion.patchset" 19ADDITIONAL_FILES="qcad.rdef.in" 20 21ARCHITECTURES="all !x86_gcc2" 22SECONDARY_ARCHITECTURES="x86" 23 24PROVIDES=" 25 qcad$secondaryArchSuffix = $portVersion 26 app:QCAD$secondaryArchSuffix = $portVersion 27 " 28REQUIRES=" 29 haiku$secondaryArchSuffix 30 lib:libexecinfo$secondaryArchSuffix 31 lib:libfreetype$secondaryArchSuffix 32 lib:libGL$secondaryArchSuffix 33 lib:libQt5Core$secondaryArchSuffix 34 lib:libQt5Gui$secondaryArchSuffix 35 lib:libQt5PrintSupport$secondaryArchSuffix 36 lib:libQt5Svg$secondaryArchSuffix 37 lib:libQt5Widgets$secondaryArchSuffix 38 " 39 40BUILD_REQUIRES=" 41 haiku${secondaryArchSuffix}_devel 42 devel:libexecinfo$secondaryArchSuffix 43 devel:libfreetype$secondaryArchSuffix 44 devel:libGL$secondaryArchSuffix 45 devel:libQt5Core$secondaryArchSuffix 46 devel:libQt5Gui$secondaryArchSuffix 47 devel:libQt5PrintSupport$secondaryArchSuffix 48 devel:libQt5Svg$secondaryArchSuffix 49 devel:libQt5Widgets$secondaryArchSuffix 50 " 51BUILD_PREREQUIRES=" 52 cmd:find 53 cmd:g++$secondaryArchSuffix 54 cmd:make 55 cmd:pkg_config$secondaryArchSuffix 56 cmd:qmake$secondaryArchSuffix >= 5 57 cmd:which 58 " 59 60BUILD() 61{ 62 qmake -r 63 make $jobArgs 64} 65 66INSTALL() 67{ 68 mkdir -p $appsDir/QCAD/lib \ 69 $appsDir/QCAD/plugins 70 71 cp -f release/*.so $appsDir/QCAD/lib 72 cp -f release/qcad-bin $appsDir/QCAD/QCAD 73 cp -Rf plugins $appsDir/QCAD 74 cp -dpR {examples,fonts,libraries,linetypes,patterns,scripts,themes,ts} $appsDir/QCAD 75 rm -rf $appsDir/QCAD/plugins/{codecs,imageformats,printsupport,sqldrivers} 76 77 find $appsDir/QCAD \( -name '*.pri' -or -name '*.pro' -or -name '*.ts' \) -delete 78 find $appsDir/QCAD \( -name 'Makefile' -or -name '.gitignore' \) -delete 79 80 local APP_SIGNATURE="application/x-vnd.qcad" 81 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 82 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 83 local MINOR="`echo "$portVersion" | cut -d. -f3`" 84 local LONG_INFO="$SUMMARY" 85 sed \ 86 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 87 -e "s|@MAJOR@|$MAJOR|" \ 88 -e "s|@MIDDLE@|$MIDDLE|" \ 89 -e "s|@MINOR@|$MINOR|" \ 90 -e "s|@LONG_INFO@|$LONG_INFO|" \ 91 $portDir/additional-files/qcad.rdef.in > qcad.rdef 92 93 addResourcesToBinaries qcad.rdef $appsDir/QCAD/QCAD 94 mimeset -f $appsDir/QCAD/QCAD 95 addAppDeskbarSymlink $appsDir/QCAD/QCAD 96} 97