blob: ec1654b3ae288790136767ae5efdccc879fe67d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# $FreeBSD$
PORTNAME= xf86-video-ati
PORTVERSION= ${ATI_VERSION}
PORTREVISION= 1
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
.include <bsd.port.options.mk>
.if (${OSVERSION} >= 902508 && ${OSVERSION} < 1000000) || ${OSVERSION} >= 1000051
# 902508: Radeon kernel driver imported in FreeBSD 9.x
# 1000051: Radeon kernel driver imported in FreeBSD 10.x
. if defined(WITH_NEW_XORG)
NEW_ATI_DRIVER= yes
. else
NEW_ATI_DRIVER= no
. endif
.else
# FreeBSD < 902508 doesn't have the Radeon kernel driver. No need to
# check for WITH_NEW_XORG. But we do support a flag to force the usage
# of the KMS-only DDX: this is used by the build cluster only.
. if defined(FORCE_KMS_ONLY_DDX)
NEW_ATI_DRIVER= yes
. else
NEW_ATI_DRIVER= no
. endif
.endif
.if (${ARCH} != i386 && ${ARCH} != amd64)
# No Radeon kernel driver on non-x86 and PC98.
NEW_ATI_DRIVER= no
.endif
.if ${NEW_ATI_DRIVER} == no
ATI_VERSION= 6.14.6
ATI_REVISION= 3
CONFIGURE_ARGS+=--disable-kms
PLIST_SUB+= OLD=""
.else
ATI_VERSION= 7.2.0
ATI_REVISION= 3
CONFIGURE_ARGS+=--disable-udev
CONFIGURE_ARGS+=--disable-glamor
EXTRA_PATCHES+= ${FILESDIR}/extra-src__radeon_kms.c
PLIST_SUB+= OLD="@comment "
.endif
.include <bsd.port.mk>
|