summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>2000-10-04 04:44:45 +0000
committerSatoshi Asami <asami@FreeBSD.org>2000-10-04 04:44:45 +0000
commit6d91bcbc88e0d2b11d152f727240f2578c595d4f (patch)
tree8acb7c7554bf99ce17688aeeb9f483d5a1cc1088 /graphics
parentNEC changed the distribution without updating the filename. Bad NEC. (diff)
Check for file's existence before trying to run ldd on it so this won't kill
make INDEX.
Notes
Notes: svn path=/head/; revision=33396
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