aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/mangohud
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2020-09-08 08:06:17 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2020-09-08 08:06:17 +0000
commit89dfeef794632268e848988d5e66124f603161fa (patch)
treeb6b4f53fd357c6c06881461d722aa9aa10eaed1c /benchmarks/mangohud
parentd9fba02aed9674ca1fe19f81ef0e409a3d7942b6 (diff)
downloadports-89dfeef794632268e848988d5e66124f603161fa.tar.gz
ports-89dfeef794632268e848988d5e66124f603161fa.zip
Allow to build without D-Bus IPC system support.
Notes
Notes: svn path=/head/; revision=547970
Diffstat (limited to 'benchmarks/mangohud')
-rw-r--r--benchmarks/mangohud/Makefile12
-rw-r--r--benchmarks/mangohud/distinfo2
2 files changed, 11 insertions, 3 deletions
diff --git a/benchmarks/mangohud/Makefile b/benchmarks/mangohud/Makefile
index d777b9a63e16..4f70ed0d90bb 100644
--- a/benchmarks/mangohud/Makefile
+++ b/benchmarks/mangohud/Makefile
@@ -6,6 +6,9 @@ PORTVERSION= 0.5.1
DISTVERSIONPREFIX= v
CATEGORIES= benchmarks graphics
+PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES= cec98369ae34d910476b78f98adece96016ab603.diff:-p1
+
MAINTAINER= danfe@FreeBSD.org
COMMENT= Vulkan/OpenGL overlay for CPU/GPU monitoring
@@ -15,8 +18,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= glslangValidator:devel/glslang \
${LOCALBASE}/share/vulkan/registry/vk.xml:devel/vulkan-headers \
${PYTHON_PKGNAMEPREFIX}mako>=0:textproc/py-mako@${PY_FLAVOR}
-LIB_DEPENDS= libdbus-1.so:devel/dbus \
- libinotify.so:devel/libinotify
+LIB_DEPENDS= libinotify.so:devel/libinotify
USES= compiler:c++14-lang meson pkgconfig python:build xorg
USE_GITHUB= yes
@@ -30,7 +32,11 @@ PLIST_FILES= bin/mangohud lib/mangohud/libMangoHud.so \
share/vulkan/implicit_layer.d/MangoHud.json
PORTEXAMPLES= MangoHud.conf.example
-OPTIONS_DEFINE= EXAMPLES
+OPTIONS_DEFINE= DBUS EXAMPLES
+OPTIONS_DEFAULT= DBUS
+
+DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus
+DBUS_MESON_OFF= -Dwith_dbus=disabled
post-patch:
@${REINPLACE_CMD} -e '/version : /s,0\.4\.0,${PORTVERSION}, ; \
diff --git a/benchmarks/mangohud/distinfo b/benchmarks/mangohud/distinfo
index d9d97826d95a..efa987906dde 100644
--- a/benchmarks/mangohud/distinfo
+++ b/benchmarks/mangohud/distinfo
@@ -1,3 +1,5 @@
TIMESTAMP = 1597596860
SHA256 (flightlessmango-MangoHud-v0.5.1_GH0.tar.gz) = 3e91d4fc7369d46763894c13f3315133871dd02705072981770c3cf58e8081c6
SIZE (flightlessmango-MangoHud-v0.5.1_GH0.tar.gz) = 15042595
+SHA256 (cec98369ae34d910476b78f98adece96016ab603.diff) = 5af8817cc62bbf441c7a7b735f391bb648e7d90668e7a3746c1b91199698b1d6
+SIZE (cec98369ae34d910476b78f98adece96016ab603.diff) = 551