diff options
author | Koop Mast <kwm@FreeBSD.org> | 2013-01-05 22:57:40 +0000 |
---|---|---|
committer | Koop Mast <kwm@FreeBSD.org> | 2013-01-05 22:57:40 +0000 |
commit | c3c2e7cbffdd95c50e4e51af6ed725f080579b27 (patch) | |
tree | 4a30b690095b7c3b36754f571aeca80a710febd6 /x11-drivers | |
parent | b3b45538b98420f9d8207e45ca713cd7aafafc23 (diff) |
Notes
Diffstat (limited to 'x11-drivers')
-rw-r--r-- | x11-drivers/xf86-video-radeonhd/Makefile | 19 | ||||
-rw-r--r-- | x11-drivers/xorg-drivers/Makefile | 177 |
2 files changed, 96 insertions, 100 deletions
diff --git a/x11-drivers/xf86-video-radeonhd/Makefile b/x11-drivers/xf86-video-radeonhd/Makefile index 80b4a8aa1660..5d62c9d6dba2 100644 --- a/x11-drivers/xf86-video-radeonhd/Makefile +++ b/x11-drivers/xf86-video-radeonhd/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: xf86-video-radeonhd -# Date Created: 20 Oct 2007 -# Whom: Rene Ladan <r.c.ladan@gmail.com> -# +# Created by: Rene Ladan <r.c.ladan@gmail.com> # $FreeBSD$ -# PORTNAME= xf86-video-radeonhd PORTVERSION= 1.3.0 @@ -13,7 +9,8 @@ CATEGORIES= x11-drivers MAINTAINER= x11@FreeBSD.org COMMENT= X.Org ati RadeonHD display driver -OPTIONS= UTILS "Install rhd_conntest and rhd_dump utilities" off +OPTIONS_DEFINE= UTILS +UTILS_DESC= Install rhd_conntest and rhd_dump utilities XORG_CAT= driver USE_XORG= damageproto glproto videoproto xextproto xf86driproto @@ -22,10 +19,10 @@ CONFLICTS= xf86-video-radeonhd-devel-[0-9]* MAN4= radeonhd.4x -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_UTILS) -LIB_DEPENDS+= pci.3:${PORTSDIR}/devel/libpci +.if ${PORT_OPTIONS:MUTILS} +LIB_DEPENDS+= pci:${PORTSDIR}/devel/libpci PLIST_SUB= UTILS="" CONFIGURE_ENV+= PCIUTILS_CFLAGS="-I${LOCALBASE}/include -lpci -lz" \ PCIUTILS_LIBS="-L${LOCALBASE}/lib" @@ -33,10 +30,10 @@ CONFIGURE_ENV+= PCIUTILS_CFLAGS="-I${LOCALBASE}/include -lpci -lz" \ PLIST_SUB= UTILS="@comment " .endif -.if defined(WITH_UTILS) +.if ${PORT_OPTIONS:MUTILS} post-install: ${INSTALL_PROGRAM} ${WRKSRC}/utils/conntest/rhd_conntest ${PREFIX}/sbin ${INSTALL_PROGRAM} ${WRKSRC}/utils/conntest/rhd_dump ${PREFIX}/sbin .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/x11-drivers/xorg-drivers/Makefile b/x11-drivers/xorg-drivers/Makefile index 2ece9ff22162..713eef941192 100644 --- a/x11-drivers/xorg-drivers/Makefile +++ b/x11-drivers/xorg-drivers/Makefile @@ -1,9 +1,4 @@ -# New ports collection makefile for: xorg-drivers -# Date created: Jun 22 2006 -# Whom: Florent Thoumie <flz@FreeBSD.org> -# # $FreeBSD$ -# PORTNAME= xorg-drivers PORTVERSION= 7.5.2 @@ -20,101 +15,105 @@ INPUTDIR= ${PREFIX}/lib/xorg/modules/input NO_BUILD= yes -.if !defined(ARCH) -ARCH!= /usr/bin/uname -p -.endif +INPUT_DRIVERS= mouse \ + keyboard \ + acecad \ + elographics \ + hyperpen \ + joystick \ + magictouch \ + mutouch \ + penmount \ + synaptics \ + vmmouse \ + void + +VIDEO_DRIVERS= ati \ + mach64 \ + nv \ + r128 \ + radeonhd \ + vesa \ + apm \ + ark \ + chips \ + cyrix \ + dummy \ + fbdev \ + glint \ + i128 \ + i740 \ + imstt \ + mga \ + neomagic \ + newport \ + rendition \ + s3 \ + s3virge \ + savage \ + siliconmotion \ + sis \ + tdfx \ + tga \ + trident \ + tseng + +OPTIONS_DEFAULT= MOUSE \ + KEYBOARD \ + ATI \ + MACH64 \ + NV \ + R128 \ + RADEONHD \ + VESA + +.for type in input video +. for a in ${${type:U}_DRIVERS} +OPTIONS_DEFINE+= ${a:U} +${a:U}_DESC= Install ${a} ${type} driver +. endfor +.endfor -VIDEO_ON= ati \ - mach64 \ - nv \ - r128 \ - radeonhd \ - vesa - -.if ${ARCH} == "sparc64" -VIDEO_ON+= sunffb -.elif ${ARCH} == "amd64" || ${ARCH} == "i386" || ${ARCH} == "ia64" -VIDEO_ON+= openchrome -.endif +OPTIONS_DEFINE_i386= INTEL OPENCHROME +OPTIONS_DEFAULT_i386= INTEL OPENCHROME -.if (${ARCH} == "amd64" || ${ARCH} == "i386") && !defined(WITH_NEW_XORG) -VIDEO_ON+= intel -.endif +OPTIONS_DEFINE_amd64:= ${OPTIONS_DEFINE_i386} +OPTIONS_DEFAULT_amd64:= ${OPTIONS_DEFAULT_i386} -VIDEO_OFF= apm ark \ - chips cirrus cyrix \ - dummy \ - fbdev \ - glint \ - i128 i740 imstt \ - mga \ - neomagic newport \ - rendition \ - s3 s3virge savage siliconmotion sis \ - tdfx tga trident tseng \ - via vmware voodoo - -VIDEO_EXCL= via:openchrome - -INPUT_ON= mouse \ - keyboard -INPUT_OFF= acecad \ - elographics \ - hyperpen \ - joystick \ - magictouch mutouch \ - penmount \ - synaptics \ - vmmouse void - -QUIRKS= keyboard:kbd jamstudio:js_x - -.if defined(XORG_COMPLETE) -. for type in input video -${type:U}_ON:= ${${type:U}_ON} ${${type:U}_OFF} -${type:U}_OFF= # nil -. 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 -. endfor -.endif +OPTIONS_DEFINE_sparc64= SUNFFB +OPTIONS_DEFAULT_sparc64=SUNFFB -.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 +OPTIONS_DEFINE_ia64= OPENCHROME +OPTIONS_DEFAULT_ia64= OPENCHROME -.include <bsd.port.pre.mk> +INTEL_DESC= Install intel video driver +OPENCHROME_DESC= Install openchrome video driver +SUNFFB_DESC= Install sunffb video driver -.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 +# these drivers module name are different then 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 defined(DRV_CONFLICTS) -IGNORE= can't be installed because of conflicting drivers (${DRV_CONFLICTS}). Re-run make config. +.if ${ARCH}==sparc64 +VIDEO_DRIVERS+= sunffb .endif -.for default in on off -. for type in input video -. for i in ${${type:U}_${default:U}} -DEFAULT=${default} -. if (${DEFAULT} == "on" && !defined(WITHOUT_${i:U})) || (${DEFAULT} == "off" && defined(WITH_${i:U})) -. if ${QUIRKS:M${i}\:*:C/.*://} != "" +.for type in input video +. for i in ${${type:U}_DRIVERS} +. if ${PORT_OPTIONS:M${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 +. else RUN_DEPENDS+= ${${type:U}DIR}/${i}_drv.so:${PORTSDIR}/x11-drivers/xf86-${type}-${i} -. endif . endif -. endfor +. endif . endfor .endfor @@ -122,4 +121,4 @@ do-install: ${MKDIR} ${PREFIX}/libdata/xorg ${TOUCH} ${PREFIX}/libdata/xorg/drivers -.include <bsd.port.post.mk> +.include <bsd.port.mk> |