pkgsrc/graphics/glu/Makefile
jlam e2afa97f51 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.
2002-08-25 18:38:05 +00:00

45 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2002/08/25 18:39:06 jlam Exp $
PKGNAME= ${DISTNAME:C/MesaLib/glu/}
WRKSRC= ${WRKDIR}/${DISTNAME:C/Lib//}
MAINTAINER= rh@netbsd.org
COMMENT= GLU polygon tesselation facility for Mesa
CONFLICTS+= Mesa-glx-[0-9]*
CONFLICTS+= Mesa<3.2.1
.include "../Mesa/Makefile.common"
USE_BUILDLINK2= yes
USE_X11BASE= yes
.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} \
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${ALL_TARGET}
do-install:
cd ${WRKSRC}/src-glu && ${SETENV} ${MAKE_ENV} \
${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${INSTALL_TARGET}
post-install:
${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"