2007-05-19 22:36:56 +02:00
|
|
|
# New ports collection makefile for: xorg-drivers
|
|
|
|
# Date created: Jun 22 2006
|
|
|
|
# Whom: Florent Thoumie <flz@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xorg-drivers
|
2009-01-23 17:28:36 +01:00
|
|
|
PORTVERSION= 7.4
|
2010-02-07 16:25:33 +01:00
|
|
|
PORTREVISION= 3
|
2007-05-19 22:36:56 +02:00
|
|
|
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
|
|
|
|
|
2007-08-28 23:20:48 +02:00
|
|
|
NO_BUILD= yes
|
2007-05-19 22:36:56 +02:00
|
|
|
|
2007-08-29 00:07:53 +02:00
|
|
|
.if !defined(ARCH)
|
|
|
|
ARCH!= /usr/bin/uname -p
|
|
|
|
.endif
|
|
|
|
|
2007-08-28 23:20:48 +02:00
|
|
|
VIDEO_ON= ati \
|
2008-06-28 01:26:43 +02:00
|
|
|
mach64 \
|
2007-08-28 23:20:48 +02:00
|
|
|
nv \
|
2008-06-28 01:26:43 +02:00
|
|
|
r128 \
|
2007-12-12 13:19:35 +01:00
|
|
|
radeonhd \
|
2009-01-23 17:28:36 +01:00
|
|
|
vesa
|
2007-10-09 21:30:14 +02:00
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
VIDEO_ON+= sunffb
|
2007-12-25 08:35:52 +01:00
|
|
|
.else
|
2009-01-23 17:28:36 +01:00
|
|
|
VIDEO_ON+= openchrome
|
2007-10-09 21:30:14 +02:00
|
|
|
.endif
|
|
|
|
|
2009-03-31 22:04:03 +02:00
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "i386"
|
|
|
|
VIDEO_ON+= intel
|
|
|
|
.endif
|
|
|
|
|
2007-09-13 21:45:08 +02:00
|
|
|
VIDEO_OFF= apm ark \
|
|
|
|
chips cirrus cyrix \
|
2007-08-28 23:20:48 +02:00
|
|
|
dummy \
|
|
|
|
fbdev \
|
|
|
|
glint \
|
2009-01-05 22:01:29 +01:00
|
|
|
i128 i740 imstt \
|
2007-08-28 23:20:48 +02:00
|
|
|
mga \
|
|
|
|
neomagic newport nsc \
|
|
|
|
rendition \
|
|
|
|
s3 s3virge savage siliconmotion sis \
|
|
|
|
tdfx tga trident tseng \
|
2009-01-23 17:28:36 +01:00
|
|
|
via vmware voodoo
|
2007-08-29 00:07:53 +02:00
|
|
|
|
2009-01-05 22:01:29 +01:00
|
|
|
VIDEO_EXCL= via:openchrome
|
2007-05-19 22:36:56 +02:00
|
|
|
|
2007-08-28 23:20:48 +02:00
|
|
|
INPUT_ON= mouse \
|
|
|
|
keyboard
|
|
|
|
INPUT_OFF= acecad \
|
|
|
|
calcomp citron \
|
|
|
|
digitaledge dmc dynapro \
|
|
|
|
elo2300 elographics \
|
|
|
|
fpit \
|
|
|
|
hyperpen \
|
|
|
|
jamstudio joystick \
|
|
|
|
magellan magictouch microtouch mutouch \
|
|
|
|
palmax penmount \
|
2009-01-23 17:28:36 +01:00
|
|
|
spaceorb summa synaptics \
|
2007-08-28 23:20:48 +02:00
|
|
|
tek4957 \
|
2007-09-13 21:45:08 +02:00
|
|
|
vmmouse void
|
|
|
|
|
2008-03-06 15:44:54 +01:00
|
|
|
QUIRKS= keyboard:kbd jamstudio:js_x
|
2007-09-13 21:45:08 +02:00
|
|
|
|
|
|
|
.if defined(XORG_COMPLETE)
|
|
|
|
. for type in input video
|
|
|
|
${type:U}_ON:= ${${type:U}_ON} ${${type:U}_OFF}
|
|
|
|
${type:U}_OFF= # nil
|
2007-10-09 21:30:14 +02:00
|
|
|
. for i in ${${type:U}_EXCL}
|
|
|
|
B= ${i:C/.*://}
|
|
|
|
${type:U}_ON:= ${${type:U}_ON:C/${B}//}
|
|
|
|
${type:U}_OFF:= ${${type:U}_OFF} ${B}
|
|
|
|
. endfor
|
2007-09-13 21:45:08 +02:00
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
2007-08-28 23:20:48 +02:00
|
|
|
.for default in on off
|
|
|
|
. for type in input video
|
|
|
|
. for i in ${${type:U}_${default:U}}
|
|
|
|
OPTIONS+= ${i:U} "Install ${i} ${type} driver" ${default}
|
|
|
|
. endfor
|
|
|
|
. endfor
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-10-09 21:30:14 +02:00
|
|
|
.for i in ${VIDEO_EXCL}
|
|
|
|
A= ${i:C/:.*//}
|
|
|
|
B= ${i:C/.*://}
|
|
|
|
. if defined(WITH_${B:U}) && !defined(WITHOUT_${A:U})
|
|
|
|
DRV_CONFLICTS+= ${i}
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.if defined(DRV_CONFLICTS)
|
2008-03-13 13:38:08 +01:00
|
|
|
IGNORE= can't be installed because of conflicting drivers (${DRV_CONFLICTS}). Re-run make config.
|
2007-08-29 13:40:01 +02:00
|
|
|
.endif
|
|
|
|
|
2007-08-28 23:20:48 +02:00
|
|
|
.for default in on off
|
|
|
|
. for type in input video
|
|
|
|
. for i in ${${type:U}_${default:U}}
|
|
|
|
DEFAULT=${default}
|
2007-09-13 21:45:08 +02:00
|
|
|
. if (${DEFAULT} == "on" && !defined(WITHOUT_${i:U})) || (${DEFAULT} == "off" && defined(WITH_${i:U}))
|
|
|
|
. if ${QUIRKS:M${i}\:*:C/.*://} != ""
|
|
|
|
RUN_DEPENDS+= ${${type:U}DIR}/${QUIRKS:M${i}\:*:C/.*://}_drv.so:${PORTSDIR}/x11-drivers/xf86-${type}-${i}
|
|
|
|
. else
|
|
|
|
RUN_DEPENDS+= ${${type:U}DIR}/${i}_drv.so:${PORTSDIR}/x11-drivers/xf86-${type}-${i}
|
|
|
|
. endif
|
2007-08-28 23:20:48 +02:00
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
. endfor
|
|
|
|
.endfor
|
2007-05-19 22:36:56 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/libdata/xorg
|
|
|
|
${TOUCH} ${PREFIX}/libdata/xorg/drivers
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|