pkgsrc/graphics/glx-utils/Makefile

35 lines
961 B
Makefile

# $NetBSD: Makefile,v 1.8 2008/08/23 02:31:50 dsainty Exp $
DISTNAME= MesaDemos-${MESA_VERSION}
PKGNAME= glx-utils-${MESA_VERSION}
CATEGORIES= x11 graphics
COMMENT= OpenGL glxgears and glxinfo
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../graphics/Mesa/Makefile.common"
MESA_PATCHFILES= # don't track Mesa patchlevels
INSTALLATION_DIRS= bin
.include "../../graphics/glu/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
do-build:
cd ${WRKSRC}/progs/xdemos && \
${SETENV} ${MAKE_ENV} ${CC} -I../../include ${CFLAGS} \
glxgears.c ${LDFLAGS} \
-L../../lib -lGLU -lGL -lm -lXext \
-o glxgears && \
${SETENV} ${MAKE_ENV} ${CC} -I../../include ${CFLAGS} \
glxinfo.c ${LDFLAGS} \
-L../../lib -lGLU -lGL -lm -lXext -o glxinfo
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/progs/xdemos/glxgears \
${DESTDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/progs/xdemos/glxinfo \
${DESTDIR}${PREFIX}/bin/
.include "../../mk/bsd.pkg.mk"