Index: head/cad/qcad/Makefile =================================================================== --- head/cad/qcad/Makefile +++ head/cad/qcad/Makefile @@ -20,8 +20,6 @@ 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 @@ -55,6 +53,18 @@ CFLAGS_i386= -fPIC CXXFLAGS_i386= -fPIC LDFLAGS_i386= -Wl,-z,notext + +.include + +.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} Index: head/cad/qcad/pkg-plist =================================================================== --- head/cad/qcad/pkg-plist +++ head/cad/qcad/pkg-plist @@ -578,8 +578,7 @@ %%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 @@ %%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