mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
64 lines
1.5 KiB
Bash
64 lines
1.5 KiB
Bash
SUMMARY="A 2D CAD drawing tool"
|
|
DESCRIPTION="LibreCAD is a 2D CAD drawing tool based on the community edition \
|
|
of QCAD (http://www.qcad.org).
|
|
|
|
LibreCAD has been re-structured, ported to new Qt versions and works natively \
|
|
cross platform between OS X, Windows, Linux and Haiku."
|
|
HOMEPAGE="http://librecad.org"
|
|
COPYRIGHT="2015 LibreCAD"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/LibreCAD/LibreCAD/archive/2.1.3.tar.gz"
|
|
CHECKSUM_SHA256="74c4ede409b13d0365c65c0cd52dba04f1049530f6df706dc905443d5e60db06"
|
|
PATCHES="librecad-$portVersion.patchset"
|
|
SOURCE_DIR="LibreCAD-2.1.3"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
librecad$secondaryArchSuffix = $portVersion
|
|
app:LibreCAD$secondaryArchSuffix = $portVersion
|
|
cmd:ttf2lff$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku${secondaryArchSuffix}
|
|
libqt4$secondaryArchSuffix >= 4.8.0
|
|
lib:libfreetype$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
libqt4${secondaryArchSuffix}_devel >= 4.8.0
|
|
boost${secondaryArchSuffix}_devel
|
|
devel:libfreetype$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:qmake$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
qmake
|
|
make $jobArgs
|
|
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir/LibreCAD $binDir
|
|
|
|
cd unix
|
|
strip librecad
|
|
addResourcesToBinaries ../haiku/LibreCAD.rdef librecad
|
|
|
|
cp librecad $appsDir/LibreCAD/LibreCAD
|
|
cp -R appdata resources $appsDir/LibreCAD
|
|
cp ttf2lff $binDir
|
|
|
|
addAppDeskbarSymlink $appsDir/LibreCAD/LibreCAD "LibreCAD"
|
|
}
|