mirror of
https://github.com/armbian/build.git
synced 2026-01-06 09:58:46 -08:00
Add glshim package
This commit is contained in:
13
extras-buildpkgs/90-libglshim.conf
Normal file
13
extras-buildpkgs/90-libglshim.conf
Normal file
@@ -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
|
||||
}
|
||||
@@ -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
extras-buildpkgs/libglshim/debian/changelog
Normal file
5
extras-buildpkgs/libglshim/debian/changelog
Normal file
@@ -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
extras-buildpkgs/libglshim/debian/compat
Normal file
1
extras-buildpkgs/libglshim/debian/compat
Normal file
@@ -0,0 +1 @@
|
||||
9
|
||||
22
extras-buildpkgs/libglshim/debian/control
Normal file
22
extras-buildpkgs/libglshim/debian/control
Normal file
@@ -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
extras-buildpkgs/libglshim/debian/copyright
Normal file
25
extras-buildpkgs/libglshim/debian/copyright
Normal file
@@ -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.
|
||||
@@ -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
extras-buildpkgs/libglshim/debian/patches/series
Normal file
1
extras-buildpkgs/libglshim/debian/patches/series
Normal file
@@ -0,0 +1 @@
|
||||
add-install-target.patch
|
||||
9
extras-buildpkgs/libglshim/debian/rules
Normal file
9
extras-buildpkgs/libglshim/debian/rules
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
override_dh_auto_build:
|
||||
dh_auto_build -- GL
|
||||
|
||||
%:
|
||||
dh $@
|
||||
1
extras-buildpkgs/libglshim/debian/source/format
Normal file
1
extras-buildpkgs/libglshim/debian/source/format
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
Reference in New Issue
Block a user