Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37558782
en ru br
ALT Linux repositórios
S:2.5-alt1

Group :: Emuladores
RPM: mupen64plus

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: mupen64plus
Version: 2.5
Release: alt1
Packager: Ilya Mashkin <oddity at altlinux.ru>
Summary: Nintendo 64 Emulator
License: GPLv2+ and CC-BY-SA
Group: Emulators
Url: http://www.mupen64plus.org/
Source: https://github.com/mupen64plus/mupen64plus-core/releases/download/2.5/mupen64plus-bundle-src-2.5.tar.gz
Patch5: mupen64plus-multiple-definitions.patch
Patch6: mupen64plus-make-archs.patch

BuildRequires: pkgconfig(SDL_ttf)
BuildRequires: pkgconfig(lirc)
BuildRequires: desktop-file-utils
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(freetype2)
BuildRequires: boost-devel
BuildRequires: gzip
BuildRequires: pkgconfig(glew)
BuildRequires: binutils
BuildRequires: gcc-c++ boost-filesystem-devel

Requires: hicolor-icon-theme
ExcludeArch: armh


%description
Mupen64plus is a Nintendo 64 Emulator.
This package includes all the plug-ins.

%package devel
Summary: Development files for mupen64plus
Requires: %name = %version-%release
Group: Emulators

%description devel
Development files for mupen64plus

%prep
%setup -n %name-bundle-src-%version
%patch5 -p1
%patch6 -p1

# Need to avoid filename conflicts so they can be included in the package

cp -a source/mupen64plus-rsp-hle/LICENSES LICENSE-rsp-hle
cp -a source/mupen64plus-rom/mupen64plus/assets/LICENSES LICENSE-assets
cp -a source/mupen64plus-rom/LICENSES LICENSE-rom
cp -a source/mupen64plus-input-sdl/LICENSES LICENSE-input-sdl
cp -a source/mupen64plus-video-glide64mk2/LICENSES LICENSE-video-glide64mk2
cp -a source/mupen64plus-video-rice/LICENSES LICENSE-video-rice
cp -a source/mupen64plus-ui-console/LICENSES LICENSE-ui-console
cp -a source/mupen64plus-core/LICENSES LICENSE-core
cp -a source/mupen64plus-audio-sdl/LICENSES LICENSE-audio-sdl

%build
# Architecture build flags
ADDITIONAL_FLAGS=""
if [[ "$(uname -m)" = arm* ]] ; then
ADDITIONAL_FLAGS="NEON=1 VFP_HARD=1 NO_SSE=1"
elif [[ "$(uname -m)" = aarch64 ]] ; then
ADDITIONAL_FLAGS="NO_SSE=1"
elif [[ "$(uname -m)" = ppc* ]] ; then
ADDITIONAL_FLAGS="NO_SSE=1"
fi

export CFLAGS="%optflags"
export CXXFLAGS="%optflags"
export LDFLAGS="%{?__global_ldflags} -fPIE -fPIC"

sh m64p_build.sh LIRC=1 $ADDITIONAL_FLAGS

%install
# NOTE: set LDCONFIG to true so it's not run during this script
./m64p_install.sh DESTDIR=%buildroot PREFIX=%prefix MANDIR=%_mandir LIBDIR=%_libdir DEBUG=1 LDCONFIG='true'
find %buildroot%_libdir -type f -name "*.so*" -exec chmod 0755 "{}" \;

# NOTE: The build system should probably create this...

ln -sf %_libdir/libmupen64plus.so.2.0.0 %buildroot%_libdir/libmupen64plus.so

desktop-file-validate %buildroot/%_datadir/applications/mupen64plus.desktop


%files
%_bindir/%name
%_libdir/%name/
%_libdir/libmupen64plus.so.2
%_libdir/libmupen64plus.so.2.0.0
%_datadir/%name/
%_datadir/applications/mupen64plus.desktop
%_datadir/icons/hicolor/48x48/apps/mupen64plus.png
%_datadir/icons/hicolor/scalable/apps/mupen64plus.svg
%_mandir/man6/mupen64plus.6.*
%doc LICENSE-rsp-hle LICENSE-assets LICENSE-rom LICENSE-input-sdl LICENSE-video-glide64mk2 LICENSE-video-rice LICENSE-core LICENSE-audio-sdl

%files devel
%_includedir/mupen64plus/
%_libdir/libmupen64plus.so

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009