diff options
author | kwm <kwm@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2012-10-09 16:17:16 +0800 |
---|---|---|
committer | kwm <kwm@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2012-10-09 16:17:16 +0800 |
commit | 53e68c484ab7541da0440f7a2b5f0718ea1f0209 (patch) | |
tree | 68e8640a5f112fa2802d68c167c4c3027882460e /x11-drivers | |
parent | a48781d76c28488ffd015d66150546e60645ef19 (diff) | |
download | xorg-devel-ports-53e68c484ab7541da0440f7a2b5f0718ea1f0209.tar xorg-devel-ports-53e68c484ab7541da0440f7a2b5f0718ea1f0209.tar.gz xorg-devel-ports-53e68c484ab7541da0440f7a2b5f0718ea1f0209.tar.bz2 xorg-devel-ports-53e68c484ab7541da0440f7a2b5f0718ea1f0209.tar.lz xorg-devel-ports-53e68c484ab7541da0440f7a2b5f0718ea1f0209.tar.xz xorg-devel-ports-53e68c484ab7541da0440f7a2b5f0718ea1f0209.tar.zst xorg-devel-ports-53e68c484ab7541da0440f7a2b5f0718ea1f0209.zip |
Finaly finish convestion to optionsNG. Fixed the RUN_DEPEND part of the port.
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@585 058c260c-8361-11dd-a0ac-aa2bafec7d09
Diffstat (limited to 'x11-drivers')
-rw-r--r-- | x11-drivers/xorg-drivers/Makefile | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/x11-drivers/xorg-drivers/Makefile b/x11-drivers/xorg-drivers/Makefile index 4fbea03..923d950 100644 --- a/x11-drivers/xorg-drivers/Makefile +++ b/x11-drivers/xorg-drivers/Makefile @@ -75,13 +75,11 @@ OPTIONS_DEFAULT= MOUSE \ OPENCHROME \ SUNFFB -NO_OPTIONS_SORT= yes - .for type in input video -.for a in ${${type:U}_DRIVERS} +. for a in ${${type:U}_DRIVERS} OPTIONS_DEFINE+= ${a:U} ${a:U}_DESC= Install ${a} ${type} driver -.endfor +. endfor .endfor OPTIONS_DEFINE_i386= INTEL OPENCHROME @@ -93,20 +91,20 @@ INTEL_DESC= Install intel video driver OPENCHROME_DESC= Install openchrome video driver SUNFFB_DESC= Install sunffb video driver -.include <bsd.port.pre.mk> +# these drivers module name is different then the installed plugin +QUIRKS= keyboard:kbd jamstudio:js_x -.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/.*://} != "" +.include <bsd.port.options.mk> + +.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 @@ -114,4 +112,4 @@ do-install: ${MKDIR} ${PREFIX}/libdata/xorg ${TOUCH} ${PREFIX}/libdata/xorg/drivers -.include <bsd.port.post.mk> +.include <bsd.port.mk> |