From ec6929c44962f1f0451f127f1550b2ced102dd93 Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Tue, 9 Aug 2016 13:57:24 +0300 Subject: [PATCH] Add glshim package --- extras-buildpkgs/90-libglshim.conf | 13 +++++++ extras-buildpkgs/libcedrus/debian/control | 1 + extras-buildpkgs/libglshim/debian/changelog | 5 +++ extras-buildpkgs/libglshim/debian/compat | 1 + extras-buildpkgs/libglshim/debian/control | 22 +++++++++++ extras-buildpkgs/libglshim/debian/copyright | 25 ++++++++++++ .../debian/patches/add-install-target.patch | 39 +++++++++++++++++++ .../libglshim/debian/patches/series | 1 + extras-buildpkgs/libglshim/debian/rules | 9 +++++ .../libglshim/debian/source/format | 1 + 10 files changed, 117 insertions(+) create mode 100644 extras-buildpkgs/90-libglshim.conf create mode 100644 extras-buildpkgs/libglshim/debian/changelog create mode 100644 extras-buildpkgs/libglshim/debian/compat create mode 100644 extras-buildpkgs/libglshim/debian/control create mode 100644 extras-buildpkgs/libglshim/debian/copyright create mode 100644 extras-buildpkgs/libglshim/debian/patches/add-install-target.patch create mode 100644 extras-buildpkgs/libglshim/debian/patches/series create mode 100644 extras-buildpkgs/libglshim/debian/rules create mode 100644 extras-buildpkgs/libglshim/debian/source/format diff --git a/extras-buildpkgs/90-libglshim.conf b/extras-buildpkgs/90-libglshim.conf new file mode 100644 index 0000000000..1114e4ee27 --- /dev/null +++ b/extras-buildpkgs/90-libglshim.conf @@ -0,0 +1,13 @@ +# glshim +local package_name="libglshim" +local package_repo="https://github.com/ptitSeb/glshim.git" +local package_ref="branch:master" +local package_builddeps="cmake libx11-dev libsdl1.2-dev" +local package_install_target="libglshim1" +local package_arch="armhf" +local package_component="desktop" + +package_checkinstall() +{ + false +} diff --git a/extras-buildpkgs/libcedrus/debian/control b/extras-buildpkgs/libcedrus/debian/control index 42e30d2dc2..537725c3c5 100644 --- a/extras-buildpkgs/libcedrus/debian/control +++ b/extras-buildpkgs/libcedrus/debian/control @@ -27,6 +27,7 @@ Architecture: any Depends: libcedrus1 (= ${binary:Version}), ${misc:Depends}, +Multi-Arch: same Description: Low-level acces to video enginge ofr Allwinner sunxi SoCs (development files) The Cedrus library is need for video engine access of Allwinner sunxi SOCS. This package is needed to build programs which link against libcedrus. diff --git a/extras-buildpkgs/libglshim/debian/changelog b/extras-buildpkgs/libglshim/debian/changelog new file mode 100644 index 0000000000..fd7d8348fe --- /dev/null +++ b/extras-buildpkgs/libglshim/debian/changelog @@ -0,0 +1,5 @@ +glshim (1.0-1) unstable; urgency=low + + * Initial release. + + -- Unknown Sun, 24 Jul 2016 19:30:00 -0800 diff --git a/extras-buildpkgs/libglshim/debian/compat b/extras-buildpkgs/libglshim/debian/compat new file mode 100644 index 0000000000..ec635144f6 --- /dev/null +++ b/extras-buildpkgs/libglshim/debian/compat @@ -0,0 +1 @@ +9 diff --git a/extras-buildpkgs/libglshim/debian/control b/extras-buildpkgs/libglshim/debian/control new file mode 100644 index 0000000000..9d969746c9 --- /dev/null +++ b/extras-buildpkgs/libglshim/debian/control @@ -0,0 +1,22 @@ +Source: glshim +Section: libs +Priority: optional +Maintainer: Armbian maintainers +Build-Depends: + debhelper (>= 9), + cmake, + pkg-config, + libx11-dev, + libsdl1.2-dev, +Standards-Version: 3.9.6 + +Package: libglshim1 +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: libgl1-mesa-glx +Description: OpenGL 1.x shim to to OpenGL ES + This is a shim providing OpenGL 1.x functionality to OpenGL ES accelerated cards. + . + This package contains GL shared library diff --git a/extras-buildpkgs/libglshim/debian/copyright b/extras-buildpkgs/libglshim/debian/copyright new file mode 100644 index 0000000000..4f3da5220c --- /dev/null +++ b/extras-buildpkgs/libglshim/debian/copyright @@ -0,0 +1,25 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: * +Copyright: © 2013 Ryan Hileman +License: other + +Copyright (c) 2013 Ryan Hileman + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/extras-buildpkgs/libglshim/debian/patches/add-install-target.patch b/extras-buildpkgs/libglshim/debian/patches/add-install-target.patch new file mode 100644 index 0000000000..d91b2dacad --- /dev/null +++ b/extras-buildpkgs/libglshim/debian/patches/add-install-target.patch @@ -0,0 +1,39 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4859875..ac23371 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,7 +1,9 @@ +-cmake_minimum_required(VERSION 2.6) ++cmake_minimum_required(VERSION 2.9) + + project(glshim) + ++include(GNUInstallDirs) ++ + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) + set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) + set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) +@@ -34,7 +36,10 @@ if(USE_DRAWTEX) + add_definitions(-DUSE_DRAWTEX) + endif() + +-link_directories(${CMAKE_BINARY_DIR}/lib) ++set(INSTALL_TARGETS_DEFAULT_ARGS RUNTIME DESTINATION "${BIN_INSTALL_DIR}" ++ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" ++ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}") ++ + add_definitions(-g -std=gnu99 -funwind-tables -O3) + + include_directories(include) +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 4cb3b30..1e42ecd 100755 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -27,3 +27,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + endif() + + add_subdirectory(proxy) ++ ++INSTALL(TARGETS GL ++ ${INSTALL_TARGETS_DEFAULT_ARGS} ++) diff --git a/extras-buildpkgs/libglshim/debian/patches/series b/extras-buildpkgs/libglshim/debian/patches/series new file mode 100644 index 0000000000..46d858fcce --- /dev/null +++ b/extras-buildpkgs/libglshim/debian/patches/series @@ -0,0 +1 @@ +add-install-target.patch diff --git a/extras-buildpkgs/libglshim/debian/rules b/extras-buildpkgs/libglshim/debian/rules new file mode 100644 index 0000000000..ba1bce5776 --- /dev/null +++ b/extras-buildpkgs/libglshim/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +override_dh_auto_build: + dh_auto_build -- GL + +%: + dh $@ diff --git a/extras-buildpkgs/libglshim/debian/source/format b/extras-buildpkgs/libglshim/debian/source/format new file mode 100644 index 0000000000..163aaf8d82 --- /dev/null +++ b/extras-buildpkgs/libglshim/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)