diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-10-30 23:29:14 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-10-30 23:29:14 -0200 |
commit | 1cda38eb0db37c9fc9789962dd29ce272ecc2640 (patch) | |
tree | 34fbb38922a63ba6a05f1f44b2035af16a4aada9 /libre | |
parent | 8c005630e1ce900a3264a66ec0614d756ae25b82 (diff) | |
parent | 72e1e90ddae74544f2f5443faab9141895fe7307 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre')
-rw-r--r-- | libre/ogre-libre/PKGBUILD | 131 | ||||
-rw-r--r-- | libre/ogre-libre/ogre.install | 4 | ||||
-rw-r--r-- | libre/parabolaweb-utils/PKGBUILD | 2 |
3 files changed, 136 insertions, 1 deletions
diff --git a/libre/ogre-libre/PKGBUILD b/libre/ogre-libre/PKGBUILD new file mode 100644 index 000000000..673ee8435 --- /dev/null +++ b/libre/ogre-libre/PKGBUILD @@ -0,0 +1,131 @@ +# $Id$ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com> + +pkgbase=ogre +pkgname=( + ogre-libre + #ogre-docs +) +pkgver=1.8.1 +pkgrel=2 +pkgdesc='A scene-oriented, flexible 3D engine written in C++, without nonfree nvidia-cg-toolkit support' +arch=( + i686 + x86_64 + mips64el +) +url="http://www.${pkgbase}3d.org" +license=( + 'custom:MIT' +) +depends=( + boost-libs + freeimage + freetype2 + libxaw + libxrandr + zziplib + ois + glu +) +makedepends=( + boost + cmake + doxygen + graphviz + ttf-dejavu + mesa +) +install=$pkgbase.install +source=( + "https://downloads.sourceforge.net/$pkgbase/${pkgbase}_src_v${pkgver//./-}.tar.bz2" +) +sha512sums=( + 0bbce593e5a9ebf51e3cb53661f6447d99ae28a53365d7f518c6d408216690527ef7552385160cff8d5c3ef15d3ab5c2520ef2c1f51fda5541d5d4dca4663ae2 +) + +build() { + cd $srcdir/${pkgbase}_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 \ + -D${pkgbase^^}_INSTALL_PLUGINS_HEADERS=TRUE \ + -D${pkgbase^^}_INSTALL_SAMPLES=TRUE \ + -D${pkgbase^^}_INSTALL_DOCS=TRUE \ + -D${pkgbase^^}_INSTALL_MEDIA=TRUE \ + -D${pkgbase^^}_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-libre() { + optdepends=( + 'cppunit: unit testing' + 'intel-tbb: better threading support' + 'poco: portability' + "boost: for developing using $pkgbase" + "$pkgbase-docs: documentation" + ) + provides=( + $pkgbase=$pkgver + ) + conflicts=( + $pkgbase + ) + replaces=( + $pkgbase + ) + + cd $srcdir/${pkgbase}_src_v${pkgver//./-}/build + + # install the bugger + make DESTDIR=$pkgdir install + + # fix up samples + install -dm775 -o root -g users $pkgdir/opt/${pkgbase^^}/samples + mv $pkgdir/usr/share/${pkgbase^^}/*.cfg $pkgdir/opt/${pkgbase^^}/samples + mv $pkgdir/usr/bin/SampleBrowser $pkgdir/opt/${pkgbase^^}/samples + + # make sample launcher + echo '#!/bin/bash' > $pkgdir/usr/bin/${pkgbase^}SampleBrowser + echo 'cd /opt/${pkgbase^^}/samples && ./SampleBrowser' >> $pkgdir/usr/bin/${pkgbase^}SampleBrowser + chmod +x $pkgdir/usr/bin/${pkgbase^}SampleBrowser + + # install license + install -Dm644 ../Docs/License.html $pkgdir/usr/share/licenses/$pkgbase/license.html + + # move docs out of this package + mv $pkgdir/usr/share/${pkgbase^^}/docs $srcdir/docs +} + +package_ogre-docs() { + pkgdesc="Documentation for $pkgbase" + 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/${pkgbase^^} + + # symlink for docs + install -dm755 $pkgdir/usr/share/${pkgbase^^} + cd $pkgdir/usr/share + ln -s doc/${pkgbase^^} ${pkgbase^^}/docs +} + +# vim:set ts=2 sw=2 et: diff --git a/libre/ogre-libre/ogre.install b/libre/ogre-libre/ogre.install new file mode 100644 index 000000000..5db668d9e --- /dev/null +++ b/libre/ogre-libre/ogre.install @@ -0,0 +1,4 @@ +post_install() { + echo "To view the OGRE samples just run OgreSampleBrowser or launch" + echo "it directly in /opt/OGRE/samples/" +} diff --git a/libre/parabolaweb-utils/PKGBUILD b/libre/parabolaweb-utils/PKGBUILD index c1beccdf9..e0b70ba1a 100644 --- a/libre/parabolaweb-utils/PKGBUILD +++ b/libre/parabolaweb-utils/PKGBUILD @@ -8,7 +8,7 @@ pkgname=parabolaweb-utils pkgver=`_get_pkgver` -pkgrel=4 +pkgrel=5 pkgdesc="Utils for the Parabola website" arch=('any') url="https://projects.parabolagnulinux.org/parabolaweb.git/" |