summaryrefslogtreecommitdiff
path: root/graphics/xfig/Makefile
diff options
context:
space:
mode:
authorrh <rh>2003-01-15 07:11:43 +0000
committerrh <rh>2003-01-15 07:11:43 +0000
commitd77747b2611e3017b8da3d5095f689bd9b43760f (patch)
treee40ce73d7d6278434249eb3ea28d49a61ee2b378 /graphics/xfig/Makefile
parente0a7c74dab983cb60aba6d2d956d81fd88b09257 (diff)
downloadpkgsrc-d77747b2611e3017b8da3d5095f689bd9b43760f.tar.gz
Add patch provided by Masao Uebayashi that allows using xfig to be used
with non-3d versions of Xaw. Bring back XAW_TYPE detection and Imakefile modification.
Diffstat (limited to 'graphics/xfig/Makefile')
-rw-r--r--graphics/xfig/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/graphics/xfig/Makefile b/graphics/xfig/Makefile
index 2a7f2c91a4d..fd8cac11653 100644
--- a/graphics/xfig/Makefile
+++ b/graphics/xfig/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2003/01/14 06:37:07 rh Exp $
+# $NetBSD: Makefile,v 1.35 2003/01/15 07:11:43 rh Exp $
#
DISTNAME= xfig.3.2.4.full
@@ -23,6 +23,13 @@ CFLAGS+= -I${X11PREFIX}/include/X11
.include "../../mk/bsd.prefs.mk"
+.if defined(XAW_TYPE) && (${XAW_TYPE} != "3d" && ${XAW_TYPE} != "xpm")
+pre-configure:
+ cd ${WRKSRC} && \
+ if [ ! -f Imakefile.bak ]; then ${MV} Imakefile Imakefile.bak; fi && \
+ ${SED} 's/#define.XAW3D/XCOMM &/' Imakefile.bak > Imakefile
+.endif
+
XFIGDOCDIR= ${PREFIX}/share/doc/xfig
post-install:
@@ -31,6 +38,6 @@ post-install:
.include "../../graphics/jpeg/buildlink2.mk"
.include "../../graphics/png/buildlink2.mk"
.include "../../graphics/xpm/buildlink2.mk"
-.include "../../x11/Xaw3d/buildlink2.mk"
+.include "../../mk/xaw.buildlink2.mk"
.include "../../mk/bsd.pkg.mk"