0fc8f1a82b
Release notes: https://lists.freedesktop.org/archives/dri-devel/2022-November/378153.html Sponsored by: Beckhoff Automation GmbH & Co. KG
96 lines
2.5 KiB
Makefile
96 lines
2.5 KiB
Makefile
PORTNAME= libdrm
|
|
PORTVERSION= 2.4.114
|
|
PORTEPOCH= 1
|
|
CATEGORIES= graphics x11
|
|
MASTER_SITES= https://dri.freedesktop.org/libdrm/
|
|
|
|
PATCH_SITES= https://gitlab.freedesktop.org/mesa/${PORTNAME:S/lib//}/-/commit/
|
|
PATCHFILES+= 7207431e466a.patch:-p1 # https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/193
|
|
|
|
MAINTAINER= x11@FreeBSD.org
|
|
COMMENT= Userspace interface to kernel Direct Rendering Module services
|
|
WWW= https://dri.freedesktop.org/
|
|
|
|
LICENSE= MIT
|
|
|
|
LIB_DEPENDS= libpciaccess.so:devel/libpciaccess
|
|
|
|
USES= gnome meson pkgconfig tar:xz
|
|
USE_LDCONFIG= yes
|
|
|
|
OPTIONS_DEFINE= MANPAGES TESTS
|
|
OPTIONS_SUB= yes
|
|
|
|
TESTS_DESC= Build and install test programs
|
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
OPTIONS_DEFAULT+= MANPAGES
|
|
.endif
|
|
|
|
MANPAGES_BUILD_DEPENDS= rst2man:textproc/py-docutils
|
|
MANPAGES_MESON_ENABLED= man-pages
|
|
|
|
TESTS_MESON_TRUE= install-test-programs
|
|
|
|
# avoid circular dependency in case cairo supports OpenGL (cairo->mesa-libs->libdrm->cairo)
|
|
CONFIGURE_ARGS+= -Dcairo-tests=disabled
|
|
|
|
# Disable some targets known to not work on FreeBSD
|
|
MESON_ARGS+= -Domap=disabled \
|
|
-Dexynos=disabled \
|
|
-Dfreedreno=disabled \
|
|
-Dfreedreno-kgsl=false \
|
|
-Dvc4=disabled \
|
|
-Detnaviv=disabled \
|
|
-Dnouveau=disabled
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == amd64 || ${ARCH} == i386
|
|
MESON_ARGS+= -Dvmwgfx=enabled \
|
|
-Dintel=enabled
|
|
.else
|
|
MESON_ARGS+= -Dvmwgfx=disabled \
|
|
-Dintel=disabled
|
|
.endif
|
|
|
|
.if ${ARCH} == amd64 || ${ARCH} == i386
|
|
PLIST_SUB+= ARM_DRIVERS="@comment "
|
|
PLIST_SUB+= INTEL_DRIVER=""
|
|
PLIST_SUB+= NOUVEAU_DRIVER=""
|
|
PLIST_SUB+= RADEON_DRIVERS=""
|
|
PLIST_SUB+= VMWGFX_DRIVERS=""
|
|
.elif ${ARCH:Mpowerpc*}
|
|
PLIST_SUB+= ARM_DRIVERS="@comment "
|
|
PLIST_SUB+= INTEL_DRIVER="@comment "
|
|
PLIST_SUB+= NOUVEAU_DRIVER=""
|
|
PLIST_SUB+= RADEON_DRIVERS=""
|
|
PLIST_SUB+= VMWGFX_DRIVERS="@comment "
|
|
.elif ${ARCH} == aarch64
|
|
PLIST_SUB+= ARM_DRIVERS=""
|
|
PLIST_SUB+= INTEL_DRIVER="@comment "
|
|
PLIST_SUB+= NOUVEAU_DRIVER=""
|
|
PLIST_SUB+= RADEON_DRIVERS=""
|
|
PLIST_SUB+= VMWGFX_DRIVERS="@comment "
|
|
.elif ${ARCH:Marm*}
|
|
PLIST_SUB+= ARM_DRIVERS=""
|
|
PLIST_SUB+= INTEL_DRIVER="@comment "
|
|
PLIST_SUB+= NOUVEAU_DRIVER="@comment "
|
|
PLIST_SUB+= RADEON_DRIVERS=""
|
|
PLIST_SUB+= VMWGFX_DRIVERS="@comment "
|
|
.elif ${ARCH} == riscv64
|
|
PLIST_SUB+= ARM_DRIVERS="@comment "
|
|
PLIST_SUB+= INTEL_DRIVER="@comment "
|
|
PLIST_SUB+= NOUVEAU_DRIVER="@comment "
|
|
PLIST_SUB+= RADEON_DRIVERS=""
|
|
PLIST_SUB+= VMWGFX_DRIVERS="@comment "
|
|
.else
|
|
PLIST_SUB+= ARM_DRIVERS="@comment "
|
|
PLIST_SUB+= INTEL_DRIVER="@comment "
|
|
PLIST_SUB+= NOUVEAU_DRIVER="@comment "
|
|
PLIST_SUB+= RADEON_DRIVERS="@comment "
|
|
PLIST_SUB+= VMWGFX_DRIVERS="@comment "
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|