From 51a8b8debd2f7344d5b2c836223e8792ec380f93 Mon Sep 17 00:00:00 2001 From: Anton Leontiev Date: Thu, 15 May 2014 15:36:07 +0400 Subject: [PATCH] Adopted v7117 --- .SRCINFO | 26 ++++++++++++++++++++++++ .gitignore | 6 ++++++ PKGBUILD | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ gigi-cmake.patch | 48 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 131 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD create mode 100644 gigi-cmake.patch diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..28947f48d82f --- /dev/null +++ b/.SRCINFO @@ -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 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e6b6b4b8077d --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.tar.gz +*.tar.bz2 +*.tar.xz +*.tar.lz +src/ +pkg/ \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2ea9f07f6e93 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Contributor: Anton Leontiev +# Contributor: Alexander Rødseth +# Contributor: Sven-Hendrik Haase +# Contributor: fana-m +# Contributor: Andrzej Giniewicz +# Contributor: Manuel Gaul + +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 +} diff --git a/gigi-cmake.patch b/gigi-cmake.patch new file mode 100644 index 000000000000..d11ebb78ce23 --- /dev/null +++ b/gigi-cmake.patch @@ -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