|
|
KEYWORDS="-amd64 ~x86" | KEYWORDS="-amd64 ~x86" |
IUSE="" | IUSE="" |
| |
RDEPEND="sys-libs/zlib |
RDEPEND=">=x11-libs/gtk+-2 |
>=x11-libs/gtk+-2 |
|
media-libs/libsdl" | media-libs/libsdl" |
DEPEND="${RDEPEND} | DEPEND="${RDEPEND} |
dev-util/pkgconfig" | dev-util/pkgconfig" |
|
|
epatch "${FILESDIR}/${PN}-gentoo.patch" | epatch "${FILESDIR}/${PN}-gentoo.patch" |
| |
cd "${S}" | cd "${S}" |
|
rm {plugins,save}/empty |
| |
sed -i "s:#undef WITH_HOME:#define WITH_HOME \"/usr/games/\":" config.h \ |
sed -i "s:#undef WITH_HOME:#define WITH_HOME \"${GAMES_PREFIX}/\":" \ |
|| die "sed failed" |
config.h || die "sed failed" |
| |
sed -i \ | sed -i \ |
|
-e '/strip/d' \ |
-e "s:CFLAGS.*=\(.*\):CFLAGS=-fPIC ${CFLAGS}:" \ | -e "s:CFLAGS.*=\(.*\):CFLAGS=-fPIC ${CFLAGS}:" \ |
-e "s:CXXFLAGS.*=\(.*\):CXXFLAGS=-fPIC ${CXXFLAGS}:" \ | -e "s:CXXFLAGS.*=\(.*\):CXXFLAGS=-fPIC ${CXXFLAGS}:" \ |
Makefile \ | Makefile \ |
|
|
} | } |
| |
src_compile() { | src_compile() { |
emake mupen64 || die "emake failed on $d" |
emake mupen64 && \ |
emake mupen64_nogui || die "emake failed" |
emake mupen64_nogui && \ |
emake plugins/mupen64_input.so || die "emake failed" |
emake plugins/mupen64_input.so && \ |
emake plugins/mupen64_hle_rsp_azimer.so || die "emake failed" |
emake plugins/mupen64_hle_rsp_azimer.so && \ |
emake plugins/dummyaudio.so || die "emake failed" |
emake plugins/dummyaudio.so && \ |
emake plugins/mupen64_audio.so || die "emake failed" |
emake plugins/mupen64_audio.so && \ |
emake plugins/mupen64_soft_gfx.so || die "emake failed" | emake plugins/mupen64_soft_gfx.so || die "emake failed" |
} | } |
| |
src_install() { | src_install() { |
local dir=${GAMES_LIBDIR}/${PN} |
insinto "${GAMES_LIBDIR}"/${PN} |
|
doins -r ${PN}.ini lang plugins roms || die "doins failed" |
exeinto "${GAMES_BINDIR}" |
|
doexe mupen64 || die "doexe failed" |
dogamesbin ${PN}{,_nogui} || die "dogamesbin failed" |
doexe mupen64_nogui || die "doexe failed" |
dodoc whatsnew.txt doc/readme.pdf |
|
|
insinto "${dir}" |
|
doins mupen64.ini || "doins failed" |
|
|
|
dodir ${dir}/save |
|
|
|
cp -r lang roms plugins "${D}/${dir}/" \ |
|
|| die "cp failed" |
|
|
|
rm "${D}/${dir}/plugins/empty" |
|
dodoc *.txt |
|
cp doc/readme.pdf "${D}/usr/share/doc/${PF}" |
|
| |
|
dodir "${GAMES_LIBDIR}"/${PN}/save |
prepgamesdirs | prepgamesdirs |
} | } |
| |
pkg_postinst() { | pkg_postinst() { |
games_pkg_postinst | games_pkg_postinst |
echo | echo |
ewarn "If you are upgrading from previous version of mupen64" |
ewarn "If you are upgrading from a previous version of mupen64," |
ewarn "backup your saved games then do a rm -rf on your" |
ewarn "backup your saved games then run rm -rf on your" |
ewarn ".mupen64 directory. After launching then new mupen copy" |
ewarn ".mupen64 directory. After launching the new version, copy" |
ewarn "your saved games to the original place." |
ewarn "your saved games to their original place." |
echo | echo |
} | } |