summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMun, Gwan-gyeong <kk.moon@samsung.com>2017-04-10 19:36:16 +0900
committerSangjin Lee <lsj119@samsung.com>2017-07-03 15:12:42 +0900
commit75db75f851dde667f777dd54124510d163cfb536 (patch)
treed1fa9d7aa1c3b1b96591173ec678f49d90e91885
parentf203c3a7b2673f7705dc5faf567498b7dacf8980 (diff)
downloadmesa-75db75f851dde667f777dd54124510d163cfb536.tar.gz
mesa-75db75f851dde667f777dd54124510d163cfb536.tar.bz2
mesa-75db75f851dde667f777dd54124510d163cfb536.zip
packaging for Tizen platform.
add configuration of building and packaging for rpi3 ( vc4 gpu driver ) add udev rule files for rpi3 (vc4 drm device) Change-Id: Iae9eda987edd45f66e1e96a64a2a3583993f36f6 Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
-rw-r--r--packaging/99-GPU-Acceleration.rules1
-rw-r--r--packaging/mesa.manifest5
-rw-r--r--packaging/mesa.spec77
3 files changed, 83 insertions, 0 deletions
diff --git a/packaging/99-GPU-Acceleration.rules b/packaging/99-GPU-Acceleration.rules
new file mode 100644
index 00000000000..7ae48a54da8
--- /dev/null
+++ b/packaging/99-GPU-Acceleration.rules
@@ -0,0 +1 @@
+KERNEL=="vc4*", MODE="0666", GROUP="display", SECLABEL{smack}="*"
diff --git a/packaging/mesa.manifest b/packaging/mesa.manifest
new file mode 100644
index 00000000000..017d22d3aff
--- /dev/null
+++ b/packaging/mesa.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/mesa.spec b/packaging/mesa.spec
new file mode 100644
index 00000000000..8cab0b5649c
--- /dev/null
+++ b/packaging/mesa.spec
@@ -0,0 +1,77 @@
+Name: mesa
+Version: 17.1.0
+Release: 0
+License: MIT
+Summary: System for rendering interactive 3-D graphics
+Url: http://www.mesa3d.org
+Group: Graphics & UI Framework/Hardware Adaptation
+Source: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake
+BuildRequires: bison
+BuildRequires: fdupes
+BuildRequires: flex
+BuildRequires: gcc-c++
+BuildRequires: gettext-tools
+BuildRequires: libtool
+BuildRequires: libxml2-python
+BuildRequires: pkgconfig
+BuildRequires: python
+BuildRequires: python-lxml
+BuildRequires: python-xml
+BuildRequires: python-mako
+BuildRequires: pkgconfig(expat)
+BuildRequires: pkgconfig(libdrm) >= 2.4.75
+BuildRequires: pkgconfig(libudev) > 150
+BuildRequires: pkgconfig(wayland-client)
+BuildRequires: pkgconfig(wayland-server)
+BuildRequires: pkgconfig(tpl-egl)
+BuildRequires: pkgconfig(libtbm)
+BuildRequires: pkgconfig(libtdm)
+BuildRequires: pkgconfig(zlib)
+
+%description
+Mesa is a 3-D graphics library with an API which is very similar to
+that of OpenGL.* To the extent that Mesa utilizes the OpenGL command
+syntax or state machine, it is being used with authorization from
+Silicon Graphics, Inc.(SGI). However, the author does not possess an
+OpenGL license from SGI, and makes no claim that Mesa is in any way a
+compatible replacement for OpenGL or associated with SGI. Those who
+want a licensed implementation of OpenGL should contact a licensed
+vendor.
+
+Please do not refer to the library as MesaGL (for legal reasons). It's
+just Mesa or The Mesa 3-D graphics library.
+
+* OpenGL is a trademark of Silicon Graphics Incorporated.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+cp %{SOURCE1001} .
+
+./autogen.sh --prefix=%{_prefix} --enable-gles2 --with-dri-drivers="" --with-egl-platforms=tizen --enable-shared-glapi --with-gallium-drivers=vc4 --disable-glx --disable-dri3 --disable-gbm
+
+make %{?jobs:-j%jobs}
+
+%install
+%make_install
+
+mkdir -p %{buildroot}%{_libdir}/driver
+cp -a %{buildroot}%{_libdir}/libEGL* %{buildroot}%{_libdir}/driver
+cp -a %{buildroot}%{_libdir}/libGLES* %{buildroot}%{_libdir}/driver
+
+mkdir -p %{buildroot}/etc/udev/rules.d
+cp packaging/99-GPU-Acceleration.rules %{buildroot}/etc/udev/rules.d
+
+%files
+%define _unpackaged_files_terminate_build 0
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%{_libdir}/libglapi*
+%{_libdir}/driver/*
+%{_libdir}/dri/*
+/etc/udev/rules.d/99-GPU-Acceleration.rules