| @@ -1,42 +1,57 @@ | | | @@ -1,42 +1,57 @@ |
1 | # $NetBSD: Makefile,v 1.78 2019/10/27 15:43:23 nia Exp $ | | 1 | # $NetBSD: Makefile,v 1.79 2019/11/13 00:26:49 gdt Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= qcad-3.23.0.0 | | 4 | DISTNAME= qcad-3.23.0.0 |
5 | PKGREVISION= 3 | | 5 | PKGREVISION= 4 |
6 | CATEGORIES= cad | | 6 | CATEGORIES= cad |
7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=qcad/} | | 7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=qcad/} |
8 | EXTRACT_USING= bsdtar | | 8 | EXTRACT_USING= bsdtar |
9 | GITHUB_TAG= v${PKGVERSION_NOREV} | | 9 | GITHUB_TAG= v${PKGVERSION_NOREV} |
10 | | | 10 | |
11 | MAINTAINER= pkgsrc-users@NetBSD.org | | 11 | MAINTAINER= pkgsrc-users@NetBSD.org |
12 | HOMEPAGE= http://www.qcad.org/ | | 12 | HOMEPAGE= http://www.qcad.org/ |
13 | COMMENT= 2D CAD system | | 13 | COMMENT= 2D CAD system |
14 | LICENSE= gnu-gpl-v3 | | 14 | LICENSE= gnu-gpl-v3 |
15 | | | 15 | |
16 | DEPENDS+= bash-[0-9]*:../../shells/bash | | 16 | DEPENDS+= bash-[0-9]*:../../shells/bash |
17 | | | 17 | |
18 | USE_TOOLS+= chmod find make pax | | 18 | USE_TOOLS+= chmod find make pax |
19 | USE_LANGUAGES= c c++ | | 19 | USE_LANGUAGES= c c++ |
20 | USE_LIBTOOL= yes | | 20 | USE_LIBTOOL= yes |
21 | | | 21 | |
22 | SUBST_CLASSES+= paths | | 22 | SUBST_CLASSES+= paths |
23 | SUBST_STAGE.paths= pre-configure | | 23 | SUBST_STAGE.paths= pre-configure |
24 | SUBST_MESSAGE.paths= Attending to hard-coded paths. | | 24 | SUBST_MESSAGE.paths= Attending to hard-coded paths. |
25 | SUBST_FILES.paths+= shared.pri src/core/RS.cpp src/core/RSettings.cpp | | 25 | SUBST_FILES.paths+= shared.pri src/core/RS.cpp src/core/RSettings.cpp |
26 | SUBST_FILES.paths+= scripts/Help/ShowReadme/ShowReadme.js | | 26 | SUBST_FILES.paths+= scripts/Help/ShowReadme/ShowReadme.js |
27 | SUBST_FILES.paths+= scripts/Widgets/LibraryBrowser/LibraryBrowser.js | | 27 | SUBST_FILES.paths+= scripts/Widgets/LibraryBrowser/LibraryBrowser.js |
28 | SUBST_VARS.paths= PREFIX | | 28 | SUBST_VARS.paths= PREFIX |
29 | | | 29 | |
| | | 30 | # Don't build intermediate libraries with the same name in debug mode |
| | | 31 | # as in release mode. (Resolves regular libraries ending up in debug |
| | | 32 | # mode, which breaks plugin loading.) |
| | | 33 | # Reported on QCad Community Edition forum: |
| | | 34 | # https://qcad.org/rsforum/viewtopic.php?f=76&t=6708 |
| | | 35 | # |
| | | 36 | SUBST_CLASSES+= dbgmode |
| | | 37 | SUBST_STAGE.dbgmode= post-configure |
| | | 38 | SUBST_MESSAGE.dbgmode= Debug mode: lib*.so -> lib*_debug.so |
| | | 39 | SUBST_FILES.dbgmode= src/3rdparty/dxflib/Makefile.Debug |
| | | 40 | SUBST_FILES.dbgmode+= src/core/Makefile.Debug |
| | | 41 | SUBST_FILES.dbgmode+= src/entity/Makefile.Debug |
| | | 42 | SUBST_FILES.dbgmode+= src/operations/Makefile.Debug |
| | | 43 | SUBST_SED.dbgmode= -e 's,\(lib[dq]..*\)\(\.so\),\1_debug\2,g' |
| | | 44 | |
30 | .include "../../mk/bsd.prefs.mk" | | 45 | .include "../../mk/bsd.prefs.mk" |
31 | PLIST_VARS+= glx egl | | 46 | PLIST_VARS+= glx egl |
32 | .if ${OPSYS} != "Darwin" | | 47 | .if ${OPSYS} != "Darwin" |
33 | PLIST.glx= yes | | 48 | PLIST.glx= yes |
34 | . include "../../graphics/MesaLib/buildlink3.mk" | | 49 | . include "../../graphics/MesaLib/buildlink3.mk" |
35 | . if ${MESALIB_SUPPORTS_EGL} == "yes" | | 50 | . if ${MESALIB_SUPPORTS_EGL} == "yes" |
36 | PLIST.egl= yes | | 51 | PLIST.egl= yes |
37 | . endif | | 52 | . endif |
38 | .endif | | 53 | .endif |
39 | | | 54 | |
40 | AUTO_MKDIRS= yes | | 55 | AUTO_MKDIRS= yes |
41 | | | 56 | |
42 | # | | 57 | # |