wlroots: Add support for x11, xwayland options; cosmetic fixes

This commit is contained in:
Dan Cîrnaț 2020-06-04 16:59:35 +02:00
parent fd2bfcad57
commit 0a61b28e08
4 changed files with 30 additions and 10 deletions

View File

@ -1,20 +1,17 @@
# $NetBSD$
GITHUB_PROJECT= wlroots
GITHUB_TAG= 0.10.1
DISTNAME= 0.10.1
PKGNAME= ${GITHUB_PROJECT}-${DISTNAME}
DISTNAME= wlroots-0.10.1
PKGREVISION= 1
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GITHUB:=swaywm/}
EXTRACT_SUFX= .zip
DIST_SUBDIR= ${GITHUB_PROJECT}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/swaywm/wlroots/
COMMENT= Wayland compositor library
LICENSE= mit
WRKSRC= ${WRKDIR}/wlroots-0.10.1
.include "options.mk"
.include "../../x11/pixman/buildlink3.mk"
.include "../../x11/libxkbcommon/buildlink3.mk"

View File

@ -85,3 +85,5 @@ lib/libwlroots.so
lib/libwlroots.so.5
lib/libwlroots.so.5.9.1
lib/pkgconfig/wlroots.pc
${PLIST.x11}include/wlr/backend/x11.h
${PLIST.xwayland}include/wlr/xwayland.h

View File

@ -1,6 +1,6 @@
$NetBSD$
SHA1 (wlroots/0.10.1.zip) = 8620779843461a123baf9a59d10bbabb9a67234e
RMD160 (wlroots/0.10.1.zip) = e8068067fcfda47d641390c24606f3a83d25680b
SHA512 (wlroots/0.10.1.zip) = 7e6c4ada2cf90ca4f1712488bc575656ac57c7efe6c34d0618312d6eca5d913b4c78f64a4b6e7f0bab7a91399bf73d9dcb34934f05c40457a68689d9fefceec7
Size (wlroots/0.10.1.zip) = 629644 bytes
SHA1 (wlroots-0.10.1.zip) = 8620779843461a123baf9a59d10bbabb9a67234e
RMD160 (wlroots-0.10.1.zip) = e8068067fcfda47d641390c24606f3a83d25680b
SHA512 (wlroots-0.10.1.zip) = 7e6c4ada2cf90ca4f1712488bc575656ac57c7efe6c34d0618312d6eca5d913b4c78f64a4b6e7f0bab7a91399bf73d9dcb34934f05c40457a68689d9fefceec7
Size (wlroots-0.10.1.zip) = 629644 bytes

21
wlroots/options.mk Normal file
View File

@ -0,0 +1,21 @@
# $NetBSD$
PKG_OPTIONS_VAR= PKG_OPTIONS.wlroots
PKG_SUPPORTED_OPTIONS= x11 xwayland
.include "../../mk/bsd.options.mk"
PLIST_VARS+= x11 xwayland
.if empty(PKG_OPTIONS:Mx11)
MESON_ARGS+= -Dx11-backend=disabled
.else
PLIST.x11= yes
.endif
.if empty(PKG_OPTIONS:Mxwayland)
MESON_ARGS+= -Dxwayland=disabled
.else
PLIST.xwayland= yes
.endif