summaryrefslogtreecommitdiff
path: root/graphics/MesaDemos/Makefile
blob: 5c9867e67d1a5e1ea0e6c3acc6add50d6bcc9203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $NetBSD: Makefile,v 1.30 2007/08/12 15:14:47 adam Exp $

PKGNAME=	MesaDemos-${MESA_VERSION}
COMMENT=	OpenGL examples and Demos

# 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"

PATCHDIR=	${.CURDIR}/patches
DISTINFO_FILE=	${.CURDIR}/distinfo

USE_TOOLS+=	gmake
MAKE_FLAGS+=	LIB_DEP=""

.include "../../graphics/Mesa/buildlink3.mk"

pre-build:
	cd ${WRKSRC} && rm -fr src

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/${PKGNAME_NOREV}/${dir}
	cd ${WRKSRC}/progs && pax	\
		-s ',^./.*Makefile.*,,'	\
		-s ',^./CVS.*,,'	\
		-s ',^./.*\.o$$,,'	\
		-s ',^./\.libs.*,,'	\
		-s ',^./\.deps.*,,'	\
		-s ',^./.*\.orig$$,,'	\
		-rw . ${DESTDIR}${PREFIX}/share/examples/${PKGNAME_NOREV}/${dir}
	chmod -R a+rX ${DESTDIR}${PREFIX}/share/examples/${PKGNAME_NOREV}

.include "../../x11/libXi/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"