2008-05-26 04:13:14 +02:00
|
|
|
# $NetBSD: Makefile,v 1.32 2008/05/26 02:13:20 joerg 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
|
|
|
|
2006-08-01 23:40:19 +02:00
|
|
|
# We include Makefile.lib instead of Makefile.common since we actually
|
|
|
|
# build the Mesa libraries as part of the build process, even though we
|
|
|
|
# don't install them.
|
|
|
|
#
|
|
|
|
.include "../../graphics/Mesa/Makefile.lib"
|
2004-01-20 03:48:33 +01:00
|
|
|
|
2006-08-01 23:40:19 +02:00
|
|
|
PATCHDIR= ${.CURDIR}/patches
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/distinfo
|
2002-12-05 16:20:22 +01:00
|
|
|
|
2008-05-26 04:13:14 +02:00
|
|
|
USE_TOOLS+= gmake pax
|
2006-08-01 23:40:19 +02:00
|
|
|
MAKE_FLAGS+= LIB_DEP=""
|
|
|
|
|
|
|
|
.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
|
2002-12-05 16:20:22 +01:00
|
|
|
|
|
|
|
do-install:
|
2006-10-09 14:52:34 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/${PKGNAME_NOREV}/${dir}
|
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$$,,' \
|
2006-10-09 14:52:34 +02:00
|
|
|
-rw . ${DESTDIR}${PREFIX}/share/examples/${PKGNAME_NOREV}/${dir}
|
2007-08-13 13:18:28 +02:00
|
|
|
${CHMOD} -R a+rX ${DESTDIR}${PREFIX}/share/examples/${PKGNAME_NOREV}
|
2002-12-05 16:20:22 +01:00
|
|
|
|
2006-12-27 14:37:35 +01:00
|
|
|
.include "../../x11/libXi/buildlink3.mk"
|
|
|
|
.include "../../x11/libXmu/buildlink3.mk"
|
|
|
|
|
2002-12-05 16:20:22 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|