diff options
author | asami <asami@FreeBSD.org> | 2000-10-04 12:44:45 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 2000-10-04 12:44:45 +0800 |
commit | 2df3ef9c0992ef58f985c10ade44a16ff185d131 (patch) | |
tree | 5d9da9aec60c29dc8fab8dd200410632e4f94791 /graphics | |
parent | ef2f42f6289916e08ec86a390252c94951186a00 (diff) | |
download | freebsd-ports-graphics-2df3ef9c0992ef58f985c10ade44a16ff185d131.tar.gz freebsd-ports-graphics-2df3ef9c0992ef58f985c10ade44a16ff185d131.tar.zst freebsd-ports-graphics-2df3ef9c0992ef58f985c10ade44a16ff185d131.zip |
Check for file's existence before trying to run ldd on it so this won't kill
make INDEX.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/ruby-gd/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/ruby-gd/Makefile b/graphics/ruby-gd/Makefile index 2519d08b359..8a8789f1f55 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 |