1 # $NetBSD: Makefile,v 1.7 2008/07/27 00:03:42 bjs Exp $
3 DISTNAME= MesaDemos-${MESA_VERSION}
4 PKGNAME= glx-utils-${MESA_VERSION}
5 CATEGORIES= x11 graphics
6 COMMENT= OpenGL glxgears and glxinfo
8 PKG_DESTDIR_SUPPORT= user-destdir
10 .include "../../graphics/Mesa/Makefile.common"
12 MESA_PATCHFILES= # don't track Mesa patchlevels
14 INSTALLATION_DIRS= bin
16 .include "../../graphics/glu/buildlink3.mk"
17 .include "../../graphics/MesaLib/buildlink3.mk"
20 cd ${WRKSRC}/progs/xdemos && \
21 ${SETENV} ${MAKE_ENV} ${CC} -I../../include ${CFLAGS} \
22 glxgears.c ${LDFLAGS} \
23 -L../../lib -lGLU -lGL -lm -lXext \
25 ${SETENV} ${MAKE_ENV} ${CC} -I../../include ${CFLAGS} \
26 glxinfo.c ${LDFLAGS} \
27 -L../../lib -lGLU -lGL -lm -lXext -o glxinfo
30 ${INSTALL_PROGRAM} ${WRKSRC}/progs/xdemos/glxgears \
31 ${DESTDIR}${PREFIX}/bin/
32 ${INSTALL_PROGRAM} ${WRKSRC}/progs/xdemos/glxinfo \
33 ${DESTDIR}${PREFIX}/bin/
35 .include "../../mk/bsd.pkg.mk"