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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Oct 9 22:22:41 UTC 2016


    Date: Sunday, October 9, 2016 @ 22:22:40
  Author: bpiotrowski
Revision: 191756

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 191755, ogre/trunk/PKGBUILD)
  ogre/repos/community-staging-i686/ogre.install
    (from rev 191755, ogre/trunk/ogre.install)
  ogre/repos/community-staging-x86_64/
  ogre/repos/community-staging-x86_64/PKGBUILD
    (from rev 191755, ogre/trunk/PKGBUILD)
  ogre/repos/community-staging-x86_64/ogre.install
    (from rev 191755, ogre/trunk/ogre.install)

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

Copied: ogre/repos/community-staging-i686/PKGBUILD (from rev 191755, ogre/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2016-10-09 22:22:40 UTC (rev 191756)
@@ -0,0 +1,93 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+pkgbase=ogre
+pkgname=('ogre' 'ogre-docs')
+pkgver=1.9.0
+pkgrel=15
+pkgdesc='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' 'tinyxml')
+makedepends=('boost' 'cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa' 'mercurial')
+install=ogre.install
+source=("hg+http://bitbucket.org/sinbad/ogre#tag=v${pkgver//./-}"
+        ogre-template-fix.patch::https://bitbucket.org/sinbad/ogre/commits/a24ac4afbbb9dc5ff49a61634af50da11ba8fb97/raw/
+        ogre-cmake30.patch::https://bitbucket.org/sinbad/ogre/commits/d84bce645d3dd439188d3d29d8da51c51765a085/raw/)
+md5sums=('SKIP'
+         '3debee4514a33a0a642370aecdc41975'
+         '116fb8009c8d4b499f9a885052cc0ea6')
+
+prepare() {
+  cd ogre
+
+  patch -Np1 < $srcdir/ogre-template-fix.patch
+  patch -Np1 < $srcdir/ogre-cmake30.patch
+}
+
+build() {
+  cd ogre
+
+  [[ -d build ]] && rm -rf build
+  mkdir build && cd build
+
+  # Silence warnings about deprecated declarations
+  CXXFLAGS+=' -Wno-deprecated-declarations'
+
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DOGRE_INSTALL_SAMPLES=TRUE \
+    -DOGRE_INSTALL_DOCS=TRUE \
+    -DOGRE_INSTALL_SAMPLES_SOURCE=TRUE \
+    -DCMAKE_BUILD_TYPE=Release
+
+  make
+
+  make OgreDoc
+}
+
+package_ogre() {
+  optdepends=('cppunit: unit testing'
+              'intel-tbb: better threading support'
+              'poco: portability'
+              'boost: for developing using ogre'
+              'ogre-docs: documentation')
+
+  cd ogre/build
+
+  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 -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 ogre/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 /usr/share/doc/OGRE/ OGRE/docs
+}
+
+# vim:set ts=2 sw=2 et:

Copied: ogre/repos/community-staging-i686/ogre.install (from rev 191755, ogre/trunk/ogre.install)
===================================================================
--- community-staging-i686/ogre.install	                        (rev 0)
+++ community-staging-i686/ogre.install	2016-10-09 22:22:40 UTC (rev 191756)
@@ -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 191755, ogre/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2016-10-09 22:22:40 UTC (rev 191756)
@@ -0,0 +1,93 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+pkgbase=ogre
+pkgname=('ogre' 'ogre-docs')
+pkgver=1.9.0
+pkgrel=15
+pkgdesc='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' 'tinyxml')
+makedepends=('boost' 'cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa' 'mercurial')
+install=ogre.install
+source=("hg+http://bitbucket.org/sinbad/ogre#tag=v${pkgver//./-}"
+        ogre-template-fix.patch::https://bitbucket.org/sinbad/ogre/commits/a24ac4afbbb9dc5ff49a61634af50da11ba8fb97/raw/
+        ogre-cmake30.patch::https://bitbucket.org/sinbad/ogre/commits/d84bce645d3dd439188d3d29d8da51c51765a085/raw/)
+md5sums=('SKIP'
+         '3debee4514a33a0a642370aecdc41975'
+         '116fb8009c8d4b499f9a885052cc0ea6')
+
+prepare() {
+  cd ogre
+
+  patch -Np1 < $srcdir/ogre-template-fix.patch
+  patch -Np1 < $srcdir/ogre-cmake30.patch
+}
+
+build() {
+  cd ogre
+
+  [[ -d build ]] && rm -rf build
+  mkdir build && cd build
+
+  # Silence warnings about deprecated declarations
+  CXXFLAGS+=' -Wno-deprecated-declarations'
+
+  cmake .. \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DOGRE_INSTALL_SAMPLES=TRUE \
+    -DOGRE_INSTALL_DOCS=TRUE \
+    -DOGRE_INSTALL_SAMPLES_SOURCE=TRUE \
+    -DCMAKE_BUILD_TYPE=Release
+
+  make
+
+  make OgreDoc
+}
+
+package_ogre() {
+  optdepends=('cppunit: unit testing'
+              'intel-tbb: better threading support'
+              'poco: portability'
+              'boost: for developing using ogre'
+              'ogre-docs: documentation')
+
+  cd ogre/build
+
+  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 -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 ogre/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 /usr/share/doc/OGRE/ OGRE/docs
+}
+
+# vim:set ts=2 sw=2 et:

Copied: ogre/repos/community-staging-x86_64/ogre.install (from rev 191755, ogre/trunk/ogre.install)
===================================================================
--- community-staging-x86_64/ogre.install	                        (rev 0)
+++ community-staging-x86_64/ogre.install	2016-10-09 22:22:40 UTC (rev 191756)
@@ -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