| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.111 2021/07/06 19:50:09 rhialto Exp $ | | 1 | # $NetBSD: Makefile,v 1.112 2021/07/21 15:31:28 tnn Exp $ |
2 | | | 2 | |
3 | DISTNAME= qtbase-everywhere-src-${QTVERSION} | | 3 | DISTNAME= qtbase-everywhere-src-${QTVERSION} |
4 | PKGNAME= qt5-qtbase-${QTVERSION} | | 4 | PKGNAME= qt5-qtbase-${QTVERSION} |
5 | PKGREVISION= 6 | | 5 | PKGREVISION= 6 |
6 | COMMENT= C++ X GUI toolkit | | 6 | COMMENT= C++ X GUI toolkit |
7 | | | 7 | |
8 | .include "../../x11/qt5-qtbase/Makefile.common" | | 8 | .include "../../x11/qt5-qtbase/Makefile.common" |
9 | | | 9 | |
10 | HAS_CONFIGURE= yes | | 10 | HAS_CONFIGURE= yes |
11 | CONFIGURE_ARGS+= -prefix "${QTPREFIX}" | | 11 | CONFIGURE_ARGS+= -prefix "${QTPREFIX}" |
12 | CONFIGURE_ARGS+= -I "${PREFIX}/include" | | 12 | CONFIGURE_ARGS+= -I "${PREFIX}/include" |
13 | CONFIGURE_ARGS+= -L "${PREFIX}/lib" | | 13 | CONFIGURE_ARGS+= -L "${PREFIX}/lib" |
14 | CONFIGURE_ARGS+= -opensource -confirm-license | | 14 | CONFIGURE_ARGS+= -opensource -confirm-license |
| @@ -87,31 +87,35 @@ LDFLAGS+= -L/usr/local/lib/bind -lbind | | | @@ -87,31 +87,35 @@ LDFLAGS+= -L/usr/local/lib/bind -lbind |
87 | BUILDLINK_PASSTHRU_DIRS+= /usr/local/include/bind /usr/local/lib/bind | | 87 | BUILDLINK_PASSTHRU_DIRS+= /usr/local/include/bind /usr/local/lib/bind |
88 | SYS_LIBS= -lbind -ldb -ldl | | 88 | SYS_LIBS= -lbind -ldb -ldl |
89 | .elif ${OPSYS} == "DragonFly" | | 89 | .elif ${OPSYS} == "DragonFly" |
90 | CONFIGURE_ARGS+= -platform freebsd-g++ | | 90 | CONFIGURE_ARGS+= -platform freebsd-g++ |
91 | LDFLAGS+= -lexecinfo | | 91 | LDFLAGS+= -lexecinfo |
92 | .elif ${OPSYS} == "Darwin" | | 92 | .elif ${OPSYS} == "Darwin" |
93 | CONFIGURE_ARGS+= -platform macx-clang | | 93 | CONFIGURE_ARGS+= -platform macx-clang |
94 | CONFIGURE_ARGS+= -no-framework | | 94 | CONFIGURE_ARGS+= -no-framework |
95 | # pkgsrc has a patch to avoid using SDK, but the configure | | 95 | # pkgsrc has a patch to avoid using SDK, but the configure |
96 | # logic gets confused if it can't find the header files | | 96 | # logic gets confused if it can't find the header files |
97 | # so give it a direct path to them if they aren't installed | | 97 | # so give it a direct path to them if they aren't installed |
98 | # in /usr/include | | 98 | # in /usr/include |
99 | . if !exists(/usr/include) | | 99 | . if !exists(/usr/include) |
100 | CONFIGURE_ARGS+= -I "$$(xcrun --show-sdk-path)"/usr/include | | 100 | CONFIGURE_ARGS+= -I ${OSX_SDK_PATH}/usr/include |
101 | . endif | | 101 | . endif |
102 | . if exists(/usr/lib/libresolv.dylib) | | 102 | . if exists(/usr/lib/libresolv.dylib) |
103 | LDFLAGS+= -lresolv | | 103 | LDFLAGS+= -lresolv |
104 | . endif | | 104 | . endif |
| | | 105 | # -lexecinfo is bundled in libc |
| | | 106 | . if exists(${OSX_SDK_PATH}/usr/include/execinfo.h) |
| | | 107 | BUILDLINK_TRANSFORM+= rm:-lexecinfo |
| | | 108 | . endif |
105 | .elif ${OPSYS} == "Linux" | | 109 | .elif ${OPSYS} == "Linux" |
106 | LDFLAGS+= -ldl | | 110 | LDFLAGS+= -ldl |
107 | .elif ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" | | 111 | .elif ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" |
108 | . if exists(/usr/lib/libexecinfo.so) | | 112 | . if exists(/usr/lib/libexecinfo.so) |
109 | LDFLAGS+= -lexecinfo | | 113 | LDFLAGS+= -lexecinfo |
110 | . endif | | 114 | . endif |
111 | LDFLAGS.FreeBSD+= -lutil | | 115 | LDFLAGS.FreeBSD+= -lutil |
112 | .endif | | 116 | .endif |
113 | | | 117 | |
114 | REPLACE_PERL+= bin/fixqt4headers.pl | | 118 | REPLACE_PERL+= bin/fixqt4headers.pl |
115 | REPLACE_PERL+= bin/syncqt.pl | | 119 | REPLACE_PERL+= bin/syncqt.pl |
116 | REPLACE_PERL+= mkspecs/features/data/unix/findclasslist.pl | | 120 | REPLACE_PERL+= mkspecs/features/data/unix/findclasslist.pl |
117 | | | 121 | |