mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
QCAD: add recipe for 3.21.2.3 version
This commit is contained in:
56
media-gfx/qcad/additional-files/qcad.rdef.in
Normal file
56
media-gfx/qcad/additional-files/qcad.rdef.in
Normal file
@@ -0,0 +1,56 @@
|
||||
|
||||
resource app_flags B_MULTIPLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "QCAD",
|
||||
long_info = "@LONG_INFO@"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
|
||||
resource file_types message {
|
||||
"types" = "application/x-dxf",
|
||||
"types" = "application/x-dwg",
|
||||
"types" = "image/svg+xml"
|
||||
};
|
||||
|
||||
resource vector_icon {
|
||||
$"6E6369660D04016C0501020106033A82043CD5F8C109FB3EB003486D5348B74F"
|
||||
$"00FFFFFF23B1B9D0FF3C5DA003B2B9D001FF00009003E2C255020006023B8E66"
|
||||
$"0000000000003B8E6649FFD7CB1C6600C5B03AFFE9DA7102000603B4A8F538FC"
|
||||
$"CCB8FCCCB4A8F54A3BEB479DC200FFEED58DDBAB5FCFFFEED5020006023D4D47"
|
||||
$"0000000000003D4D474A4FEBCA595C00FFEABAFFFFF6E3020006023C08280000"
|
||||
$"000000003C08284A3FEBCAFBEB00F0AB06FFFBB50D02000602B66F5C3A775CBA"
|
||||
$"775CB66F5C4DA8664A311E00A52A04FFFDB44B02000603000000390C28B90C29"
|
||||
$"0000004BF22845FF5C00FFEAEEC6D17C8AFFDA9FAA02000602AA8F603A0851BA"
|
||||
$"0851AA8F604D541446D14700FFE3E8FFF8A1B11002044030BC3A30C345305040"
|
||||
$"50BC3A50C3454050C34550BC3A50304030C34530BC3A02044034473439343440"
|
||||
$"34393447404C394C474C4C404C474C390A082C423842462C5233494255425551"
|
||||
$"2C5108042F4A524A52492F490A04C6F0C5C24E4F514BC9BBC4280A06C4DF4F41"
|
||||
$"C507374B394A45C33CC6D1C36F0606B20831245356295625562D532E31262908"
|
||||
$"04BA27B4D33027302BBA27B8570003C4E9B4D3C4E9B4D3C492B5174B294BB59E"
|
||||
$"4BB78CC4E9B857C492B813C4E9B8570A063124B8B9B5B1B8B9B779312EB676B6"
|
||||
$"EBB67BB63C0A043324B969B5B94A274D240A04B969B5B9B969B7714A2B4A270A"
|
||||
$"04B969B771332E4D2E4A2B06062E0B532450295025502D532E4F4C294C2D4C25"
|
||||
$"4F240604EE532456295625562D532E5029502D5025020A4030C34530BC3A3030"
|
||||
$"4030BC3A30C3454050BC3A50C074504650C1DBC5D748524D56C471C8F6C512C8"
|
||||
$"635155C5D3C8D05254525252524C4B4E494C4B4E49504050C0C4504050405040"
|
||||
$"50BC3A0E0A00010F024106960000000000003F4218C6CD2D487EF30A04010302"
|
||||
$"4027970000000000003FEF0EC4421BBFD9E00A040103023DA827BEE4C83F7328"
|
||||
$"3E4163C809164955EC0A000102023FDE090000000000003FEF0EBFB397BFD9E0"
|
||||
$"0A010102123FDE090000000000004004DABFB397C08C5801178100040A010200"
|
||||
$"011241624800000000000041712CC90423C9121901178222040A020200010241"
|
||||
$"624800000000000041712CC90423C912190A0103060708123E513D3E1D83BE59"
|
||||
$"F53EAA5449CDD848D03501178300040A070109023E513D3E1D83BE59F53EAA54"
|
||||
$"49CDD848D0350A08010A023E513D3E1D83BE59F53EAA5449CDD848D0350A0901"
|
||||
$"0B023E513D3E1D83BE59F53EAA5449CDD848D0350A0A010C023E513D3E1D83BE"
|
||||
$"59F53EAA5449CDD848D0350A0B010D023E513D3E1D83BE59F53EAA5449CDD848"
|
||||
$"D0350A0C010E023E513D3E1D83BE59F53EAA5449CDD848D035"
|
||||
};
|
||||
35
media-gfx/qcad/patches/qcad-3.21.2.3.patchset
Normal file
35
media-gfx/qcad/patches/qcad-3.21.2.3.patchset
Normal file
@@ -0,0 +1,35 @@
|
||||
From d82a98f8d86c4dba669781e856590144ae4a55f8 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Tue, 21 Aug 2018 23:05:47 +1000
|
||||
Subject: Fix build for Haiku
|
||||
|
||||
|
||||
diff --git a/src/core/RDebug.cpp b/src/core/RDebug.cpp
|
||||
index 0146f2a..b68e1e8 100644
|
||||
--- a/src/core/RDebug.cpp
|
||||
+++ b/src/core/RDebug.cpp
|
||||
@@ -34,7 +34,7 @@ QMap<QString, int> RDebug::counter;
|
||||
QString RDebug::prefix;
|
||||
|
||||
void RDebug::printBacktrace(const QString& prefix) {
|
||||
-#if !defined(Q_OS_WIN) && !defined(Q_OS_ANDROID)
|
||||
+#if !defined(Q_OS_WIN) && !defined(Q_OS_ANDROID) && !defined(Q_OS_HAIKU)
|
||||
void *array[20];
|
||||
size_t size;
|
||||
char **strings;
|
||||
diff --git a/src/scripting/ecmaapi/ecmaapi.pro b/src/scripting/ecmaapi/ecmaapi.pro
|
||||
index 6fa6cdd..e9a60bc 100644
|
||||
--- a/src/scripting/ecmaapi/ecmaapi.pro
|
||||
+++ b/src/scripting/ecmaapi/ecmaapi.pro
|
||||
@@ -5,7 +5,7 @@ TARGET = $${RLIBNAME}ecmaapi
|
||||
CONFIG -= warn_on
|
||||
CONFIG += warn_off
|
||||
CONFIG += precompile_header
|
||||
-PRECOMPILED_HEADER = stable.h
|
||||
+#PRECOMPILED_HEADER = stable.h
|
||||
OTHER_FILES += ecmaapi.dox
|
||||
DEFINES += QCADECMAAPI_LIBRARY
|
||||
RC_FILE = ecmaapi.rc
|
||||
--
|
||||
2.16.4
|
||||
|
||||
96
media-gfx/qcad/qcad-3.21.2.3.recipe
Normal file
96
media-gfx/qcad/qcad-3.21.2.3.recipe
Normal file
@@ -0,0 +1,96 @@
|
||||
SUMMARY="The Open Source CAD System For Everyone"
|
||||
DESCRIPTION="QCAD is a free, open source application for computer aided drafting \
|
||||
(CAD) in two dimensions (2D). With QCAD you can create technical drawings such as \
|
||||
plans for buildings, interiors, mechanical parts or schematics and diagrams. QCAD \
|
||||
works on Windows, macOS and Linux. The source code of QCAD is released under the \
|
||||
GPL version 3 (GPLv3), a popular Open Source license.
|
||||
|
||||
QCAD was designed with modularity, extensibility and portability in mind. But what \
|
||||
people notice most often about QCAD is its intuitive user interface. QCAD is an easy \
|
||||
to use but powerful 2D CAD system for everyone. You don't need any CAD experience to \
|
||||
get started with QCAD immediately."
|
||||
HOMEPAGE="https://www.qcad.org/"
|
||||
COPYRIGHT="RibbonSoft GmbH"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/qcad/qcad/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ad8cfb30251516d1d605f1d70c538e617ed957d5f3b4f6dc688a0ca533e0fc10"
|
||||
PATCHES="qcad-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="qcad.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
qcad$secondaryArchSuffix = $portVersion
|
||||
app:QCAD$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libexecinfo$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5PrintSupport$secondaryArchSuffix
|
||||
lib:libQt5Svg$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libexecinfo$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5PrintSupport$secondaryArchSuffix
|
||||
devel:libQt5Svg$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:find
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:qmake$secondaryArchSuffix >= 5
|
||||
cmd:which
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
qmake -r
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/QCAD/lib \
|
||||
$appsDir/QCAD/plugins
|
||||
|
||||
cp -f release/*.so $appsDir/QCAD/lib
|
||||
cp -f release/qcad-bin $appsDir/QCAD/QCAD
|
||||
cp -Rf plugins $appsDir/QCAD
|
||||
cp -dpR {examples,fonts,libraries,linetypes,patterns,scripts,themes,ts} $appsDir/QCAD
|
||||
rm -rf $appsDir/QCAD/plugins/{codecs,imageformats,printsupport,sqldrivers}
|
||||
|
||||
find $appsDir/QCAD \( -name '*.pri' -or -name '*.pro' -or -name '*.ts' \) -delete
|
||||
find $appsDir/QCAD \( -name 'Makefile' -or -name '.gitignore' \) -delete
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.qcad"
|
||||
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/qcad.rdef.in > qcad.rdef
|
||||
|
||||
addResourcesToBinaries qcad.rdef $appsDir/QCAD/QCAD
|
||||
mimeset -f $appsDir/QCAD/QCAD
|
||||
addAppDeskbarSymlink $appsDir/QCAD/QCAD
|
||||
}
|
||||
Reference in New Issue
Block a user