forked from pool/MyGUI
Accepting request 789453 from home:cgiboudeaux:branches:games
- Run spec-cleaner - Update to 3.4: * Added LanguageManager::getLanguages * Fix lost key focus event not being triggered sometimes * Fix inconsistency: _riseMouseButtonMove was using Layer coordinates (most of the time). _riseMouseButtonReleased/Pressed were using absolute coordinates. * Other InputManager events fixes. * Minor MacOS build fixes. * Cleaner and much faster logic for adding and removing render items (it was the performance bottleneck when working with many items on screen). * ScrollBar: Fixed wrong tracking area bug. * Button: make Button with key focus (can be set only manually through code) have highlighted state. * ItemBox: add possibility to not update ItemBox content when working with items (huge speed boost, when adding/removing many in single frame) * EditText: add support for alpha in text and text shadow colours (multiplied with widget's alpha). * ItemBox: add options to hide ItemBox scroll bars (same as for ScrollView and EditBox). * MultiListBox: slightly advanced and more flexible custom compare function. * EditBox: add Ctrl+Left/Right hotkey support (moves cursor to next word). * MultiListBox: add eventNotifyItem. * OpenGL3Platform: Added new rendering platform. * OpenGLESPlatform: Added new rendering platform. * Emscripten support (works for Ogre and all OpenGL OBS-URL: https://build.opensuse.org/request/show/789453 OBS-URL: https://build.opensuse.org/package/show/games/MyGUI?expand=0&rev=22
This commit is contained in:
parent
929a70f4db
commit
4e9b710014
@ -1,15 +0,0 @@
|
|||||||
Index: b/CMake/Packages/FindFreetype.cmake
|
|
||||||
===================================================================
|
|
||||||
--- a/CMake/Packages/FindFreetype.cmake
|
|
||||||
+++ b/CMake/Packages/FindFreetype.cmake
|
|
||||||
@@ -39,6 +39,10 @@ find_library(FREETYPE_LIBRARY_REL NAMES
|
|
||||||
find_library(FREETYPE_LIBRARY_DBG NAMES ${FREETYPE_LIBRARY_NAMES_DBG} HINTS ${FREETYPE_LIB_SEARCH_PATH} ${FREETYPE_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" debug)
|
|
||||||
make_library_set(FREETYPE_LIBRARY)
|
|
||||||
|
|
||||||
+# openSUSE +13.1 has both in one directory and there is no freetype/freetype.h inside include/freetype2
|
|
||||||
+if (NOT FREETYPE_INCLUDE_DIR)
|
|
||||||
+ set(FREETYPE_INCLUDE_DIR ${FREETYPE_FT2BUILD_INCLUDE_DIR})
|
|
||||||
+endif ()
|
|
||||||
findpkg_finish(FREETYPE)
|
|
||||||
mark_as_advanced(FREETYPE_FT2BUILD_INCLUDE_DIR)
|
|
||||||
if (NOT FREETYPE_FT2BUILD_INCLUDE_DIR STREQUAL FREETYPE_INCLUDE_DIR)
|
|
@ -1,7 +1,8 @@
|
|||||||
diff -Naur MyGUI_3.2.2.orig/MyGUIEngine/include/MyGUI_Singleton.h MyGUI_3.2.2/MyGUIEngine/include/MyGUI_Singleton.h
|
diff --git a/MyGUIEngine/include/MyGUI_Singleton.h b/MyGUIEngine/include/MyGUI_Singleton.h
|
||||||
--- MyGUI_3.2.2.orig/MyGUIEngine/include/MyGUI_Singleton.h
|
index 5067da9..e12287d 100644
|
||||||
+++ MyGUI_3.2.2/MyGUIEngine/include/MyGUI_Singleton.h
|
--- a/MyGUIEngine/include/MyGUI_Singleton.h
|
||||||
@@ -52,8 +52,14 @@
|
+++ b/MyGUIEngine/include/MyGUI_Singleton.h
|
||||||
|
@@ -58,8 +58,14 @@ namespace MyGUI
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
--- Common/CMakeLists.txt.orig 2016-03-05 07:17:23.175753455 -0600
|
diff --git a/Common/CMakeLists.txt b/Common/CMakeLists.txt
|
||||||
+++ Common/CMakeLists.txt 2016-03-05 07:18:03.880751014 -0600
|
index 785dded..a232443 100644
|
||||||
@@ -89,6 +89,7 @@
|
--- a/Common/CMakeLists.txt
|
||||||
|
+++ b/Common/CMakeLists.txt
|
||||||
|
@@ -121,6 +121,7 @@ elseif(MYGUI_SAMPLES_INPUT EQUAL 4)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(${PROJECTNAME} ${HEADER_FILES} ${SOURCE_FILES})
|
add_library(${PROJECTNAME} ${HEADER_FILES} ${SOURCE_FILES})
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
diff -Naur MyGUI_3.2.2.orig/CMake/ConfigureBuild.cmake MyGUI_3.2.2/CMake/ConfigureBuild.cmake
|
diff --git a/CMake/ConfigureBuild.cmake b/CMake/ConfigureBuild.cmake
|
||||||
--- MyGUI_3.2.2.orig/CMake/ConfigureBuild.cmake
|
index 9c6aad9..74fe84f 100644
|
||||||
+++ MyGUI_3.2.2/CMake/ConfigureBuild.cmake
|
--- a/CMake/ConfigureBuild.cmake
|
||||||
@@ -47,7 +47,7 @@
|
+++ b/CMake/ConfigureBuild.cmake
|
||||||
|
@@ -47,7 +47,7 @@ if (UNIX)
|
||||||
else ()
|
else ()
|
||||||
configure_file(${MYGUI_TEMPLATES_DIR}/MYGUI.pc.in ${MYGUI_BINARY_DIR}/pkgconfig/MYGUI${MYGUI_LIB_SUFFIX}.pc @ONLY)
|
configure_file(${MYGUI_TEMPLATES_DIR}/MYGUI.pc.in ${MYGUI_BINARY_DIR}/pkgconfig/MYGUI${MYGUI_LIB_SUFFIX}.pc @ONLY)
|
||||||
endif ()
|
endif ()
|
||||||
@ -10,10 +11,11 @@ diff -Naur MyGUI_3.2.2.orig/CMake/ConfigureBuild.cmake MyGUI_3.2.2/CMake/Configu
|
|||||||
|
|
||||||
# configure additional packages
|
# configure additional packages
|
||||||
|
|
||||||
diff -Naur MyGUI_3.2.2.orig/CMake/Utils/MyGUIConfigTargets.cmake MyGUI_3.2.2/CMake/Utils/MyGUIConfigTargets.cmake
|
diff --git a/CMake/Utils/MyGUIConfigTargets.cmake b/CMake/Utils/MyGUIConfigTargets.cmake
|
||||||
--- MyGUI_3.2.2.orig/CMake/Utils/MyGUIConfigTargets.cmake
|
index bba3f91..0f6d842 100644
|
||||||
+++ MyGUI_3.2.2/CMake/Utils/MyGUIConfigTargets.cmake
|
--- a/CMake/Utils/MyGUIConfigTargets.cmake
|
||||||
@@ -61,8 +61,8 @@
|
+++ b/CMake/Utils/MyGUIConfigTargets.cmake
|
||||||
|
@@ -34,8 +34,8 @@ endif ()
|
||||||
function(mygui_install_target TARGETNAME SUFFIX)
|
function(mygui_install_target TARGETNAME SUFFIX)
|
||||||
install(TARGETS ${TARGETNAME}
|
install(TARGETS ${TARGETNAME}
|
||||||
RUNTIME DESTINATION "bin${MYGUI_RELEASE_PATH}" CONFIGURATIONS Release None ""
|
RUNTIME DESTINATION "bin${MYGUI_RELEASE_PATH}" CONFIGURATIONS Release None ""
|
||||||
@ -24,7 +26,7 @@ diff -Naur MyGUI_3.2.2.orig/CMake/Utils/MyGUIConfigTargets.cmake MyGUI_3.2.2/CMa
|
|||||||
FRAMEWORK DESTINATION "${MYGUI_FRAMEWORK_PATH}" CONFIGURATIONS Release None ""
|
FRAMEWORK DESTINATION "${MYGUI_FRAMEWORK_PATH}" CONFIGURATIONS Release None ""
|
||||||
)
|
)
|
||||||
install(TARGETS ${TARGETNAME}
|
install(TARGETS ${TARGETNAME}
|
||||||
@@ -88,8 +88,8 @@
|
@@ -61,8 +61,8 @@ endfunction(mygui_install_target)
|
||||||
# setup common target settings
|
# setup common target settings
|
||||||
function(mygui_config_common TARGETNAME)
|
function(mygui_config_common TARGETNAME)
|
||||||
set_target_properties(${TARGETNAME} PROPERTIES
|
set_target_properties(${TARGETNAME} PROPERTIES
|
||||||
@ -34,11 +36,12 @@ diff -Naur MyGUI_3.2.2.orig/CMake/Utils/MyGUIConfigTargets.cmake MyGUI_3.2.2/CMa
|
|||||||
+ LIBRARY_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/lib${LIB_SUFFIX}
|
+ LIBRARY_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/lib${LIB_SUFFIX}
|
||||||
RUNTIME_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/bin
|
RUNTIME_OUTPUT_DIRECTORY ${MYGUI_BINARY_DIR}/bin
|
||||||
)
|
)
|
||||||
mygui_create_vcproj_userfile(${TARGETNAME})
|
endfunction(mygui_config_common)
|
||||||
diff -Naur MyGUI_3.2.2.orig/CMakeLists.txt MyGUI_3.2.2/CMakeLists.txt
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
--- MyGUI_3.2.2.orig/CMakeLists.txt
|
index 35658d9..f94482f 100644
|
||||||
+++ MyGUI_3.2.2/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
@@ -85,8 +85,8 @@
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -81,8 +81,8 @@ endif ()
|
||||||
set(MYGUI_LIBRARIES MyGUIEngine)
|
set(MYGUI_LIBRARIES MyGUIEngine)
|
||||||
|
|
||||||
# Specify build paths
|
# Specify build paths
|
||||||
|
@ -1,3 +1,62 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 27 11:55:54 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
|
||||||
|
- Run spec-cleaner
|
||||||
|
- Update to 3.4:
|
||||||
|
* Added LanguageManager::getLanguages
|
||||||
|
* Fix lost key focus event not being triggered sometimes
|
||||||
|
* Fix inconsistency: _riseMouseButtonMove was using Layer
|
||||||
|
coordinates (most of the time).
|
||||||
|
_riseMouseButtonReleased/Pressed were using absolute coordinates.
|
||||||
|
* Other InputManager events fixes.
|
||||||
|
* Minor MacOS build fixes.
|
||||||
|
* Cleaner and much faster logic for adding and removing
|
||||||
|
render items (it was the performance bottleneck when
|
||||||
|
working with many items on screen).
|
||||||
|
* ScrollBar: Fixed wrong tracking area bug.
|
||||||
|
* Button: make Button with key focus (can be set only
|
||||||
|
manually through code) have highlighted state.
|
||||||
|
* ItemBox: add possibility to not update ItemBox content
|
||||||
|
when working with items (huge speed boost, when
|
||||||
|
adding/removing many in single frame)
|
||||||
|
* EditText: add support for alpha in text and text
|
||||||
|
shadow colours (multiplied with widget's alpha).
|
||||||
|
* ItemBox: add options to hide ItemBox scroll bars
|
||||||
|
(same as for ScrollView and EditBox).
|
||||||
|
* MultiListBox: slightly advanced and more flexible
|
||||||
|
custom compare function.
|
||||||
|
* EditBox: add Ctrl+Left/Right hotkey support (moves
|
||||||
|
cursor to next word).
|
||||||
|
* MultiListBox: add eventNotifyItem.
|
||||||
|
* OpenGL3Platform: Added new rendering platform.
|
||||||
|
* OpenGLESPlatform: Added new rendering platform.
|
||||||
|
* Emscripten support (works for Ogre and all OpenGL
|
||||||
|
platforms).
|
||||||
|
* OgrePlatform: Many minor build-related fixes and imrovements,
|
||||||
|
including newer Ogre support and better CMake scripts.
|
||||||
|
* DirectX 11 and OpenGL3: Fixed application window resizing
|
||||||
|
in editors and demos.
|
||||||
|
* All platforms: Fix possible stack overflow in
|
||||||
|
***DataManager::getDataPath.
|
||||||
|
* All platforms: better VertexBuffer reallocation strategy
|
||||||
|
for all platforms (in ::lock call, not in ::setVertexCount).
|
||||||
|
* All platforms: Various minor fixes and code cleanup.
|
||||||
|
* ResourceManualFont: Added setTexture.
|
||||||
|
* ResourceTrueTypeFont: Optimize TrueTupeFont render speed
|
||||||
|
(half getGlyphInfo search time).
|
||||||
|
* ResourceTrueTypeFont: Remove no longer needed freetype
|
||||||
|
bytecode bug fix.
|
||||||
|
* LayoutEditor: Fixed "[DEFAULT]" value not being handles properly
|
||||||
|
(was colored white in ComboBox, was saved in layout).
|
||||||
|
* LayoutEditor: Other minor fixes and improvements.
|
||||||
|
* Added SDL2 support.
|
||||||
|
* Switched to C++11: various related code improvements and cleanups.
|
||||||
|
- Rebase patches:
|
||||||
|
* MyGUI-lib_suffix.patch
|
||||||
|
* MyGUI-gcc47-visibility.patch
|
||||||
|
* MyGUI-libCommon-fixup.patch
|
||||||
|
- Drop obsolete patch: MyGUI-freetype2-include.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 25 09:40:32 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
Fri Jan 25 09:40:32 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
117
MyGUI.spec
117
MyGUI.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package MyGUI
|
# spec file for package MyGUI
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
# Copyright (c) 2014 B1 Systems GmbH, Vohburg, Germany.
|
# Copyright (c) 2014 B1 Systems GmbH, Vohburg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -17,27 +17,23 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define capname MYGUI
|
%define capname MYGUI
|
||||||
%define _major 3.2
|
%define _sover 3_4_0
|
||||||
%define _minor 2
|
|
||||||
%define _sover 3
|
|
||||||
Name: MyGUI
|
Name: MyGUI
|
||||||
Version: %{_major}.%{_minor}
|
Version: 3.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A GUI library for Ogre Rendering Engine
|
Summary: A GUI library for Ogre Rendering Engine
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Tools/GUI Builders
|
Group: Development/Tools/GUI Builders
|
||||||
Url: http://mygui.info/
|
URL: http://mygui.info/
|
||||||
Source: https://github.com/MyGUI/mygui/archive/MyGUI%{version}.tar.gz
|
Source: https://github.com/MyGUI/mygui/archive/MyGUI%{version}.tar.gz
|
||||||
Source1: %{name}.png
|
Source1: %{name}.png
|
||||||
# PATCH-FIX-UPSTREAM MyGUI-lib_suffix.patch
|
# PATCH-FIX-UPSTREAM MyGUI-lib_suffix.patch
|
||||||
Patch0: %{name}-lib_suffix.patch
|
Patch0: %{name}-lib_suffix.patch
|
||||||
# PATCH-FIX-UPSTREAM MyGUI-gcc47-visibility.patch
|
# PATCH-FIX-UPSTREAM MyGUI-gcc47-visibility.patch
|
||||||
Patch1: %{name}-gcc47-visibility.patch
|
Patch1: %{name}-gcc47-visibility.patch
|
||||||
# PATCH-FIX-OPENSUSE MyGUI-freetype2-include.patch
|
|
||||||
Patch2: MyGUI-freetype2-include.patch
|
|
||||||
# PATCH-FIX-UPSTREAM MyGUI-libCommon-fixup.patch -- https://github.com/MyGUI/mygui/issues/157
|
# PATCH-FIX-UPSTREAM MyGUI-libCommon-fixup.patch -- https://github.com/MyGUI/mygui/issues/157
|
||||||
Patch3: MyGUI-libCommon-fixup.patch
|
Patch2: MyGUI-libCommon-fixup.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: dejavu
|
BuildRequires: dejavu
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
@ -48,14 +44,14 @@ BuildRequires: graphviz
|
|||||||
BuildRequires: libOIS-devel
|
BuildRequires: libOIS-devel
|
||||||
BuildRequires: libOgreMain-devel
|
BuildRequires: libOgreMain-devel
|
||||||
BuildRequires: libX11-devel
|
BuildRequires: libX11-devel
|
||||||
|
# MyGUI wants to copy plugins.cfg installed by ogre-demos
|
||||||
|
BuildRequires: ogre-demos
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
BuildRequires: pkgconfig(freetype2)
|
BuildRequires: pkgconfig(freetype2)
|
||||||
BuildRequires: pkgconfig(uuid)
|
BuildRequires: pkgconfig(uuid)
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
MyGUI is a library for creating Graphical User Interfaces (GUIs)
|
MyGUI is a library for creating Graphical User Interfaces (GUIs)
|
||||||
for games and 3D applications.
|
for games and 3D applications.
|
||||||
@ -123,10 +119,7 @@ This subpackage contains the development documentation for MyGUI.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n mygui-%{name}%{version}
|
%setup -q -n mygui-%{name}%{version}
|
||||||
%patch0 -p1
|
%autopatch -p1
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
%patch3 -p0
|
|
||||||
|
|
||||||
dos2unix *.txt COPYING.MIT
|
dos2unix *.txt COPYING.MIT
|
||||||
chmod 644 *.txt COPYING.MIT
|
chmod 644 *.txt COPYING.MIT
|
||||||
@ -136,26 +129,28 @@ install -dm 755 build
|
|||||||
# this is probably an error in OGRE packaging... but let's just fix the build.
|
# this is probably an error in OGRE packaging... but let's just fix the build.
|
||||||
export OGRE_LIBRARIES="`pkg-config --libs OGRE` -lboost_system"
|
export OGRE_LIBRARIES="`pkg-config --libs OGRE` -lboost_system"
|
||||||
%cmake \
|
%cmake \
|
||||||
-DCMAKE_BUILD_TYPE=release \
|
-DCMAKE_BUILD_TYPE=release \
|
||||||
-DOGRE_LIBRARIES="$OGRE_LIBRARIES" \
|
-DOGRE_LIBRARIES="$OGRE_LIBRARIES" \
|
||||||
-DMYGUI_STATIC=FALSE \
|
-DMYGUI_STATIC=FALSE \
|
||||||
-DMYGUI_USE_FREETYPE=TRUE \
|
-DMYGUI_USE_FREETYPE=TRUE \
|
||||||
-DMYGUI_BUILD_SAMPLES=TRUE \
|
-DMYGUI_BUILD_SAMPLES=TRUE \
|
||||||
-DMYGUI_BUILD_PLUGINS=TRUE \
|
-DMYGUI_BUILD_PLUGINS=TRUE \
|
||||||
-DMYGUI_BUILD_TOOLS=TRUE \
|
-DMYGUI_BUILD_TOOLS=TRUE \
|
||||||
-DMYGUI_BUILD_WRAPPER=FALSE \
|
-DMYGUI_BUILD_WRAPPER=FALSE \
|
||||||
-DMYGUI_INSTALL_SAMPLES=TRUE \
|
-DMYGUI_INSTALL_SAMPLES=TRUE \
|
||||||
-DMYGUI_INSTALL_TOOLS=TRUE \
|
-DMYGUI_INSTALL_TOOLS=TRUE \
|
||||||
-DMYGUI_INSTALL_DOCS=TRUE \
|
-DMYGUI_INSTALL_DOCS=TRUE \
|
||||||
-DMYGUI_INSTALL_MEDIA=TRUE \
|
-DMYGUI_INSTALL_MEDIA=TRUE \
|
||||||
-DMYGUI_INSTALL_SAMPLES_SOURCE=TRUE \
|
-DMYGUI_INSTALL_SAMPLES_SOURCE=TRUE \
|
||||||
-DMYGUI_FULL_RPATH=FALSE
|
-DMYGUI_FULL_RPATH=FALSE \
|
||||||
|
-DCMAKE_SKIP_RPATH=TRUE \
|
||||||
|
-DOGRE_CONFIG_DIR=%{_datadir}/OGRE
|
||||||
|
|
||||||
make %{?_smp_mflags} V=1
|
%cmake_build
|
||||||
|
|
||||||
pushd ../Docs
|
pushd ../Docs
|
||||||
doxygen -s -g Doxyfile 2> /dev/null
|
doxygen -s -g Doxyfile 2> /dev/null
|
||||||
doxygen Doxyfile
|
doxygen Doxyfile
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -167,10 +162,10 @@ popd
|
|||||||
|
|
||||||
# rename demos to avoid duplicate names with other packages
|
# rename demos to avoid duplicate names with other packages
|
||||||
pushd %{buildroot}%{_bindir}
|
pushd %{buildroot}%{_bindir}
|
||||||
demos=`ls -1 Demo_*`
|
demos=`ls -1 Demo_*`
|
||||||
for i in $demos; do
|
for i in $demos; do
|
||||||
mv $i %{name}-$i
|
mv $i %{name}-$i
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# move those files to /usr/share/MYGUI
|
# move those files to /usr/share/MYGUI
|
||||||
@ -178,23 +173,23 @@ mv %{buildroot}%{_bindir}/plugins.cfg %{buildroot}%{_datadir}/%{capname}
|
|||||||
mv %{buildroot}%{_bindir}/resources.xml %{buildroot}%{_datadir}/%{capname}
|
mv %{buildroot}%{_bindir}/resources.xml %{buildroot}%{_datadir}/%{capname}
|
||||||
|
|
||||||
# adjust OGRE path
|
# adjust OGRE path
|
||||||
sed -i -e 's|PluginFolder=/usr/local/lib/OGRE|%{_libdir}/OGRE|g' %{buildroot}%{_datadir}/%{capname}/plugins.cfg
|
sed -i -e 's|PluginFolder=%{_prefix}/local/lib/OGRE|%{_libdir}/OGRE|g' %{buildroot}%{_datadir}/%{capname}/plugins.cfg
|
||||||
|
|
||||||
# wrapper-script for binaries
|
# wrapper-script for binaries
|
||||||
cat > %{name}.sh <<EOF
|
cat > %{name}.sh <<EOF
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
if [ -z "\$1" ]; then
|
if [ -z "\$1" ]; then
|
||||||
echo "missing parameter..."
|
echo "missing parameter..."
|
||||||
echo ""
|
echo ""
|
||||||
echo "usage:"
|
echo "usage:"
|
||||||
echo "\$0 LayoutEditor"
|
echo "\$0 LayoutEditor"
|
||||||
echo "\$0 ImageSetViewer"
|
echo "\$0 ImageSetViewer"
|
||||||
echo "\$0 FontViewer"
|
echo "\$0 FontViewer"
|
||||||
echo ""
|
echo ""
|
||||||
echo "or one of the installed demo applications:"
|
echo "or one of the installed demo applications:"
|
||||||
myDemos=\`ls -1 %{_bindir}/%{name}-Demo_*\`
|
myDemos=\`ls -1 %{_bindir}/%{name}-Demo_*\`
|
||||||
echo \$myDemos | sed -e 's|%{_bindir}/||g'
|
echo \$myDemos | sed -e 's|%{_bindir}/||g'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create local working directory
|
# create local working directory
|
||||||
@ -205,11 +200,11 @@ mkdir -p \$HOME/.%{name}
|
|||||||
ln -sf %{_datadir}/%{capname}/Media \$HOME/.%{name}
|
ln -sf %{_datadir}/%{capname}/Media \$HOME/.%{name}
|
||||||
|
|
||||||
if [ ! -f \$HOME/.%{name}/plugins.cfg ]; then
|
if [ ! -f \$HOME/.%{name}/plugins.cfg ]; then
|
||||||
# config should be user writeable
|
# config should be user writeable
|
||||||
cp %{_datadir}/%{capname}/plugins.cfg \$HOME/.%{name}
|
cp %{_datadir}/%{capname}/plugins.cfg \$HOME/.%{name}
|
||||||
fi
|
fi
|
||||||
if [ ! -f \$HOME/.%{name}/resources.xml ]; then
|
if [ ! -f \$HOME/.%{name}/resources.xml ]; then
|
||||||
cp %{_datadir}/%{capname}/resources.xml \$HOME/.%{name}
|
cp %{_datadir}/%{capname}/resources.xml \$HOME/.%{name}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# call binary from local working-directory
|
# call binary from local working-directory
|
||||||
@ -221,18 +216,18 @@ install -m 755 %{name}.sh \
|
|||||||
|
|
||||||
# use system fonts
|
# use system fonts
|
||||||
pushd %{buildroot}%{_datadir}/%{capname}/Media/MyGUI_Media
|
pushd %{buildroot}%{_datadir}/%{capname}/Media/MyGUI_Media
|
||||||
ln -sf %{_datadir}/fonts/truetype/DejaVuSans.ttf .
|
ln -sf %{_datadir}/fonts/truetype/DejaVuSans.ttf .
|
||||||
ln -sf %{_datadir}/fonts/truetype/DejaVuSans-ExtraLight.ttf .
|
ln -sf %{_datadir}/fonts/truetype/DejaVuSans-ExtraLight.ttf .
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# icon
|
# icon
|
||||||
install -dm 755 %{buildroot}%{_datadir}/pixmaps
|
install -dm 755 %{buildroot}%{_datadir}/pixmaps
|
||||||
install -m 644 %{SOURCE1} \
|
install -m 644 %{SOURCE1} \
|
||||||
%{buildroot}%{_datadir}/pixmaps
|
%{buildroot}%{_datadir}/pixmaps
|
||||||
|
|
||||||
# menu-entries
|
# menu-entries
|
||||||
for i in LayoutEditor ImageSetViewer FontViewer; do
|
for i in LayoutEditor ImageSetViewer FontViewer; do
|
||||||
cat > $i.desktop << EOF
|
cat > $i.desktop << EOF
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=MyGUI $i
|
Name=MyGUI $i
|
||||||
GenericName=MyGUI $i
|
GenericName=MyGUI $i
|
||||||
@ -257,9 +252,11 @@ rm Docs/html/installdox || true
|
|||||||
%post -n libMyGUIEngine%{_sover} -p /sbin/ldconfig
|
%post -n libMyGUIEngine%{_sover} -p /sbin/ldconfig
|
||||||
%postun -n libMyGUIEngine%{_sover} -p /sbin/ldconfig
|
%postun -n libMyGUIEngine%{_sover} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%doc *.txt
|
||||||
%doc *.txt
|
|
||||||
%license COPYING.MIT
|
%license COPYING.MIT
|
||||||
%{_bindir}/%{name}.sh
|
%{_bindir}/%{name}.sh
|
||||||
%{_bindir}/FontEditor
|
%{_bindir}/FontEditor
|
||||||
@ -296,7 +293,6 @@ rm Docs/html/installdox || true
|
|||||||
%{_datadir}/pixmaps/*.png
|
%{_datadir}/pixmaps/*.png
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %{_includedir}/%{capname}
|
%dir %{_includedir}/%{capname}
|
||||||
%{_includedir}/%{capname}/*.h
|
%{_includedir}/%{capname}/*.h
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
@ -305,15 +301,12 @@ rm Docs/html/installdox || true
|
|||||||
%{_datadir}/%{capname}/Media/Tools/LayoutEditor/CodeTemplates/BaseLayoutTemplate.h
|
%{_datadir}/%{capname}/Media/Tools/LayoutEditor/CodeTemplates/BaseLayoutTemplate.h
|
||||||
|
|
||||||
%files devel-doc
|
%files devel-doc
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc Docs/html/*
|
%doc Docs/html/*
|
||||||
|
|
||||||
%files -n libMyGUIEngine%{_sover}
|
%files -n libMyGUIEngine%{_sover}
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libMyGUIEngine.so.*
|
%{_libdir}/libMyGUIEngine.so.*
|
||||||
|
|
||||||
%files demo
|
%files demo
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/%{name}-Demo_*
|
%{_bindir}/%{name}-Demo_*
|
||||||
%{_datadir}/%{capname}/Media/Demos/
|
%{_datadir}/%{capname}/Media/Demos/
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:0a28d7ec8a47993cb68deb48b36331e28f12dd92580b709eaef21d599b67a78f
|
|
||||||
size 22081236
|
|
3
MyGUI3.4.0.tar.gz
Normal file
3
MyGUI3.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d1d5f294670ae71f7200ed4b30859018281d8cfd45d6a38d18b97a4aba604c42
|
||||||
|
size 22391483
|
Loading…
Reference in New Issue
Block a user