diff options
author | steve <steve@FreeBSD.org> | 1999-12-29 16:39:19 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-12-29 16:39:19 +0800 |
commit | 7e3fcc9c9fbf02e21943e06ee09c3e1f3fe2937c (patch) | |
tree | 2e173c3747c3a2f107ea92a3e3de032be680f3f4 /graphics/xfig | |
parent | a0762eec9f20905ce0113b5d56193761cbe3cb9e (diff) | |
download | freebsd-ports-gnome-7e3fcc9c9fbf02e21943e06ee09c3e1f3fe2937c.tar.gz freebsd-ports-gnome-7e3fcc9c9fbf02e21943e06ee09c3e1f3fe2937c.tar.zst freebsd-ports-gnome-7e3fcc9c9fbf02e21943e06ee09c3e1f3fe2937c.zip |
Add a WANT_GS_SUPPORT flag so that users can build this port with
ghostscript if they want.
PR: 12571
Diffstat (limited to 'graphics/xfig')
-rw-r--r-- | graphics/xfig/Makefile | 9 | ||||
-rw-r--r-- | graphics/xfig/files/patch-aa | 13 |
2 files changed, 11 insertions, 11 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> diff --git a/graphics/xfig/files/patch-aa b/graphics/xfig/files/patch-aa index 01df9dc61475..e01847411d4e 100644 --- a/graphics/xfig/files/patch-aa +++ b/graphics/xfig/files/patch-aa @@ -1,5 +1,5 @@ ---- Imakefile.orig Fri Jul 3 03:37:09 1998 -+++ Imakefile Mon Jul 6 17:27:55 1998 +--- Imakefile.orig Thu Jul 2 12:37:09 1998 ++++ Imakefile Tue Dec 28 16:25:42 1999 @@ -49,12 +49,12 @@ XCOMM Uncomment the following definiton if you want to use the small icons XCOMM for the panel buttons. Use this if you have a 800x600 or smaller screen. @@ -49,12 +49,3 @@ JPEGLIB = -L$(JPEGLIBDIR) -ljpeg #else JPEGCONF = configure -@@ -226,7 +226,7 @@ - #endif - #endif - --DEFINES = $(STRDEFINES) -DGSBIT $(USEINLINE) $(DUSEXPM) \ -+DEFINES = $(STRDEFINES) $(USEINLINE) $(DUSEXPM) \ - $(DUSEXPMICON) $(DUSEGIF) $(DUSEJPEG) $(I18N_DEFS) - - XFIGSRC = d_arc.c d_arcbox.c d_box.c d_ellipse.c d_picobj.c \ |