mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
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:
63
media-gfx/librecad/librecad-2.1.3.recipe
Normal file
63
media-gfx/librecad/librecad-2.1.3.recipe
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user