View | Details | Raw Unified | Return to bug 275443 | Differences between
and this patch

Collapse All | Expand All

(-)b/graphics/mesa-dri/Makefile.common (-9 lines)
Lines 82-96 BINARY_ALIAS+= python3=${PYTHON_VERSION} Link Here
82
82
83
CONFIGURE_ENV+=	LLVM_CONFIG=${LLVM_CONFIG}
83
CONFIGURE_ENV+=	LLVM_CONFIG=${LLVM_CONFIG}
84
84
85
# Deal with unclean env if the user have elfutils installed
86
# and build the port directly without poudriere
87
.if exists(${LOCALBASE}/include/libelf.h)
88
LIB_DEPENDS+=	libelf.so:devel/elfutils
89
MESON_ARGS+=	-Dlibelf=enabled
90
.else
91
MESON_ARGS+=	-Dlibelf=disabled
92
.endif
93
94
# Some symbols in mesa's linker version scripts are not always defined,
85
# Some symbols in mesa's linker version scripts are not always defined,
95
# depending on configuration options. Suppress errors with lld >= 17 due to
86
# depending on configuration options. Suppress errors with lld >= 17 due to
96
# these undefined symbols.
87
# these undefined symbols.
(-)b/graphics/mesa-dri/Makefile.targets (+15 lines)
Lines 1-6 Link Here
1
# this file holds common targets
1
# this file holds common targets
2
2
3
post-patch:
3
post-patch:
4
	# Disable some autostaff.
5
	@${REINPLACE_CMD} -e 's|dep_elf = dependency.*|dep_elf = null_dep|g' \
6
		-e 's|dep_libudev =.*|dep_libudev = null_dep|g' \
7
		-e 's|dep_openmp =.*|dep_openmp = null_dep|g' \
8
		-e 's|dep_xcb_keysyms =.*|dep_xcb_keysyms = null_dep|g' \
9
		${WRKSRC}/meson.build
10
	# Force use libelf headers from base.
11
	# gelf.h includes <libelf.h> so remove it to avoid conflict between
12
	# </usr/include/libelf.h> and <libelf.h>=/usr/local/include/libelf.h.
13
	${REINPLACE_CMD} -e 's|#include <gelf.h>||g' \
14
		-e 's|#include <libelf.h>|#include </usr/include/libelf.h>|g' \
15
		${WRKSRC}/src/amd/common/ac_rtld.c \
16
		${WRKSRC}/src/amd/common/ac_rgp_elf_object_pack.c \
17
		${WRKSRC}/src/gallium/drivers/r600/evergreen_compute.c \
18
		${WRKSRC}/src/gallium/frontends/clover/llvm/codegen/native.cpp
4
	${REINPLACE_CMD} -e '/SYSCONFDIR/ s|/etc|${PREFIX}/etc|g' \
19
	${REINPLACE_CMD} -e '/SYSCONFDIR/ s|/etc|${PREFIX}/etc|g' \
5
		-e '/DATADIR/ s|/usr/share|${PREFIX}/share|g' \
20
		-e '/DATADIR/ s|/usr/share|${PREFIX}/share|g' \
6
		${WRKSRC}/src/util/xmlconfig.c
21
		${WRKSRC}/src/util/xmlconfig.c

Return to bug 275443