aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/ruby-gd/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/ruby-gd/Makefile b/graphics/ruby-gd/Makefile
index 2519d08b3593..8a8789f1f55f 100644
--- a/graphics/ruby-gd/Makefile
+++ b/graphics/ruby-gd/Makefile
@@ -29,7 +29,11 @@ INSTALL_TARGET= site-install
.include <bsd.port.pre.mk>
# Hmm, GREP and TRUE seem to be defined in the bsd.port.post.mk stage.
+.if exists(${LOCALBASE}/bin/gd2topng)
WITH_X11_CHECK!= ldd ${LOCALBASE}/bin/gd2topng | grep -w 'libX11\.so' || true
+.else
+WITH_X11_CHECK= #empty
+.endif
.if !empty(WITH_X11_CHECK)
USE_XLIB= yes