pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

leocad: Import leocad v21.06



Module Name:	pkgsrc-wip
Committed By:	Paul Ripke <stix%stix.id.au@localhost>
Pushed By:	stix
Date:		Mon Nov 15 13:35:15 2021 +1100
Changeset:	6201a7532646eedaa96c8f13e56b4687f5bb6c24

Modified Files:
	Makefile
Added Files:
	leocad/DESCR
	leocad/MESSAGE
	leocad/Makefile
	leocad/PLIST
	leocad/distinfo
	leocad/patches/patch-common_lc__application.h
	leocad/patches/patch-common_lc__collapsiblewidget.h
	leocad/patches/patch-common_lc__edgecolordialog.cpp
	leocad/patches/patch-common_lc__findreplacewidget.h
	leocad/patches/patch-common_lc__instructions.h
	leocad/patches/patch-common_lc__library.h
	leocad/patches/patch-common_lc__mainwindow.h
	leocad/patches/patch-common_lc__minifigdialog.h
	leocad/patches/patch-common_lc__pagesetupdialog.h
	leocad/patches/patch-common_lc__partpalettedialog.h
	leocad/patches/patch-common_lc__partselectionwidget.h
	leocad/patches/patch-common_lc__previewwidget.h
	leocad/patches/patch-common_lc__timelinewidget.h
	leocad/patches/patch-common_lc__view.h
	leocad/patches/patch-common_lc__viewwidget.h
	leocad/patches/patch-leocad.pro
	leocad/patches/patch-qt_lc__qaboutdialog.h
	leocad/patches/patch-qt_lc__qarraydialog.h
	leocad/patches/patch-qt_lc__qcategorydialog.h
	leocad/patches/patch-qt_lc__qcolorlist.h
	leocad/patches/patch-qt_lc__qcolorpicker.h
	leocad/patches/patch-qt_lc__qeditgroupsdialog.h
	leocad/patches/patch-qt_lc__qgroupdialog.h
	leocad/patches/patch-qt_lc__qhtmldialog.h
	leocad/patches/patch-qt_lc__qimagedialog.h
	leocad/patches/patch-qt_lc__qmodellistdialog.h
	leocad/patches/patch-qt_lc__qpreferencesdialog.h
	leocad/patches/patch-qt_lc__qpropertiesdialog.h
	leocad/patches/patch-qt_lc__qpropertiestree.h
	leocad/patches/patch-qt_lc__qselectdialog.h
	leocad/patches/patch-qt_lc__qupdatedialog.h
	leocad/patches/patch-qt_lc__qutils.h
	leocad/patches/patch-qt_lc__renderdialog.cpp
	leocad/patches/patch-qt_lc__renderdialog.h
	leocad/patches/patch-qt_lc__setsdatabasedialog.h
	leocad/patches/patch-qt_qtmain.cpp

Log Message:
leocad: Import leocad v21.06

