2011-12-20 15:11:33 +01:00
|
|
|
# $NetBSD: Makefile,v 1.36 2011/12/20 14:11:33 wiz Exp $
|
2002-12-05 16:20:22 +01:00
|
|
|
|
2004-01-22 14:02:33 +01:00
|
|
|
PKGNAME= MesaDemos-${MESA_VERSION}
|
|
|
|
COMMENT= OpenGL examples and Demos
|
2002-12-05 16:20:22 +01:00
|
|
|
|
2008-10-02 00:25:53 +02:00
|
|
|
|
2008-07-27 02:03:42 +02:00
|
|
|
# We include Makefile.lib here to pull in the configuration machinery.
|
2006-08-01 23:40:19 +02:00
|
|
|
#
|
|
|
|
.include "../../graphics/Mesa/Makefile.lib"
|
2004-01-20 03:48:33 +01:00
|
|
|
|
2008-07-27 02:03:42 +02:00
|
|
|
USE_TOOLS+= pax
|
|
|
|
BUILD_DIRS= progs
|
|
|
|
BUILD_TARGET= default
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGNAME_NOREV}
|
2006-08-01 23:40:19 +02:00
|
|
|
|
2008-10-02 00:25:53 +02:00
|
|
|
AUTO_MKDIRS= yes
|
|
|
|
|
2006-08-01 23:40:19 +02:00
|
|
|
.include "../../graphics/Mesa/buildlink3.mk"
|
2003-11-18 17:10:55 +01:00
|
|
|
|
2004-01-20 03:48:33 +01:00
|
|
|
pre-build:
|
2007-08-13 13:18:28 +02:00
|
|
|
cd ${WRKSRC} && ${RM} -fr src
|
2008-07-27 02:03:42 +02:00
|
|
|
${CP} ${WRKSRC}/configs/pkgsrc ${WRKSRC}/configs/current
|
2002-12-05 16:20:22 +01:00
|
|
|
|
|
|
|
do-install:
|
2008-05-26 04:13:14 +02:00
|
|
|
cd ${WRKSRC}/progs && pax \
|
2006-01-12 13:59:15 +01:00
|
|
|
-s ',^./.*Makefile.*,,' \
|
2007-08-13 13:18:28 +02:00
|
|
|
-s ',^./CVS.*,,' \
|
|
|
|
-s ',^./.*\.o$$,,' \
|
|
|
|
-s ',^./\.libs.*,,' \
|
|
|
|
-s ',^./\.deps.*,,' \
|
|
|
|
-s ',^./.*\.orig$$,,' \
|
2008-10-02 00:25:53 +02:00
|
|
|
-rw . ${DESTDIR}${EGDIR}/${dir}
|
|
|
|
${CHMOD} -R a+rX ${DESTDIR}${EGDIR}
|
2002-12-05 16:20:22 +01:00
|
|
|
|
2008-10-02 00:25:53 +02:00
|
|
|
###
|
|
|
|
### XXX remove this when it's unnecessary
|
|
|
|
###
|
|
|
|
post-install:
|
|
|
|
${CHMOD} -x ${DESTDIR}${EGDIR}/demos/glslnoise.c
|
2006-12-27 14:37:35 +01:00
|
|
|
.include "../../x11/libXi/buildlink3.mk"
|
|
|
|
.include "../../x11/libXmu/buildlink3.mk"
|
|
|
|
|
2011-12-20 15:11:33 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2002-12-05 16:20:22 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|