Adopted v7117

This commit is contained in:
Anton Leontiev 2014-05-15 15:36:07 +04:00
commit 51a8b8debd
4 changed files with 131 additions and 0 deletions

26
.SRCINFO Normal file
View file

@ -0,0 +1,26 @@
pkgbase = gigi
pkgdesc = Small, efficient and feature rich GUI for OpenGL and C++ (FreeOrion fork)
pkgver = 7117
pkgrel = 1
url = http://freeorion.svn.sourceforge.net/viewvc/freeorion/trunk/FreeOrion/GG/
arch = x86_64
arch = i686
license = LGPL
makedepends = subversion
makedepends = cmake
makedepends = setconf
makedepends = doxygen
makedepends = mesa-libgl
depends = boost
depends = libpng
depends = libtiff
depends = ogre
depends = sdl
depends = python
source = gigi::svn+https://freeorion.svn.sourceforge.net/svnroot/freeorion/trunk/FreeOrion/GG/
source = gigi-cmake.patch
sha256sums = SKIP
sha256sums = a95c16709de0e645503d51ee89f5d6babbfae1da6e65d507a0d3b9b12cc33e75
pkgname = gigi

6
.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
*.tar.gz
*.tar.bz2
*.tar.xz
*.tar.lz
src/
pkg/

51
PKGBUILD Normal file
View file

@ -0,0 +1,51 @@
# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: fana-m <geminin@gmx.net>
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
# Contributor: Manuel Gaul <inkaine@hotmail.com>
pkgname=gigi
pkgver=7117
pkgrel=1
pkgdesc='Small, efficient and feature rich GUI for OpenGL and C++ (FreeOrion fork)'
url='http://freeorion.svn.sourceforge.net/viewvc/freeorion/trunk/FreeOrion/GG/'
arch=('x86_64' 'i686')
license=('LGPL')
depends=('boost' 'libpng' 'libtiff' 'ogre' 'sdl' 'python')
makedepends=('subversion' 'cmake' 'setconf' 'doxygen' 'mesa-libgl')
source=("$pkgname::svn+https://freeorion.svn.sourceforge.net/svnroot/freeorion/trunk/FreeOrion/GG/" 'gigi-cmake.patch')
sha256sums=('SKIP'
'a95c16709de0e645503d51ee89f5d6babbfae1da6e65d507a0d3b9b12cc33e75')
pkgver() {
cd $pkgname
svnversion | tr -d [A-z]
}
prepare() {
cd $pkgname
patch -p1 -i ../gigi-cmake.patch
sed -i -e '1s:python$:python2:' GG/gen_signals.py
setconf cmake/GiGiOgre.pc.in prefix /usr
setconf cmake/GiGi.pc.in prefix /usr
setconf cmake/GiGiSDL.pc.in prefix /usr
}
build() {
cd $pkgname
cmake \
-D CMAKE_INSTALL_PREFIX="/usr" \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_DEVEL_PACKAGE=ON \
.
make -j1
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
}

48
gigi-cmake.patch Normal file
View file

@ -0,0 +1,48 @@
diff -aur gigi.orig/src/CMakeLists.txt gigi.patch/src/CMakeLists.txt
--- gigi.orig/src/CMakeLists.txt 2014-02-22 00:58:15.216080000 +0400
+++ gigi.patch/src/CMakeLists.txt 2014-05-15 14:47:48.520969763 +0400
@@ -77,7 +77,7 @@
LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT COMPONENT_GIGI
)
-if (BUILD_DEVEL_PACKAGE)
+if (BUILD_DEVEL_PACKAGE AND USE_STATIC_LIBS)
install(
TARGETS GiGi
ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT COMPONENT_GIGI_DEVEL
diff -aur gigi.orig/src/Ogre/CMakeLists.txt gigi.patch/src/Ogre/CMakeLists.txt
--- gigi.orig/src/Ogre/CMakeLists.txt 2013-12-30 14:44:39.554150000 +0400
+++ gigi.patch/src/Ogre/CMakeLists.txt 2014-05-15 14:48:15.360711661 +0400
@@ -31,7 +31,7 @@
LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT COMPONENT_GIGIOGRE
)
-if (BUILD_DEVEL_PACKAGE)
+if (BUILD_DEVEL_PACKAGE AND USE_STATIC_LIBS)
install(
TARGETS GiGiOgre
ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT COMPONENT_GIGIOGRE_DEVEL
diff -aur gigi.orig/src/Ogre/Plugins/CMakeLists.txt gigi.patch/src/Ogre/Plugins/CMakeLists.txt
--- gigi.orig/src/Ogre/Plugins/CMakeLists.txt 2013-12-30 14:44:39.554150000 +0400
+++ gigi.patch/src/Ogre/Plugins/CMakeLists.txt 2014-05-15 14:48:28.433919267 +0400
@@ -30,7 +30,7 @@
LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT COMPONENT_GIGIOGREPLUGIN_OIS
)
-if (BUILD_DEVEL_PACKAGE)
+if (BUILD_DEVEL_PACKAGE AND USE_STATIC_LIBS)
install(
TARGETS GiGiOgrePlugin_OIS
ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT COMPONENT_GIGIOGREPLUGIN_OIS_DEVEL
diff -aur gigi.orig/src/SDL/CMakeLists.txt gigi.patch/src/SDL/CMakeLists.txt
--- gigi.orig/src/SDL/CMakeLists.txt 2013-12-30 14:44:39.554150000 +0400
+++ gigi.patch/src/SDL/CMakeLists.txt 2014-05-15 14:48:02.897498182 +0400
@@ -27,7 +27,7 @@
LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT COMPONENT_GIGISDL
)
-if (BUILD_DEVEL_PACKAGE)
+if (BUILD_DEVEL_PACKAGE AND USE_STATIC_LIBS)
install(
TARGETS GiGiSDL
ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT COMPONENT_GIGISDL_DEVEL