summaryrefslogtreecommitdiff
path: root/graphics/glu/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-08-25 18:38:05 +0000
committerjlam <jlam@pkgsrc.org>2002-08-25 18:38:05 +0000
commite2afa97f51a1f72e6618533019aaaae07b7d3cf2 (patch)
treed2b31bb9a6a069ebfb63079b9dddde1e6688bc4b /graphics/glu/Makefile
parente97ad43756dc8382d2c6cb8a7ae09be0eb540f67 (diff)
downloadpkgsrc-e2afa97f51a1f72e6618533019aaaae07b7d3cf2.tar.gz
Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk. This provides sufficient buildlink2 infrastructure to start merging other packages from the buildlink2 branch that have already been converted to use the buildlink2 framework.
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"