PORTNAME= xlibre-drivers PORTVERSION= 1.0 PORTREVISION= 1 CATEGORIES= x11-drivers MAINTAINER= xlibre@FreeBSD.org COMMENT= XLibre drivers meta-port WWW= https://github.com/X11Libre/ LICENSE= none USES= metaport .include "${.CURDIR}/../../x11-servers/xlibre-server/Makefile.version" MODULEDIR= ${PREFIX}/lib/xorg/modules/xlibre-${XLIBRE_MJR_VER}/ VIDEODIR= ${MODULEDIR}/drivers INPUTDIR= ${MODULEDIR}/input INPUT_DRIVERS= elographics \ evdev \ joystick \ keyboard \ libinput \ mouse \ synaptics \ void \ egalax \ wacom VIDEO_DRIVERS= ast \ dummy \ nv \ scfb \ vesa OPTIONS_DEFAULT= KEYBOARD \ LIBINPUT \ MOUSE \ SCFB .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_amd64= AMDGPU ATI INTEL VMMOUSE VMWARE OPTIONS_DEFAULT_amd64= VESA AMDGPU_DESC= Install amdgpu video driver ATI_DESC= Install ati (radeon) video driver INTEL_DESC= Install intel video driver VMMOUSE_DESC= Install vmmouse input driver VMWARE_DESC= Install vmware video driver # these drivers have a different module name compared to the plugin they install QUIRKS= keyboard:kbd .include # Manual add arch specific drivers so they be added to depend lines. .if ${ARCH}==i386 || ${ARCH}==amd64 INPUT_DRIVERS+= vmmouse VIDEO_DRIVERS+= amdgpu ati intel vmware .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:x11-drivers/xlibre-xf86-${type}-${i} . else RUN_DEPENDS+= ${${type:tu}DIR}/${i}_drv.so:x11-drivers/xlibre-xf86-${type}-${i} . endif . endif . endfor .endfor .include