diff options
author | Michael Reifenberger <mr@FreeBSD.org> | 2021-03-28 20:08:24 +0000 |
---|---|---|
committer | Michael Reifenberger <mr@FreeBSD.org> | 2021-03-28 20:08:24 +0000 |
commit | d4728e1f832b3a193f677dc3d015c9a475013af0 (patch) | |
tree | 774d47307089f668c9aa5b43f743ce6688d041c7 /cad/qcad | |
parent | - Update to 1.8.1 (diff) |
Stop setting MAKE_JOBS_UNSAFE by only building release or debug
Submitted by: rakuco@
Differential Revision: https://reviews.freebsd.org/D19219
Notes
Notes:
svn path=/head/; revision=569410
Diffstat (limited to 'cad/qcad')
-rw-r--r-- | cad/qcad/Makefile | 14 | ||||
-rw-r--r-- | cad/qcad/pkg-plist | 9 |
2 files changed, 15 insertions, 8 deletions
diff --git a/cad/qcad/Makefile b/cad/qcad/Makefile index 6885509442d9..5149efddbbd0 100644 --- a/cad/qcad/Makefile +++ b/cad/qcad/Makefile @@ -20,8 +20,6 @@ LICENSE= GPLv3 BUILD_DEPENDS= bash:shells/bash \ ${LOCALBASE}/lib/libopenNURBS.a:graphics/opennurbs -MAKE_JOBS_UNSAFE=yes - USES= compiler:c++11-lang gl gmake qmake qt:5 USE_GITHUB= yes USE_LDCONFIG= yes @@ -56,6 +54,18 @@ CFLAGS_i386= -fPIC CXXFLAGS_i386= -fPIC LDFLAGS_i386= -Wl,-z,notext +.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: ${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 \ diff --git a/cad/qcad/pkg-plist b/cad/qcad/pkg-plist index f0ba2cf719cb..b5701b3fbc94 100644 --- a/cad/qcad/pkg-plist +++ b/cad/qcad/pkg-plist @@ -578,8 +578,7 @@ lib/libstemmer.a %%DATADIR%%/patterns/metric/xmastree-02.pat %%DATADIR%%/patterns/metric/zigzag.pat %%DATADIR%%/plugins/codecs/readme.txt -%%DATADIR%%/plugins/designer/libqcadcustomwidgets.so -%%DATADIR%%/plugins/designer/libqcadcustomwidgets_debug.so +%%DATADIR%%/plugins/designer/libqcadcustomwidgets%%DEBUG_LIB_SUFFIX%%.so %%DATADIR%%/plugins/designer/readme.txt %%DATADIR%%/plugins/imageformats/libqgif.so %%DATADIR%%/plugins/imageformats/libqico.so @@ -588,10 +587,8 @@ lib/libstemmer.a %%DATADIR%%/plugins/imageformats/libqtga.so %%DATADIR%%/plugins/imageformats/libqtiff.so %%DATADIR%%/plugins/imageformats/readme.txt -%%DATADIR%%/plugins/libqcaddxf.so -%%DATADIR%%/plugins/libqcaddxf_debug.so -%%DATADIR%%/plugins/libqcadscripts.so -%%DATADIR%%/plugins/libqcadscripts_debug.so +%%DATADIR%%/plugins/libqcaddxf%%DEBUG_LIB_SUFFIX%%.so +%%DATADIR%%/plugins/libqcadscripts%%DEBUG_LIB_SUFFIX%%.so %%DATADIR%%/plugins/printsupport/libcupsprintersupport.so %%DATADIR%%/plugins/printsupport/readme.txt %%DATADIR%%/plugins/script/libqtscript_core.so |