mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-11-20 09:02:45 +07:00
First Commit
This commit is contained in:
5
external/packages/extras-buildpkgs/libglshim/debian/changelog
vendored
Normal file
5
external/packages/extras-buildpkgs/libglshim/debian/changelog
vendored
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
external/packages/extras-buildpkgs/libglshim/debian/compat
vendored
Normal file
1
external/packages/extras-buildpkgs/libglshim/debian/compat
vendored
Normal file
@@ -0,0 +1 @@
|
||||
9
|
||||
24
external/packages/extras-buildpkgs/libglshim/debian/control
vendored
Normal file
24
external/packages/extras-buildpkgs/libglshim/debian/control
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
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: libglshim
|
||||
Architecture: any
|
||||
Multi-Arch: same
|
||||
Pre-Depends: ${misc:Pre-Depends}
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Replaces:
|
||||
libgl1-mesa-glx,
|
||||
libgl1-mesa-dev,
|
||||
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
external/packages/extras-buildpkgs/libglshim/debian/copyright
vendored
Normal file
25
external/packages/extras-buildpkgs/libglshim/debian/copyright
vendored
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.
|
||||
1027
external/packages/extras-buildpkgs/libglshim/debian/patches/add-gles2-includes.patch
vendored
Normal file
1027
external/packages/extras-buildpkgs/libglshim/debian/patches/add-gles2-includes.patch
vendored
Normal file
File diff suppressed because it is too large
Load Diff
49
external/packages/extras-buildpkgs/libglshim/debian/patches/add-install-target.patch
vendored
Normal file
49
external/packages/extras-buildpkgs/libglshim/debian/patches/add-install-target.patch
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 13ac06b..0cd8d0e 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)
|
||||
@@ -35,8 +37,12 @@ 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}/${PRIVATEDIR}"
|
||||
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
||||
+
|
||||
add_definitions(-g -std=gnu99 -funwind-tables -O3 -fvisibility=hidden)
|
||||
|
||||
include_directories(include)
|
||||
+include_directories(include_mali)
|
||||
add_subdirectory(src)
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 29152b3..32aaa95 100755
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -100,6 +100,12 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
target_link_libraries(GL X11 m dl)
|
||||
endif()
|
||||
|
||||
-if(CMAKE_SHARED_LIBRARY_SUFFIX MATCHES ".so")
|
||||
- set_target_properties(GL PROPERTIES SUFFIX ".so.1")
|
||||
-endif()
|
||||
+SET_TARGET_PROPERTIES (GL
|
||||
+ PROPERTIES
|
||||
+ VERSION 1.2.0
|
||||
+ SOVERSION 1
|
||||
+)
|
||||
+
|
||||
+INSTALL(TARGETS GL
|
||||
+ ${INSTALL_TARGETS_DEFAULT_ARGS}
|
||||
+)
|
||||
1
external/packages/extras-buildpkgs/libglshim/debian/patches/series
vendored
Normal file
1
external/packages/extras-buildpkgs/libglshim/debian/patches/series
vendored
Normal file
@@ -0,0 +1 @@
|
||||
add-install-target.patch
|
||||
25
external/packages/extras-buildpkgs/libglshim/debian/rules
vendored
Normal file
25
external/packages/extras-buildpkgs/libglshim/debian/rules
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# Get the architecture triplet:
|
||||
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
||||
|
||||
export DEB_BUILD_MAINT_OPTIONS=hardening=-all,+format,+stackprotector,+pie
|
||||
|
||||
|
||||
private_dir = glshim
|
||||
|
||||
override_dh_auto_configure:
|
||||
dh_auto_configure -- -DCMAKE_VERBOSE_MAKEFILE=OFF -DPRIVATEDIR=$(private_dir)
|
||||
|
||||
override_dh_auto_build:
|
||||
dh_auto_build -- GL
|
||||
|
||||
override_dh_install:
|
||||
dh_install
|
||||
|
||||
override_dh_strip:
|
||||
|
||||
%:
|
||||
dh $@
|
||||
1
external/packages/extras-buildpkgs/libglshim/debian/source/format
vendored
Normal file
1
external/packages/extras-buildpkgs/libglshim/debian/source/format
vendored
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
Reference in New Issue
Block a user