pkgsrc-wip/glut/Makefile
2007-04-16 12:11:42 +00:00

34 lines
951 B
Makefile

# $NetBSD: Makefile,v 1.2 2007/04/16 12:11:42 dillo Exp $
PKGNAME= glut-${MESA_VERSION}
COMMENT= GLUT Graphics library similar to SGI's OpenGL
CONFLICTS+= Mesa-glx-[0-9]*
CONFLICTS+= Mesa<3.2.1
.include "../../wip/Mesa/Makefile.lib"
BUILDLINK_API_DEPENDS.MesaLib+= MesaLib>=${MESA_VERSION}
BUILDLINK_API_DEPENDS.glu+= glu>=${MESA_VERSION}
INSTLIBS= ${WRKSRC}/src/glut/glx/libglut.la
.include "../../wip/MesaLib/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../x11/libXi/buildlink3.mk"
.include "../../wip/glu/buildlink3.mk"
pre-build:
cd ${WRKSRC} && ${RM} -fr src/mesa src/glu src/glw progs
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/GL
cd ${WRKSRC}/include/GL; for hdr in \
glut.h glutf90.h; \
do \
${INSTALL_DATA} $${hdr} ${DESTDIR}${PREFIX}/include/GL; \
done
.include "../../mk/bsd.pkg.mk"