[arch-commits] Commit in ogre/repos (6 files)

Sven-Hendrik Haase svenstaro at nymeria.archlinux.org
Sat Jan 26 01:59:56 UTC 2013


    Date: Saturday, January 26, 2013 @ 02:59:56
  Author: svenstaro
Revision: 82944

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  ogre/repos/community-staging-i686/
  ogre/repos/community-staging-i686/PKGBUILD
    (from rev 82943, ogre/trunk/PKGBUILD)
  ogre/repos/community-staging-i686/ogre.install
    (from rev 82943, ogre/trunk/ogre.install)
  ogre/repos/community-staging-x86_64/
  ogre/repos/community-staging-x86_64/PKGBUILD
    (from rev 82943, ogre/trunk/PKGBUILD)
  ogre/repos/community-staging-x86_64/ogre.install
    (from rev 82943, ogre/trunk/ogre.install)

---------------------------------------+
 community-staging-i686/PKGBUILD       |   89 ++++++++++++++++++++++++++++++++
 community-staging-i686/ogre.install   |    4 +
 community-staging-x86_64/PKGBUILD     |   89 ++++++++++++++++++++++++++++++++
 community-staging-x86_64/ogre.install |    4 +
 4 files changed, 186 insertions(+)

Copied: ogre/repos/community-staging-i686/PKGBUILD (from rev 82943, ogre/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2013-01-26 01:59:56 UTC (rev 82944)
@@ -0,0 +1,89 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+pkgbase=ogre
+pkgname=('ogre' 'ogre-docs')
+pkgver=1.8.1
+pkgrel=3
+pkgdesc="A scene-oriented, flexible 3D engine written in C++"
+arch=('i686' 'x86_64')
+url='http://www.ogre3d.org'
+license=('custom:MIT')
+depends=('boost-libs' 'freeimage' 'freetype2' 'libxaw' 'libxrandr' 
+         'nvidia-cg-toolkit' 'zziplib' 'ois' 'glu')
+makedepends=('boost' 'cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa')
+install=ogre.install
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}_src_v${pkgver//./-}.tar.bz2")
+md5sums=('b85e3dcf370a46b3a8624d4fdd722d39')
+
+build() {
+  cd ${srcdir}/${pkgname}_src_v${pkgver//./-}
+
+  # get a clean build dir
+  [[ -d build ]] && rm -rf build
+  mkdir build && cd build
+
+  # generate CMake Makefile
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DOGRE_INSTALL_PLUGINS_HEADERS=TRUE \
+    -DOGRE_INSTALL_SAMPLES=TRUE \
+    -DOGRE_INSTALL_DOCS=TRUE \
+    -DOGRE_INSTALL_MEDIA=TRUE \
+    -DOGRE_INSTALL_SAMPLES_SOURCE=TRUE \
+    -DCMAKE_BUILD_TYPE=Release # set =Debug for debugging version
+
+  # compile
+  make
+
+  # generate docs
+  if [[ $(which dot) && $(which doxygen) ]]; then
+    make doc
+  fi
+}
+
+package_ogre() {
+  optdepends=('cppunit: unit testing'
+             'intel-tbb: better threading support'
+             'poco: portability'
+             'boost: for developing using ogre'
+             'ogre-docs: documentation')
+
+  cd ${srcdir}/${pkgname}_src_v${pkgver//./-}/build
+
+  # install the bugger
+  make DESTDIR=${pkgdir} install
+
+  # fix up samples
+  install -dm775 -o root -g users ${pkgdir}/opt/OGRE/samples/
+  mv ${pkgdir}/usr/share/OGRE/*.cfg ${pkgdir}/opt/OGRE/samples/
+  mv ${pkgdir}/usr/bin/SampleBrowser ${pkgdir}/opt/OGRE/samples/
+
+  # make sample launcher
+  echo "#!/bin/bash" > ${pkgdir}/usr/bin/OgreSampleBrowser
+  echo "cd /opt/OGRE/samples && ./SampleBrowser" >> ${pkgdir}/usr/bin/OgreSampleBrowser
+  chmod +x ${pkgdir}/usr/bin/OgreSampleBrowser
+  
+  # install license
+  install -Dm644 ../Docs/License.html ${pkgdir}/usr/share/licenses/${pkgname}/license.html
+
+  # move docs out of this package
+  mv ${pkgdir}/usr/share/OGRE/docs ${srcdir}/docs
+}
+
+package_ogre-docs() {
+  pkgdesc="Documentation for ogre"
+  depends=()
+
+  cd ${srcdir}/${pkgbase}_src_v${pkgver//./-}/build
+
+  # move docs into this package
+  install -dm755 ${pkgdir}/usr/share/doc
+  mv ${srcdir}/docs ${pkgdir}/usr/share/doc/OGRE/
+
+  # symlink for docs
+  install -dm755 ${pkgdir}/usr/share/OGRE/
+  cd ${pkgdir}/usr/share
+  ln -s doc/OGRE/ OGRE/docs
+}
+
+# vim:set ts=2 sw=2 et:

Copied: ogre/repos/community-staging-i686/ogre.install (from rev 82943, ogre/trunk/ogre.install)
===================================================================
--- community-staging-i686/ogre.install	                        (rev 0)
+++ community-staging-i686/ogre.install	2013-01-26 01:59:56 UTC (rev 82944)
@@ -0,0 +1,4 @@
+post_install() {
+    echo "To view the OGRE samples just run OgreSampleBrowser or launch"
+    echo "it directly in /opt/OGRE/samples/"
+}

Copied: ogre/repos/community-staging-x86_64/PKGBUILD (from rev 82943, ogre/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2013-01-26 01:59:56 UTC (rev 82944)
@@ -0,0 +1,89 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+pkgbase=ogre
+pkgname=('ogre' 'ogre-docs')
+pkgver=1.8.1
+pkgrel=3
+pkgdesc="A scene-oriented, flexible 3D engine written in C++"
+arch=('i686' 'x86_64')
+url='http://www.ogre3d.org'
+license=('custom:MIT')
+depends=('boost-libs' 'freeimage' 'freetype2' 'libxaw' 'libxrandr' 
+         'nvidia-cg-toolkit' 'zziplib' 'ois' 'glu')
+makedepends=('boost' 'cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa')
+install=ogre.install
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}_src_v${pkgver//./-}.tar.bz2")
+md5sums=('b85e3dcf370a46b3a8624d4fdd722d39')
+
+build() {
+  cd ${srcdir}/${pkgname}_src_v${pkgver//./-}
+
+  # get a clean build dir
+  [[ -d build ]] && rm -rf build
+  mkdir build && cd build
+
+  # generate CMake Makefile
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DOGRE_INSTALL_PLUGINS_HEADERS=TRUE \
+    -DOGRE_INSTALL_SAMPLES=TRUE \
+    -DOGRE_INSTALL_DOCS=TRUE \
+    -DOGRE_INSTALL_MEDIA=TRUE \
+    -DOGRE_INSTALL_SAMPLES_SOURCE=TRUE \
+    -DCMAKE_BUILD_TYPE=Release # set =Debug for debugging version
+
+  # compile
+  make
+
+  # generate docs
+  if [[ $(which dot) && $(which doxygen) ]]; then
+    make doc
+  fi
+}
+
+package_ogre() {
+  optdepends=('cppunit: unit testing'
+             'intel-tbb: better threading support'
+             'poco: portability'
+             'boost: for developing using ogre'
+             'ogre-docs: documentation')
+
+  cd ${srcdir}/${pkgname}_src_v${pkgver//./-}/build
+
+  # install the bugger
+  make DESTDIR=${pkgdir} install
+
+  # fix up samples
+  install -dm775 -o root -g users ${pkgdir}/opt/OGRE/samples/
+  mv ${pkgdir}/usr/share/OGRE/*.cfg ${pkgdir}/opt/OGRE/samples/
+  mv ${pkgdir}/usr/bin/SampleBrowser ${pkgdir}/opt/OGRE/samples/
+
+  # make sample launcher
+  echo "#!/bin/bash" > ${pkgdir}/usr/bin/OgreSampleBrowser
+  echo "cd /opt/OGRE/samples && ./SampleBrowser" >> ${pkgdir}/usr/bin/OgreSampleBrowser
+  chmod +x ${pkgdir}/usr/bin/OgreSampleBrowser
+  
+  # install license
+  install -Dm644 ../Docs/License.html ${pkgdir}/usr/share/licenses/${pkgname}/license.html
+
+  # move docs out of this package
+  mv ${pkgdir}/usr/share/OGRE/docs ${srcdir}/docs
+}
+
+package_ogre-docs() {
+  pkgdesc="Documentation for ogre"
+  depends=()
+
+  cd ${srcdir}/${pkgbase}_src_v${pkgver//./-}/build
+
+  # move docs into this package
+  install -dm755 ${pkgdir}/usr/share/doc
+  mv ${srcdir}/docs ${pkgdir}/usr/share/doc/OGRE/
+
+  # symlink for docs
+  install -dm755 ${pkgdir}/usr/share/OGRE/
+  cd ${pkgdir}/usr/share
+  ln -s doc/OGRE/ OGRE/docs
+}
+
+# vim:set ts=2 sw=2 et:

Copied: ogre/repos/community-staging-x86_64/ogre.install (from rev 82943, ogre/trunk/ogre.install)
===================================================================
--- community-staging-x86_64/ogre.install	                        (rev 0)
+++ community-staging-x86_64/ogre.install	2013-01-26 01:59:56 UTC (rev 82944)
@@ -0,0 +1,4 @@
+post_install() {
+    echo "To view the OGRE samples just run OgreSampleBrowser or launch"
+    echo "it directly in /opt/OGRE/samples/"
+}




More information about the arch-commits mailing list