mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Readd qcad and upgrade to version 3.2.1
PR: ports/181199 Submitted by: Thierry Thomas (thierry@)
This commit is contained in:
parent
56b7b51e42
commit
356db3c10a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=325094
17 changed files with 10303 additions and 0 deletions
|
@ -73,6 +73,7 @@
|
|||
SUBDIR += pdnmesh
|
||||
SUBDIR += pythoncad
|
||||
SUBDIR += qcad-partslib
|
||||
SUBDIR += qcad
|
||||
SUBDIR += qelectrotech
|
||||
SUBDIR += qfsm
|
||||
SUBDIR += qmls
|
||||
|
|
82
cad/qcad/Makefile
Normal file
82
cad/qcad/Makefile
Normal file
|
@ -0,0 +1,82 @@
|
|||
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= qcad
|
||||
PORTVERSION= 3.2.1.0
|
||||
CATEGORIES= cad
|
||||
MASTER_SITES= http://github.com/${PORTNAME}/${PORTNAME}/archive/${DISTNAME}.tar.gz?dummy=/ \
|
||||
https://github.com/${PORTNAME}/${PORTNAME}/archive/${DISTNAME}.tar.gz?dummy=/
|
||||
DISTNAME= v${PORTVERSION}
|
||||
DIST_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= mr@FreeBSD.org
|
||||
COMMENT= Professional CAD system
|
||||
|
||||
LICENSE= GPLv3
|
||||
|
||||
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
|
||||
qmake:${PORTSDIR}/devel/qmake \
|
||||
${LOCALBASE}/lib/libopenNURBS.a:${PORTSDIR}/graphics/opennurbs
|
||||
LIB_DEPENDS= execinfo:${PORTSDIR}/devel/libexecinfo
|
||||
|
||||
FETCH_ARGS= -Fpr
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
MAKE_JOBS_UNSAFE=yes
|
||||
|
||||
USES= gmake
|
||||
USE_LDCONFIG= yes
|
||||
USE_QT4= qmake clucene codecs-cn codecs-jp codecs-kr codecs-tw corelib \
|
||||
dbus designer gui help imageformats network opengl script \
|
||||
scripttools sql svg xml xmlpatterns webkit
|
||||
|
||||
DESKTOP_ENTRIES="${PORTNAME:U}" \
|
||||
"A free application for computer aided drafting in two dimensions"\
|
||||
"${DATADIR}/scripts/qcad_icon.png" \
|
||||
"${PREFIX}/bin/qcad-bin" \
|
||||
"Engineering;" \
|
||||
""
|
||||
|
||||
.if defined(WITH_DEBUG)
|
||||
RESDIR= ${WRKSRC}/debug
|
||||
.else
|
||||
RESDIR= ${WRKSRC}/release
|
||||
.endif
|
||||
|
||||
SHRLIBS= qcadcore qcadecmaapi qcadentity qcadgrid qcadgui qcadoperations \
|
||||
qcadsnap qcadspatialindex qcadstemmer spatialindexnavel
|
||||
STALIBS= dxflib stemmer
|
||||
SHRDIR= fonts libraries patterns plugins scripts ts
|
||||
QSCRIPTS= bbox dwg2bmp dwg2pdf dwg2svg
|
||||
SUB_FILES= ${QSCRIPTS}
|
||||
|
||||
pre-configure:
|
||||
${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" \
|
||||
${WRKSRC}/src/core/RSettings.cpp
|
||||
|
||||
do-configure:
|
||||
cd ${WRKSRC} && ${QMAKE} -r
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${RESDIR}/qcad-bin ${PREFIX}/bin/
|
||||
${LN} -sf ${PREFIX}/bin/qcad-bin ${PREFIX}/bin/qcad
|
||||
.for prog in ${QSCRIPTS}
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/${prog} ${PREFIX}/bin
|
||||
.endfor
|
||||
.for lib in ${SHRLIBS:C|^|lib|:C|$|.so|}
|
||||
${INSTALL_LIB} ${RESDIR}/${lib} ${PREFIX}/lib/${lib}.0
|
||||
${LN} -sf ${PREFIX}/lib/${lib}.0 ${PREFIX}/lib/${lib}
|
||||
.endfor
|
||||
.for lib in ${STALIBS:C|^|lib|:C|$|.a|}
|
||||
${INSTALL_LIB} ${RESDIR}/${lib} ${PREFIX}/lib/
|
||||
.endfor
|
||||
${MKDIR} ${DATADIR}
|
||||
.for dir in ${SHRDIR}
|
||||
${CP} -Rp ${WRKSRC}/${dir} ${DATADIR}/
|
||||
.endfor
|
||||
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
2
cad/qcad/distinfo
Normal file
2
cad/qcad/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (qcad/v3.2.1.0.tar.gz) = 1a33c5970ecb2ef08103288718a16843ce7e367c5329fbb2e346d5322b8a1d85
|
||||
SIZE (qcad/v3.2.1.0.tar.gz) = 17739322
|
4
cad/qcad/files/bbox.in
Normal file
4
cad/qcad/files/bbox.in
Normal file
|
@ -0,0 +1,4 @@
|
|||
#! /bin/sh
|
||||
# Note: You need the Pro/Tools to run this script!
|
||||
|
||||
%%PREFIX%%/bin/qcad-bin -no-dock-icon -no-gui -allow-multiple-instances -autostart %%DATADIR%%/scripts/Pro/Tools/BoundingBox/BoundingBox.js "$0" "$@"
|
4
cad/qcad/files/dwg2bmp.in
Normal file
4
cad/qcad/files/dwg2bmp.in
Normal file
|
@ -0,0 +1,4 @@
|
|||
#! /bin/sh
|
||||
# Note: You need the Pro/Tools to run this script!
|
||||
|
||||
%%PREFIX%%/bin/qcad-bin -no-dock-icon -no-gui -allow-multiple-instances -autostart %%DATADIR%%/scripts/Pro/Tools/Dwg2Bmp/Dwg2Bmp.js "$0" "$@"
|
4
cad/qcad/files/dwg2pdf.in
Normal file
4
cad/qcad/files/dwg2pdf.in
Normal file
|
@ -0,0 +1,4 @@
|
|||
#! /bin/sh
|
||||
# Note: You need the Pro/Tools to run this script!
|
||||
|
||||
%%PREFIX%%/bin/qcad-bin -no-dock-icon -no-gui -allow-multiple-instances -autostart %%DATADIR%%/scripts/Pro/Tools/Dwg2Pdf/Dwg2Pdf.js "$0" "$@"
|
4
cad/qcad/files/dwg2svg.in
Normal file
4
cad/qcad/files/dwg2svg.in
Normal file
|
@ -0,0 +1,4 @@
|
|||
#! /bin/sh
|
||||
# Note: You need the Pro/Tools to run this script!
|
||||
|
||||
%%PREFIX%%/bin/qcad-bin -no-dock-icon -no-gui -allow-multiple-instances -autostart %%DATADIR%%/scripts/Pro/Tools/Dwg2Svg/Dwg2Svg.js "$0" "$@"
|
24
cad/qcad/files/patch-shared_app.pri
Normal file
24
cad/qcad/files/patch-shared_app.pri
Normal file
|
@ -0,0 +1,24 @@
|
|||
--- shared_app.pri.orig 2013-08-06 17:32:09.000000000 +0200
|
||||
+++ shared_app.pri 2013-08-08 15:33:45.000000000 +0200
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
!r_no_opennurbs {
|
||||
LIBS += \
|
||||
- -lopennurbs \
|
||||
- -lzlib
|
||||
+ -lopenNURBS \
|
||||
+ -lz
|
||||
}
|
||||
|
||||
win32 {
|
||||
@@ -40,6 +40,10 @@
|
||||
LIBS += -lGLU
|
||||
}
|
||||
|
||||
+freebsd-g++ {
|
||||
+ LIBS += -lGLU -lexecinfo
|
||||
+}
|
||||
+
|
||||
macx {
|
||||
QMAKE_LFLAGS += -framework ApplicationServices
|
||||
LIBS += \
|
14
cad/qcad/files/patch-src_3rdparty_3rdparty.pro
Normal file
14
cad/qcad/files/patch-src_3rdparty_3rdparty.pro
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- ./src/3rdparty/3rdparty.pro.orig 2013-08-06 17:32:09.000000000 +0200
|
||||
+++ ./src/3rdparty/3rdparty.pro 2013-08-08 10:03:33.000000000 +0200
|
||||
@@ -4,9 +4,8 @@
|
||||
spatialindexnavel \
|
||||
stemmer
|
||||
|
||||
-!r_no_opennurbs {
|
||||
- SUBDIRS += opennurbs
|
||||
-}
|
||||
+# FreeBSD: prefer opennurbs from a dependent port
|
||||
+
|
||||
!rs_no_dxf {
|
||||
SUBDIRS += dxflib
|
||||
}
|
11
cad/qcad/files/patch-src_core_RMetaTypes.h
Normal file
11
cad/qcad/files/patch-src_core_RMetaTypes.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/core/RMetaTypes.h.orig 2013-08-06 17:32:09.000000000 +0200
|
||||
+++ src/core/RMetaTypes.h 2013-08-08 10:41:01.000000000 +0200
|
||||
@@ -121,7 +121,7 @@
|
||||
Q_DECLARE_METATYPE(unsigned int*)
|
||||
Q_DECLARE_METATYPE(qint64*)
|
||||
//Q_DECLARE_METATYPE(uint8_t*)
|
||||
-#if !defined Q_OS_WIN32 && !defined Q_OS_LINUX
|
||||
+#if !defined Q_OS_WIN32 && !defined Q_OS_LINUX && !defined Q_OS_FREEBSD
|
||||
Q_DECLARE_METATYPE(size_t*)
|
||||
#endif
|
||||
Q_DECLARE_METATYPE(char*)
|
16
cad/qcad/files/patch-src_core_RSettings.cpp
Normal file
16
cad/qcad/files/patch-src_core_RSettings.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
--- ./src/core/RSettings.cpp.orig 2013-08-06 17:32:09.000000000 +0200
|
||||
+++ ./src/core/RSettings.cpp 2013-08-09 15:25:25.000000000 +0200
|
||||
@@ -92,9 +92,13 @@
|
||||
}
|
||||
#endif
|
||||
|
||||
+#ifdef Q_OS_FREEBSD
|
||||
+ ret.cd("%%DATADIR%%");
|
||||
+#else
|
||||
if (ret.dirName() == "debug" || ret.dirName() == "release") {
|
||||
ret.cdUp();
|
||||
}
|
||||
+#endif
|
||||
|
||||
return ret.path();
|
||||
}
|
11
cad/qcad/files/patch-src_core_core.pro
Normal file
11
cad/qcad/files/patch-src_core_core.pro
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/core/core.pro.orig 2013-08-06 17:32:09.000000000 +0200
|
||||
+++ src/core/core.pro 2013-08-08 11:01:42.000000000 +0200
|
||||
@@ -232,7 +232,7 @@
|
||||
OTHER_FILES += core.dox math/math.dox
|
||||
DEFINES += QCADCORE_LIBRARY
|
||||
|
||||
-LIBS += -lzlib -lopennurbs
|
||||
+LIBS += -lz -lopenNURBS
|
||||
|
||||
win32 {
|
||||
LIBS += -lRpcrt4 -lAdvapi32
|
11
cad/qcad/files/patch-src_core_math_RSpline.h
Normal file
11
cad/qcad/files/patch-src_core_math_RSpline.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- ./src/core/math/RSpline.h.orig 2013-08-06 17:32:09.000000000 +0200
|
||||
+++ ./src/core/math/RSpline.h 2013-08-08 10:33:54.000000000 +0200
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "RVector.h"
|
||||
|
||||
#ifndef R_NO_OPENNURBS
|
||||
-#include "opennurbs/opennurbs.h"
|
||||
+#include <openNURBS/opennurbs.h>
|
||||
#endif
|
||||
|
||||
#ifndef RDEFAULT_MIN1
|
11
cad/qcad/files/patch-src_entity_entity.pro
Normal file
11
cad/qcad/files/patch-src_entity_entity.pro
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/entity/entity.pro.orig 2013-08-06 17:32:09.000000000 +0200
|
||||
+++ src/entity/entity.pro 2013-08-08 11:29:12.000000000 +0200
|
||||
@@ -91,7 +91,7 @@
|
||||
TARGET = $${NAME}
|
||||
OTHER_FILES += entity.dox
|
||||
DEFINES += QCADENTITY_LIBRARY
|
||||
-LIBS += -lqcadcore -lopennurbs
|
||||
+LIBS += -lqcadcore -lopenNURBS
|
||||
!win32 {
|
||||
include( ../../shared_ts.pri )
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
--- support/ecmagenerator/src/srcml/RSpline.srcml.orig 2013-08-06 17:32:09.000000000 +0200
|
||||
+++ support/ecmagenerator/src/srcml/RSpline.srcml 2013-08-08 13:55:08.000000000 +0200
|
||||
@@ -46,7 +46,7 @@
|
||||
<name>R_NO_OPENNURBS</name></cpp:ifndef>
|
||||
<cpp:include>#
|
||||
<cpp:directive>include</cpp:directive>
|
||||
- <cpp:file>"opennurbs/opennurbs.h"</cpp:file></cpp:include>
|
||||
+ <cpp:file>"openNURBS/opennurbs.h"</cpp:file></cpp:include>
|
||||
<cpp:endif>#
|
||||
<cpp:directive>endif</cpp:directive></cpp:endif>
|
||||
<cpp:ifndef>#
|
16
cad/qcad/pkg-descr
Normal file
16
cad/qcad/pkg-descr
Normal file
|
@ -0,0 +1,16 @@
|
|||
What Is QCad?
|
||||
|
||||
QCad is a professional CAD System. With QCad you can easily construct
|
||||
and change drawings with ISO-texts and many other features and save
|
||||
them as DXF-files. These DXF-files are the interface to many
|
||||
CAD-systems such as AutoCAD (c) and many others.
|
||||
|
||||
What is QCad not?
|
||||
|
||||
QCad is no designer tool. That means you can not create any filled
|
||||
shapes nor any crazy freehand forms. Also you can not drag and drop
|
||||
the objects in the drawing with the mouse.
|
||||
|
||||
If you find any bugs, send a report to bugs@qcad.org.
|
||||
|
||||
WWW: http://www.ribbonsoft.com/qcad.html
|
10077
cad/qcad/pkg-plist
Normal file
10077
cad/qcad/pkg-plist
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue