mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
92 lines
2.6 KiB
Bash
92 lines
2.6 KiB
Bash
SUMMARY="A 2D CAD drawing program"
|
|
DESCRIPTION="LibreCAD is a cross-platform 2D CAD program written in C++11 \
|
|
using the Qt framework. It can read DXF and DWG files and can write DXF, PDF \
|
|
and SVG files. The user interface is highly customizable, and has dozens of \
|
|
translations."
|
|
HOMEPAGE="https://librecad.org/"
|
|
COPYRIGHT="2022 LibreCAD"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/LibreCAD/LibreCAD/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="2b961cb916a7415d97f427f824c1830e06d4832cc376fea38b27cb456ee95a8e"
|
|
SOURCE_DIR="LibreCAD-$portVersion"
|
|
PATCHES="librecad-$portVersion.patchset"
|
|
ADDITIONAL_FILES="librecad.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
librecad$secondaryArchSuffix = $portVersion
|
|
app:LibreCAD = $portVersion
|
|
cmd:ttf2lff$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libboost_system$secondaryArchSuffix
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libmuparser$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5PrintSupport$secondaryArchSuffix
|
|
lib:libQt5Svg$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libboost_system$secondaryArchSuffix >= 1.88.0
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libmuparser$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5PrintSupport$secondaryArchSuffix
|
|
devel:libQt5Svg$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:lrelease$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qmake$secondaryArchSuffix
|
|
cmd:which
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
qmake
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir/LibreCAD $binDir
|
|
|
|
cd unix
|
|
strip librecad
|
|
|
|
cp librecad $appsDir/LibreCAD/LibreCAD
|
|
cp -R appdata resources $appsDir/LibreCAD
|
|
cp ttf2lff $binDir
|
|
|
|
local APP_SIGNATURE="application/x-vnd.librecad"
|
|
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/librecad.rdef.in > librecad.rdef
|
|
|
|
addResourcesToBinaries librecad.rdef $appsDir/LibreCAD/LibreCAD
|
|
|
|
addAppDeskbarSymlink $appsDir/LibreCAD/LibreCAD
|
|
}
|