diff options
author | zeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2012-04-11 19:22:42 +0800 |
---|---|---|
committer | zeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2012-04-11 19:22:42 +0800 |
commit | 7a9ee07751a1d2993d5eb8fd5ab7f9e1d539d269 (patch) | |
tree | 28d80b16b075ff8fd05b33736f409f8ad74126d4 | |
parent | 60b068fecca4a7dce7cfe595b252c2c7f57f9b66 (diff) | |
download | xorg-devel-ports-7a9ee07751a1d2993d5eb8fd5ab7f9e1d539d269.tar xorg-devel-ports-7a9ee07751a1d2993d5eb8fd5ab7f9e1d539d269.tar.gz xorg-devel-ports-7a9ee07751a1d2993d5eb8fd5ab7f9e1d539d269.tar.bz2 xorg-devel-ports-7a9ee07751a1d2993d5eb8fd5ab7f9e1d539d269.tar.lz xorg-devel-ports-7a9ee07751a1d2993d5eb8fd5ab7f9e1d539d269.tar.xz xorg-devel-ports-7a9ee07751a1d2993d5eb8fd5ab7f9e1d539d269.tar.zst xorg-devel-ports-7a9ee07751a1d2993d5eb8fd5ab7f9e1d539d269.zip |
set XSERVER_VER based on the installed X, if it exists.
Submitted by: kwm
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@462 058c260c-8361-11dd-a0ac-aa2bafec7d09
-rw-r--r-- | Mk/bsd.xorg.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/bsd.xorg.mk b/Mk/bsd.xorg.mk index e842af0..2706130 100644 --- a/Mk/bsd.xorg.mk +++ b/Mk/bsd.xorg.mk @@ -141,6 +141,10 @@ USE_XORG+= pciaccess .endif +.if exists(${LOCALBASE}/bin/X) +XSERVER_VER= ${LOCALBASE}/bin/X -version 2>&1 | sed -n 's;^X\.Org X Server \([^ ]*\).*;\1;p' +.endif + .if defined(_POSTMKINCLUDED) && !defined(Xorg_Post_Include) Xorg_Post_Include= bsd.xorg.mk |