2013-08-21 07:52:35 +00:00
|
|
|
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
|
|
|
|
|
|
|
PORTNAME= qcad
|
2021-03-11 19:08:44 +00:00
|
|
|
PORTVERSION= 3.26.1.0
|
2020-01-12 15:57:09 +00:00
|
|
|
DISTVERSIONPREFIX= v
|
2021-06-19 20:16:08 +00:00
|
|
|
PORTREVISION= 1
|
2013-08-21 07:52:35 +00:00
|
|
|
CATEGORIES= cad
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
|
2020-09-10 18:19:07 +00:00
|
|
|
#PATCH_SITES= https://github.com/qcad/qcad/commit/
|
|
|
|
#PATCHFILES= bbcd195f199e75190e758f46475b4f723643a820.patch:-p1
|
|
|
|
#GH_TAGNAME= 98f92a5a275102dfab915b920e2ebf52f43bf091
|
|
|
|
|
2013-08-21 07:52:35 +00:00
|
|
|
MAINTAINER= mr@FreeBSD.org
|
|
|
|
COMMENT= Professional CAD system
|
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2016-04-01 13:29:15 +00:00
|
|
|
BUILD_DEPENDS= bash:shells/bash \
|
|
|
|
${LOCALBASE}/lib/libopenNURBS.a:graphics/opennurbs
|
2013-08-21 07:52:35 +00:00
|
|
|
|
2019-11-04 21:36:13 +00:00
|
|
|
USES= compiler:c++11-lang gl gmake qmake qt:5
|
2015-05-18 17:07:45 +00:00
|
|
|
USE_GITHUB= yes
|
2013-08-21 07:52:35 +00:00
|
|
|
USE_LDCONFIG= yes
|
2018-06-28 17:39:53 +00:00
|
|
|
USE_QT= buildtools qmake_build \
|
2018-06-22 12:07:31 +00:00
|
|
|
designer gui help imageformats network opengl script \
|
2018-07-06 12:24:07 +00:00
|
|
|
scripttools sql svg uitools xml xmlpatterns webkit
|
2013-09-11 13:15:46 +00:00
|
|
|
USE_GL= glu
|
2013-08-21 07:52:35 +00:00
|
|
|
|
2013-10-10 12:47:00 +00:00
|
|
|
DESKTOP_ENTRIES="QCad" \
|
|
|
|
"" \
|
2013-08-21 07:52:35 +00:00
|
|
|
"${DATADIR}/scripts/qcad_icon.png" \
|
|
|
|
"${PREFIX}/bin/qcad-bin" \
|
2013-10-10 12:47:00 +00:00
|
|
|
"" \
|
|
|
|
true
|
2013-08-21 07:52:35 +00:00
|
|
|
|
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
RESDIR= ${WRKSRC}/debug
|
|
|
|
.else
|
|
|
|
RESDIR= ${WRKSRC}/release
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SHRLIBS= qcadcore qcadecmaapi qcadentity qcadgrid qcadgui qcadoperations \
|
2019-06-02 18:05:59 +00:00
|
|
|
qcadsnap qcadspatialindex qcadstemmer spatialindexnavel
|
2013-08-21 07:52:35 +00:00
|
|
|
STALIBS= dxflib stemmer
|
2017-11-11 15:35:57 +00:00
|
|
|
SHRDIR= fonts libraries linetypes patterns plugins scripts themes ts
|
2015-01-19 17:30:48 +00:00
|
|
|
#QSCRIPTS should not be installed to avoid conflicts with texlive-base
|
2013-08-21 07:52:35 +00:00
|
|
|
QSCRIPTS= bbox dwg2bmp dwg2pdf dwg2svg
|
|
|
|
|
2018-09-10 13:15:47 +00:00
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
|
2021-10-16 09:51:03 +00:00
|
|
|
CFLAGS_i386= -fPIC
|
|
|
|
CXXFLAGS_i386= -fPIC
|
|
|
|
LDFLAGS_i386= -Wl,-z,notext
|
2019-02-07 22:36:06 +00:00
|
|
|
|
2021-03-28 20:08:24 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_DEBUG)
|
2021-10-16 09:51:03 +00:00
|
|
|
ALL_TARGET= debug
|
|
|
|
PLIST_SUB+= DEBUG_LIB_SUFFIX="_debug"
|
|
|
|
RESDIR= ${WRKSRC}/debug
|
2021-03-28 20:08:24 +00:00
|
|
|
.else
|
2021-10-16 09:51:03 +00:00
|
|
|
ALL_TARGET= release
|
|
|
|
PLIST_SUB+= DEBUG_LIB_SUFFIX=""
|
|
|
|
RESDIR= ${WRKSRC}/release
|
2021-03-28 20:08:24 +00:00
|
|
|
.endif
|
|
|
|
|
2013-08-21 07:52:35 +00:00
|
|
|
pre-configure:
|
2020-04-13 12:35:58 +00:00
|
|
|
${MKDIR} ${WRKSRC}/src/3rdparty/qt-labs-qtscriptgenerator-${_QT_VERSION}
|
|
|
|
${CP} ${WRKSRC}/src/3rdparty/qt-labs-qtscriptgenerator-5.13.2/qt-labs-qtscriptgenerator-5.13.2.pro \
|
|
|
|
${WRKSRC}/src/3rdparty/qt-labs-qtscriptgenerator-${_QT_VERSION}/qt-labs-qtscriptgenerator-${_QT_VERSION}.pro
|
2015-01-30 17:20:20 +00:00
|
|
|
${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" \
|
|
|
|
${WRKSRC}/src/core/RS.cpp
|
2013-08-21 07:52:35 +00:00
|
|
|
${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" \
|
|
|
|
${WRKSRC}/src/core/RSettings.cpp
|
|
|
|
|
|
|
|
do-install:
|
2013-10-10 12:47:00 +00:00
|
|
|
${INSTALL_PROGRAM} ${RESDIR}/qcad-bin ${STAGEDIR}${PREFIX}/bin/
|
2016-06-23 07:09:57 +00:00
|
|
|
${LN} -sf qcad-bin ${STAGEDIR}${PREFIX}/bin/qcad
|
2013-08-21 07:52:35 +00:00
|
|
|
.for lib in ${SHRLIBS:C|^|lib|:C|$|.so|}
|
2013-10-10 12:47:00 +00:00
|
|
|
${INSTALL_LIB} ${RESDIR}/${lib} ${STAGEDIR}${PREFIX}/lib/${lib}.0
|
2017-02-24 14:17:01 +00:00
|
|
|
${LN} -sf ${lib}.0 ${STAGEDIR}${PREFIX}/lib/${lib}
|
2013-08-21 07:52:35 +00:00
|
|
|
.endfor
|
|
|
|
.for lib in ${STALIBS:C|^|lib|:C|$|.a|}
|
2015-05-20 01:21:11 +00:00
|
|
|
${INSTALL_DATA} ${RESDIR}/${lib} ${STAGEDIR}${PREFIX}/lib/
|
2013-08-21 07:52:35 +00:00
|
|
|
.endfor
|
2013-10-10 12:47:00 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
2013-08-21 07:52:35 +00:00
|
|
|
.for dir in ${SHRDIR}
|
2013-10-10 12:47:00 +00:00
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DATADIR}
|
2013-08-21 07:52:35 +00:00
|
|
|
.endfor
|
2013-10-10 12:47:00 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
2013-08-21 07:52:35 +00:00
|
|
|
|
2019-02-12 21:07:13 +00:00
|
|
|
.include <bsd.port.mk>
|