mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
x11/libxkbcommon: simplify OSVERSION check
bsd.port.{pre,post}.mk can be simplifed to bsd.port{,.options}.mk but .include can be eliminated via lazy evaluation. Approved by: manu Differential Revision: https://reviews.freebsd.org/D29664
This commit is contained in:
parent
0faa0b0913
commit
741d28a5ac
@ -16,7 +16,9 @@ USES= bison gnome meson pkgconfig tar:xz
|
||||
USE_GNOME= libxml2
|
||||
MESON_ARGS= -Denable-docs=false \
|
||||
-Denable-wayland=false \
|
||||
-Dx-locale-root="${PREFIX}/lib/X11/locale"
|
||||
-Dx-locale-root="${PREFIX}/lib/X11/locale" \
|
||||
${MESON_ARGS_${OPSYS}_${OSREL:R}}
|
||||
MESON_ARGS_FreeBSD_11= -Ddefault-rules=xorg
|
||||
|
||||
OPTIONS_DEFINE= X11
|
||||
OPTIONS_DEFAULT=X11
|
||||
@ -26,10 +28,4 @@ X11_USES= xorg
|
||||
X11_USE= XORG=xcb
|
||||
X11_MESON_TRUE= enable-x11
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 1200000
|
||||
MESON_ARGS+= -Ddefault-rules=xorg
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user