LeoCAD is a CAD program for creating virtual LEGO(R) models. LeoCAD is fully
compatible with the LDraw Standard and related tools, and it reads and writes
LDR and MPD files so that you can share and download models from the Internet.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6201a7532646eedaa96c8f13e56b4687f5bb6c24

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |  2 ++
 leocad/DESCR                                       |  3 ++
 leocad/MESSAGE                                     | 10 ++++++
 leocad/Makefile                                    | 27 ++++++++++++++
 leocad/PLIST                                       | 25 +++++++++++++
 leocad/distinfo                                    | 42 ++++++++++++++++++++++
 leocad/patches/patch-common_lc__application.h      | 13 +++++++
 .../patches/patch-common_lc__collapsiblewidget.h   | 14 ++++++++
 .../patches/patch-common_lc__edgecolordialog.cpp   | 11 ++++++
 .../patches/patch-common_lc__findreplacewidget.h   | 14 ++++++++
 leocad/patches/patch-common_lc__instructions.h     | 13 +++++++
 leocad/patches/patch-common_lc__library.h          | 13 +++++++
 leocad/patches/patch-common_lc__mainwindow.h       | 13 +++++++
 leocad/patches/patch-common_lc__minifigdialog.h    | 13 +++++++
 leocad/patches/patch-common_lc__pagesetupdialog.h  | 14 ++++++++
 .../patches/patch-common_lc__partpalettedialog.h   | 14 ++++++++
 .../patches/patch-common_lc__partselectionwidget.h | 13 +++++++
 leocad/patches/patch-common_lc__previewwidget.h    | 13 +++++++
 leocad/patches/patch-common_lc__timelinewidget.h   | 14 ++++++++
 leocad/patches/patch-common_lc__view.h             | 13 +++++++
 leocad/patches/patch-common_lc__viewwidget.h       | 14 ++++++++
 leocad/patches/patch-leocad.pro                    | 14 ++++++++
 leocad/patches/patch-qt_lc__qaboutdialog.h         | 13 +++++++
 leocad/patches/patch-qt_lc__qarraydialog.h         | 13 +++++++
 leocad/patches/patch-qt_lc__qcategorydialog.h      | 13 +++++++
 leocad/patches/patch-qt_lc__qcolorlist.h           | 14 ++++++++
 leocad/patches/patch-qt_lc__qcolorpicker.h         | 13 +++++++
 leocad/patches/patch-qt_lc__qeditgroupsdialog.h    | 13 +++++++
 leocad/patches/patch-qt_lc__qgroupdialog.h         | 13 +++++++
 leocad/patches/patch-qt_lc__qhtmldialog.h          | 13 +++++++
 leocad/patches/patch-qt_lc__qimagedialog.h         | 13 +++++++
 leocad/patches/patch-qt_lc__qmodellistdialog.h     | 13 +++++++
 leocad/patches/patch-qt_lc__qpreferencesdialog.h   | 13 +++++++
 leocad/patches/patch-qt_lc__qpropertiesdialog.h    | 13 +++++++
 leocad/patches/patch-qt_lc__qpropertiestree.h      | 13 +++++++
 leocad/patches/patch-qt_lc__qselectdialog.h        | 13 +++++++
 leocad/patches/patch-qt_lc__qupdatedialog.h        | 13 +++++++
 leocad/patches/patch-qt_lc__qutils.h               | 13 +++++++
 leocad/patches/patch-qt_lc__renderdialog.cpp       | 42 ++++++++++++++++++++++
 leocad/patches/patch-qt_lc__renderdialog.h         | 13 +++++++
 leocad/patches/patch-qt_lc__setsdatabasedialog.h   | 13 +++++++
 leocad/patches/patch-qt_qtmain.cpp                 | 15 ++++++++
 42 files changed, 614 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index f4ccc9e5e0..7085bb26ed 100644
--- a/Makefile
+++ b/Makefile
@@ -1082,6 +1082,7 @@ SUBDIR+=	gcc9snapshot
 SUBDIR+=	gconf-cleaner
 SUBDIR+=	gdal-docs
 SUBDIR+=	gdal-grass
+SUBDIR+=	gdcm
 SUBDIR+=	gdb
 SUBDIR+=	gdb-git
 SUBDIR+=	gdb5
@@ -1997,6 +1998,7 @@ SUBDIR+=	lde
 SUBDIR+=	ldtp
 SUBDIR+=	lemonbar
 SUBDIR+=	leo
+SUBDIR+=	leocad
 SUBDIR+=	lfe
 SUBDIR+=	lgogdownloader-git
 SUBDIR+=	lha
