summaryrefslogtreecommitdiff
path: root/graphics
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
parentMake sure all the directories needed by this port are created on install. (diff)
Add a WANT_GS_SUPPORT flag so that users can build this port with
ghostscript if they want. PR: 12571
Notes
Notes: svn path=/head/; revision=24246
Diffstat (limited to 'graphics')
-rw-r--r--graphics/xfig-devel/Makefile9
-rw-r--r--graphics/xfig-devel/files/patch-aa13
-rw-r--r--graphics/xfig/Makefile9
-rw-r--r--graphics/xfig/files/patch-aa13
4 files changed, 22 insertions, 22 deletions
diff --git a/graphics/xfig-devel/Makefile b/graphics/xfig-devel/Makefile
index f7d576111d0a..121dcb4b6a4e 100644
--- a/graphics/xfig-devel/Makefile
+++ b/graphics/xfig-devel/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-devel/files/patch-aa b/graphics/xfig-devel/files/patch-aa
index 01df9dc61475..e01847411d4e 100644
--- a/graphics/xfig-devel/files/patch-aa
+++ b/graphics/xfig-devel/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 \
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 \