summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD75
-rw-r--r--freetype.patch21
-rw-r--r--ogre-1.8.install6
4 files changed, 134 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4600022f479
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = ogre-1.8
+ pkgdesc = Scene-oriented, flexible 3D engine written in C++. Version 1.8.
+ pkgver = 1.8.1
+ pkgrel = 4
+ url = http://www.ogre3d.org
+ install = ogre-1.8.install
+ arch = i686
+ arch = x86_64
+ license = custom:MIT
+ makedepends = boost
+ makedepends = cmake
+ makedepends = doxygen
+ makedepends = graphviz
+ makedepends = ttf-dejavu
+ makedepends = mesa
+ depends = boost-libs
+ depends = freeimage
+ depends = freetype2
+ depends = libxaw
+ depends = libxrandr
+ depends = nvidia-cg-toolkit
+ depends = zziplib
+ depends = ois
+ depends = glu
+ provides = ogre
+ source = OGRE-1.8.tar.bz2::http://downloads.sourceforge.net/ogre/ogre_src_v1-8-1.tar.bz2
+ source = freetype.patch
+ md5sums = b85e3dcf370a46b3a8624d4fdd722d39
+ md5sums = 65fd7049ed67142fdb363df821bd40e8
+
+pkgname = ogre-1.8
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b5dc0c6c493
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Benjamin Chretien <chretien at lirmm dot fr>
+# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
+pkgname=('ogre-1.8')
+pkgver=1.8.1
+pkgrel=4
+pkgdesc='Scene-oriented, flexible 3D engine written in C++. Version 1.8.'
+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-1.8.install
+_dir="OGRE-1.8"
+_src_dir="ogre_src_v${pkgver//./-}"
+source=("${_dir}.tar.bz2::http://downloads.sourceforge.net/ogre/ogre_src_v${pkgver//./-}.tar.bz2"
+ "freetype.patch")
+md5sums=('b85e3dcf370a46b3a8624d4fdd722d39'
+ '65fd7049ed67142fdb363df821bd40e8')
+conflicts=()
+provides=('ogre')
+
+
+build() {
+ cd ${srcdir}/${_src_dir}
+
+ # patching CMake script for Freetype
+ patch -p1 -i ${startdir}/freetype.patch
+
+ # get a clean build dir
+ [[ -d build ]] && rm -rf build
+ mkdir build && cd build
+
+ # generate CMake Makefile
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/opt/${_dir} \
+ -DOGRE_INSTALL_PLUGINS_HEADERS=TRUE \
+ -DOGRE_INSTALL_SAMPLES=TRUE \
+ -DOGRE_INSTALL_DOCS=FALSE \
+ -DOGRE_INSTALL_MEDIA=TRUE \
+ -DOGRE_INSTALL_SAMPLES_SOURCE=TRUE \
+ -DCMAKE_BUILD_TYPE=Release # set =Debug for debugging version
+
+ # compile
+ make
+}
+
+package() {
+ cd ${srcdir}/${_src_dir}/build
+
+ # install the bugger
+ make DESTDIR=${pkgdir} install
+
+ # rename pkg-config files
+ #for files in ${pkgdir}/opt/${_dir}/lib/pkgconfig/*.pc
+ #do
+ # mv "$files" "${files%.pc}-1.8.pc"
+ #done
+
+ # fix up samples
+ #install -dm775 -o root -g users ${pkgdir}/opt/${_dir}/samples/
+ #mv ${pkgdir}/opt/${_dir}/share/${_dir}/*.cfg ${pkgdir}/opt/${_dir}/samples/
+ #mv ${pkgdir}/opt/${_dir}/bin/SampleBrowser ${pkgdir}/opt/${_dir}/samples/
+
+ # make sample launcher
+ #echo "#!/bin/bash" > ${pkgdir}/opt/${_dir}/bin/OgreSampleBrowser
+ #echo "cd /opt/${_dir}/samples && ./SampleBrowser" >> ${pkgdir}/opt/${_dir}/bin/OgreSampleBrowser
+ #chmod +x ${pkgdir}/opt/${_dir}/bin/OgreSampleBrowser
+
+ # install license
+ install -Dm644 ../Docs/License.html ${pkgdir}/usr/share/licenses/${pkgname}/license.html
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/freetype.patch b/freetype.patch
new file mode 100644
index 00000000000..62b94de2488
--- /dev/null
+++ b/freetype.patch
@@ -0,0 +1,21 @@
+diff -r 538b33f531b5 CMake/Packages/FindFreetype.cmake
+--- a/CMake/Packages/FindFreetype.cmake Sun Nov 24 00:46:46 2013 -0600
++++ b/CMake/Packages/FindFreetype.cmake Tue Nov 26 12:56:17 2013 +0100
+@@ -31,7 +31,7 @@
+ FREETYPE_INCLUDE_DIR
+ )
+
+-set(FREETYPE_LIBRARY_NAMES freetype2410 freetype249 freetype248 freetype246 freetype2311 freetype239 freetype238 freetype235 freetype219 freetype)
++set(FREETYPE_LIBRARY_NAMES freetype251 freetype2501 freetype250 freetype2412 freetype2411 freetype2410 freetype249 freetype248 freetype246 freetype2311 freetype239 freetype238 freetype235 freetype219 freetype)
+ get_debug_names(FREETYPE_LIBRARY_NAMES)
+
+ use_pkgconfig(FREETYPE_PKGC freetype2)
+@@ -43,7 +43,7 @@
+ findpkg_framework(FREETYPE)
+ message(STATUS "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
+
+-find_path(FREETYPE_INCLUDE_DIR NAMES freetype/freetype.h HINTS ${FREETYPE_INC_SEARCH_PATH} ${FREETYPE_PKGC_INCLUDE_DIRS} PATH_SUFFIXES freetype2)
++find_path(FREETYPE_INCLUDE_DIR NAMES freetype.h freetype/freetype.h HINTS ${FREETYPE_INC_SEARCH_PATH} ${FREETYPE_PKGC_INCLUDE_DIRS} PATH_SUFFIXES freetype2)
+ find_path(FREETYPE_FT2BUILD_INCLUDE_DIR NAMES ft2build.h HINTS ${FREETYPE_INC_SEARCH_PATH} ${FREETYPE_PKGC_INCLUDE_DIRS})
+
+ find_library(FREETYPE_LIBRARY_REL NAMES ${FREETYPE_LIBRARY_NAMES} HINTS ${FREETYPE_LIB_SEARCH_PATH} ${FREETYPE_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Release RelWithDebInfo MinSizeRel)
diff --git a/ogre-1.8.install b/ogre-1.8.install
new file mode 100644
index 00000000000..6f632dd3edc
--- /dev/null
+++ b/ogre-1.8.install
@@ -0,0 +1,6 @@
+post_install() {
+ echo "To view the OGRE samples just run OgreSampleBrowser or launch"
+ echo "it directly in /opt/OGRE-1.8/samples/"
+ echo "Update your paths:"
+ echo " export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/OGRE-1.8/lib"
+}