32 lines
872 B
Makefile
32 lines
872 B
Makefile
PORTNAME= xlibre-xf86-video-amdgpu
|
|
PORTVERSION= 25.1.2
|
|
CATEGORIES= x11-drivers
|
|
|
|
MAINTAINER= xlibre@FreeBSD.org
|
|
COMMENT= XLibre amdgpu display driver
|
|
WWW= https://github.com/X11Libre/xf86-video-amdgpu/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
# No amdgpu kernel driver on non-x86 and PC98.
|
|
ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64le
|
|
ONLY_FOR_ARCHS_REASON= KMS is required and currently only available on x86/arm64/powerpc64le
|
|
|
|
LIB_DEPENDS= libpciaccess.so:devel/libpciaccess \
|
|
libdrm_amdgpu.so:graphics/libdrm
|
|
|
|
USES= gl tar:xz xlibre-cat:driver
|
|
USE_GL= gbm
|
|
|
|
CONFIGURE_ARGS+=--disable-udev
|
|
|
|
PLIST_FILES= ${MODULEDIR}/drivers/amdgpu_drv.so \
|
|
share/man/man4/amdgpu.4x.gz \
|
|
share/X11/xorg.conf.d/10-amdgpu.conf
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|--variable=video_drivers_dir`|--variable=moduledir`/drivers|g' ${WRKSRC}/configure.ac
|
|
|
|
.include <bsd.port.mk>
|