mirror of https://github.com/stella-emu/stella.git
Updated some UNIX/Linux build related items.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1128 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
8a740e1605
commit
6205ff2b69
|
@ -13,7 +13,7 @@
|
||||||
## See the file "license" for information on usage and redistribution of
|
## See the file "license" for information on usage and redistribution of
|
||||||
## this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
## this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
##
|
##
|
||||||
## $Id: Makefile,v 1.27 2006-09-08 00:44:19 stephena Exp $
|
## $Id: Makefile,v 1.28 2006-09-08 14:35:20 stephena Exp $
|
||||||
##
|
##
|
||||||
## Based on code from ScummVM - Scumm Interpreter
|
## Based on code from ScummVM - Scumm Interpreter
|
||||||
## Copyright (C) 2002-2004 The ScummVM project
|
## Copyright (C) 2002-2004 The ScummVM project
|
||||||
|
@ -175,7 +175,11 @@ install: all
|
||||||
$(INSTALL) -d "$(DESTDIR)$(DOCDIR)/graphics"
|
$(INSTALL) -d "$(DESTDIR)$(DOCDIR)/graphics"
|
||||||
$(INSTALL) -c -m 644 "$(srcdir)/docs/graphics/chucky_cheese.png" "$(srcdir)/docs/graphics/circuit.png" "$(srcdir)/docs/graphics/console.png" "$(srcdir)/docs/graphics/eventmapping.png" "$(srcdir)/docs/graphics/eventmapping_remap.png" "$(srcdir)/docs/graphics/jr_pacman.png" "$(srcdir)/docs/graphics/launcher_options_rom.png" "$(srcdir)/docs/graphics/launcher_options_snap.png" "$(srcdir)/docs/graphics/launcher.png" "$(srcdir)/docs/graphics/options_about.png" "$(srcdir)/docs/graphics/options_audio.png" "$(srcdir)/docs/graphics/options_gameinfo.png" "$(srcdir)/docs/graphics/options_help.png" "$(srcdir)/docs/graphics/options_video.png" "$(srcdir)/docs/graphics/pacman.png" "$(srcdir)/docs/graphics/rom_browser.png" "$(srcdir)/docs/graphics/secret_quest.png" "$(srcdir)/docs/graphics/space_invaders.png" "$(DESTDIR)$(DOCDIR)/graphics"
|
$(INSTALL) -c -m 644 "$(srcdir)/docs/graphics/chucky_cheese.png" "$(srcdir)/docs/graphics/circuit.png" "$(srcdir)/docs/graphics/console.png" "$(srcdir)/docs/graphics/eventmapping.png" "$(srcdir)/docs/graphics/eventmapping_remap.png" "$(srcdir)/docs/graphics/jr_pacman.png" "$(srcdir)/docs/graphics/launcher_options_rom.png" "$(srcdir)/docs/graphics/launcher_options_snap.png" "$(srcdir)/docs/graphics/launcher.png" "$(srcdir)/docs/graphics/options_about.png" "$(srcdir)/docs/graphics/options_audio.png" "$(srcdir)/docs/graphics/options_gameinfo.png" "$(srcdir)/docs/graphics/options_help.png" "$(srcdir)/docs/graphics/options_video.png" "$(srcdir)/docs/graphics/pacman.png" "$(srcdir)/docs/graphics/rom_browser.png" "$(srcdir)/docs/graphics/secret_quest.png" "$(srcdir)/docs/graphics/space_invaders.png" "$(DESTDIR)$(DOCDIR)/graphics"
|
||||||
$(INSTALL) -d "$(DESTDIR)$(DATADIR)/icons"
|
$(INSTALL) -d "$(DESTDIR)$(DATADIR)/icons"
|
||||||
|
$(INSTALL) -d "$(DESTDIR)$(DATADIR)/icons/mini"
|
||||||
|
$(INSTALL) -d "$(DESTDIR)$(DATADIR)/icons/large"
|
||||||
$(INSTALL) -c -m 644 "$(srcdir)/src/common/stella.xpm" "$(DESTDIR)$(DATADIR)/icons"
|
$(INSTALL) -c -m 644 "$(srcdir)/src/common/stella.xpm" "$(DESTDIR)$(DATADIR)/icons"
|
||||||
|
$(INSTALL) -c -m 644 "$(srcdir)/src/common/stella.xpm" "$(DESTDIR)$(DATADIR)/icons/mini"
|
||||||
|
$(INSTALL) -c -m 644 "$(srcdir)/src/common/stella.xpm" "$(DESTDIR)$(DATADIR)/icons/large"
|
||||||
|
|
||||||
install-strip: install
|
install-strip: install
|
||||||
strip stella$(EXEEXT)
|
strip stella$(EXEEXT)
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//
|
//
|
||||||
// $Id: FrameBufferGL.cxx,v 1.61 2006-04-12 13:32:06 stephena Exp $
|
// $Id: FrameBufferGL.cxx,v 1.62 2006-09-08 14:35:20 stephena Exp $
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#ifdef DISPLAY_OPENGL
|
#ifdef DISPLAY_OPENGL
|
||||||
|
@ -267,6 +267,8 @@ bool FrameBufferGL::createScreen()
|
||||||
SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, myRGB[2] );
|
SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, myRGB[2] );
|
||||||
SDL_GL_SetAttribute( SDL_GL_ALPHA_SIZE, myRGB[3] );
|
SDL_GL_SetAttribute( SDL_GL_ALPHA_SIZE, myRGB[3] );
|
||||||
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
|
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
|
||||||
|
// SDL_GL_SetAttribute( SDL_GL_ACCELERATED_VISUAL, 1 );
|
||||||
|
// SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL, 0 );
|
||||||
|
|
||||||
// Set the screen coordinates
|
// Set the screen coordinates
|
||||||
GLdouble orthoWidth = 0.0;
|
GLdouble orthoWidth = 0.0;
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
%define enable_static 0
|
%define enable_static 0
|
||||||
|
|
||||||
%if %build_plf
|
%if %build_plf
|
||||||
%define release %mkrel %{rel}
|
%define release %mkrel %rel
|
||||||
%define distsuffix plf
|
%define distsuffix plf
|
||||||
%else
|
%else
|
||||||
%define release %{rel}
|
%define release %rel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Summary: An Atari 2600 Video Computer System emulator
|
Summary: An Atari 2600 Video Computer System emulator
|
||||||
|
@ -50,7 +50,7 @@ This package is in PLF as Mandriva Linux policy forbids emulators in contribs.
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CXXFLAGS=$RPM_OPT_FLAGS
|
export CXXFLAGS=$RPM_OPT_FLAGS
|
||||||
./configure \
|
%configure \
|
||||||
%if %enable_gl
|
%if %enable_gl
|
||||||
--enable-gl \
|
--enable-gl \
|
||||||
%else
|
%else
|
||||||
|
@ -86,16 +86,15 @@ export CXXFLAGS=$RPM_OPT_FLAGS
|
||||||
%else
|
%else
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
%endif
|
%endif
|
||||||
--prefix=%{_prefix} \
|
--docdir=%{_docdir}/stella \
|
||||||
--bindir=%{_bindir} \
|
|
||||||
--docdir=%{_docdir}/stella-%{version} \
|
|
||||||
--datadir=%{_datadir} \
|
|
||||||
--x-libraries=%{_prefix}/X11R6/%{_lib}
|
--x-libraries=%{_prefix}/X11R6/%{_lib}
|
||||||
|
|
||||||
%make
|
%make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install-strip DESTDIR=%{buildroot}
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
make install-strip DESTDIR=%{buildroot}
|
||||||
# Mandriva menu entries
|
# Mandriva menu entries
|
||||||
install -d -m0755 %{buildroot}%{_menudir}
|
install -d -m0755 %{buildroot}%{_menudir}
|
||||||
cat > %{buildroot}%{_menudir}/%{name} << EOF
|
cat > %{buildroot}%{_menudir}/%{name} << EOF
|
||||||
|
@ -104,8 +103,26 @@ icon="stella.xpm" \
|
||||||
needs="x11" \
|
needs="x11" \
|
||||||
title="Stella" \
|
title="Stella" \
|
||||||
longtitle="A multi-platform Atari 2600 emulator" \
|
longtitle="A multi-platform Atari 2600 emulator" \
|
||||||
section="Applications/Emulators"
|
section="More Applications/Emulators" \
|
||||||
|
xdg="true"
|
||||||
EOF
|
EOF
|
||||||
|
# Todo - make this part of the main package
|
||||||
|
install -d -m0755 %{buildroot}%{_datadir}/applications
|
||||||
|
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
|
||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=Stella
|
||||||
|
Comment=A multi-platform Atari 2600 emulator
|
||||||
|
Exec=%{_bindir}/%{name}
|
||||||
|
Icon=stella.xpm
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=Application;Emulator;
|
||||||
|
EOF
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%update_menus
|
%update_menus
|
||||||
|
@ -113,23 +130,26 @@ EOF
|
||||||
%postun
|
%postun
|
||||||
%clean_menus
|
%clean_menus
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %buildroot
|
|
||||||
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%_bindir/*
|
%_bindir/*
|
||||||
%{_menudir}/%{name}
|
%{_menudir}/%{name}
|
||||||
%_docdir/stella-%{version}/*
|
%{_datadir}/applications/%{name}.desktop
|
||||||
%_datadir/icons/*
|
%_docdir/stella/*
|
||||||
|
%_datadir/icons/%{name}.xpm
|
||||||
|
%_datadir/icons/mini/%{name}.xpm
|
||||||
|
%_datadir/icons/large/%{name}.xpm
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Apr 06 2006 Stephen Anthony <stephena@zarb.org> 2.2-1
|
* Fri Sep 08 2006 Stephen Anthony <stephena@zarb.org> 2.2-1plf2007.0
|
||||||
- Version 2.2 release
|
- Packaged 2.2 release for PLF
|
||||||
|
- Added XDG menu
|
||||||
|
|
||||||
* Sat Jan 28 2006 Stephen Anthony <stephena@zarb.org> 2.1-1
|
* Sat Oct 29 2005 Stephen Anthony <stephena@zarb.org> 2.0.1-3plf
|
||||||
- Version 2.1 release
|
- Fix for x86_64 compilation
|
||||||
|
|
||||||
|
* Wed Oct 26 2005 Stephen Anthony <stephena@zarb.org> 2.0.1-2plf
|
||||||
|
- Fix for improper PLF upload
|
||||||
|
|
||||||
* Sun Oct 24 2005 Stephen Anthony <stephena@zarb.org> 2.0.1-1
|
* Sun Oct 24 2005 Stephen Anthony <stephena@zarb.org> 2.0.1-1
|
||||||
- Version 2.0.1 release, and plaform-agnostic SRPM (hopefully)
|
- Version 2.0.1 release, and plaform-agnostic SRPM (hopefully)
|
||||||
|
|
Loading…
Reference in New Issue