From 3bac1f9c6c02cbe30f4fbed37366482fcc687e03 Mon Sep 17 00:00:00 2001 From: tobigun Date: Mon, 11 May 2009 19:59:01 +0000 Subject: - Package flags (FLAGS / LIBRARY_FLAGS) - -k"-U sdl_main" for Mac OS X defined as SDL package LIBRARY_FLAG - plugins moved to game/plugins - BUILD_PLUGINS option added to disable plugin creation (if linking of libraries fails) - PASCAL_FLAGS_... added git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1722 b956fd51-792f-4845-bead-9b4dfca2ff2c --- cmake/dists/gentoo/ultrastardx-9999.ebuild | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'cmake/dists/gentoo') diff --git a/cmake/dists/gentoo/ultrastardx-9999.ebuild b/cmake/dists/gentoo/ultrastardx-9999.ebuild index 7b092919..b1ffb5a4 100644 --- a/cmake/dists/gentoo/ultrastardx-9999.ebuild +++ b/cmake/dists/gentoo/ultrastardx-9999.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header $ -inherit subversion eutils games +inherit subversion cmake-utils games SONGS_PKG=USDX-SongPackage SONGS_VER=01 @@ -34,7 +34,7 @@ RDEPEND="virtual/opengl projectm? ( media-libs/libprojectm )" DEPEND="${RDEPEND} dev-util/pkgconfig - >=dev-lang/fpc-2.2.0" + >=dev-lang/fpc-2.2.2" S=${WORKDIR}/${P}-src @@ -50,10 +50,22 @@ src_unpack() { } src_compile() { - egamesconf \ - $(use_with projectm libprojectM) \ - $(use_enable debug) \ - || die + if use projectm ; then + enable_projectm="ON" + else + enable_projectm="OFF" + fi + if use debug ; then + build_type="Debug" + else + build_type="Release" + fi + cmake \ + -DCMAKE_BUILD_TYPE=$build_type \ + -DENABLE_PROJECTM=$enable_projectm \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + . \ + || die "cmake failed" emake || die "emake failed" } -- cgit v1.2.3