summaryrefslogtreecommitdiff
path: root/graphics/geomview/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-07-04 03:08:57 +0000
committerjlam <jlam@pkgsrc.org>2001-07-04 03:08:57 +0000
commita5f5b1841721202d3808283c4b8816c3e6051722 (patch)
treef0c35ec07a857cddd36a1564a95e50b52b71a747 /graphics/geomview/Makefile
parentf02c87aa49b8aaae56aa1072a5e4b4711cfafb06 (diff)
downloadpkgsrc-a5f5b1841721202d3808283c4b8816c3e6051722.tar.gz
Convert to use buildlink.mk files and mark as USE_BUILDLINK_ONLY. If not
on Linux, force use of specific fstropen code. Also fix check for AIX in the source code.
Diffstat (limited to 'graphics/geomview/Makefile')
-rw-r--r--graphics/geomview/Makefile22
1 files changed, 13 insertions, 9 deletions
diff --git a/graphics/geomview/Makefile b/graphics/geomview/Makefile
index 4f76702527d..1fb5b3cb7cc 100644
--- a/graphics/geomview/Makefile
+++ b/graphics/geomview/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2001/06/11 06:34:35 jlam Exp $
+# $NetBSD: Makefile,v 1.12 2001/07/04 03:08:57 jlam Exp $
DISTNAME= geomview-1.8.1
CATEGORIES= graphics math
@@ -10,21 +10,23 @@ COMMENT= Interactive geometry viewing program
CONFLICTS= ImageMagick-* # both have a program named 'animate'
+USE_BUILDLINK_ONLY= yes
GNU_CONFIGURE= yes
USE_X11= yes
-USE_MOTIF= yes
-USE_MESA= yes
-
-MESABASE_DEFAULT= ${X11BASE}
-EVAL_PREFIX+= MESABASE=Mesa
CONFIGURE_ARGS+= --without-xforms
-CONFIGURE_ARGS+= --with-opengl=${MESABASE}
-CONFIGURE_ARGS+= --with-motif=${MOTIFBASE}
-CPPFLAGS+= -Dunix -Dalloca=__builtin_alloca
+CONFIGURE_ARGS+= --with-opengl=${BUILDLINK_DIR}
+CONFIGURE_ARGS+= --with-motif=${BUILDLINK_DIR}
+CPPFLAGS+= -Dunix -Dalloca=__builtin_alloca -I${X11BASE}/include
INFO_FILES= geomview
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} != "Linux"
+CONFIGURE_ARGS+= --enable-fstropen-1
+.endif
+
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/geomview
${INSTALL_DATA} ${WRKSRC}/doc/geomview.pdf \
@@ -39,4 +41,6 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/doc/html/pix/* \
${PREFIX}/share/doc/html/geomview/pix
+.include "../../graphics/Mesa/buildlink.mk"
+.include "../../x11/lesstif/buildlink.mk"
.include "../../mk/bsd.pkg.mk"