blob: be7537191b95f7783ecd945fba52c22d8e875c13 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
# $FreeBSD$
PORTNAME= xorg-drivers
PORTVERSION= 7.7
CATEGORIES= x11-drivers
MASTER_SITES= # none
DISTFILES= # none
EXTRACT_ONLY= # none
MAINTAINER= x11@FreeBSD.org
COMMENT= X.org drivers meta-port
VIDEODIR= ${PREFIX}/lib/xorg/modules/drivers
INPUTDIR= ${PREFIX}/lib/xorg/modules/input
NO_BUILD= yes
INPUT_DRIVERS= mouse \
keyboard \
acecad \
elographics \
hyperpen \
joystick \
magictouch \
mutouch \
penmount \
synaptics \
vmmouse \
void
VIDEO_DRIVERS= ati \
mach64 \
nv \
r128 \
vesa \
apm \
ark \
chips \
cyrix \
dummy \
fbdev \
glint \
i128 \
i740 \
mga \
neomagic \
newport \
rendition \
s3 \
s3virge \
savage \
siliconmotion \
sis \
tdfx \
tga \
trident \
tseng \
vmware \
voodoo
OPTIONS_DEFAULT= MOUSE \
KEYBOARD \
ATI \
MACH64 \
NV \
R128 \
VESA
.for type in input video
. for a in ${${type:tu}_DRIVERS}
OPTIONS_DEFINE+= ${a:tu}
${a:tu}_DESC= Install ${a} ${type} driver
. endfor
.endfor
OPTIONS_DEFINE_i386= INTEL OPENCHROME
OPTIONS_DEFAULT_i386= INTEL OPENCHROME
OPTIONS_DEFINE_amd64:= ${OPTIONS_DEFINE_i386}
OPTIONS_DEFAULT_amd64:= ${OPTIONS_DEFAULT_i386}
OPTIONS_DEFINE_sparc64= SUNFFB
OPTIONS_DEFAULT_sparc64=SUNFFB
OPTIONS_DEFINE_ia64= OPENCHROME
OPTIONS_DEFAULT_ia64= OPENCHROME
INTEL_DESC= Install intel video driver
OPENCHROME_DESC= Install openchrome video driver
SUNFFB_DESC= Install sunffb video driver
# these drivers have a different module name compared to the plugin they install
QUIRKS= keyboard:kbd
.include <bsd.port.options.mk>
# Manual add arch specific drivers so they be added to depend lines.
.if ${ARCH}==i386 || ${ARCH}==amd64
VIDEO_DRIVERS+= intel openchrome
.endif
.if ${ARCH}==sparc64
VIDEO_DRIVERS+= sunffb
.endif
.for type in input video
. for i in ${${type:tu}_DRIVERS}
. if ${PORT_OPTIONS:M${i:tu}} != ""
. if ${QUIRKS:M${i}\:*:C/.*://} != ""
RUN_DEPENDS+= ${${type:tu}DIR}/${QUIRKS:M${i}\:*:C/.*://}_drv.so:${PORTSDIR}/x11-drivers/xf86-${type}-${i}
. else
RUN_DEPENDS+= ${${type:tu}DIR}/${i}_drv.so:${PORTSDIR}/x11-drivers/xf86-${type}-${i}
. endif
. endif
. endfor
.endfor
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libdata/xorg
${TOUCH} ${STAGEDIR}${PREFIX}/libdata/xorg/drivers
.include <bsd.port.mk>
|