1 # Copyright (C) 2007-2016 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
10 PKG_RELEASE
:=$(AUTORELEASE
)
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
13 PKG_SOURCE_URL
:=https
://dri.freedesktop.org
/libdrm
14 PKG_HASH
:=c554cef03b033636a975543eab363cc19081cb464595d3da1ec129f87370f888
16 PKG_MAINTAINER
:=Lucian Cristian
<lucian.cristian@gmail.com
>
17 PKG_LICENSE
:=BSD-3-Clause
19 PKG_CONFIG_DEPENDS
:= \
21 CONFIG_LIBDRM_NOUVEAU \
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/meson.mk
30 DEPENDS
:=+LIBDRM_INTEL
:libpciaccess
32 URL
:=https
://dri.freedesktop.org
/
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
41 define Package
/libdrm
/config
42 source
"$(SOURCE)/Config.in"
46 $(if
$(CONFIG_LIBDRM_INTEL
),-Dintel
=true
-Dlibkms
=true
,-Dintel
=false
-Dlibkms
=false
) \
47 -Dradeon
=$(if
$(CONFIG_LIBDRM_RADEON
),true
,false
) \
49 -Dnouveau
=$(if
$(CONFIG_LIBDRM_NOUVEAU
),true
,false
) \
60 -Dfreedreno-kgsl
=false \
61 -Dinstall-test-programs
=false \
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
73 define Package
/libdrm
/install
74 $(INSTALL_DIR
) $(1)/usr
/lib
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
*.so.
* $(1)/usr
/lib
/
78 $(eval
$(call BuildPackage
,libdrm
))