summaryrefslogtreecommitdiff
path: root/community-staging/mygui/PKGBUILD
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-11-25 12:00:05 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-11-25 12:00:05 -0300
commitd59c722c306fa39fcecf011b411b77faffca5cbd (patch)
treed6a3582523245b624d1a905d4b46d8344429e617 /community-staging/mygui/PKGBUILD
parent939541abc901bd03328b55aaed0fb1862f803c05 (diff)
parent5894dd675f4bd3ba296d262fae99b3b87a0f87fd (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/gri/PKGBUILD community/multiget/PKGBUILD core/bash/PKGBUILD core/grep/PKGBUILD extra/ffmpeg/PKGBUILD extra/vlc/PKGBUILD extra/xfce4-screenshooter/PKGBUILD extra/xfce4-settings/PKGBUILD libre/linux-libre/PKGBUILD libre/linux-libre/dib0700-fix.patch libre/linux-libre/i915-fix-ghost-tv-output.patch libre/linux-libre/i915-fix-incorrect-error-message.patch libre/linux-libre/iwlagn-fix-NULL-pointer-dereference.patch libre/linux-libre/linux-libre.install libre/linux-libre/usb-add-reset-resume-quirk-for-several-webcams.patch
Diffstat (limited to 'community-staging/mygui/PKGBUILD')
-rw-r--r--community-staging/mygui/PKGBUILD77
1 files changed, 77 insertions, 0 deletions
diff --git a/community-staging/mygui/PKGBUILD b/community-staging/mygui/PKGBUILD
new file mode 100644
index 000000000..d66acff59
--- /dev/null
+++ b/community-staging/mygui/PKGBUILD
@@ -0,0 +1,77 @@
+# $Id: PKGBUILD 59340 2011-11-23 18:54:28Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Andrew Belitsky <belitsky.a@gmail.com>
+pkgbase=mygui
+pkgname=('mygui' 'mygui-docs')
+pkgver=3.2.0rc1
+pkgrel=10
+pkgdesc="A multilayer and overlappable GUI System for OGRE"
+arch=('i686' 'x86_64')
+url="http://mygui.info/"
+license=('LGPL')
+depends=('boost-libs' 'ogre' 'ois')
+makedepends=('boost' 'cmake' 'doxygen' 'graphviz' 'ttf-dejavu')
+install=mygui.install
+source=("http://downloads.sourceforge.net/my-gui/MyGUI_3.2.0_RC1.zip")
+md5sums=('1ac1340148e81ad49a26c8a87acefc6b')
+
+build() {
+ cd $srcdir/MyGUI_3.2.0_RC1
+
+ # change CMake config so demos install to /opt
+ sed -i 's:"bin:"../opt/MYGUI:' CMake/Utils/MyGUIConfigTargets.cmake
+ sed -i -e 's:../share:/usr/share:' \
+ -e 's:"bin":"../opt/MYGUI":' \
+ CMake/InstallResources.cmake
+
+ # get a clean build dir
+ [[ -d build ]] && rm -rf build
+ mkdir build && cd build
+
+ # generate CMake Makefile
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMYGUI_INSTALL_SAMPLES=TRUE \
+ -DMYGUI_INSTALL_TOOLS=TRUE \
+ -DMYGUI_INSTALL_DOCS=TRUE \
+ -DMYGUI_INSTALL_MEDIA=TRUE \
+ -DCMAKE_BUILD_TYPE=Release # set=Debug for debugging version
+
+ # compile
+ make
+
+ # generate docs
+ if [[ $(which dot) && $(which doxygen) ]]; then
+ make api-docs 2>/dev/null
+ fi
+}
+
+package_mygui() {
+ optdepends=('mygui-docs: documentation')
+
+ cd $srcdir/MyGUI_3.2.0_RC1
+
+ cd build
+
+ # install the whole bunch
+ make DESTDIR="$pkgdir" install
+
+ # make demos work
+ chown root:users $pkgdir/opt/MYGUI
+ chmod 775 $pkgdir/opt/MYGUI
+}
+
+package_mygui-docs() {
+ pkgdesc="Documentation for mygui"
+ depends=()
+
+ cd $srcdir/MyGUI_3.2.0_RC1
+
+ cd build
+
+ # install docs
+ install -d $pkgdir/usr/share/doc/
+ cp -r Docs/html $pkgdir/usr/share/doc/MYGUI
+}
+
+# vim:set ts=2 sw=2 et: