freebsd-ports/graphics/mesa-demos/Makefile
Robert Noland c9950828f2 Update to 7.4.3
This is a bug fix release.
2009-06-20 16:05:16 +00:00

48 lines
1.2 KiB
Makefile

# New ports collection makefile for: mesa-demos
# Date created: 7 Nov 2003
# Whom: anholt@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= demos
PORTVERSION= ${MESAVERSION}
CATEGORIES= graphics
PKGNAMEPREFIX= mesa-
MAINTAINER= araujo@FreeBSD.org
COMMENT= OpenGL demos distributed with Mesa
USE_GL= glu glut
USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto
DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
do-install:
@for i in demos xdemos; do \
cd ${WRKSRC}/progs/$$i; \
for j in `${MAKE} -V PROGS`; do \
echo ${INSTALL_PROGRAM} $$j ${PREFIX}/bin; \
${INSTALL_PROGRAM} $$j ${PREFIX}/bin; \
done; \
done
${MKDIR} ${DATADIR}/images ${DATADIR}/data
@cd ${WRKSRC}/progs/images; \
for i in `ls *.rgb*`; do \
echo ${INSTALL_DATA} $$i ${DATADIR}/images; \
${INSTALL_DATA} $$i ${DATADIR}/images; \
done
@cd ${WRKSRC}/progs/demos; \
for i in `ls *.dat`; do \
echo ${INSTALL_DATA} $$i ${DATADIR}/data; \
${INSTALL_DATA} $$i ${DATADIR}/data; \
done
.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk"
.include <bsd.port.pre.mk>
.if defined(WITH_NVIDIA_GL)
CFLAGS+= -DWITH_NVIDIA_GL=1
.endif
.include <bsd.port.post.mk>