summaryrefslogtreecommitdiff
path: root/print/ghostscript/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'print/ghostscript/Makefile')
-rw-r--r--print/ghostscript/Makefile24
1 files changed, 16 insertions, 8 deletions
diff --git a/print/ghostscript/Makefile b/print/ghostscript/Makefile
index f85ca3ed3e9..833d2afe35c 100644
--- a/print/ghostscript/Makefile
+++ b/print/ghostscript/Makefile
@@ -1,15 +1,23 @@
-# $NetBSD: Makefile,v 1.5 2001/02/17 17:51:41 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2001/12/20 22:31:09 jlam Exp $
PKGNAME= ghostscript-${GS_VERS}
-
-COMMENT= Aladdin Postscript interpreter with X11 drivers
+PKGREVISION= 1
+COMMENT= Aladdin Postscript interpreter
CONFLICTS= ghostscript{,-x11,-nox11}-[0-9]*
-USE_X11= # defined
-
-# Build with the X11 display device drivers.
-#
-MAKE_ENV+= USE_X11=1
+USE_BUILDLINK_ONLY= YES
.include "../../print/ghostscript-nox11/Makefile.common"
+
+MAKEFRAGS+= ${FILESDIR}/devs.x11
+GS_DISPLAY_DEVICE= x11.dev
+XLIBS= Xt SM ICE Xext X11
+
+.include "../../mk/x11.buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
+
+# arm32 compiler has an optimizer problem
+.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "arm32"
+CFLAGS+= -O0
+.endif