2013-08-21 09:52:35 +02:00
|
|
|
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= qcad
|
2014-03-08 23:51:16 +01:00
|
|
|
PORTVERSION= 3.4.6.0
|
2013-08-21 09:52:35 +02:00
|
|
|
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 \
|
|
|
|
${LOCALBASE}/lib/libopenNURBS.a:${PORTSDIR}/graphics/opennurbs
|
2013-12-11 15:53:20 +01:00
|
|
|
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo
|
2013-08-21 09:52:35 +02:00
|
|
|
|
2013-12-02 09:59:13 +01:00
|
|
|
CONFLICTS= texlive-base-*
|
|
|
|
|
2013-08-21 09:52:35 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2013-11-05 21:34:42 +01:00
|
|
|
MAKE_JOBS_UNSAFE=yes
|
2013-08-21 09:52:35 +02:00
|
|
|
|
2013-10-10 14:47:00 +02:00
|
|
|
USES= gmake qmake
|
2013-08-21 09:52:35 +02:00
|
|
|
USE_LDCONFIG= yes
|
2013-10-10 14:47:00 +02:00
|
|
|
USE_QT4= qmake_build codecs-cn codecs-jp codecs-kr codecs-tw corelib \
|
|
|
|
designer gui help imageformats moc_build network opengl rcc_build script \
|
|
|
|
scripttools sql svg uic_build xml xmlpatterns webkit
|
2013-09-11 15:15:46 +02:00
|
|
|
USE_GL= glu
|
2013-08-21 09:52:35 +02:00
|
|
|
|
2013-10-10 14:47:00 +02:00
|
|
|
DESKTOP_ENTRIES="QCad" \
|
|
|
|
"" \
|
2013-08-21 09:52:35 +02:00
|
|
|
"${DATADIR}/scripts/qcad_icon.png" \
|
|
|
|
"${PREFIX}/bin/qcad-bin" \
|
2013-10-10 14:47:00 +02:00
|
|
|
"" \
|
|
|
|
true
|
2013-08-21 09:52:35 +02:00
|
|
|
|
|
|
|
.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-install:
|
2013-10-10 14:47:00 +02:00
|
|
|
${INSTALL_PROGRAM} ${RESDIR}/qcad-bin ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
${LN} -sf ${PREFIX}/bin/qcad-bin ${STAGEDIR}${PREFIX}/bin/qcad
|
2013-08-21 09:52:35 +02:00
|
|
|
.for prog in ${QSCRIPTS}
|
2013-10-10 14:47:00 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${prog} ${STAGEDIR}${PREFIX}/bin
|
2013-08-21 09:52:35 +02:00
|
|
|
.endfor
|
|
|
|
.for lib in ${SHRLIBS:C|^|lib|:C|$|.so|}
|
2013-10-10 14:47:00 +02:00
|
|
|
${INSTALL_LIB} ${RESDIR}/${lib} ${STAGEDIR}${PREFIX}/lib/${lib}.0
|
|
|
|
${LN} -sf ${PREFIX}/lib/${lib}.0 ${STAGEDIR}${PREFIX}/lib/${lib}
|
2013-08-21 09:52:35 +02:00
|
|
|
.endfor
|
|
|
|
.for lib in ${STALIBS:C|^|lib|:C|$|.a|}
|
2013-10-10 14:47:00 +02:00
|
|
|
${INSTALL_LIB} ${RESDIR}/${lib} ${STAGEDIR}${PREFIX}/lib/
|
2013-08-21 09:52:35 +02:00
|
|
|
.endfor
|
2013-10-10 14:47:00 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
2013-08-21 09:52:35 +02:00
|
|
|
.for dir in ${SHRDIR}
|
2013-10-10 14:47:00 +02:00
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DATADIR}
|
2013-08-21 09:52:35 +02:00
|
|
|
.endfor
|
2013-10-10 14:47:00 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
2013-08-21 09:52:35 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|