Fix a couple of minor issues with mesa related ports after the switch to
meson.
Define _GNU_SOURCE when building on FreeBSD. This fixes blur effects in
Plasma 5 and issues with the SDDM greeter. This fix was originally applied
in r516100 but got lost in the switch to meson. [1]
Properly detect sys/sysctl.h on FreeBSD. On FreeBSD sys/sysctl.h needs
sys/types.h as well, patch the meson build script to take this into account.
Fix a broken sed command to properly set ${LOCALBASE}/etc and
${LOCALBASE}/share/ as appropriate.
Bump portrevision of all mesa related ports.
PR: 247138 [1]
Reported by: Roman [1]
Reviewed by: manu
Tested by: Roman, Serge Volkov
Differential Revision: https://reviews.freebsd.org/D25265
53 lines
1.0 KiB
Makefile
53 lines
1.0 KiB
Makefile
# Created by: gahr
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libosmesa
|
|
PORTVERSION= ${MESAVERSION}
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
|
|
COMMENT= Off-Screen Mesa implementation of the OpenGL API
|
|
|
|
USES= xorg
|
|
USE_XORG= xorgproto
|
|
|
|
.include <bsd.port.options.mk>
|
|
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
|
|
|
|
|
|
# Disable some options
|
|
MESON_ARGS+= -Ddri-drivers="" \
|
|
-Dgallium-drivers=swrast \
|
|
-Dvulkan-drivers="" \
|
|
-Dplatforms="" \
|
|
-Dgallium-vdpau=false \
|
|
-Dgallium-omx=disabled \
|
|
-Dgallium-va=false \
|
|
-Dgallium-opencl=disabled \
|
|
-Dgallium-xa=false \
|
|
-Dgallium-xvmc=false \
|
|
-Dgallium-nine=false \
|
|
-Dgles1=false \
|
|
-Dgles2=false \
|
|
-Dopengl=false \
|
|
-Dglx=disabled \
|
|
-Degl=false \
|
|
-Dgbm=false \
|
|
-Dtools=""
|
|
LDFLAGS_i386= -Wl,-znotext
|
|
|
|
.if ${ARCH} == sparc64
|
|
MESON_ARGS+= -Dosmesa=classic
|
|
.else
|
|
MESON_ARGS+= -Dosmesa=gallium
|
|
.endif
|
|
|
|
.include "${MASTERDIR}/Makefile.targets"
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/include/GL
|
|
${INSTALL_DATA} ${WRKSRC}/include/GL/osmesa.h \
|
|
${STAGEDIR}${PREFIX}/include/GL
|
|
|
|
.include <bsd.port.post.mk>
|