You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.2 KiB
63 lines
1.2 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
|
inherit autotools desktop flag-o-matic
|
||
13 years ago
|
|
||
|
DESCRIPTION="SDL/OpenGL space shoot'em up game"
|
||
|
HOMEPAGE="http://criticalmass.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/criticalmass/CriticalMass-${PV}.tar.bz2"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
IUSE=""
|
||
|
|
||
6 years ago
|
RDEPEND="
|
||
|
media-libs/sdl-mixer
|
||
13 years ago
|
media-libs/sdl-image[png]
|
||
6 years ago
|
media-libs/libpng:0=
|
||
13 years ago
|
virtual/opengl
|
||
6 years ago
|
net-misc/curl
|
||
|
"
|
||
|
DEPEND="${RDEPEND}"
|
||
13 years ago
|
|
||
6 years ago
|
S="${WORKDIR}/CriticalMass-${PV}"
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
|
|
||
|
eapply "${FILESDIR}"/${P}-gcc43.patch \
|
||
13 years ago
|
"${FILESDIR}"/${P}-system_curl.patch \
|
||
|
"${FILESDIR}"/${P}-libpng14.patch \
|
||
|
"${FILESDIR}"/${P}-cflags.patch \
|
||
|
"${FILESDIR}"/${P}-libpng15.patch
|
||
6 years ago
|
|
||
13 years ago
|
rm -rf curl
|
||
6 years ago
|
|
||
|
mv configure.in configure.ac || die
|
||
13 years ago
|
eautoreconf
|
||
|
}
|
||
|
|
||
7 years ago
|
src_configure() {
|
||
|
append-cxxflags -std=gnu++98 # Bug 612758
|
||
|
default
|
||
|
}
|
||
|
|
||
13 years ago
|
src_install() {
|
||
6 years ago
|
HTML_DOCS="Readme.html"
|
||
10 years ago
|
default
|
||
6 years ago
|
rm -f "${ED}/usr/bin/Packer"
|
||
13 years ago
|
newicon critter.png ${PN}.png
|
||
|
make_desktop_entry critter "Critical Mass"
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
12 years ago
|
if ! has_version "media-libs/sdl-mixer[mod]" ; then
|
||
13 years ago
|
ewarn
|
||
|
ewarn "To hear music, you will have to rebuild media-libs/sdl-mixer"
|
||
12 years ago
|
ewarn "with the \"mod\" USE flag turned on."
|
||
13 years ago
|
ewarn
|
||
|
fi
|
||
|
}
|