summaryrefslogtreecommitdiff
path: root/graphics/glu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/glu/Makefile')
-rw-r--r--graphics/glu/Makefile42
1 files changed, 23 insertions, 19 deletions
diff --git a/graphics/glu/Makefile b/graphics/glu/Makefile
index d4cb8298efd..d03c8f88302 100644
--- a/graphics/glu/Makefile
+++ b/graphics/glu/Makefile
@@ -1,28 +1,30 @@
-# $NetBSD: Makefile,v 1.10 2001/09/27 23:18:11 jlam Exp $
-#
+# $NetBSD: Makefile,v 1.11 2002/08/25 18:39:06 jlam Exp $
-.include "../Mesa/Makefile.common"
-
-DISTNAME= MesaLib-${MESA_VERSION}
PKGNAME= ${DISTNAME:C/MesaLib/glu/}
-CATEGORIES= graphics
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mesa3d/}
-EXTRACT_SUFX= .tar.bz2
-
+WRKSRC= ${WRKDIR}/${DISTNAME:C/Lib//}
MAINTAINER= rh@netbsd.org
-HOMEPAGE= http://www.mesa3d.org/
COMMENT= GLU polygon tesselation facility for Mesa
CONFLICTS+= Mesa-glx-[0-9]*
CONFLICTS+= Mesa<3.2.1
-WRKSRC= ${WRKDIR}/${DISTNAME:C/Lib//}
+.include "../Mesa/Makefile.common"
+
+USE_BUILDLINK2= yes
USE_X11BASE= yes
-USE_LIBTOOL= yes
-LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --enable-static
+.include "../../mk/bsd.prefs.mk"
+
+# Check if we got libGLU distributed with XFree86 4.x.
+.if exists(${X11BASE}/include/GL/glu.h)
+_IS_BUILTIN_GLU!= ${EGREP} -c BuildGLULibrary ${X11BASE}/lib/X11/config/X11.tmpl || ${TRUE}
+.else
+_IS_BUILTIN_GLU= 0
+.endif
+
+.if ${_IS_BUILTIN_GLU} != "0"
+IGNORE= "GLU has already been installed as part of XFree86-4.x"
+.endif
do-build:
cd ${WRKSRC}/src-glu && ${SETENV} ${MAKE_ENV} \
@@ -33,9 +35,11 @@ do-install:
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${INSTALL_TARGET}
post-install:
- ${INSTALL_DATA_DIR} ${X11PREFIX}/include/GL
-.for hdr in glu.h glu_mangle.h
- ${INSTALL_DATA} ${WRKSRC}/include/GL/${hdr} ${X11PREFIX}/include/GL
-.endfor
+ ${INSTALL_DATA_DIR} ${PREFIX}/include/GL
+ cd ${WRKSRC}/include/GL; for hdr in \
+ glu.h glu_mangle.h; \
+ do \
+ ${INSTALL_DATA} $${hdr} ${PREFIX}/include/GL; \
+ done
.include "../../mk/bsd.pkg.mk"