From 07a887563d712b4055582f4b3bbf24d9edada998 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Wed, 14 Apr 2021 19:55:26 +0200 Subject: devel/xdg-utils: optionalize X11-related dependencies PR: 254582 --- devel/xdg-utils/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/devel/xdg-utils/Makefile b/devel/xdg-utils/Makefile index 66b9be0fb100..aba090260986 100644 --- a/devel/xdg-utils/Makefile +++ b/devel/xdg-utils/Makefile @@ -13,9 +13,7 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= minixmlto:textproc/minixmlto -RUN_DEPENDS= ${LOCALBASE}/share/icons/hicolor/index.theme:misc/hicolor-icon-theme \ - xprop:x11/xprop \ - xset:x11/xset +RUN_DEPENDS= ${LOCALBASE}/share/icons/hicolor/index.theme:misc/hicolor-icon-theme USES= gmake @@ -23,6 +21,11 @@ CONFIGURE_ENV= XMLTO=${LOCALBASE}/bin/minixmlto GNU_CONFIGURE= yes NO_ARCH= yes +OPTIONS_DEFINE= X11 +OPTIONS_DEFAULT=X11 +X11_RUN_DEPENDS=xprop:x11/xprop \ + xset:x11/xset + post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ ${WRKSRC}/scripts/xdg-* -- cgit v1.2.3