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
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
13 PKG_SOURCE_URL
:=https
://dri.freedesktop.org
/libdrm
14 PKG_HASH
:=3bf55363f76c7250946441ab51d3a6cc0ae518055c0ff017324ab76cdefb327a
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 -Dintel
=$(if
$(CONFIG_LIBDRM_INTEL
),en
,dis
)abled \
47 -Dradeon
=$(if
$(CONFIG_LIBDRM_RADEON
),en
,dis
)abled \
49 -Dnouveau
=$(if
$(CONFIG_LIBDRM_NOUVEAU
),en
,dis
)abled \
53 -Dfreedreno
=disabled \
57 -Dcairo-tests
=disabled \
58 -Dman-pages
=disabled \
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
))