| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bsd.own.mk,v 1.1370 2024/04/24 07:54:53 martin Exp $ | | 1 | # $NetBSD: bsd.own.mk,v 1.1371 2024/04/24 19:14:39 martin Exp $ |
2 | | | 2 | |
3 | # This needs to be before bsd.init.mk | | 3 | # This needs to be before bsd.init.mk |
4 | .if defined(BSD_MK_COMPAT_FILE) | | 4 | .if defined(BSD_MK_COMPAT_FILE) |
5 | .include <${BSD_MK_COMPAT_FILE}> | | 5 | .include <${BSD_MK_COMPAT_FILE}> |
6 | .endif | | 6 | .endif |
7 | | | 7 | |
8 | .if !defined(_BSD_OWN_MK_) | | 8 | .if !defined(_BSD_OWN_MK_) |
9 | _BSD_OWN_MK_=1 | | 9 | _BSD_OWN_MK_=1 |
10 | | | 10 | |
11 | MAKECONF?= /etc/mk.conf | | 11 | MAKECONF?= /etc/mk.conf |
12 | .-include "${MAKECONF}" | | 12 | .-include "${MAKECONF}" |
13 | | | 13 | |
14 | # | | 14 | # |
| @@ -1310,30 +1310,38 @@ MKTEGRAFIRMWARE.evbarm= yes | | | @@ -1310,30 +1310,38 @@ MKTEGRAFIRMWARE.evbarm= yes |
1310 | MKDTB.aarch64= yes | | 1310 | MKDTB.aarch64= yes |
1311 | MKDTB.aarch64eb= yes | | 1311 | MKDTB.aarch64eb= yes |
1312 | MKDTB.earmv6= yes | | 1312 | MKDTB.earmv6= yes |
1313 | MKDTB.earmv6hf= yes | | 1313 | MKDTB.earmv6hf= yes |
1314 | MKDTB.earmv6eb= yes | | 1314 | MKDTB.earmv6eb= yes |
1315 | MKDTB.earmv6hfeb= yes | | 1315 | MKDTB.earmv6hfeb= yes |
1316 | MKDTB.earmv7= yes | | 1316 | MKDTB.earmv7= yes |
1317 | MKDTB.earmv7hf= yes | | 1317 | MKDTB.earmv7hf= yes |
1318 | MKDTB.earmv7eb= yes | | 1318 | MKDTB.earmv7eb= yes |
1319 | MKDTB.earmv7hfeb= yes | | 1319 | MKDTB.earmv7hfeb= yes |
1320 | MKDTB.riscv32= yes | | 1320 | MKDTB.riscv32= yes |
1321 | MKDTB.riscv64= yes | | 1321 | MKDTB.riscv64= yes |
1322 | | | 1322 | |
1323 | # alpha build fails due to missing X include files, | | 1323 | # During transition from xorg-server 1.10 to 1.20 |
1324 | # vax build triggers a gcc bug and dies with an internal compiler error. | | 1324 | .if \ |
1325 | # XXX switch both to old Mesa for now. | | 1325 | ${MACHINE} == "alpha" || \ |
1326 | .if ${MACHINE} == "alpha" || ${MACHINE} == "vax" | | 1326 | ${MACHINE} == "netwinder" || \ |
| | | 1327 | ${MACHINE} == "sgimips" |
| | | 1328 | HAVE_XORG_SERVER_VER?=110 |
| | | 1329 | .else |
| | | 1330 | HAVE_XORG_SERVER_VER?=120 |
| | | 1331 | .endif |
| | | 1332 | |
| | | 1333 | # Newer Mesa does not build with old X server |
| | | 1334 | .if ${HAVE_XORG_SERVER_VER} != "120" |
1327 | HAVE_MESA_VER=19 | | 1335 | HAVE_MESA_VER=19 |
1328 | .endif | | 1336 | .endif |
1329 | | | 1337 | |
1330 | HAVE_MESA_VER?= 21 | | 1338 | HAVE_MESA_VER?= 21 |
1331 | .if ${HAVE_MESA_VER} == 19 | | 1339 | .if ${HAVE_MESA_VER} == 19 |
1332 | EXTERNAL_MESALIB_DIR?= MesaLib.old | | 1340 | EXTERNAL_MESALIB_DIR?= MesaLib.old |
1333 | .elif ${HAVE_MESA_VER} == 21 | | 1341 | .elif ${HAVE_MESA_VER} == 21 |
1334 | EXTERNAL_MESALIB_DIR?= MesaLib | | 1342 | EXTERNAL_MESALIB_DIR?= MesaLib |
1335 | .endif | | 1343 | .endif |
1336 | | | 1344 | |
1337 | # Default to LLVM run-time if x86 or aarch64 and X11 and Mesa 18 or newer | | 1345 | # Default to LLVM run-time if x86 or aarch64 and X11 and Mesa 18 or newer |
1338 | # XXX This knows that MKX11=no is default below, but would | | 1346 | # XXX This knows that MKX11=no is default below, but would |
1339 | # require splitting the below loop in two parts. | | 1347 | # require splitting the below loop in two parts. |
| @@ -1666,36 +1674,26 @@ X11SRCDIRMIT?= ${X11SRCDIR}/external/mi | | | @@ -1666,36 +1674,26 @@ X11SRCDIRMIT?= ${X11SRCDIR}/external/mi |
1666 | FS ICE SM X11 XScrnSaver XTrap Xau Xcomposite Xcursor Xdamage \ | | 1674 | FS ICE SM X11 XScrnSaver XTrap Xau Xcomposite Xcursor Xdamage \ |
1667 | Xdmcp Xevie Xext Xfixes Xfont Xfont2 Xft Xi Xinerama Xmu Xpresent Xpm \ | | 1675 | Xdmcp Xevie Xext Xfixes Xfont Xfont2 Xft Xi Xinerama Xmu Xpresent Xpm \ |
1668 | Xrandr Xrender Xres Xt Xtst Xv XvMC Xxf86dga Xxf86misc Xxf86vm drm \ | | 1676 | Xrandr Xrender Xres Xt Xtst Xv XvMC Xxf86dga Xxf86misc Xxf86vm drm \ |
1669 | epoxy fontenc vdpau xkbfile xkbui Xaw pciaccess xcb xshmfence \ | | 1677 | epoxy fontenc vdpau xkbfile xkbui Xaw pciaccess xcb xshmfence \ |
1670 | pthread-stubs xcvt | | 1678 | pthread-stubs xcvt |
1671 | X11SRCDIR.${_lib}?= ${X11SRCDIRMIT}/lib${_lib}/dist | | 1679 | X11SRCDIR.${_lib}?= ${X11SRCDIRMIT}/lib${_lib}/dist |
1672 | .endfor | | 1680 | .endfor |
1673 | | | 1681 | |
1674 | .for _proto in \ | | 1682 | .for _proto in \ |
1675 | xcb- xorg | | 1683 | xcb- xorg |
1676 | X11SRCDIR.${_proto}proto?= ${X11SRCDIRMIT}/${_proto}proto/dist | | 1684 | X11SRCDIR.${_proto}proto?= ${X11SRCDIRMIT}/${_proto}proto/dist |
1677 | .endfor | | 1685 | .endfor |
1678 | | | 1686 | |
1679 | # During transition from xorg-server 1.10 to 1.20 | | | |
1680 | .if \ | | | |
1681 | ${MACHINE} == "alpha" || \ | | | |
1682 | ${MACHINE} == "netwinder" || \ | | | |
1683 | ${MACHINE} == "sgimips" | | | |
1684 | HAVE_XORG_SERVER_VER?=110 | | | |
1685 | .else | | | |
1686 | HAVE_XORG_SERVER_VER?=120 | | | |
1687 | .endif | | | |
1688 | | | | |
1689 | .if ${HAVE_XORG_SERVER_VER} == "120" | | 1687 | .if ${HAVE_XORG_SERVER_VER} == "120" |
1690 | XORG_SERVER_SUBDIR?=xorg-server | | 1688 | XORG_SERVER_SUBDIR?=xorg-server |
1691 | . if ${MACHINE} == "amd64" || ${MACHINE} == "i386" || ${MACHINE} == "evbarm" | | 1689 | . if ${MACHINE} == "amd64" || ${MACHINE} == "i386" || ${MACHINE} == "evbarm" |
1692 | HAVE_XORG_GLAMOR?= yes | | 1690 | HAVE_XORG_GLAMOR?= yes |
1693 | . endif | | 1691 | . endif |
1694 | .else | | 1692 | .else |
1695 | XORG_SERVER_SUBDIR?=xorg-server.old | | 1693 | XORG_SERVER_SUBDIR?=xorg-server.old |
1696 | .endif | | 1694 | .endif |
1697 | | | 1695 | |
1698 | X11SRCDIR.xorg-server?= ${X11SRCDIRMIT}/${XORG_SERVER_SUBDIR}/dist | | 1696 | X11SRCDIR.xorg-server?= ${X11SRCDIRMIT}/${XORG_SERVER_SUBDIR}/dist |
1699 | HAVE_XORG_GLAMOR?= no | | 1697 | HAVE_XORG_GLAMOR?= no |
1700 | | | 1698 | |
1701 | # Build glamor extension? | | 1699 | # Build glamor extension? |