--- /dev/null
+# ChangeLog for games-simulation/crrcsim
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/crrcsim/ChangeLog,v 1.1 2011/11/12 00:01:24 xmw Exp $
+
+*crrcsim-0.9.11 (11 Nov 2011)
+
+ 11 Nov 2011; Michael Weber <xmw@gentoo.org> +crrcsim-0.9.11.ebuild,
+ +files/crrcsim-buildsystem.patch, +metadata.xml:
+ Initial import (thanks to Piotr Szymaniak and Krzysztof Synowiec for the
+ report, bug 227273)
+
--- /dev/null
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX crrcsim-buildsystem.patch 1222 RMD160 bc15b8a60db0096075140b1d4bf804da59a6af89 SHA1 496f821cac0948ffa5395b1a510fda8b89916486 SHA256 0fdf065a2a7bcfe13999b6ab3a4a9764ff3e53b152d25d0f8ab976245def470f
+DIST crrcsim-0.9.11.tar.gz 6779165 RMD160 301e1a5fbface0ecfce7910c557a1fb8a2f01d47 SHA1 7e1b9ce9a5ad0f2b878ff422e00f8a3e28dc0f8d SHA256 3f42582623613ebc112b9c124d2905da4b90789b48c6c930052201737b7ce99b
+EBUILD crrcsim-0.9.11.ebuild 873 RMD160 7391aa9e3aca00058d7158bb358f6aa095e8d237 SHA1 2f146c28bb239c3d1db80861e99e7678c289432d SHA256 040c78cf41a99f6d64dbf7ac2e142c90e44aa8e47b97bfa8a320856c72e67470
+MISC ChangeLog 468 RMD160 f43ef528c5a2d030704acceddfc3028044cfa90c SHA1 a406a24e5ebc028cfe94acac207b413a8986d77b SHA256 d8e86cf9799472d7828c70713361192a900786ba0c37d1d4940602a296bf69cf
+MISC metadata.xml 243 RMD160 61a73b3edc5d56dfe9ee302cc4c70f56a96eed78 SHA1 00fc0791a913c7c2a57718c9019f6ec0cf582326 SHA256 89106787a5945407ba66d216c4d1ade48c419f09c5f13933be3bb92657dad8b0
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iF4EAREIAAYFAk69t1oACgkQknrdDGLu8JCCmwEAlPNxCA5mslzZlwq1jobHPpr8
+wNt/tgpAlNq+xLiWURQBAIRm9p5n2nRDBHu6Nz332/ymL35e93NDUO1rR81lzvey
+=LWMA
+-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/crrcsim/crrcsim-0.9.11.ebuild,v 1.1 2011/11/12 00:01:24 xmw Exp $
+
+EAPI=3
+
+inherit autotools eutils games
+
+DESCRIPTION="model-airplane flight simulation program"
+HOMEPAGE="http://crrcsim.berlios.de/"
+SRC_URI="http://download.berlios.de/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="portaudio"
+
+RDEPEND="media-libs/plib
+ media-libs/libsdl[X,audio,joystick,opengl,video]
+ portaudio? ( media-libs/portaudio )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-buildsystem.patch
+
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_with poraudio) $(use_with sdl)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS HISTORY NEWS README || die
+
+ prepgamesdirs
+}
--- /dev/null
+--- crrcsim-0.9.11/configure.ac
++++ crrcsim-0.9.11/configure.ac
+@@ -79,8 +79,12 @@
+ dnl Default is: no portaudio present
+ portaudio=0
+
++AC_ARG_WITH([portaudio], AS_HELP_STRING([--without-portaudio], [Build without portaudio library (default: test)]))
++
++AS_IF([test "x$with_portaudio" != "xno"], [
+ dnl Check for the Portaudio header file
+ AC_CHECK_HEADER([portaudio.h])
++])
+
+ if (test "x$ac_cv_header_portaudio_h" = "xyes"); then
+ dnl Check for Portaudio 18
+@@ -116,9 +120,11 @@
+ fi
+ AC_SUBST(PA_LIBS)
+
++AC_ARG_WITH([sdl], AS_HELP_STRING([--without-sdl], [Build without sdl library (default: test)]))
+ dnl Search for SDL 1.2.5 or newer
+ SDL_VERSION=1.2.5
+ sdl_mousewheel="yes (SDL >= 1.2.5)"
++AS_IF([test "x$with_foo" != "xno"], [
+ AM_PATH_SDL($SDL_VERSION,:,AC_MSG_NOTICE([*** SDL version $SDL_VERSION or newer not found! See if at least 1.2.0 is present...]))
+ if test "x$no_sdl" = "xyes"
+ then
+@@ -129,6 +135,10 @@
+ AC_DEFINE([SDL_WITHOUT_MOUSEWHEEL], [1], [SDL < 1.2.5 did not feature mousewheel button macros])
+ sdl_mousewheel="no (SDL < 1.2.5)"
+ fi
++])
++AS_IF([test "x$with_foo" != "xyes"], [
++ AC_DEFINE([SDL_WITHOUT_MOUSEWHEEL], [1], [SDL disabled])
++])
+ AC_SUBST(SDL_LIBS)
+ AC_SUBST(SDL_CFLAGS)
+
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<maintainer>
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
+