diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-07-26 14:33:12 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-07-26 14:33:12 +0000 |
commit | 3e61ccc391546f50b7a57f19d9ec3321c4ea4f5c (patch) | |
tree | cc9c1d6f1ec973432450daac9991fe533a9b1e51 /cmake/dists/gentoo/ultrastardx-1.1.0_alpha1.ebuild | |
parent | 9573122ba337c1f5f6b9937b24f7c4ad2aacbe3f (diff) | |
download | usdx-3e61ccc391546f50b7a57f19d9ec3321c4ea4f5c.tar.gz usdx-3e61ccc391546f50b7a57f19d9ec3321c4ea4f5c.tar.xz usdx-3e61ccc391546f50b7a57f19d9ec3321c4ea4f5c.zip |
some cmake changes
- everything finished except mac os x bundle creation
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1930 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | cmake/dists/gentoo/ultrastardx-1.1.0_alpha1.ebuild (renamed from cmake/dists/gentoo/ultrastardx-1.1_alpha.ebuild) | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/cmake/dists/gentoo/ultrastardx-1.1_alpha.ebuild b/cmake/dists/gentoo/ultrastardx-1.1.0_alpha1.ebuild index 7170fcdb..2b2ea032 100644 --- a/cmake/dists/gentoo/ultrastardx-1.1_alpha.ebuild +++ b/cmake/dists/gentoo/ultrastardx-1.1.0_alpha1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header $ -inherit eutils games +inherit cmake-utils games SONGS_PKG=USDX-SongPackage SONGS_VER=01 @@ -19,7 +19,7 @@ LICENSE="GPL-2 )" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="projectm debug songs" +IUSE="projectm debug songs plugins" RDEPEND="virtual/opengl virtual/glu @@ -33,33 +33,46 @@ 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 pkg_setup() { - games_pkg_setup - built_with_use media-libs/libsdl opengl \ - || die "You need to compile media-libs/libsdl with USE=opengl." + games_pkg_setup + built_with_use media-libs/libsdl opengl \ + || die "You need to compile media-libs/libsdl with USE=opengl." } src_compile() { - egamesconf \ - $(use_with projectm libprojectM) \ - $(use_enable debug) \ - || die - emake || die "emake failed" + # set build-type as the "Gentoo" build-type does not work with + # Pascal (no optimization, etc.) + if use debug ; then + CMAKE_BUILD_TYPE="Debug" + else + CMAKE_BUILD_TYPE="Release" + fi + + # set PREFIX so that CMAKE_INSTALL_PREFIX will be set to GAMES_PREFIX + PREFIX="${GAMES_PREFIX}" + + # configure flags + local mycmakeargs="$(cmake-utils_use_enable projectm PROJECTM) \ + $(cmake-utils_use_build plugins PLUGINS) \ + -DBINDIR=${GAMES_BINDIR} \ + -DDATADIR=${GAMES_DATADIR}/${PN}" + + cmake-utils_src_compile } src_install() { - emake DESTDIR="${D}" install || die "emake install failed" + cmake-utils_src_install if use songs; then insinto "${GAMES_DATADIR}"/${PN}/songs doins -r ${WORKDIR}/Songs/* || die "doins songs failed" fi - dodoc AUTHORS.txt ChangeLog.german.txt ChangeLog.txt README.txt + dodoc AUTHORS.txt ChangeLog.GERMAN.txt ChangeLog.txt README.txt doicon icons/${PN}-icon.svg make_desktop_entry ${PN} "UltraStar Deluxe" |