2016-08-29 18:14:10 +00:00
|
|
|
# Copyright (C) 2007-2016 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libdrm
|
2023-02-20 14:58:09 +00:00
|
|
|
PKG_VERSION:=2.4.115
|
|
|
|
PKG_RELEASE:=1
|
2016-08-29 18:14:10 +00:00
|
|
|
|
2020-04-18 06:27:50 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2020-09-02 23:03:32 +00:00
|
|
|
PKG_SOURCE_URL:=https://dri.freedesktop.org/libdrm
|
2023-02-20 14:58:09 +00:00
|
|
|
PKG_HASH:=554cfbfe0542bddb391b4e3e05bfbbfc3e282b955bd56218d21c0616481f65eb
|
2019-04-14 12:06:55 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
|
2020-04-18 06:27:50 +00:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
|
2021-02-27 13:04:21 +00:00
|
|
|
PKG_CONFIG_DEPENDS:= \
|
2021-02-28 10:24:16 +00:00
|
|
|
CONFIG_LIBDRM_INTEL \
|
|
|
|
CONFIG_LIBDRM_NOUVEAU \
|
|
|
|
CONFIG_LIBDRM_RADEON
|
2021-02-27 13:04:21 +00:00
|
|
|
|
2016-08-29 18:14:10 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-09-07 22:24:45 +00:00
|
|
|
include $(INCLUDE_DIR)/meson.mk
|
2016-08-29 18:14:10 +00:00
|
|
|
|
|
|
|
define Package/libdrm
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2021-02-27 13:04:21 +00:00
|
|
|
DEPENDS:=+LIBDRM_INTEL:libpciaccess
|
2016-08-29 18:14:10 +00:00
|
|
|
TITLE:=libdrm
|
2019-04-14 12:06:55 +00:00
|
|
|
URL:=https://dri.freedesktop.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libdrm/description
|
|
|
|
LIBDRM is the cross-driver middleware which allows user-space applications
|
|
|
|
(such as Mesa and 2D drivers) to communicate with the Kernel by the means
|
|
|
|
of the DRI protocol.
|
2016-08-29 18:14:10 +00:00
|
|
|
endef
|
|
|
|
|
2021-02-27 13:04:21 +00:00
|
|
|
define Package/libdrm/config
|
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
2020-04-18 06:27:50 +00:00
|
|
|
MESON_ARGS += \
|
2022-11-05 03:58:07 +00:00
|
|
|
-Dintel=$(if $(CONFIG_LIBDRM_INTEL),en,dis)abled \
|
|
|
|
-Dradeon=$(if $(CONFIG_LIBDRM_RADEON),en,dis)abled \
|
|
|
|
-Damdgpu=disabled \
|
|
|
|
-Dnouveau=$(if $(CONFIG_LIBDRM_NOUVEAU),en,dis)abled \
|
|
|
|
-Dvmwgfx=disabled \
|
|
|
|
-Domap=disabled \
|
|
|
|
-Dexynos=disabled \
|
|
|
|
-Dfreedreno=disabled \
|
|
|
|
-Dtegra=disabled \
|
|
|
|
-Dvc4=disabled \
|
|
|
|
-Detnaviv=disabled \
|
|
|
|
-Dcairo-tests=disabled \
|
|
|
|
-Dman-pages=disabled \
|
|
|
|
-Dvalgrind=disabled \
|
2020-04-18 06:27:50 +00:00
|
|
|
-Dfreedreno-kgsl=false \
|
|
|
|
-Dinstall-test-programs=false \
|
|
|
|
-Dudev=false
|
2016-08-29 18:14:10 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2020-09-02 23:03:32 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2021-02-27 18:11:11 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
2020-09-02 23:03:32 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2021-02-27 13:04:21 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/
|
2020-09-02 23:03:32 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2021-02-27 13:04:21 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
|
2016-08-29 18:14:10 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libdrm/install
|
2020-09-02 23:03:32 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2021-02-27 13:04:21 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
|
2016-08-29 18:14:10 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libdrm))
|