diff --git a/leocad/DESCR b/leocad/DESCR
new file mode 100644
index 0000000000..705cee4f12
--- /dev/null
+++ b/leocad/DESCR
@@ -0,0 +1,3 @@
+LeoCAD is a CAD program for creating virtual LEGO(R) models. LeoCAD is fully
+compatible with the LDraw Standard and related tools, and it reads and writes
+LDR and MPD files so that you can share and download models from the Internet.
diff --git a/leocad/MESSAGE b/leocad/MESSAGE
new file mode 100644
index 0000000000..6c342a2ba5
--- /dev/null
+++ b/leocad/MESSAGE
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD$
+
+Installing the LDraw parts library:
+
+sudo mkdir -p "${PREFIX}/share/leocad"
+sudo ftp -o "${PREFIX}/share/leocad/library.bin" \
+	https://www.ldraw.org/library/updates/complete.zip
+
+===========================================================================
diff --git a/leocad/Makefile b/leocad/Makefile
new file mode 100644
index 0000000000..373733bb97
--- /dev/null
+++ b/leocad/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD$
+
+DISTNAME=		leocad-21.06
+CATEGORIES=		cad
+MASTER_SITES=		${MASTER_SITE_GITHUB:=leozide/}
+GITHUB_PROJECT=		leocad
+GITHUB_TAG=		v${PKGVERSION_NOREV}
+
+MAINTAINER=		stix%stix.id.au@localhost
+HOMEPAGE=		https://leocad.org/
+COMMENT=		Design virtual models you can build with LEGO(R) bricks
+LICENSE=		gnu-gpl-v2
+
+USE_LANGUAGES=		c c++
+MAKE_FLAGS+=		INSTALL_ROOT=${DESTDIR}
+
+do-configure:
+	cd ${WRKSRC} && ${QTDIR}/bin/qmake \
+		INSTALL_PREFIX=${PREFIX} \
+		MAN_DIR=${PREFIX}/${PKGMANDIR}/man1 \
+		DISABLE_UPDATE_CHECK=1
+
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.include "../../x11/qt5-qttools/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/leocad/PLIST b/leocad/PLIST
new file mode 100644
index 0000000000..1a00882ad6
--- /dev/null
+++ b/leocad/PLIST
@@ -0,0 +1,25 @@
+@comment $NetBSD$
+bin/leocad
+man/man1/leocad.1
+share/applications/leocad.desktop
+share/doc/leocad/COPYING.txt
+share/doc/leocad/CREDITS.txt
+share/doc/leocad/README.md
+share/icons/hicolor/128x128/apps/leocad.png
+share/icons/hicolor/128x128/mimetypes/application-vnd.leocad.png
+share/icons/hicolor/16x16/apps/leocad.png
+share/icons/hicolor/16x16/mimetypes/application-vnd.leocad.png
+share/icons/hicolor/24x24/apps/leocad.png
+share/icons/hicolor/256x256/apps/leocad.png
+share/icons/hicolor/256x256/mimetypes/application-vnd.leocad.png
+share/icons/hicolor/32x32/apps/leocad.png
+share/icons/hicolor/32x32/mimetypes/application-vnd.leocad.png
+share/icons/hicolor/48x48/apps/leocad.png
+share/icons/hicolor/512x512/apps/leocad.png
+share/icons/hicolor/512x512/mimetypes/application-vnd.leocad.png
+share/icons/hicolor/64x64/apps/leocad.png
+share/icons/hicolor/64x64/mimetypes/application-vnd.leocad.png
+share/icons/hicolor/scalable/apps/leocad.svg
+share/icons/hicolor/scalable/mimetypes/application-vnd.leocad.svg
+share/metainfo/leocad.appdata.xml
+share/mime/packages/leocad.xml
diff --git a/leocad/distinfo b/leocad/distinfo
new file mode 100644
index 0000000000..ce06d55197
--- /dev/null
+++ b/leocad/distinfo
@@ -0,0 +1,42 @@
+$NetBSD$
+
+SHA1 (leocad-21.06.tar.gz) = 181d3311a71442827d5ac197f67244e33ac9a256
+RMD160 (leocad-21.06.tar.gz) = 06a4dfb0e316686e7922d6c84359c114f506b89f
+SHA512 (leocad-21.06.tar.gz) = 6cc868d3da15f9fe003a70d3a8ebaf2b4e6562a8728652cb7fc9e3ab5ddd9a90c5e433fd4d37cc9f972dc314399b4edb34fe5d9cd47ad63bf7c5d71e04e3c662
+Size (leocad-21.06.tar.gz) = 2213955 bytes
+SHA1 (patch-common_lc__application.h) = 759bfb463074d0a9a585610dec09ef444c16ebe5
+SHA1 (patch-common_lc__collapsiblewidget.h) = 091d47c6777ead7720e4f9b566a6fdc17b5edf03
+SHA1 (patch-common_lc__edgecolordialog.cpp) = 9db39fda3ed607029d2bbc1041cd8be92b5f2c22
+SHA1 (patch-common_lc__findreplacewidget.h) = 96fb015be182cfc9523086deddc57cb5d421d699
+SHA1 (patch-common_lc__instructions.h) = ac495a3309b80cfeec2406eaf02955217c97327a
+SHA1 (patch-common_lc__library.h) = 42a469cda26cdeca0760d1712d3cc909f842b53b
+SHA1 (patch-common_lc__mainwindow.h) = 9442812345e4ec8f18e4f43a8439d423d547d079
+SHA1 (patch-common_lc__minifigdialog.h) = 19bca43193255c246691d06c85040ab1a4c0ad47
+SHA1 (patch-common_lc__pagesetupdialog.h) = 034c642067d362277e6ee4487b50b0000406e0d3
+SHA1 (patch-common_lc__partpalettedialog.h) = b24e60e446a814a078da0ce13cdf98e2baed36c2
+SHA1 (patch-common_lc__partselectionwidget.h) = 065424f9ef38a67c287e03c9ad2466f6a1ea4644
+SHA1 (patch-common_lc__previewwidget.h) = c8ac55e5ce6040a26b04f9ada537093d6e97e1b5
+SHA1 (patch-common_lc__timelinewidget.h) = a0f1f69edda68d8307ccd9f52f0fa8c81c6f14f4
+SHA1 (patch-common_lc__view.h) = 3b8987b58ae24db564990cd984f04f7554613024
+SHA1 (patch-common_lc__viewwidget.h) = affe61eafa26c12a9376912da866ac2095a028ca
+SHA1 (patch-leocad.pro) = a62888ba4c55538a513108245f8fbd0434925976
+SHA1 (patch-qt_lc__qaboutdialog.h) = 78d26e8d536f51d6bf80ba978165e511e3088e1b
+SHA1 (patch-qt_lc__qarraydialog.h) = 861667c52e175427838bf50e260da35a4d7c6bbd
+SHA1 (patch-qt_lc__qcategorydialog.h) = 519b14f28c657bc93a80d271464b98d14a0f4c1c
+SHA1 (patch-qt_lc__qcolorlist.h) = 0d547958175926f23ec8bf4b08bff07a6a26a2ad
+SHA1 (patch-qt_lc__qcolorpicker.h) = f1d3fd06e28b4f75a3cd37fffb5e1809c1f2ff4a
+SHA1 (patch-qt_lc__qeditgroupsdialog.h) = 948ec36dfc0e970e9617ba0cdcb6d2cc9391016a
+SHA1 (patch-qt_lc__qgroupdialog.h) = 88de5530fcc2ac85ee192cd5bce6f9b28c98fd01
+SHA1 (patch-qt_lc__qhtmldialog.h) = 18775e24d241d75aa0221c0ce148040b3bd6f0cd
+SHA1 (patch-qt_lc__qimagedialog.h) = f229fcc8be30d5473220943e59a6e96ab63feca2
+SHA1 (patch-qt_lc__qmodellistdialog.h) = 262a4f582027b47b03d7e5caef33ebbfeb48206a
+SHA1 (patch-qt_lc__qpreferencesdialog.h) = 1c7966cc65b15d6d77478455953bff55ccfdbd05
+SHA1 (patch-qt_lc__qpropertiesdialog.h) = 4825845cd484519334a74cb5bd0374e29a061baf
+SHA1 (patch-qt_lc__qpropertiestree.h) = 7ca8a1f7a8010a997f32cd0d7fc9334906268359
+SHA1 (patch-qt_lc__qselectdialog.h) = 65b7377c53878cd3526da8000758c00485ae2f6c
+SHA1 (patch-qt_lc__qupdatedialog.h) = 429a51ca64b6204a6c2c7d201e415d73d99b3bdd
+SHA1 (patch-qt_lc__qutils.h) = 5173561bb986365ceba8cd530ef3d436e545a93d
+SHA1 (patch-qt_lc__renderdialog.cpp) = a434f134907b65b84a6213b9a480c387622863f2
+SHA1 (patch-qt_lc__renderdialog.h) = 9923f33595cd866459c0aedf07acbcd379153b4a
+SHA1 (patch-qt_lc__setsdatabasedialog.h) = 9f06fedffc02f9d0fe813bda3591e79adefda8dc
+SHA1 (patch-qt_qtmain.cpp) = 378b6c6cdc86963192c87dd54ba9aa0fe9424853
diff --git a/leocad/patches/patch-common_lc__application.h b/leocad/patches/patch-common_lc__application.h
new file mode 100644
index 0000000000..e98b8bbcee
--- /dev/null
+++ b/leocad/patches/patch-common_lc__application.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_application.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ common/lc_application.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include "lc_array.h"
+ #include "lc_math.h"
+ 
diff --git a/leocad/patches/patch-common_lc__collapsiblewidget.h b/leocad/patches/patch-common_lc__collapsiblewidget.h
new file mode 100644
index 0000000000..c5262e8bff
--- /dev/null
+++ b/leocad/patches/patch-common_lc__collapsiblewidget.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_collapsiblewidget.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ common/lc_collapsiblewidget.h
+@@ -1,5 +1,7 @@
+ #pragma once
+ 
++#include "lc_global.h"
++
+ class lcCollapsibleWidget : public QWidget
+ {
+ 	Q_OBJECT
diff --git a/leocad/patches/patch-common_lc__edgecolordialog.cpp b/leocad/patches/patch-common_lc__edgecolordialog.cpp
new file mode 100644
index 0000000000..23c6666a04
--- /dev/null
+++ b/leocad/patches/patch-common_lc__edgecolordialog.cpp
@@ -0,0 +1,11 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_edgecolordialog.cpp.orig	2021-11-11 11:23:54.023876623 +0000
++++ common/lc_edgecolordialog.cpp
+@@ -1,3 +1,4 @@
++#include "lc_global.h"
+ #include "lc_edgecolordialog.h"
+ #include "lc_application.h"
+ 
diff --git a/leocad/patches/patch-common_lc__findreplacewidget.h b/leocad/patches/patch-common_lc__findreplacewidget.h
new file mode 100644
index 0000000000..aa125b1195
--- /dev/null
+++ b/leocad/patches/patch-common_lc__findreplacewidget.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_findreplacewidget.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ common/lc_findreplacewidget.h
+@@ -1,5 +1,7 @@
+ #pragma once
+ 
++#include "lc_global.h"
++
+ class lcFindReplaceWidget : public QWidget
+ {
+ 	Q_OBJECT
diff --git a/leocad/patches/patch-common_lc__instructions.h b/leocad/patches/patch-common_lc__instructions.h
new file mode 100644
index 0000000000..94ecc31bdd
--- /dev/null
+++ b/leocad/patches/patch-common_lc__instructions.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_instructions.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ common/lc_instructions.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include "lc_math.h"
+ 
+ struct lcInstructionsPageSetup
diff --git a/leocad/patches/patch-common_lc__library.h b/leocad/patches/patch-common_lc__library.h
new file mode 100644
index 0000000000..91369f90c1
--- /dev/null
+++ b/leocad/patches/patch-common_lc__library.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_library.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ common/lc_library.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include "lc_context.h"
+ #include "lc_mesh.h"
+ #include "lc_math.h"
diff --git a/leocad/patches/patch-common_lc__mainwindow.h b/leocad/patches/patch-common_lc__mainwindow.h
new file mode 100644
index 0000000000..5faf99e014
--- /dev/null
+++ b/leocad/patches/patch-common_lc__mainwindow.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_mainwindow.h.orig	2021-11-11 11:39:22.401904813 +0000
++++ common/lc_mainwindow.h
+@@ -1,5 +1,5 @@
+ #pragma once
+-
++#include "lc_global.h"
+ #include "lc_application.h"
+ #include "lc_shortcuts.h"
+ #include "lc_array.h"
diff --git a/leocad/patches/patch-common_lc__minifigdialog.h b/leocad/patches/patch-common_lc__minifigdialog.h
new file mode 100644
index 0000000000..50004fdc89
--- /dev/null
+++ b/leocad/patches/patch-common_lc__minifigdialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_minifigdialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ common/lc_minifigdialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include "minifig.h"
+ class lcQColorPicker;
+ 
diff --git a/leocad/patches/patch-common_lc__pagesetupdialog.h b/leocad/patches/patch-common_lc__pagesetupdialog.h
new file mode 100644
index 0000000000..11342b6f6e
--- /dev/null
+++ b/leocad/patches/patch-common_lc__pagesetupdialog.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_pagesetupdialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ common/lc_pagesetupdialog.h
+@@ -1,5 +1,7 @@
+ #pragma once
+ 
++#include "lc_global.h"
++
+ namespace Ui
+ {
+ class lcPageSetupDialog;
diff --git a/leocad/patches/patch-common_lc__partpalettedialog.h b/leocad/patches/patch-common_lc__partpalettedialog.h
new file mode 100644
index 0000000000..36d0e8aa27
--- /dev/null
+++ b/leocad/patches/patch-common_lc__partpalettedialog.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_partpalettedialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ common/lc_partpalettedialog.h
+@@ -1,5 +1,7 @@
+ #pragma once
+ 
++#include "lc_global.h"
++
+ namespace Ui {
+ class lcPartPaletteDialog;
+ }
diff --git a/leocad/patches/patch-common_lc__partselectionwidget.h b/leocad/patches/patch-common_lc__partselectionwidget.h
new file mode 100644
index 0000000000..ade8cd1977
--- /dev/null
+++ b/leocad/patches/patch-common_lc__partselectionwidget.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_partselectionwidget.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ common/lc_partselectionwidget.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include "lc_context.h"
+ 
+ class lcPartSelectionListModel;
diff --git a/leocad/patches/patch-common_lc__previewwidget.h b/leocad/patches/patch-common_lc__previewwidget.h
new file mode 100644
index 0000000000..c4e266cbdc
--- /dev/null
+++ b/leocad/patches/patch-common_lc__previewwidget.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_previewwidget.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ common/lc_previewwidget.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include "lc_view.h"
+ 
+ class lcPreview;
diff --git a/leocad/patches/patch-common_lc__timelinewidget.h b/leocad/patches/patch-common_lc__timelinewidget.h
new file mode 100644
index 0000000000..180e2581ce
--- /dev/null
+++ b/leocad/patches/patch-common_lc__timelinewidget.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_timelinewidget.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ common/lc_timelinewidget.h
+@@ -1,5 +1,7 @@
+ #pragma once
+ 
++#include "lc_global.h"
++
+ class lcTimelineWidget : public QTreeWidget
+ {
+ 	Q_OBJECT
diff --git a/leocad/patches/patch-common_lc__view.h b/leocad/patches/patch-common_lc__view.h
new file mode 100644
index 0000000000..d9e3aa5267
--- /dev/null
+++ b/leocad/patches/patch-common_lc__view.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_view.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ common/lc_view.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include "lc_context.h"
+ #include "lc_math.h"
+ #include "lc_commands.h"
diff --git a/leocad/patches/patch-common_lc__viewwidget.h b/leocad/patches/patch-common_lc__viewwidget.h
new file mode 100644
index 0000000000..0b6b5e1243
--- /dev/null
+++ b/leocad/patches/patch-common_lc__viewwidget.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- common/lc_viewwidget.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ common/lc_viewwidget.h
+@@ -1,5 +1,7 @@
+ #pragma once
+ 
++#include "lc_global.h"
++
+ class lcViewWidget : public QOpenGLWidget
+ {
+ 	Q_OBJECT
diff --git a/leocad/patches/patch-leocad.pro b/leocad/patches/patch-leocad.pro
new file mode 100644
index 0000000000..f14bc40ccc
--- /dev/null
+++ b/leocad/patches/patch-leocad.pro
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Disable PCH.
+
+--- leocad.pro.orig	2021-06-05 23:41:42.000000000 +0000
++++ leocad.pro
+@@ -40,7 +40,6 @@ win32-msvc* {
+ 	QMAKE_LFLAGS += /INCREMENTAL
+ 	LIBS += -ladvapi32 -lshell32 -lopengl32 -luser32
+ } else {
+-	PRECOMPILED_HEADER = common/lc_global.h
+ 	LIBS += -lz
+ 	QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter
+ }
diff --git a/leocad/patches/patch-qt_lc__qaboutdialog.h b/leocad/patches/patch-qt_lc__qaboutdialog.h
new file mode 100644
index 0000000000..4df2048f11
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qaboutdialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qaboutdialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qaboutdialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include <QDialog>
+ 
+ namespace Ui {
diff --git a/leocad/patches/patch-qt_lc__qarraydialog.h b/leocad/patches/patch-qt_lc__qarraydialog.h
new file mode 100644
index 0000000000..ad083e5c5f
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qarraydialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qarraydialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qarraydialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include <QDialog>
+ #include "lc_math.h"
+ 
diff --git a/leocad/patches/patch-qt_lc__qcategorydialog.h b/leocad/patches/patch-qt_lc__qcategorydialog.h
new file mode 100644
index 0000000000..a6c4189dfd
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qcategorydialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qcategorydialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qcategorydialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include <QDialog>
+ struct lcLibraryCategory;
+ 
diff --git a/leocad/patches/patch-qt_lc__qcolorlist.h b/leocad/patches/patch-qt_lc__qcolorlist.h
new file mode 100644
index 0000000000..a649f590c3
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qcolorlist.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qcolorlist.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qcolorlist.h
+@@ -1,5 +1,7 @@
+ #pragma once
+ 
++#include "lc_global.h"
++
+ struct lcColorListCell
+ {
+ 	QRect Rect;
diff --git a/leocad/patches/patch-qt_lc__qcolorpicker.h b/leocad/patches/patch-qt_lc__qcolorpicker.h
new file mode 100644
index 0000000000..ab777f94b5
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qcolorpicker.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qcolorpicker.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qcolorpicker.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include <QObject>
+ class lcQColorList;
+ 
diff --git a/leocad/patches/patch-qt_lc__qeditgroupsdialog.h b/leocad/patches/patch-qt_lc__qeditgroupsdialog.h
new file mode 100644
index 0000000000..d3899f1b6a
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qeditgroupsdialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qeditgroupsdialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qeditgroupsdialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include <QDialog>
+ 
+ namespace Ui {
diff --git a/leocad/patches/patch-qt_lc__qgroupdialog.h b/leocad/patches/patch-qt_lc__qgroupdialog.h
new file mode 100644
index 0000000000..208fa78d2a
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qgroupdialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qgroupdialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qgroupdialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include <QDialog>
+ 
+ namespace Ui {
diff --git a/leocad/patches/patch-qt_lc__qhtmldialog.h b/leocad/patches/patch-qt_lc__qhtmldialog.h
new file mode 100644
index 0000000000..0c18af0933
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qhtmldialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qhtmldialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qhtmldialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include <QDialog>
+ class lcHTMLExportOptions;
+ 
diff --git a/leocad/patches/patch-qt_lc__qimagedialog.h b/leocad/patches/patch-qt_lc__qimagedialog.h
new file mode 100644
index 0000000000..e8a43b6091
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qimagedialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qimagedialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qimagedialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include <QDialog>
+ 
+ namespace Ui {
diff --git a/leocad/patches/patch-qt_lc__qmodellistdialog.h b/leocad/patches/patch-qt_lc__qmodellistdialog.h
new file mode 100644
index 0000000000..75d6d76a15
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qmodellistdialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qmodellistdialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qmodellistdialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include "lc_array.h"
+ 
+ namespace Ui
diff --git a/leocad/patches/patch-qt_lc__qpreferencesdialog.h b/leocad/patches/patch-qt_lc__qpreferencesdialog.h
new file mode 100644
index 0000000000..3bdab0399f
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qpreferencesdialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qpreferencesdialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qpreferencesdialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include "lc_application.h"
+ #include "lc_shortcuts.h"
+ #include "lc_category.h"
diff --git a/leocad/patches/patch-qt_lc__qpropertiesdialog.h b/leocad/patches/patch-qt_lc__qpropertiesdialog.h
new file mode 100644
index 0000000000..33739fb203
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qpropertiesdialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qpropertiesdialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qpropertiesdialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include "lc_model.h"
+ 
+ struct lcPropertiesDialogOptions
diff --git a/leocad/patches/patch-qt_lc__qpropertiestree.h b/leocad/patches/patch-qt_lc__qpropertiestree.h
new file mode 100644
index 0000000000..e19a4ed918
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qpropertiestree.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qpropertiestree.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qpropertiestree.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include "lc_array.h"
+ 
+ struct lcPartProperties;
diff --git a/leocad/patches/patch-qt_lc__qselectdialog.h b/leocad/patches/patch-qt_lc__qselectdialog.h
new file mode 100644
index 0000000000..5643fdc782
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qselectdialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qselectdialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qselectdialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include <QDialog>
+ #include "lc_array.h"
+ 
diff --git a/leocad/patches/patch-qt_lc__qupdatedialog.h b/leocad/patches/patch-qt_lc__qupdatedialog.h
new file mode 100644
index 0000000000..e03aab12df
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qupdatedialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qupdatedialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qupdatedialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include <QDialog>
+ 
+ class lcHttpReply;
diff --git a/leocad/patches/patch-qt_lc__qutils.h b/leocad/patches/patch-qt_lc__qutils.h
new file mode 100644
index 0000000000..fe869a7201
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__qutils.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_qutils.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_qutils.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include <QObject>
+ 
+ QString lcFormatValue(float Value, int Precision);
diff --git a/leocad/patches/patch-qt_lc__renderdialog.cpp b/leocad/patches/patch-qt_lc__renderdialog.cpp
new file mode 100644
index 0000000000..21343880fa
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__renderdialog.cpp
@@ -0,0 +1,42 @@
+$NetBSD$
+
+Treat all Unices like Linux.
+
+--- qt/lc_renderdialog.cpp.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_renderdialog.cpp
+@@ -183,7 +183,7 @@ void lcRenderDialog::on_RenderButton_cli
+ 	POVRayPath = QDir::cleanPath(QCoreApplication::applicationDirPath() + QLatin1String("/povconsole32-sse2.exe"));
+ #endif
+ 
+-#ifdef Q_OS_LINUX
++#ifdef Q_OS_UNIX
+ 	POVRayPath = lcGetProfileString(LC_PROFILE_POVRAY_PATH);
+ 	Arguments.append("+FN");
+ 	Arguments.append("-D");
+@@ -194,7 +194,7 @@ void lcRenderDialog::on_RenderButton_cli
+ #endif
+ 
+ 	mProcess = new QProcess(this);
+-#ifdef Q_OS_LINUX
++#ifdef Q_OS_UNIX
+ 	connect(mProcess, SIGNAL(readyReadStandardError()), this, SLOT(ReadStdErr()));
+ #endif
+ 	mProcess->start(POVRayPath, Arguments);
+@@ -221,7 +221,7 @@ void lcRenderDialog::ReadStdErr()
+ {
+ 	QString StdErr = QString(mProcess->readAllStandardError());
+ 	mStdErrList.append(StdErr);
+-#ifdef Q_OS_LINUX
++#ifdef Q_OS_UNIX
+ 	QRegExp RegexPovRayProgress("Rendered (\\d+) of (\\d+) pixels.*");
+ 	RegexPovRayProgress.setCaseSensitivity(Qt::CaseInsensitive);
+ 	if (RegexPovRayProgress.indexIn(StdErr) == 0)
+@@ -240,7 +240,7 @@ void lcRenderDialog::Update()
+ 
+ 	if (mProcess->state() == QProcess::NotRunning)
+ 	{
+-#ifdef Q_OS_LINUX
++#ifdef Q_OS_UNIX
+ 		QByteArray Output = mProcess->readAllStandardOutput();
+ 		mImage = QImage::fromData(Output);
+ #endif
diff --git a/leocad/patches/patch-qt_lc__renderdialog.h b/leocad/patches/patch-qt_lc__renderdialog.h
new file mode 100644
index 0000000000..1bbda1f339
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__renderdialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_renderdialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_renderdialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include <QDialog>
+ 
+ namespace Ui {
diff --git a/leocad/patches/patch-qt_lc__setsdatabasedialog.h b/leocad/patches/patch-qt_lc__setsdatabasedialog.h
new file mode 100644
index 0000000000..633470945f
--- /dev/null
+++ b/leocad/patches/patch-qt_lc__setsdatabasedialog.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Workaround for disabling PCH.
+
+--- qt/lc_setsdatabasedialog.h.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/lc_setsdatabasedialog.h
+@@ -1,5 +1,6 @@
+ #pragma once
+ 
++#include "lc_global.h"
+ #include <QDialog>
+ 
+ class lcHttpReply;
diff --git a/leocad/patches/patch-qt_qtmain.cpp b/leocad/patches/patch-qt_qtmain.cpp
new file mode 100644
index 0000000000..0770fa7dcb
--- /dev/null
+++ b/leocad/patches/patch-qt_qtmain.cpp
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Treat all Unices like Linux.
+
+--- qt/qtmain.cpp.orig	2021-06-05 23:41:42.000000000 +0000
++++ qt/qtmain.cpp
+@@ -184,7 +184,7 @@ int main(int argc, char *argv[])
+ 	LibraryPaths += qMakePair(QDir::cleanPath(QCoreApplication::applicationDirPath() + "/library.bin"), true);
+ #endif
+ 
+-#ifdef Q_OS_LINUX
++#ifdef Q_OS_UNIX
+ 	LibraryPaths += qMakePair(QDir::cleanPath(QCoreApplication::applicationDirPath() + "/../share/leocad/library.bin"), true);
+ #endif
+ 


Home | Main Index | Thread Index | Old Index