Update librecad to 2.1.3 and use safe sources (#1137)

Update librecad to 2.1.3 and use safe sources
This commit is contained in:
Scott McCreary
2017-02-03 23:42:00 -08:00
committed by GitHub
parent 8d81959ce6
commit 2719979f04
2 changed files with 204 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
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"
}