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