This port allows us to provide updated DRM kernel drivers on FreeBSD 9.3. Kernel modules are suffixed with "_port" compared to the vanilla drivers (eg. i915kms.ko becomes i915kms_port.ko). The device-independent module, renamed as drm2_port.ko, is also included. However, Radeon firmwares are not: the vanilla ones are still being used. xf86-video-ati and xf86-video-intel depends on drm-kmod on FreeBSD 9.3. These ports are modified to automatically load the *_port kernel module. This initial version brings hardware context support to the i915 driver. This feature is required by Mesa 9.2+, which itself is required by xserver 1.15+. Differential Revision: https://reviews.freebsd.org/D2149 Reviewed by: kwm Approved by: kwm Tested by: Florian Degner <f.degner@gmx.de>
35 lines
726 B
Makefile
35 lines
726 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= xf86-video-ati
|
|
PORTVERSION= 7.5.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= x11-drivers
|
|
|
|
MAINTAINER= x11@FreeBSD.org
|
|
COMMENT= X.Org ati display driver
|
|
|
|
USE_GL= gl
|
|
XORG_CAT= driver
|
|
USE_XORG= xf86driproto \
|
|
xineramaproto \
|
|
xf86miscproto \
|
|
glproto \
|
|
presentproto
|
|
INSTALL_TARGET= install-strip
|
|
# No Radeon kernel driver on non-x86 and PC98.
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
CONFIGURE_ARGS+=--disable-udev
|
|
CONFIGURE_ARGS+=--disable-glamor
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if (${OSVERSION} >= 903000 && ${OSVERSION} < 1000000)
|
|
RUN_DEPENDS+= drm-kmod>=9:${PORTSDIR}/x11-drivers/drm-kmod
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|"radeonkms"|"radeonkms_port"|g' \
|
|
${WRKSRC}/src/radeon_kms.c
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|