Skip to content

Commit

Permalink
Add glshim package
Browse files Browse the repository at this point in the history
  • Loading branch information
zador-blood-stained committed Aug 9, 2016
1 parent 66fa1dc commit ec6929c
Show file tree
Hide file tree
Showing 10 changed files with 117 additions and 0 deletions.
13 changes: 13 additions & 0 deletions extras-buildpkgs/90-libglshim.conf
Original file line number Diff line number Diff line change
@@ -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
}
1 change: 1 addition & 0 deletions extras-buildpkgs/libcedrus/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -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.
5 changes: 5 additions & 0 deletions extras-buildpkgs/libglshim/debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
glshim (1.0-1) unstable; urgency=low

* Initial release.

-- Unknown <root@localhost> Sun, 24 Jul 2016 19:30:00 -0800
1 change: 1 addition & 0 deletions extras-buildpkgs/libglshim/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
22 changes: 22 additions & 0 deletions extras-buildpkgs/libglshim/debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Source: glshim
Section: libs
Priority: optional
Maintainer: Armbian maintainers <root@localhost>
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
25 changes: 25 additions & 0 deletions extras-buildpkgs/libglshim/debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Format: http:https://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.
39 changes: 39 additions & 0 deletions extras-buildpkgs/libglshim/debian/patches/add-install-target.patch
Original file line number Diff line number Diff line change
@@ -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}
+)
1 change: 1 addition & 0 deletions extras-buildpkgs/libglshim/debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add-install-target.patch
9 changes: 9 additions & 0 deletions extras-buildpkgs/libglshim/debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/make -f

#export DH_VERBOSE=1

override_dh_auto_build:
dh_auto_build -- GL

%:
dh $@
1 change: 1 addition & 0 deletions extras-buildpkgs/libglshim/debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)

0 comments on commit ec6929c

Please sign in to comment.