summaryrefslogtreecommitdiff
path: root/graphics/MesaDemos/Makefile
blob: 5760ea3f3a16fff0a13547a996f988a47a1de64c (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
39
40
41
42
43
44
# $NetBSD: Makefile,v 1.36 2011/12/20 14:11:33 wiz Exp $

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


# We include Makefile.lib here to pull in the configuration machinery.
#
.include "../../graphics/Mesa/Makefile.lib"

USE_TOOLS+=	pax
BUILD_DIRS=	progs
BUILD_TARGET=	default
EGDIR=		${PREFIX}/share/examples/${PKGNAME_NOREV}

AUTO_MKDIRS=	yes

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

pre-build:
	cd ${WRKSRC} && ${RM} -fr src
	${CP} ${WRKSRC}/configs/pkgsrc ${WRKSRC}/configs/current

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

###
### XXX remove this when it's unnecessary
###
post-install:
	${CHMOD} -x ${DESTDIR}${EGDIR}/demos/glslnoise.c
.include "../../x11/libXi/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"

.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"