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.
65 lines
1.4 KiB
65 lines
1.4 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 flag-o-matic
|
||
13 years ago
|
|
||
|
DESCRIPTION="An emulator for the Sega Dreamcast system"
|
||
|
HOMEPAGE="http://www.lxdream.org/"
|
||
|
SRC_URI="http://www.lxdream.org/count.php?file=${P}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
6 years ago
|
# lirc configure option is not recogniced
|
||
|
IUSE="debug profile pulseaudio sdl" #lirc
|
||
|
|
||
|
RDEPEND="
|
||
|
app-misc/lirc
|
||
13 years ago
|
|
||
|
media-libs/alsa-lib
|
||
6 years ago
|
media-libs/libpng:0=
|
||
13 years ago
|
pulseaudio? ( media-sound/pulseaudio )
|
||
11 years ago
|
sdl? ( media-libs/libsdl[sound] )
|
||
13 years ago
|
virtual/opengl
|
||
6 years ago
|
x11-libs/gtk+:2
|
||
|
"
|
||
13 years ago
|
DEPEND="${RDEPEND}
|
||
13 years ago
|
virtual/pkgconfig
|
||
13 years ago
|
sys-devel/gettext
|
||
8 years ago
|
virtual/os-headers
|
||
|
!!gnustep-base/gnustep-gui" #377635
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
|
|
||
|
eapply "${FILESDIR}/${PN}-0.9.1-glib-single-include.patch"
|
||
12 years ago
|
|
||
13 years ago
|
# Make .desktop file pass desktop-file-validate
|
||
|
sed -i \
|
||
|
-e '/Encoding/d' \
|
||
|
-e '/FilePattern/d' \
|
||
|
-e '/Categories/s|$|;|' \
|
||
9 years ago
|
${PN}.desktop || die
|
||
13 years ago
|
# Do not override user-specified CFLAGS
|
||
|
sed -i \
|
||
|
-e s/'CFLAGS=\"-g -fexceptions\"'/'CFLAGS=\"${CFLAGS} -g -fexceptions\"'/ \
|
||
|
-e '/CCOPT/d' \
|
||
|
-e '/OBJCOPT/d' \
|
||
9 years ago
|
configure || die
|
||
|
append-libs -lX11 -lm
|
||
13 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
6 years ago
|
# lirc configure option is not recognized
|
||
|
# $(use_with lirc) \
|
||
|
econf \
|
||
|
--datadir="/usr/share" \
|
||
13 years ago
|
$(use_enable debug trace) \
|
||
|
$(use_enable debug watch) \
|
||
|
$(use_enable profile profiled) \
|
||
|
$(use_with pulseaudio pulse) \
|
||
|
$(use_with sdl) \
|
||
|
--without-esd
|
||
|
}
|