# -*-makefile-*- # # Copyright (C) 2016 by Michael Olbrich # # 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_IGT_GPU_TOOLS) += igt-gpu-tools # # Paths and names # IGT_GPU_TOOLS_VERSION := 1.23 IGT_GPU_TOOLS_MD5 := 04c1f10d6fd85e079271540b0ea786e9 IGT_GPU_TOOLS := igt-gpu-tools-$(IGT_GPU_TOOLS_VERSION) IGT_GPU_TOOLS_SUFFIX := tar.xz IGT_GPU_TOOLS_URL := $(call ptx/mirror, XORG, individual/app/$(IGT_GPU_TOOLS).$(IGT_GPU_TOOLS_SUFFIX)) IGT_GPU_TOOLS_SOURCE := $(SRCDIR)/$(IGT_GPU_TOOLS).$(IGT_GPU_TOOLS_SUFFIX) IGT_GPU_TOOLS_DIR := $(BUILDDIR)/$(IGT_GPU_TOOLS) IGT_GPU_TOOLS_LICENSE := MIT AND ISC # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- IGT_GPU_TOOLS_LIBDRM-y := ifdef PTXCONF_ARCH_X86 IGT_GPU_TOOLS_LIBDRM-$(PTXCONF_IGT_GPU_TOOLS_INTEL) += intel endif IGT_GPU_TOOLS_LIBDRM-$(PTXCONF_IGT_GPU_TOOLS_AMDGPU) += amdgpu IGT_GPU_TOOLS_LIBDRM-$(PTXCONF_IGT_GPU_TOOLS_NOUVEAU) += nouveau IGT_GPU_TOOLS_CONF_TOOL := meson IGT_GPU_TOOLS_CONF_OPT := \ $(CROSS_MESON_USR) \ -Dbuild_overlay=false \ -Doverlay_backends=auto \ -Dbuild_audio=false \ -Dbuild_chamelium=false \ -Dwith_valgrind=false \ -Dbuild_man=false \ -Dbuild_docs=false \ -Dbuild_tests=$(call ptx/truefalse,PTXCONF_IGT_GPU_TOOLS_TESTS) \ -Dwith_libdrm=$(subst $(space),$(comma),$(IGT_GPU_TOOLS_LIBDRM-y)) \ -Duse_rpath=false ifdef PTXCONF_KERNEL_HEADER IGT_GPU_TOOLS_CPPFLAGS := \ -isystem $(KERNEL_HEADERS_INCLUDE_DIR) endif # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/igt-gpu-tools.targetinstall: @$(call targetinfo) @$(call install_init, igt-gpu-tools) @$(call install_fixup, igt-gpu-tools,PRIORITY,optional) @$(call install_fixup, igt-gpu-tools,SECTION,base) @$(call install_fixup, igt-gpu-tools,AUTHOR,"Michael Olbrich ") @$(call install_fixup, igt-gpu-tools,DESCRIPTION,missing) @$(call install_tree, igt-gpu-tools, 0, 0, -, /usr/lib) @$(call install_tree, igt-gpu-tools, 0, 0, -, /usr/bin) @$(call install_tree, igt-gpu-tools, 0, 0, -, /usr/share/igt-gpu-tools) @$(call install_tree, igt-gpu-tools, 0, 0, -, /usr/libexec/igt-gpu-tools) @$(call install_finish, igt-gpu-tools) @$(call touch) # vim: syntax=make