aboutsummaryrefslogtreecommitdiff
path: root/graphics/xfig/Makefile
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-12-29 08:39:19 +0000
committerSteve Price <steve@FreeBSD.org>1999-12-29 08:39:19 +0000
commit56e011bd6a87e846842b1a4e927c277563ce2c4c (patch)
tree9aba466e3177fbe3658078da6b4e7790e15994ac /graphics/xfig/Makefile
parent8ba34b95a053690f02e72814d366c9c9241623b2 (diff)
downloadports-56e011bd6a87e846842b1a4e927c277563ce2c4c.tar.gz
ports-56e011bd6a87e846842b1a4e927c277563ce2c4c.zip
Notes
Diffstat (limited to 'graphics/xfig/Makefile')
-rw-r--r--graphics/xfig/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/graphics/xfig/Makefile b/graphics/xfig/Makefile
index f7d576111d0a..121dcb4b6a4e 100644
--- a/graphics/xfig/Makefile
+++ b/graphics/xfig/Makefile
@@ -19,6 +19,10 @@ LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm \
Xaw3d.6:${PORTSDIR}/x11-toolkits/Xaw3d
RUN_DEPENDS= fig2dev:${PORTSDIR}/print/transfig
+.if defined(WANT_GS_SUPPORT)
+RUN_DEPENDS+= gs:${PORTSDIR}/print/ghostscript5
+.endif
+
USE_IMAKE= yes
MAN1= xfig.1
@@ -26,4 +30,9 @@ MAKE_FLAGS= BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/man/man1 \
XAPPLOADDIR=${PREFIX}/lib/X11/app-defaults \
XFIGLIBDIR=${PREFIX}/lib/X11/xfig -f
+.if !defined(WANT_GS_SUPPORT)
+post-patch:
+ @( cd ${WRKSRC}; ${PERL} -pi -e 's,-DGSBIT ,,' Imakefile )
+.endif
+
.include <bsd.port.mk>