| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.51 2023/07/19 22:08:05 tnn Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.52 2023/07/19 22:45:56 tnn Exp $ |
2 | # used by x11/qt5-mysql/Makefile | | 2 | # used by x11/qt5-mysql/Makefile |
3 | # used by x11/qt5-odbc/Makefile | | 3 | # used by x11/qt5-odbc/Makefile |
4 | # used by x11/qt5-psql/Makefile | | 4 | # used by x11/qt5-psql/Makefile |
5 | # used by x11/qt5-qtbase/Makefile | | 5 | # used by x11/qt5-qtbase/Makefile |
6 | # used by x11/qt5-qtcharts/Makefile | | 6 | # used by x11/qt5-qtcharts/Makefile |
7 | # used by x11/qt5-qtconnectivity/Makefile | | 7 | # used by x11/qt5-qtconnectivity/Makefile |
8 | # used by x11/qt5-qtdeclarative/Makefile | | 8 | # used by x11/qt5-qtdeclarative/Makefile |
9 | # used by x11/qt5-qtdoc/Makefile | | 9 | # used by x11/qt5-qtdoc/Makefile |
10 | # used by x11/qt5-qtgraphicaleffects/Makefile | | 10 | # used by x11/qt5-qtgraphicaleffects/Makefile |
11 | # used by x11/qt5-qtimageformats/Makefile | | 11 | # used by x11/qt5-qtimageformats/Makefile |
12 | # used by x11/qt5-qtlocation/Makefile | | 12 | # used by x11/qt5-qtlocation/Makefile |
13 | # used by x11/qt5-qtmacextras/Makefile | | 13 | # used by x11/qt5-qtmacextras/Makefile |
14 | # used by x11/qt5-qtmultimedia/Makefile | | 14 | # used by x11/qt5-qtmultimedia/Makefile |
| @@ -46,28 +46,29 @@ USE_TOOLS+= gmake perl:build pkg-config | | | @@ -46,28 +46,29 @@ USE_TOOLS+= gmake perl:build pkg-config |
46 | | | 46 | |
47 | # Avoid failures to due 'register' usage in X11 headers. | | 47 | # Avoid failures to due 'register' usage in X11 headers. |
48 | CFLAGS+= -Wno-register | | 48 | CFLAGS+= -Wno-register |
49 | | | 49 | |
50 | # wcstof(3) etc. is used in C++ code. | | 50 | # wcstof(3) etc. is used in C++ code. |
51 | CFLAGS.NetBSD+= -D_NETBSD_SOURCE | | 51 | CFLAGS.NetBSD+= -D_NETBSD_SOURCE |
52 | | | 52 | |
53 | # include/openssl/e_os2.h:283:25: error: '_Noreturn' does not name a type | | 53 | # include/openssl/e_os2.h:283:25: error: '_Noreturn' does not name a type |
54 | CXXFLAGS.SunOS+= -D_Noreturn="" | | 54 | CXXFLAGS.SunOS+= -D_Noreturn="" |
55 | | | 55 | |
56 | # for GL_GLEXT_LEGACY with GL/gl.h error, GL_ARB_shader_objects is not defined. | | 56 | # for GL_GLEXT_LEGACY with GL/gl.h error, GL_ARB_shader_objects is not defined. |
57 | BUILDLINK_TRANSFORM+= rm:-Wundef | | 57 | BUILDLINK_TRANSFORM+= rm:-Wundef |
58 | | | 58 | |
59 | # ld: unknown option: -O1 | | 59 | # Remove unknown ld(1) options |
60 | BUILDLINK_TRANSFORM.Darwin+= rm:-Wl,-O1 | | 60 | BUILDLINK_TRANSFORM.Darwin+= rm:-Wl,-O1 |
| | | 61 | BUILDLINK_TRANSFORM.Darwin+= rm:-Wl,--no-undefined |
61 | | | 62 | |
62 | MAKE_ENV+= QTPREFIX=${QTPREFIX:Q} | | 63 | MAKE_ENV+= QTPREFIX=${QTPREFIX:Q} |
63 | PLIST_VARS+= notdarwin | | 64 | PLIST_VARS+= notdarwin |
64 | .if ${OPSYS} != "Darwin" | | 65 | .if ${OPSYS} != "Darwin" |
65 | PLIST.notdarwin= yes | | 66 | PLIST.notdarwin= yes |
66 | .endif | | 67 | .endif |
67 | | | 68 | |
68 | # avoid creating a .qt directory in the users home directory | | 69 | # avoid creating a .qt directory in the users home directory |
69 | SCRIPTS_ENV+= HOME=${WRKDIR} | | 70 | SCRIPTS_ENV+= HOME=${WRKDIR} |
70 | | | 71 | |
71 | .if "${PKGPATH}" != "x11/qt5-qtbase" && "${PKGPATH}" != "x11/qt5-odbc" && \ | | 72 | .if "${PKGPATH}" != "x11/qt5-qtbase" && "${PKGPATH}" != "x11/qt5-odbc" && \ |
72 | "${PKGPATH}" != "x11/qt5-mysql" && "${PKGPATH}" != "x11/qt5-psql" && \ | | 73 | "${PKGPATH}" != "x11/qt5-mysql" && "${PKGPATH}" != "x11/qt5-psql" && \ |
73 | "${PKGPATH}" != "x11/qt5-qtwayland" | | 74 | "${PKGPATH}" != "x11/qt5-qtwayland" |