freebsd-ports/graphics/mesa-dri/Makefile.targets
Emmanuel Vadot f914799192 mesa*: Switch to using a native-file for llvm
Meson seems to not care that a llvm-config binary exists and will prefer
to use llvm-config-devel for some reason.
Using a native-file fixes that and meson will correctly use the llvm specified
in it.

PR:	247026
Approved by:	zeising (x11@ implicit)
2020-06-08 09:55:38 +00:00

12 lines
270 B
XML

# $FreeBSD$
#
# this file holds common targets
pre-configure:
${PRINTF} "[binaries]\nllvm-config = '${LOCALBASE}/bin/llvm-config${LLVM_DEFAULT}'" \
> ${WRKSRC}/llvm.ini
post-patch:
@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \
${WRKSRC}/src/util/xmlconfig.c