avahi: backport CVE fixes from upstream
[feed/packages.git] / libs / libdrm / Makefile
1 # Copyright (C) 2007-2016 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=libdrm
9 PKG_VERSION:=2.4.115
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=https://dri.freedesktop.org/libdrm
14 PKG_HASH:=554cfbfe0542bddb391b4e3e05bfbbfc3e282b955bd56218d21c0616481f65eb
15
16 PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
17 PKG_LICENSE:=BSD-3-Clause
18
19 PKG_CONFIG_DEPENDS:= \
20 CONFIG_LIBDRM_INTEL \
21 CONFIG_LIBDRM_NOUVEAU \
22 CONFIG_LIBDRM_RADEON
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/meson.mk
26
27 define Package/libdrm
28 SECTION:=libs
29 CATEGORY:=Libraries
30 DEPENDS:=+LIBDRM_INTEL:libpciaccess
31 TITLE:=libdrm
32 URL:=https://dri.freedesktop.org/
33 endef
34
35 define Package/libdrm/description
36 LIBDRM is the cross-driver middleware which allows user-space applications
37 (such as Mesa and 2D drivers) to communicate with the Kernel by the means
38 of the DRI protocol.
39 endef
40
41 define Package/libdrm/config
42 source "$(SOURCE)/Config.in"
43 endef
44
45 MESON_ARGS += \
46 -Dintel=$(if $(CONFIG_LIBDRM_INTEL),en,dis)abled \
47 -Dradeon=$(if $(CONFIG_LIBDRM_RADEON),en,dis)abled \
48 -Damdgpu=disabled \
49 -Dnouveau=$(if $(CONFIG_LIBDRM_NOUVEAU),en,dis)abled \
50 -Dvmwgfx=disabled \
51 -Domap=disabled \
52 -Dexynos=disabled \
53 -Dfreedreno=disabled \
54 -Dtegra=disabled \
55 -Dvc4=disabled \
56 -Detnaviv=disabled \
57 -Dcairo-tests=disabled \
58 -Dman-pages=disabled \
59 -Dvalgrind=disabled \
60 -Dfreedreno-kgsl=false \
61 -Dinstall-test-programs=false \
62 -Dudev=false
63
64 define Build/InstallDev
65 $(INSTALL_DIR) $(1)/usr/include
66 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/
69 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
71 endef
72
73 define Package/libdrm/install
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
76 endef
77
78 $(eval $(call BuildPackage,libdrm))