Changeset View
Changeset View
Standalone View
Standalone View
cad/qcad/Makefile
# Created by: Thomas Gellekum <tg@FreeBSD.org> | # Created by: Thomas Gellekum <tg@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= qcad | PORTNAME= qcad | ||||
PORTVERSION= 3.21.3.15 | PORTVERSION= 3.21.3.15 | ||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
PORTREVISION= 2 | PORTREVISION= 3 | ||||
CATEGORIES= cad | CATEGORIES= cad | ||||
DIST_SUBDIR= ${PORTNAME} | DIST_SUBDIR= ${PORTNAME} | ||||
MAINTAINER= mr@FreeBSD.org | MAINTAINER= mr@FreeBSD.org | ||||
COMMENT= Professional CAD system | COMMENT= Professional CAD system | ||||
LICENSE= GPLv3 | LICENSE= GPLv3 | ||||
BUILD_DEPENDS= bash:shells/bash \ | BUILD_DEPENDS= bash:shells/bash \ | ||||
${LOCALBASE}/lib/libopenNURBS.a:graphics/opennurbs | ${LOCALBASE}/lib/libopenNURBS.a:graphics/opennurbs | ||||
LIB_DEPENDS= libquazip5.so:archivers/quazip@qt5 | LIB_DEPENDS= libquazip5.so:archivers/quazip@qt5 | ||||
MAKE_JOBS_UNSAFE=yes | |||||
USES= compiler:c++11-lang gmake qmake qt:5 | USES= compiler:c++11-lang gmake qmake qt:5 | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
USE_QT= buildtools qmake_build \ | USE_QT= buildtools qmake_build \ | ||||
designer gui help imageformats network opengl script \ | designer gui help imageformats network opengl script \ | ||||
scripttools sql svg uitools xml xmlpatterns webkit | scripttools sql svg uitools xml xmlpatterns webkit | ||||
USE_GL= glu | USE_GL= glu | ||||
DESKTOP_ENTRIES="QCad" \ | DESKTOP_ENTRIES="QCad" \ | ||||
"" \ | "" \ | ||||
"${DATADIR}/scripts/qcad_icon.png" \ | "${DATADIR}/scripts/qcad_icon.png" \ | ||||
"${PREFIX}/bin/qcad-bin" \ | "${PREFIX}/bin/qcad-bin" \ | ||||
"" \ | "" \ | ||||
true | true | ||||
.if defined(WITH_DEBUG) | |||||
RESDIR= ${WRKSRC}/debug | |||||
.else | |||||
RESDIR= ${WRKSRC}/release | |||||
.endif | |||||
SHRLIBS= qcadcore qcadecmaapi qcadentity qcadgrid qcadgui qcadoperations \ | SHRLIBS= qcadcore qcadecmaapi qcadentity qcadgrid qcadgui qcadoperations \ | ||||
mat: Note that in order to support `WITH_DEBUG_PORTS`, `WITH_DEBUG` should never be tested for… | |||||
Done Inline ActionsThis could be solved independently since my change doesn't introduce that check, but I've addressed it here in patch v2. rakuco: This could be solved independently since my change doesn't introduce that check, but I've… | |||||
qcadsnap qcadspatialindex qcadstemmer spatialindexnavel qcadzip | qcadsnap qcadspatialindex qcadstemmer spatialindexnavel qcadzip | ||||
STALIBS= dxflib stemmer | STALIBS= dxflib stemmer | ||||
SHRDIR= fonts libraries linetypes patterns plugins scripts themes ts | SHRDIR= fonts libraries linetypes patterns plugins scripts themes ts | ||||
#QSCRIPTS should not be installed to avoid conflicts with texlive-base | #QSCRIPTS should not be installed to avoid conflicts with texlive-base | ||||
QSCRIPTS= bbox dwg2bmp dwg2pdf dwg2svg | QSCRIPTS= bbox dwg2bmp dwg2pdf dwg2svg | ||||
OPTIONS_DEFINE= EXAMPLES | OPTIONS_DEFINE= EXAMPLES | ||||
CFLAGS_i386= -fPIC | CFLAGS_i386= -fPIC | ||||
CXXFLAGS_i386= -fPIC | CXXFLAGS_i386= -fPIC | ||||
.include <bsd.port.options.mk> | |||||
.if defined(WITH_DEBUG) | |||||
ALL_TARGET= debug | |||||
PLIST_SUB+= DEBUG_LIB_SUFFIX="_debug" | |||||
RESDIR= ${WRKSRC}/debug | |||||
.else | |||||
ALL_TARGET= release | |||||
PLIST_SUB+= DEBUG_LIB_SUFFIX="" | |||||
RESDIR= ${WRKSRC}/release | |||||
.endif | |||||
pre-configure: | pre-configure: | ||||
${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" \ | ${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" \ | ||||
${WRKSRC}/src/core/RS.cpp | ${WRKSRC}/src/core/RS.cpp | ||||
${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" \ | ${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" \ | ||||
${WRKSRC}/src/core/RSettings.cpp | ${WRKSRC}/src/core/RSettings.cpp | ||||
do-install: | do-install: | ||||
Show All 17 Lines |
Note that in order to support WITH_DEBUG_PORTS, WITH_DEBUG should never be tested for before including bsd.port.options.mk.