summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorjlam <jlam>2000-09-06 15:02:09 +0000
committerjlam <jlam>2000-09-06 15:02:09 +0000
commit3bf62096554f6da27dec6b66daae0fed53eae0ef (patch)
treed705093c4853c900913cf5f8351b1d485e832404 /editors
parent47f5d976ac9ceb6d35dc7befa38335b0d21c8103 (diff)
downloadpkgsrc-3bf62096554f6da27dec6b66daae0fed53eae0ef.tar.gz
Respect the XAW_TYPE setting and actually link in correct libraries if
XAW_TYPE == 3d.
Diffstat (limited to 'editors')
-rw-r--r--editors/xvile/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/editors/xvile/Makefile b/editors/xvile/Makefile
index e02a0327e8b..b6eaca9fb54 100644
--- a/editors/xvile/Makefile
+++ b/editors/xvile/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2000/09/06 08:16:15 jlam Exp $
+# $NetBSD: Makefile,v 1.27 2000/09/06 15:02:09 jlam Exp $
# FreeBSD Id: Makefile,v 1.13 1997/09/06 19:58:03 gj Exp
#
@@ -21,7 +21,6 @@ GNU_CONFIGURE= # defined
CONFIGURE_ARGS+= --with-perl
CONFIGURE_ARGS+= --datadir=${DATADIR}
CONFIGURE_ARGS+= --with-libdir-path=${FILTERDIR}
-CONFIGURE_ARGS+= --with-screen=Xaw --with-xpm
# Until the source catches up to the current Perl API, we need PERL_POLLUTE
# to look like an older perl.
@@ -35,6 +34,17 @@ DATADIR= ${PREFIX}/share/xvile
FILTERDIR= ${PREFIX}/libexec/xvile
EGDIR= ${PREFIX}/share/examples/xvile
+.include "../../mk/bsd.prefs.mk"
+
+.if ${XAW_TYPE} == "3d"
+CONFIGURE_ARGS+= --with-screen=Xaw3d
+CONFIGURE_ARGS+= --with-Xaw3d
+.else
+XAW_TYPE= standard
+CONFIGURE_ARGS+= --with-screen=Xaw
+.endif
+CONFIGURE_ARGS+= --with-xpm
+
post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/perl/vileget ${PREFIX}/bin/xvileget
@${INSTALL_DATA_DIR} ${EGDIR}