summaryrefslogtreecommitdiffstats
path: root/rules/piglit.make
blob: 394a6bd72a4f2f6057706180f9d1385f0ecee4a7 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*-makefile-*-
#
# Copyright (C) 2017 by Lucas Stach <l.stach@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_PIGLIT) += piglit

#
# Paths and names
#
PIGLIT_VERSION	:= b29747a00c6a
PIGLIT_MD5	:= 9b3fe462a692feaf48d6675f5cf59ed3
PIGLIT		:= piglit-$(PIGLIT_VERSION)
PIGLIT_SUFFIX	:= tar.xz
PIGLIT_URL	:= http://anongit.freedesktop.org/git/piglit.git;tag=$(PIGLIT_VERSION)
PIGLIT_SOURCE	:= $(SRCDIR)/$(PIGLIT).$(PIGLIT_SUFFIX)
PIGLIT_DIR	:= $(BUILDDIR)/$(PIGLIT)
PIGLIT_LICENSE	:= MIT AND GPLv2+ AND GPLv3 AND LGPLv2

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

PIGLIT_BUILD_OOT	:= NO
PIGLIT_CONF_TOOL	:= cmake

PIGLIT_CONF_OPT		= $(CROSS_CMAKE_USR) \
	-DPYTHON_EXECUTABLE:FILEPATH=$(SYSTEMPYTHON3) \
	-DPIGLIT_USE_WAFFLE=1 \
	-DPIGLIT_BUILD_GL_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGL,1,0) \
	-DPIGLIT_BUILD_GLES1_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGLES1,1,0) \
	-DPIGLIT_BUILD_GLES2_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGLES2,1,0) \
	-DPIGLIT_BUILD_GLES3_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGLES3,1,0) \
	-DPIGLIT_BUILD_CL_TESTS=0 \
	-DHAVE_LIBCACA:BOOL=NO

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/piglit.targetinstall:
	@$(call targetinfo)

	@$(call install_init, piglit)
	@$(call install_fixup, piglit,PRIORITY,optional)
	@$(call install_fixup, piglit,SECTION,base)
	@$(call install_fixup, piglit,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
	@$(call install_fixup, piglit,DESCRIPTION,missing)

	@$(call install_copy, piglit, 0, 0, 755, -, /usr/bin/piglit)
	@$(call install_tree, piglit, 0, 0, -, /usr/lib/piglit, n)

	@$(call install_finish, piglit)

	@$(call touch)

# vim: syntax=make