| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.37 2023/11/08 09:01:20 nros Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.38 2023/11/11 10:34:33 adam Exp $ |
2 | # used by audio/qt6-qtspeech/Makefile | | 2 | # used by audio/qt6-qtspeech/Makefile |
3 | # used by comms/qt6-qtconnectivity/Makefile | | 3 | # used by comms/qt6-qtconnectivity/Makefile |
4 | # used by databases/qt6-odbc/Makefile | | 4 | # used by databases/qt6-odbc/Makefile |
5 | # used by databases/qt6-psql/Makefile | | 5 | # used by databases/qt6-psql/Makefile |
6 | # used by devel/qt6-qt5compat/Makefile | | 6 | # used by devel/qt6-qt5compat/Makefile |
7 | # used by devel/qt6-qttools/Makefile | | 7 | # used by devel/qt6-qttools/Makefile |
8 | # used by devel/qt6-qtwayland/Makefile | | 8 | # used by devel/qt6-qtwayland/Makefile |
9 | # used by geography/qt6-qtlocation/Makefile | | 9 | # used by geography/qt6-qtlocation/Makefile |
10 | # used by geography/qt6-qtpositioning/Makefile | | 10 | # used by geography/qt6-qtpositioning/Makefile |
11 | # used by graphics/qt6-qt3d/Makefile | | 11 | # used by graphics/qt6-qt3d/Makefile |
12 | # used by graphics/qt6-qtcharts/Makefile | | 12 | # used by graphics/qt6-qtcharts/Makefile |
13 | # used by graphics/qt6-qtdatavis3d/Makefile | | 13 | # used by graphics/qt6-qtdatavis3d/Makefile |
14 | # used by graphics/qt6-qtimageformats/Makefile | | 14 | # used by graphics/qt6-qtimageformats/Makefile |
| @@ -63,29 +63,30 @@ CXXFLAGS.SunOS+= -D_Noreturn="" | | | @@ -63,29 +63,30 @@ CXXFLAGS.SunOS+= -D_Noreturn="" |
63 | | | 63 | |
64 | # for GL_GLEXT_LEGACY with GL/gl.h error, GL_ARB_shader_objects is not defined. | | 64 | # for GL_GLEXT_LEGACY with GL/gl.h error, GL_ARB_shader_objects is not defined. |
65 | BUILDLINK_TRANSFORM+= rm:-Wundef | | 65 | BUILDLINK_TRANSFORM+= rm:-Wundef |
66 | | | 66 | |
67 | MAKE_ENV+= QTPREFIX=${QTPREFIX:Q} | | 67 | MAKE_ENV+= QTPREFIX=${QTPREFIX:Q} |
68 | | | 68 | |
69 | # pkgsrc does not set rpath during build | | 69 | # pkgsrc does not set rpath during build |
70 | # but qdbuscpp2xml and qdbuscpp2xml are | | 70 | # but qdbuscpp2xml and qdbuscpp2xml are |
71 | # executed during build, | | 71 | # executed during build, |
72 | # some libs also link to libs in lib so | | 72 | # some libs also link to libs in lib so |
73 | # this is needed by some ld:s to not | | 73 | # this is needed by some ld:s to not |
74 | # cause linking errors. | | 74 | # cause linking errors. |
75 | .if ${OPSYS} == "Darwin" | | 75 | .if ${OPSYS} == "Darwin" |
76 | MAKE_ENV+= DYLD_LIBRARY_PATH=${WRKSRC}/lib | | 76 | CMAKE_INSTALL_NAME_DIR= ${QTPREFIX}/lib |
| | | 77 | MAKE_ENV+= DYLD_LIBRARY_PATH=${WRKSRC}/lib |
77 | .else | | 78 | .else |
78 | MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/lib | | 79 | MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/lib |
79 | .endif | | 80 | .endif |
80 | | | 81 | |
81 | # avoid creating a .qt directory in the users home directory | | 82 | # avoid creating a .qt directory in the users home directory |
82 | SCRIPTS_ENV+= HOME=${WRKDIR} | | 83 | SCRIPTS_ENV+= HOME=${WRKDIR} |
83 | | | 84 | |
84 | .if "${PKGPATH}" != "x11/qt6-qtbase" | | 85 | .if "${PKGPATH}" != "x11/qt6-qtbase" |
85 | CMAKE_INSTALL_PREFIX= ${QTPREFIX} | | 86 | CMAKE_INSTALL_PREFIX= ${QTPREFIX} |
86 | .include "../../devel/cmake/configure-settings.mk" | | 87 | .include "../../devel/cmake/configure-settings.mk" |
87 | CONFIGURE_ARGS+= -- ${CMAKE_CONFIGURE_ARGS} | | 88 | CONFIGURE_ARGS+= -- ${CMAKE_CONFIGURE_ARGS} |
88 | QTCONFDIR?= . | | 89 | QTCONFDIR?= . |
89 | do-configure: | | 90 | do-configure: |
90 | cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QTPREFIX}/bin/qt-configure-module ${QTCONFDIR} ${CONFIGURE_ARGS} | | 91 | cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QTPREFIX}/bin/qt-configure-module ${QTCONFDIR} ${CONFIGURE_ARGS} |
91 | .endif | | 92 | .endif |