diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-engines/scummvm | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-engines/scummvm')
-rw-r--r-- | games-engines/scummvm/Manifest | 1 | ||||
-rw-r--r-- | games-engines/scummvm/metadata.xml | 13 | ||||
-rw-r--r-- | games-engines/scummvm/scummvm-1.7.0-r2.ebuild | 110 |
3 files changed, 124 insertions, 0 deletions
diff --git a/games-engines/scummvm/Manifest b/games-engines/scummvm/Manifest new file mode 100644 index 000000000000..c25de0bc3a79 --- /dev/null +++ b/games-engines/scummvm/Manifest @@ -0,0 +1 @@ +DIST scummvm-1.7.0.tar.bz2 20018016 SHA256 d9ff0e8cf911afa466d5456d28fef692a17d47ddecfd428bf2fef591237c2e66 SHA512 0133feb2df58461fb0e42b1e84cfb309bd964dad239f7ca0c7529edd4f4716895a45491e31597ec6f6d17361b0ce8f73c317399db07a1249b2ab570e4829000e WHIRLPOOL 077eb74cf46dfb15eaa2d473b627d953bc8e13bd0ae87a4fdc16282e468cf237bd9173b761cc9f89b9d6a13ce76db40aa67d5092e2e77eba2a0c6dab097b0fb4 diff --git a/games-engines/scummvm/metadata.xml b/games-engines/scummvm/metadata.xml new file mode 100644 index 000000000000..f61ea7f15ced --- /dev/null +++ b/games-engines/scummvm/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="fluidsynth">compile with support for fluidsynth</flag> + <flag name="mpeg2">enable mpeg2 codec for cutscenes</flag> + <flag name="unsupported">enable unsupported and/or broken game engines (you're on your own)</flag> + </use> + <upstream> + <remote-id type="sourceforge">scummvm</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-engines/scummvm/scummvm-1.7.0-r2.ebuild b/games-engines/scummvm/scummvm-1.7.0-r2.ebuild new file mode 100644 index 000000000000..dfa2bc89ba8e --- /dev/null +++ b/games-engines/scummvm/scummvm-1.7.0-r2.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic gnome2-utils toolchain-funcs games + +DESCRIPTION="Reimplementation of the SCUMM game engine used in Lucasarts adventures" +HOMEPAGE="http://scummvm.sourceforge.net/" +SRC_URI="mirror://sourceforge/scummvm/${P/_/}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1 BSD GPL-3-with-font-exception" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd" +IUSE="aac alsa debug flac fluidsynth jpeg mpeg2 mp3 opengl png theora truetype unsupported vorbis zlib" +RESTRICT="test" # it only looks like there's a test there #77507 + +RDEPEND=">=media-libs/libsdl-1.2.2[sound,joystick,video] + zlib? ( sys-libs/zlib ) + jpeg? ( virtual/jpeg:0 ) + png? ( media-libs/libpng:0 ) + vorbis? ( media-libs/libogg media-libs/libvorbis ) + theora? ( media-libs/libtheora ) + aac? ( media-libs/faad2 ) + alsa? ( media-libs/alsa-lib ) + mp3? ( media-libs/libmad ) + mpeg2? ( media-libs/libmpeg2 ) + flac? ( media-libs/flac ) + opengl? ( virtual/opengl ) + truetype? ( media-libs/freetype:2 ) + fluidsynth? ( media-sound/fluidsynth )" +DEPEND="${RDEPEND} + x86? ( dev-lang/nasm )" + +S=${WORKDIR}/${P/_/} + +src_prepare() { + # -g isn't needed for nasm here + sed -i \ + -e '/NASMFLAGS/ s/-g//' \ + configure || die + sed -i \ + -e '/INSTALL.*doc/d' \ + -e '/INSTALL.*\/pixmaps/d' \ + -e 's/-s //' \ + ports.mk || die +} + +src_configure() { + local myconf + + # bug #137547 + use fluidsynth || myconf="${myconf} --disable-fluidsynth" + + use x86 && append-ldflags -Wl,-z,noexecstack + + # NOT AN AUTOCONF SCRIPT SO DONT CALL ECONF + ./configure \ + --backend=sdl \ + --host=$CHOST \ + --enable-verbose-build \ + --prefix=/usr \ + --bindir="${GAMES_BINDIR}" \ + --datadir="${GAMES_DATADIR}"/${PN} \ + --libdir="${GAMES_LIBDIR}" \ + --enable-zlib \ + $(use_enable debug) \ + $(use_enable !debug release-mode) \ + $(use_enable zlib) \ + $(use_enable aac faad) \ + $(use_enable alsa) \ + $(use_enable jpeg) \ + $(use_enable png) \ + $(use_enable mp3 mad) \ + $(use_enable mpeg2) \ + $(use_enable flac) \ + $(use_enable opengl) \ + $(use_enable vorbis) \ + $(use_enable theora theoradec) \ + $(use_enable truetype freetype2) \ + $(use_enable x86 nasm) \ + $(use unsupported && echo --enable-all-engines) \ + ${myconf} ${EXTRA_ECONF} || die +} + +src_compile() { + emake AR="$(tc-getAR) cru" RANLIB=$(tc-getRANLIB) +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS NEWS README TODO + doicon -s scalable icons/scummvm.svg + make_desktop_entry scummvm ScummVM scummvm "Game;AdventureGame" + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |