summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-07-10 21:14:49 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-07-10 21:14:49 +0000
commita4c5ae2a433ba14edaf13e0bae614d617a1f218b (patch)
tree59e000c444d8d5bf293e7853a8610133abdc0cb2 /dev-games/crystalspace
parentInitial import, based on an ebuild by Sander Siemonsma (#275060) (diff)
downloadhistorical-a4c5ae2a433ba14edaf13e0bae614d617a1f218b.tar.gz
historical-a4c5ae2a433ba14edaf13e0bae614d617a1f218b.tar.bz2
historical-a4c5ae2a433ba14edaf13e0bae614d617a1f218b.zip
version bump - perl/java support disabled; patches welcome to fix build issues
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'dev-games/crystalspace')
-rw-r--r--dev-games/crystalspace/ChangeLog10
-rw-r--r--dev-games/crystalspace/Manifest4
-rw-r--r--dev-games/crystalspace/crystalspace-1.2.1.ebuild128
3 files changed, 139 insertions, 3 deletions
diff --git a/dev-games/crystalspace/ChangeLog b/dev-games/crystalspace/ChangeLog
index ff1eb93677b7..e053e6f9292e 100644
--- a/dev-games/crystalspace/ChangeLog
+++ b/dev-games/crystalspace/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-games/crystalspace
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-games/crystalspace/ChangeLog,v 1.37 2007/11/21 02:08:16 dirtyepic Exp $
+# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-games/crystalspace/ChangeLog,v 1.38 2009/07/10 21:14:49 mr_bones_ Exp $
+
+*crystalspace-1.2.1 (10 Jul 2009)
+
+ 10 Jul 2009; Michael Sterrett <mr_bones_@gentoo.org>
+ +crystalspace-1.2.1.ebuild:
+ version bump - perl/java support disabled; patches welcome to fix build issues
21 Nov 2007; Ryan Hill <dirtyepic@gentoo.org> crystalspace-1.0.1.ebuild,
crystalspace-1.2.ebuild:
diff --git a/dev-games/crystalspace/Manifest b/dev-games/crystalspace/Manifest
index d7e060fc47f3..5d2c1e528b29 100644
--- a/dev-games/crystalspace/Manifest
+++ b/dev-games/crystalspace/Manifest
@@ -1,6 +1,8 @@
DIST crystalspace-src-1.0.1.tar.bz2 36581454 RMD160 e9cca632623fbc487bb39a8c088fa93aa78e23d4 SHA1 457958e4cc7d96272157e1c8be7a816620051714 SHA256 3042b1fdc5b4ac23c7a4799df232a8e2134fd215448e0785180759ebba7f9ab2
+DIST crystalspace-src-1.2.1.tar.bz2 47313388 RMD160 0f6582a9c68694189811a574bc63b5ce1a6a1166 SHA1 0f1b5604b217dfd9f65f54caeef5362d0ab92203 SHA256 23312a5a0330b281f517555207fed151e3d08c1096bb0cc9dd72dcabdced1b10
DIST crystalspace-src-1.2.tar.bz2 44289716 RMD160 65b7ce13e8771ddf1e0f531102d18922ddb5404b SHA1 5a12fd0617f4d8d017016111e7b64ee3be423690 SHA256 d5249ae17dda1a492375c21a9a9769432552936d4996b0582f038adcd4497699
EBUILD crystalspace-1.0.1.ebuild 3466 RMD160 bd8fd7d7450f43a43af6673b634e42f6486e9544 SHA1 30f1d741c4dc5d08161632dba9e44e3fc492e68e SHA256 3f8f781ac2d81402c53974984ed0809cba40339844f4263ad4b19b055037590c
+EBUILD crystalspace-1.2.1.ebuild 3353 RMD160 b04c2eba7645a108494b0da1c2d7b7a0a9b51f65 SHA1 870791df445b9367efa2b97b3778d83280ca2c20 SHA256 c115be1dab0ae0d203e7c298bbc46ff7dd4df386d48c40309f9859bddb762481
EBUILD crystalspace-1.2.ebuild 3449 RMD160 7fa99135a580eadeb7d7184d7091fc076523742b SHA1 2030be4a2b5efd4fec17e9166acecb9f2f42c675 SHA256 b984313d01f30e3eb8d19779b47646e772c35653d86cf6e4635ec2a46fe42101
-MISC ChangeLog 5792 RMD160 47130c72b32c4c64524ccdc7d759efd55c9bda2b SHA1 2f40688133f180abde8ca875f6c340b98a694de9 SHA256 e7b75071b4c2e11819c0b2a1cec823abe3875cfa4c2f5c8e480940b25f652e34
+MISC ChangeLog 5994 RMD160 d9b968269a2a56abb6aabae6390b757b93bd5b68 SHA1 c090580ffc32d23fcdadf4eeee3b55ecfe40b492 SHA256 b6dc8394ba81863c22b8ad65da09180fbdfe911ef72a54bf78216c4e43930689
MISC metadata.xml 1243 RMD160 1f23863f3940b9349b19a701d80f0888cc7b2242 SHA1 71931e463e50c1ab0af385a3c4d10d6ad5ed960a SHA256 f7125504551e256f5ceb9385b20e945f3717a1cda3dcf6f3ff5e9f88850025b0
diff --git a/dev-games/crystalspace/crystalspace-1.2.1.ebuild b/dev-games/crystalspace/crystalspace-1.2.1.ebuild
new file mode 100644
index 000000000000..db1915ae5213
--- /dev/null
+++ b/dev-games/crystalspace/crystalspace-1.2.1.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-games/crystalspace/crystalspace-1.2.1.ebuild,v 1.1 2009/07/10 21:14:49 mr_bones_ Exp $
+
+EAPI=2
+inherit flag-o-matic multilib wxwidgets
+
+MY_P=${PN}-src-${PV}
+DESCRIPTION="Portable 3D Game Development Kit written in C++"
+HOMEPAGE="http://crystal.sourceforge.net/"
+SRC_URI="mirror://sourceforge/crystal/${MY_P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="3ds alsa cal3d cegui cg doc javascript jpeg mng ode png python
+sdl truetype vorbis wxwindows"
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ cg? ( media-gfx/nvidia-cg-toolkit )
+ ode? ( dev-games/ode )
+ cal3d? ( >=media-libs/cal3d-0.11 )
+ jpeg? ( media-libs/jpeg )
+ sdl? ( media-libs/libsdl )
+ vorbis? ( media-libs/libogg
+ media-libs/libvorbis )
+ truetype? ( >=media-libs/freetype-2.1 )
+ alsa? ( media-libs/alsa-lib )
+ mng? ( media-libs/libmng )
+ png? ( media-libs/libpng )
+ wxwindows? ( x11-libs/pango
+ =x11-libs/wxGTK-2.6* )
+ javascript? ( dev-lang/spidermonkey )
+ cegui? ( >=dev-games/cegui-0.5.0 )
+ x11-libs/libXaw
+ x11-libs/libXxf86vm"
+DEPEND="${RDEPEND}
+ 3ds? ( media-libs/lib3ds )
+ dev-util/ftjam
+ dev-lang/swig
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ # Installing doc conflict with dodoc on src_install
+ # Removing conflicting target
+ sed -i \
+ -e "/^InstallDoc/d" \
+ Jamfile.in \
+ docs/Jamfile \
+ || die "sed failed"
+}
+
+src_configure() {
+ if useq wxwindows; then
+ WX_GTK_VER=2.6
+ need-wxwidgets gtk2
+ fi
+
+ # -O3 is hanging compilation of python script plugin
+ # trying -O2 just in case
+ replace-flags -O3 -O2
+ econf --enable-cpu-specific-optimizations=no \
+ --disable-separate-debug-info \
+ --without-lcms \
+ --without-caca \
+ --without-bullet \
+ --without-openal \
+ --without-jackasyn \
+ --without-mikmod \
+ --without-perl \
+ --without-java \
+ --disable-make-emulation \
+ $(use_with python) \
+ $(use_with png) \
+ $(use_with jpeg) \
+ $(use_with mng) \
+ $(use_with vorbis) \
+ $(use_with 3ds) \
+ $(use_with ode) \
+ $(use_with truetype freetype2) \
+ $(use_with cal3d) \
+ $(use_with sdl) \
+ $(use_with wxwindows wx) \
+ $(use_with cegui CEGUI) \
+ $(use_with cg Cg) \
+ $(use_with javascript js) \
+ $(use_with alsa asound)
+ #remove unwanted CFLAGS added by ./configure
+ sed -i -e '/COMPILER\.CFLAGS\.optimize/d' \
+ Jamconfig \
+ || die "sed failed"
+}
+
+src_compile() {
+ jam -q || die "compile failed"
+}
+
+src_install() {
+ for installTarget in install_bin install_plugin install_lib \
+ install_include install_data install_config
+ do
+ jam -q -s DESTDIR="${D}" ${installTarget} \
+ || die "jam ${installTarget} failed"
+ done
+ if use doc; then
+ jam -q -s DESTDIR="${D}" install_doc || die "jam install_doc failed"
+ fi
+ dodoc README docs/history* docs/todo_*
+
+ echo "CRYSTAL_PLUGIN=/usr/$(get_libdir)/${P}" > 90crystalspace
+ echo "CRYSTAL_CONFIG=/etc/${P}" >> 90crystalspace
+ doenvd 90crystalspace
+}
+
+pkg_postinst() {
+ elog "Examples coming with this package, need correct light calculation"
+ elog "Do the following commands, with the root account, to fix that:"
+ # Fill cache directory for the examples
+ local dir
+ for dir in castle flarge isomap parallaxtest partsys r3dtest stenciltest \
+ terrain terrainf;
+ do
+ elog "cslight -video=null /usr/share/${PN}/data/maps/${dir}"
+ done
+}