forked from hasufell/hasufell-repository
Compare commits
47 Commits
b108f34e1d
...
45f995fbbd
Author | SHA1 | Date | |
---|---|---|---|
45f995fbbd | |||
381573e66d | |||
4bb5952d21 | |||
5596a62f2a | |||
13dccfcc2c | |||
|
70304ae775 | ||
|
0c8bd88754 | ||
|
1e1940a828 | ||
|
2e0b632132 | ||
5bc59ad263 | |||
2ba79e671f | |||
|
c649956863 | ||
|
c9454c1e92 | ||
|
b83d8d4604 | ||
|
f4033c5062 | ||
|
3f920b2aa9 | ||
|
2a15455d4e | ||
|
5e389b5cd9 | ||
|
bf1c3b09d5 | ||
|
30e21697ac | ||
|
5e9cf02761 | ||
|
7e60d5ebe1 | ||
|
617ca2eba5 | ||
|
6d3aa620c2 | ||
e7629a1e4e | |||
|
e9ca6445f6 | ||
89d9796b7e | |||
540d0e6eb6 | |||
404ead9a36 | |||
2fb53450a8 | |||
|
d34078c060 | ||
|
c0741c17f3 | ||
c38f5dad97 | |||
81723c88bd | |||
f26bb7213e | |||
|
72add6fc09 | ||
83f9d426d0 | |||
d2e5a9abff | |||
|
91c731a55f | ||
|
39c54ae61e | ||
|
8216178c6f | ||
|
0ff78a72bd | ||
|
c28c42533b | ||
|
7aa7b40d4e | ||
578809ed94 | |||
5c1547dbe4 | |||
4c6e5947d0 |
@ -1,78 +0,0 @@
|
||||
# Copyright 2013-2014 Thomas Witt
|
||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
MY_PN="OpenSceneGraph"
|
||||
MY_PNV=${MY_PN}-${PV}
|
||||
|
||||
require github [ user=openscenegraph project=${MY_PN} tag=${MY_PNV} ]
|
||||
require cmake [ api=2 ]
|
||||
|
||||
SUMMARY="High performance 3D graphics toolkit"
|
||||
DESCRIPTION="
|
||||
The OpenSceneGraph is an open source high performance 3D graphics toolkit, used by application
|
||||
developers in fields such as visual simulation, games, virtual reality, scientific visualization
|
||||
and modelling. Written entirely in Standard C++ and OpenGL it runs on all Windows platforms, OSX,
|
||||
GNU/Linux, IRIX, Solaris, HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph is now well
|
||||
established as the world leading scene graph technology, used widely in the vis-sim, space,
|
||||
scientific, oil-gas, games and virtual reality industries.
|
||||
"
|
||||
HOMEPAGE+=" http://${PN}.org"
|
||||
|
||||
LICENCES="wxWinLL-3 LGPL-2.1"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS="
|
||||
( providers: ijg-jpeg jpeg-turbo ) [[ number-selected = exactly-one ]]
|
||||
"
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
virtual/unzip
|
||||
build+run:
|
||||
app-text/poppler[cairo]
|
||||
dev-libs/glib:2
|
||||
media/ffmpeg
|
||||
media-libs/freetype:2
|
||||
media-libs/giflib:=
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/ilmbase
|
||||
media-libs/jasper
|
||||
media-libs/libpng:=
|
||||
media-libs/openexr
|
||||
media-libs/SDL:0
|
||||
media-libs/tiff
|
||||
media-plugins/gst-plugins-base:1.0
|
||||
net-misc/curl
|
||||
sys-libs/zlib
|
||||
x11-dri/mesa
|
||||
x11-libs/cairo
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrandr
|
||||
providers:ijg-jpeg? ( media-libs/jpeg:= )
|
||||
providers:jpeg-turbo? ( media-libs/libjpeg-turbo )
|
||||
"
|
||||
|
||||
CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Asio=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Inventor=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_COLLADA=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_FBX=
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Xine=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_OpenVRML=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Performer=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_GDAL=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_LibVNCServer=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_OurDCMTK=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_RSVG=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_NVTT=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_LIBLAS=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Lua51=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Lua52=1
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_SDL2=1
|
||||
-DOSG_USE_LOCAL_LUA_SOURCE=OFF
|
||||
-DOPENGL_PROFILE=GL2
|
||||
-DDYNAMIC_OPENSCENEGRAPH=ON
|
||||
-DLIB_POSTFIX=""
|
||||
)
|
||||
|
@ -1,168 +0,0 @@
|
||||
From fbdfac84763ce525e7d243eefbb23c013db93e32 Mon Sep 17 00:00:00 2001
|
||||
From: Julian Ospald <hasufell@posteo.de>
|
||||
Date: Tue, 24 May 2016 18:06:54 +0200
|
||||
Subject: [PATCH] Use GNUInstallDirs
|
||||
|
||||
This will probably not make it upstream since they try to
|
||||
be windows compatible.
|
||||
---
|
||||
CMake/ConfigureBuild.cmake | 2 +-
|
||||
CMake/Utils/MyGUIConfigTargets.cmake | 40 +++++++++++++-------------
|
||||
CMakeLists.txt | 1 +
|
||||
MyGUIEngine/CMakeLists.txt | 2 +-
|
||||
Platforms/OpenGL/OpenGLPlatform/CMakeLists.txt | 2 +-
|
||||
5 files changed, 24 insertions(+), 23 deletions(-)
|
||||
|
||||
diff --git a/CMake/ConfigureBuild.cmake b/CMake/ConfigureBuild.cmake
|
||||
index 9c6aad9..b655848 100644
|
||||
--- a/CMake/ConfigureBuild.cmake
|
||||
+++ b/CMake/ConfigureBuild.cmake
|
||||
@@ -47,7 +47,7 @@ if (UNIX)
|
||||
else ()
|
||||
configure_file(${MYGUI_TEMPLATES_DIR}/MYGUI.pc.in ${MYGUI_BINARY_DIR}/pkgconfig/MYGUI${MYGUI_LIB_SUFFIX}.pc @ONLY)
|
||||
endif ()
|
||||
- install(FILES ${MYGUI_BINARY_DIR}/pkgconfig/MYGUI${MYGUI_LIB_SUFFIX}.pc DESTINATION lib/pkgconfig)
|
||||
+ install(FILES ${MYGUI_BINARY_DIR}/pkgconfig/MYGUI${MYGUI_LIB_SUFFIX}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||
|
||||
# configure additional packages
|
||||
|
||||
diff --git a/CMake/Utils/MyGUIConfigTargets.cmake b/CMake/Utils/MyGUIConfigTargets.cmake
|
||||
index d48d2a3..61b80a5 100644
|
||||
--- a/CMake/Utils/MyGUIConfigTargets.cmake
|
||||
+++ b/CMake/Utils/MyGUIConfigTargets.cmake
|
||||
@@ -60,27 +60,27 @@ endfunction(mygui_create_vcproj_userfile)
|
||||
# install targets according to current build type
|
||||
function(mygui_install_target TARGETNAME SUFFIX)
|
||||
install(TARGETS ${TARGETNAME}
|
||||
- RUNTIME DESTINATION "bin${MYGUI_RELEASE_PATH}" CONFIGURATIONS Release None ""
|
||||
- LIBRARY DESTINATION "lib${MYGUI_LIB_RELEASE_PATH}${SUFFIX}" CONFIGURATIONS Release None ""
|
||||
- ARCHIVE DESTINATION "lib${MYGUI_LIB_RELEASE_PATH}${SUFFIX}" CONFIGURATIONS Release None ""
|
||||
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}${MYGUI_RELEASE_PATH}" CONFIGURATIONS Release None ""
|
||||
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}${MYGUI_LIB_RELEASE_PATH}${SUFFIX}" CONFIGURATIONS Release None ""
|
||||
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}${MYGUI_LIB_RELEASE_PATH}${SUFFIX}" CONFIGURATIONS Release None ""
|
||||
FRAMEWORK DESTINATION "${MYGUI_FRAMEWORK_PATH}" CONFIGURATIONS Release None ""
|
||||
)
|
||||
install(TARGETS ${TARGETNAME}
|
||||
- RUNTIME DESTINATION "bin${MYGUI_RELWDBG_PATH}" CONFIGURATIONS RelWithDebInfo
|
||||
- LIBRARY DESTINATION "lib${MYGUI_LIB_RELWDBG_PATH}${SUFFIX}" CONFIGURATIONS RelWithDebInfo
|
||||
- ARCHIVE DESTINATION "lib${MYGUI_LIB_RELWDBG_PATH}${SUFFIX}" CONFIGURATIONS RelWithDebInfo
|
||||
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}${MYGUI_RELWDBG_PATH}" CONFIGURATIONS RelWithDebInfo
|
||||
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}${MYGUI_LIB_RELWDBG_PATH}${SUFFIX}" CONFIGURATIONS RelWithDebInfo
|
||||
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}${MYGUI_LIB_RELWDBG_PATH}${SUFFIX}" CONFIGURATIONS RelWithDebInfo
|
||||
FRAMEWORK DESTINATION "${MYGUI_FRAMEWORK_PATH}" CONFIGURATIONS RelWithDebInfo
|
||||
)
|
||||
install(TARGETS ${TARGETNAME}
|
||||
- RUNTIME DESTINATION "bin${MYGUI_MINSIZE_PATH}" CONFIGURATIONS MinSizeRel
|
||||
- LIBRARY DESTINATION "lib${MYGUI_LIB_MINSIZE_PATH}${SUFFIX}" CONFIGURATIONS MinSizeRel
|
||||
- ARCHIVE DESTINATION "lib${MYGUI_LIB_MINSIZE_PATH}${SUFFIX}" CONFIGURATIONS MinSizeRel
|
||||
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}${MYGUI_MINSIZE_PATH}" CONFIGURATIONS MinSizeRel
|
||||
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}${MYGUI_LIB_MINSIZE_PATH}${SUFFIX}" CONFIGURATIONS MinSizeRel
|
||||
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}${MYGUI_LIB_MINSIZE_PATH}${SUFFIX}" CONFIGURATIONS MinSizeRel
|
||||
FRAMEWORK DESTINATION "${MYGUI_FRAMEWORK_PATH}" CONFIGURATIONS MinSizeRel
|
||||
)
|
||||
install(TARGETS ${TARGETNAME}
|
||||
- RUNTIME DESTINATION "bin${MYGUI_DEBUG_PATH}" CONFIGURATIONS Debug
|
||||
- LIBRARY DESTINATION "lib${MYGUI_LIB_DEBUG_PATH}${SUFFIX}" CONFIGURATIONS Debug
|
||||
- ARCHIVE DESTINATION "lib${MYGUI_LIB_DEBUG_PATH}${SUFFIX}" CONFIGURATIONS Debug
|
||||
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}${MYGUI_DEBUG_PATH}" CONFIGURATIONS Debug
|
||||
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}${MYGUI_LIB_DEBUG_PATH}${SUFFIX}" CONFIGURATIONS Debug
|
||||
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}${MYGUI_LIB_DEBUG_PATH}${SUFFIX}" CONFIGURATIONS Debug
|
||||
FRAMEWORK DESTINATION "${MYGUI_FRAMEWORK_PATH}" CONFIGURATIONS Debug
|
||||
)
|
||||
endfunction(mygui_install_target)
|
||||
@@ -364,11 +364,11 @@ function(mygui_install_app PROJECTNAME)
|
||||
if (MYGUI_INSTALL_PDB)
|
||||
# install debug pdb files
|
||||
install(FILES ${MYGUI_BINARY_DIR}/bin${MYGUI_DEBUG_PATH}/${PROJECTNAME}.pdb
|
||||
- DESTINATION bin${MYGUI_DEBUG_PATH}
|
||||
+ DESTINATION ${CMAKE_INSTALL_BINDIR}${MYGUI_DEBUG_PATH}
|
||||
CONFIGURATIONS Debug
|
||||
)
|
||||
install(FILES ${MYGUI_BINARY_DIR}/bin${MYGUI_RELWDBG_PATH}/${PROJECTNAME}.pdb
|
||||
- DESTINATION bin${MYGUI_RELWDBG_PATH}
|
||||
+ DESTINATION ${CMAKE_INSTALL_BINDIR}${MYGUI_RELWDBG_PATH}
|
||||
CONFIGURATIONS RelWithDebInfo
|
||||
)
|
||||
endif ()
|
||||
@@ -400,7 +400,7 @@ function(mygui_plugin PROJECTNAME)
|
||||
set_target_properties(${PROJECTNAME} PROPERTIES PREFIX "")
|
||||
|
||||
install(FILES ${HEADER_FILES}
|
||||
- DESTINATION include/MYGUI
|
||||
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/MYGUI
|
||||
)
|
||||
endfunction(mygui_plugin)
|
||||
|
||||
@@ -431,20 +431,20 @@ function(mygui_config_lib PROJECTNAME)
|
||||
# install debug pdb files
|
||||
if (MYGUI_STATIC)
|
||||
install(FILES ${MYGUI_BINARY_DIR}/lib${MYGUI_LIB_DEBUG_PATH}/${PROJECTNAME}Static_d.pdb
|
||||
- DESTINATION lib${MYGUI_LIB_DEBUG_PATH}
|
||||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}${MYGUI_LIB_DEBUG_PATH}
|
||||
CONFIGURATIONS Debug
|
||||
)
|
||||
install(FILES ${MYGUI_BINARY_DIR}/lib${MYGUI_LIB_RELWDBG_PATH}/${PROJECTNAME}Static.pdb
|
||||
- DESTINATION lib${MYGUI_LIB_RELWDBG_PATH}
|
||||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}${MYGUI_LIB_RELWDBG_PATH}
|
||||
CONFIGURATIONS RelWithDebInfo
|
||||
)
|
||||
else ()
|
||||
install(FILES ${MYGUI_BINARY_DIR}/bin${MYGUI_DEBUG_PATH}/${PROJECTNAME}_d.pdb
|
||||
- DESTINATION bin${MYGUI_DEBUG_PATH}
|
||||
+ DESTINATION ${CMAKE_INSTALL_BINDIR}${MYGUI_DEBUG_PATH}
|
||||
CONFIGURATIONS Debug
|
||||
)
|
||||
install(FILES ${MYGUI_BINARY_DIR}/bin${MYGUI_RELWDBG_PATH}/${PROJECTNAME}.pdb
|
||||
- DESTINATION bin${MYGUI_RELWDBG_PATH}
|
||||
+ DESTINATION ${CMAKE_INSTALL_BINDIR}${MYGUI_RELWDBG_PATH}
|
||||
CONFIGURATIONS RelWithDebInfo
|
||||
)
|
||||
endif ()
|
||||
@@ -459,7 +459,7 @@ function(mygui_config_sample PROJECTNAME)
|
||||
# set install RPATH for Unix systems
|
||||
if (UNIX AND MYGUI_FULL_RPATH)
|
||||
set_property(TARGET ${PROJECTNAME} APPEND PROPERTY
|
||||
- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
|
||||
+ INSTALL_RPATH ${CMAKE_INSTALL_LIBDIR})
|
||||
set_property(TARGET ${PROJECTNAME} PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
endif ()
|
||||
endfunction(mygui_config_sample)
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9fc5694..0cddafa 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -17,6 +17,7 @@ set(CMAKE_MODULE_PATH
|
||||
"${MYGUI_SOURCE_DIR}/CMake/Utils"
|
||||
"${MYGUI_SOURCE_DIR}/CMake/Packages"
|
||||
)
|
||||
+include(GNUInstallDirs)
|
||||
include(CMakeDependentOption)
|
||||
include(MacroLogFeature)
|
||||
include(MyGUIConfigTargets)
|
||||
diff --git a/MyGUIEngine/CMakeLists.txt b/MyGUIEngine/CMakeLists.txt
|
||||
index c5eab54..839ff43 100644
|
||||
--- a/MyGUIEngine/CMakeLists.txt
|
||||
+++ b/MyGUIEngine/CMakeLists.txt
|
||||
@@ -64,5 +64,5 @@ endif ()
|
||||
|
||||
# install MyGUIEngine headers
|
||||
install(FILES ${HEADER_FILES}
|
||||
- DESTINATION include/MYGUI
|
||||
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/MYGUI"
|
||||
)
|
||||
diff --git a/Platforms/OpenGL/OpenGLPlatform/CMakeLists.txt b/Platforms/OpenGL/OpenGLPlatform/CMakeLists.txt
|
||||
index 169ad05..4bd7cd1 100644
|
||||
--- a/Platforms/OpenGL/OpenGLPlatform/CMakeLists.txt
|
||||
+++ b/Platforms/OpenGL/OpenGLPlatform/CMakeLists.txt
|
||||
@@ -30,7 +30,7 @@ link_directories(${OPENGL_LIB_DIR} ${PNG_LIBRARY})
|
||||
|
||||
# installation rules
|
||||
install(FILES ${HEADER_FILES}
|
||||
- DESTINATION include/MYGUI
|
||||
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/MYGUI
|
||||
)
|
||||
mygui_install_target(${PROJECTNAME} "")
|
||||
|
||||
--
|
||||
2.8.3
|
||||
|
@ -1,21 +0,0 @@
|
||||
From: Julian Ospald <hasufell@gentoo.org>
|
||||
Date: Fri Jun 15 10:42:42 UTC 2012
|
||||
Subject: build system
|
||||
Upstream: no
|
||||
|
||||
fix underlinking
|
||||
|
||||
--- MyGUIEngine/CMakeLists.txt
|
||||
+++ MyGUIEngine/CMakeLists.txt
|
||||
@@ -48,7 +48,10 @@
|
||||
if (MYGUI_USE_FREETYPE)
|
||||
target_link_libraries(${PROJECTNAME}
|
||||
${FREETYPE_LIBRARIES}
|
||||
- )
|
||||
+ dl)
|
||||
+else()
|
||||
+ target_link_libraries(${PROJECTNAME}
|
||||
+ dl)
|
||||
endif()
|
||||
|
||||
# platform specific dependencies
|
@ -1,61 +0,0 @@
|
||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
MY_PNV=MyGUI${PV}
|
||||
WORK="${WORKBASE}/${PN}-${MY_PNV}"
|
||||
|
||||
require cmake [ api=2 ]
|
||||
require github [ user=MyGUI tag=${MY_PNV} ]
|
||||
|
||||
SUMMARY="A library for creating GUIs for games"
|
||||
HOMEPAGE="http://mygui.info/"
|
||||
|
||||
LICENCES="MIT"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
virtual/pkg-config
|
||||
build+run:
|
||||
media-libs/freetype:2
|
||||
media-libs/glew
|
||||
x11-dri/mesa
|
||||
"
|
||||
|
||||
|
||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
-p0 "${FILES}"/${PNV}-underlinking.patch
|
||||
-p1 "${FILES}"/${PNV}-Use-GNUInstallDirs.patch
|
||||
)
|
||||
|
||||
CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
-DCMAKE_INSTALL_BINDIR="/usr$(exhost --target)/bin"
|
||||
-DCMAKE_INSTALL_INCLUDEDIR="/usr/$(exhost --target)/include"
|
||||
-DCMAKE_INSTALL_LIBDIR="/usr/$(exhost --target)/lib"
|
||||
-DCMAKE_INSTALL_PREFIX="/usr"
|
||||
-DMYGUI_BUILD_DEMOS=OFF
|
||||
-DMYGUI_BUILD_DOCS=OFF
|
||||
-DMYGUI_BUILD_PLUGINS=ON
|
||||
-DMYGUI_BUILD_TOOLS=OFF
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DMYGUI_BUILD_WRAPPER=OFF
|
||||
-DMYGUI_INSTALL_DOCS=OFF
|
||||
-DMYGUI_INSTALL_MEDIA=ON
|
||||
-DMYGUI_INSTALL_SAMPLES=OFF
|
||||
-DMYGUI_INSTALL_TOOLS=OFF
|
||||
-DMYGUI_RENDERSYSTEM=4
|
||||
-DMYGUI_STATIC=OFF
|
||||
-DMYGUI_USE_FREETYPE=ON
|
||||
-DMYGUI_USE_SYSTEM_GLEW=ON
|
||||
)
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
# test media not needed at runtime
|
||||
edo rm -r "${IMAGE}"/usr/share/MYGUI/Media/UnitTests
|
||||
# wrapper not available for linux, remove related media
|
||||
edo rm -r "${IMAGE}"/usr/share/MYGUI/Media/Wrapper
|
||||
}
|
||||
|
@ -1,94 +0,0 @@
|
||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
|
||||
require github [ user=ARMmbed tag=mbedtls-${PV} ]
|
||||
WORK="${WORKBASE}/${PNV}" # because github.exlib is broken
|
||||
require cmake [ api=2 ]
|
||||
|
||||
|
||||
SUMMARY="Cryptographic library for embedded systems"
|
||||
HOMEPAGE="https://tls.mbed.org/"
|
||||
DOWNLOADS="https://tls.mbed.org/download/${PNV}-gpl.tgz"
|
||||
|
||||
LICENCES="|| ( Apache-2.0 GPL-2 )"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
MYOPTIONS="
|
||||
doc
|
||||
havege [[ description = [ Enable the HAVEGE random generator,
|
||||
not suitable for virtualized environments! ] ]]
|
||||
threads [[ description = [ Enables the threading abstraction layer
|
||||
via pthread. This is used if you do intend
|
||||
to use contexts between threads. ] ]]
|
||||
x86_cpu_features:
|
||||
sse2
|
||||
"
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
doc? (
|
||||
app-doc/doxygen[>=1.8.4]
|
||||
media-gfx/graphviz
|
||||
)
|
||||
build+run:
|
||||
sys-libs/zlib
|
||||
test:
|
||||
dev-lang/perl:*
|
||||
dev-lang/python:*[>=3]
|
||||
"
|
||||
|
||||
CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
-DENABLE_PROGRAMS=OFF
|
||||
-DUSE_SHARED_MBEDTLS_LIBRARY=ON
|
||||
-DINSTALL_MBEDTLS_HEADERS=ON
|
||||
-DLIB_INSTALL_DIR="/usr/$(exhost --target)/lib"
|
||||
-DUSE_STATIC_MBEDTLS_LIBRARY=OFF
|
||||
-DENABLE_ZLIB_SUPPORT=ON
|
||||
)
|
||||
|
||||
CMAKE_SRC_CONFIGURE_TESTS=(
|
||||
'-DENABLE_TESTING=ON'
|
||||
)
|
||||
|
||||
enable_mbedtls_option() {
|
||||
local myopt="$@"
|
||||
# check that config.h syntax is the same at version bump
|
||||
edo sed -i \
|
||||
-e "s://#define ${myopt}:#define ${myopt}:" \
|
||||
"${CMAKE_SOURCE}"/include/mbedtls/config.h
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
option x86_cpu_features:sse2 && enable_mbedtls_option MBEDTLS_HAVE_SSE2
|
||||
enable_mbedtls_option MBEDTLS_ZLIB_SUPPORT
|
||||
option havege && enable_mbedtls_option MBEDTLS_HAVEGE_C
|
||||
option threads && enable_mbedtls_option MBEDTLS_THREADING_C
|
||||
option threads && enable_mbedtls_option MBEDTLS_THREADING_PTHREAD
|
||||
enable_mbedtls_option MBEDTLS_MD4_C
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if option doc ; then
|
||||
emake apidoc
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LD_LIBRARY_PATH="${ECMAKE_BUILD_DIR}/library" \
|
||||
emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
if option doc ; then
|
||||
docinto html
|
||||
dodoc -r "${CMAKE_SOURCE}"/apidoc/*
|
||||
fi
|
||||
}
|
||||
|
@ -1,70 +0,0 @@
|
||||
Upstream: Yes
|
||||
Source: https://github.com/AGProjects/python3-xcaplib/commit/066759cf355b152375767bee4c3858dc0b8087e4
|
||||
|
||||
From 066759cf355b152375767bee4c3858dc0b8087e4 Mon Sep 17 00:00:00 2001
|
||||
From: Worawut Boonpeang <worawut@ag-projects.com>
|
||||
Date: Fri, 4 Dec 2020 13:49:54 +0000
|
||||
Subject: [PATCH] xcaplib (Python3) work with eventlib
|
||||
|
||||
---
|
||||
xcaplib/green.py | 4 +++-
|
||||
xcaplib/xcapclient.py | 10 ++++++++--
|
||||
2 files changed, 11 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/xcaplib/green.py b/xcaplib/green.py
|
||||
index 237d9d8..d01ee11 100644
|
||||
--- a/xcaplib/green.py
|
||||
+++ b/xcaplib/green.py
|
||||
@@ -2,6 +2,8 @@
|
||||
from eventlib.green import socket, ssl, httplib, urllib2
|
||||
from xcaplib import httpclient
|
||||
from xcaplib import client
|
||||
+import urllib
|
||||
+import http
|
||||
|
||||
|
||||
class HTTPConnection(httplib.HTTPConnection):
|
||||
@@ -22,7 +24,7 @@ def http_open(self, req):
|
||||
|
||||
class HTTPSHandler(urllib.request.HTTPSHandler):
|
||||
def https_open(self, req):
|
||||
- return self.do_open(HTTPSConnection, req)
|
||||
+ return self.do_open(http.client.HTTPSConnection, req)
|
||||
|
||||
|
||||
class HTTPClient(httpclient.HTTPClient):
|
||||
diff --git a/xcaplib/xcapclient.py b/xcaplib/xcapclient.py
|
||||
index cd409df..384c237 100755
|
||||
--- a/xcaplib/xcapclient.py
|
||||
+++ b/xcaplib/xcapclient.py
|
||||
@@ -129,6 +129,8 @@ def setup_parser_request(parser):
|
||||
parser.add_option('--etag', help="perform a conditional operation", metavar='ETAG')
|
||||
parser.add_option('--add-header', dest='headers',
|
||||
action='append', default=[], help=optparse.SUPPRESS_HELP)
|
||||
+ parser.add_option("--eventlib", dest='eventlib_enable',
|
||||
+ help="Enables non-blocking mode using eventlib library")
|
||||
parser.add_option("-i", dest='input_filename',
|
||||
help="source file for the PUT request; default is <stdin>")
|
||||
parser.add_option("-o", dest='output_filename',
|
||||
@@ -366,7 +368,11 @@ def update_options_from_config(options):
|
||||
setattr(options, key, value)
|
||||
|
||||
def parse_args():
|
||||
- argv = sys.argv[1:]
|
||||
+ argv = None
|
||||
+ if "--eventlib" in sys.argv[1:]:
|
||||
+ argv = sys.argv[2:]
|
||||
+ else:
|
||||
+ argv = sys.argv[1:]
|
||||
|
||||
if not argv:
|
||||
sys.exit('Type %s -h for help.' % sys.argv[0])
|
||||
@@ -496,7 +502,7 @@ def get_exit_code(http_error):
|
||||
return 3
|
||||
|
||||
def main():
|
||||
- if sys.argv[0].endswith('-eventlib'):
|
||||
+ if "--eventlib" in sys.argv[1:]:
|
||||
from xcaplib.green import XCAPClient as client_class
|
||||
else:
|
||||
client_class = XCAPClient
|
@ -19,7 +19,3 @@ DEPENDENCIES="
|
||||
dev-python/python-application[>=3.0.3][python_abis:*(-)?]
|
||||
"
|
||||
|
||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
"${FILES}"/${PN}-work-with-eventlib.patch
|
||||
)
|
||||
|
||||
|
@ -5,7 +5,7 @@ require python [ blacklist=3 has_bin=true has_lib=true multibuild=false ]
|
||||
require github [ user="vslavik" release="v${PV}" suffix=tar.gz ]
|
||||
|
||||
SUMMARY="Bakefile makefiles generator"
|
||||
HOMEPAGE="http://bakefile.org/"
|
||||
HOMEPAGE="https://bakefile.org/"
|
||||
|
||||
LICENCES="MIT"
|
||||
SLOT="0"
|
||||
|
@ -1,63 +0,0 @@
|
||||
# Copyright 2014-2018 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require gtk-icon-cache
|
||||
require github [ user=OpenMW tag=${PNV} ]
|
||||
require cmake [ api=2 ]
|
||||
|
||||
SUMMARY="An open source reimplementation of TES III: Morrowind"
|
||||
HOMEPAGE="http://openmw.org/"
|
||||
|
||||
LICENCES="GPL-3 MIT bitstream-font OFL-1.1"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS="
|
||||
( providers: ffmpeg libav ) [[ number-selected = exactly-one ]]
|
||||
"
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
virtual/pkg-config
|
||||
build+run:
|
||||
app-arch/unshield
|
||||
dev-games/OpenSceneGraph[>=3.3.4]
|
||||
dev-games/mygui[>=3.2.1]
|
||||
dev-libs/boost
|
||||
dev-libs/tinyxml
|
||||
media-libs/SDL:2[X]
|
||||
media-libs/freetype:2
|
||||
media-libs/openal
|
||||
sci-physics/bullet[>=2.86]
|
||||
x11-libs/qtbase:5
|
||||
providers:ffmpeg? ( media/ffmpeg )
|
||||
providers:libav? ( media/libav )
|
||||
"
|
||||
|
||||
CMAKE_SRC_CONFIGURE_PARAMS=(
|
||||
-DBINDIR="/usr/$(exhost --target)/bin"
|
||||
-DBUILD_BSATOOL=ON
|
||||
-DBUILD_DOCS=OFF
|
||||
-DBUILD_ESMTOOL=ON
|
||||
-DBUILD_LAUNCHER=ON
|
||||
-DBUILD_NIFTEST=OFF
|
||||
-DBUILD_OPENCS=ON
|
||||
-DBUILD_OPENMW=ON
|
||||
-DBUILD_UNITTESTS=OFF
|
||||
-DBUILD_WITH_CODE_COVERAGE=OFF
|
||||
-DBUILD_WIZARD=ON
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DDATADIR="/usr/share/${PN}"
|
||||
-DDESIRED_QT_VERSION=5
|
||||
-DGLOBAL_CONFIG_PATH="/etc"
|
||||
-DICONDIR="/usr/share/icons/hicolor/256x256/apps"
|
||||
-DLIBDIR="/usr/$(exhost --target)/lib"
|
||||
-DMORROWIND_DATA_FILES="/usr/share/${PN}/data"
|
||||
-DOPENMW_RESOURCE_FILES="/usr/share/${PN}/resources"
|
||||
-DUSE_SYSTEM_TINYXML=ON
|
||||
)
|
||||
|
||||
src_install() {
|
||||
default
|
||||
keepdir /usr/share/openmw/data
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ require gtk-icon-cache freedesktop-desktop freedesktop-mime
|
||||
|
||||
SUMMARY="Team collaboration tool"
|
||||
HOMEPAGE="http://www.slack.com/"
|
||||
DOWNLOADS="https://downloads.slack-edge.com/linux_releases/${PN/-bin/}-desktop-${PV}-amd64.deb"
|
||||
DOWNLOADS="https://downloads.slack-edge.com/releases/linux/${PV}/prod/x64/slack-desktop-${PV}-amd64.deb"
|
||||
|
||||
LICENCES="all-rights-reserved"
|
||||
SLOT="0"
|
@ -3,10 +3,10 @@
|
||||
|
||||
require desktop-utils gtk-icon-cache
|
||||
require setup-py [ import=distutils blacklist="2" multibuild=false ]
|
||||
require github [ user="AGProjects" pn="blink-qt" tag="${PV}" ]
|
||||
|
||||
SUMMARY="A state of the art, easy to use SIP client"
|
||||
HOMEPAGE="http://iCanBlink.com"
|
||||
DOWNLOADS="http://download.ag-projects.com/Blink/Linux/${PNV}.tar.gz"
|
||||
|
||||
LICENCES="GPL-3"
|
||||
SLOT="0"
|
@ -23,9 +23,9 @@ DEPENDENCIES="
|
||||
x11-proto/xorgproto
|
||||
build+run:
|
||||
dev-libs/libev
|
||||
dev-libs/pcre[>=8.10]
|
||||
dev-libs/pcre[>=8.20]
|
||||
x11-libs/libX11
|
||||
x11-libs/libxcb[>=1.9.2]
|
||||
x11-libs/libxcb[>=1.12.0]
|
||||
x11-libs/libXext
|
||||
x11-libs/pixman:1
|
||||
x11-utils/xcb-util-image
|
||||
@ -51,7 +51,7 @@ DEFAULT_SRC_INSTALL_EXTRA_DOCS=(
|
||||
|
||||
MESON_SRC_CONFIGURE_PARAMS=(
|
||||
"-Dunittest=true"
|
||||
"-Dbuild_docs=true" # with_docs in "next" branch
|
||||
"-Dwith_docs=true"
|
||||
)
|
||||
MESON_SRC_CONFIGURE_OPTION_SWITCHES=(
|
||||
"dbus"
|
Loading…
Reference in New Issue
Block a user