[packages/atari++] - new - make patch to get verbose build and use our CXXFLAGS/LDFLAGS

qboosh qboosh at pld-linux.org
Fri Jan 15 18:34:32 CET 2021


commit 0c9ed89387594665eee833639e5f8f1b2cdaa696
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jan 15 18:34:29 2021 +0100

    - new
    - make patch to get verbose build and use our CXXFLAGS/LDFLAGS

 atari++-make.patch | 46 +++++++++++++++++++++++++++++++++++++++
 atari++.spec       | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 109 insertions(+)
---
diff --git a/atari++.spec b/atari++.spec
new file mode 100644
index 0000000..522a2cc
--- /dev/null
+++ b/atari++.spec
@@ -0,0 +1,63 @@
+Summary:	Versatile extended emulator of Atari 8-bit machines
+Summary(pl.UTF-8):	Wszechstronny, rozszerzony emulator 8-bitowych komputerów Atari
+Name:		atari++
+Version:	1.83
+Release:	1
+License:	THOR Public Licence (MPL-like) or GPL
+Group:		Applications/Emulators
+Source0:	http://www.xl-project.com/download/%{name}_%{version}.tar.gz
+# Source0-md5:	bc357e90d9a2d42471c58d77bccc20d5
+Patch0:		%{name}-make.patch
+URL:		http://www.xl-project.com/
+BuildRequires:	SDL-devel
+BuildRequires:	alsa-lib-devel
+BuildRequires:	libpng-devel
+BuildRequires:	libstdc++-devel
+BuildRequires:	ncurses-devel
+BuildRequires:	xorg-lib-libX11-devel
+BuildRequires:	xorg-lib-libXext-devel
+BuildRequires:	xorg-lib-libXv-devel
+BuildRequires:	zlib-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+atari++ is an emulator for (now rather aged) Atari 8 bit computers. It
+emulates the Atari 800, Atari 400, the 800XL and 600XL, the 65XE and
+130XE and the Atari 5200 Game Console. The emulation is cycle-precise,
+that is "on the fly" modifications of chip registers will be visible
+on the screen immediately, emulating even programs using horizontal
+kernel tricks correctly.
+
+%description -l pl.UTF-8
+atari++ to emulator (już dosyć leciwych) 8-bitowych komputerów Atari.
+Emuluje modele Atari 800, Atari 400, 800XL i 600XL, 65XE i 130XE oraz
+konsole Atari 5200. Emulacja jest dokładna co do cyklu, co oznacza, że
+modyfikowanie "w locie" rejestrów układów będzie widoczne od razu na
+ekranie, dzięki czemu emulacja działa poprawnie nawet w programach
+wykorzystujących sztuczki ze zmianami w środku linii.
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1
+
+%build
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/atari++
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYRIGHT CREDITS README.History README.LEGAL README.licence manual/*.{html,png}
+%attr(755,root,root) %{_bindir}/atari++
+%{_mandir}/man6/atari++.6*
diff --git a/atari++-make.patch b/atari++-make.patch
new file mode 100644
index 0000000..fdd8853
--- /dev/null
+++ b/atari++-make.patch
@@ -0,0 +1,46 @@
+--- atari++/Makefile.atari.orig	2020-03-28 14:10:00.000000000 +0100
++++ atari++/Makefile.atari	2021-01-15 06:15:14.186575705 +0100
+@@ -158,26 +158,22 @@
+ 		[ -s $@ ] || rm -f $@'
+ 
+ %.o: %.cpp %.hpp
+-	@ $(ECHO) "Compiling" $*.cpp
+-	@ $(CXX) $(CFLAGS) $(ADDFLAGS) $*.cpp
++	$(CXX) $(CFLAGS) $(ADDFLAGS) $*.cpp
+ 
+ %.o: %.cpp
+-	@ $(ECHO) "Compiling" $*.cpp
+-	@ $(CXX) $(CFLAGS) $(ADDFLAGS) $*.cpp
++	$(CXX) $(CFLAGS) $(ADDFLAGS) $*.cpp
+ 
+ %.s: %.cpp %.hpp
+-	@ $(ECHO) "Compiling" $*.cpp
+-	@ $(CXX) $(CFLAGS) $(ADDFLAGS) $(OPTIMIZER) $(TOASM) $*.cpp
++	$(CXX) $(CFLAGS) $(ADDFLAGS) $(OPTIMIZER) $(TOASM) $*.cpp
+ 
+ %.s: %.cpp
+-	@ $(ECHO) "Compiling" $*.cpp
+-	@ $(CXX) $(CFLAGS) $(ADDFLAGS) $(OPTIMIZER) $(TOASM) $*.cpp
++	$(CXX) $(CFLAGS) $(ADDFLAGS) $(OPTIMIZER) $(TOASM) $*.cpp
+ 
+ %.asm: %.s
+-	@ c++filt <$*.s >$*.asm
++	c++filt <$*.s >$*.asm
+ 
+ atari++		:	$(OBJECTS)
+-	@ $(LD) $(OBJECTS) $(LDFLAGS) $(LDLIBS) $(ADDLIBS) -o atari++
++	$(LD) $(LDFLAGS) $(OBJECTS) $(LDLIBS) $(ADDLIBS) -o atari++
+ 
+ dox		:	$(SOURCES) $(INCLUDES)
+ 	doxygen Doxyfile
+--- atari++/makefile.in.orig	2020-03-21 18:13:35.000000000 +0100
++++ atari++/makefile.in	2021-01-15 13:00:46.277842226 +0100
+@@ -11,7 +11,7 @@
+ 
+ CXX		= @CXX@
+ MAKEFILE	= makefile
+-CFLAGS		= @CPPFLAGS@ @X_CFLAGS@ @SDL_CFLAGS@ -x c++ -c @WARNING_FLAGS@ #-no-rtti breaks exception handling
++CFLAGS		= @CPPFLAGS@ @CXXFLAGS@ @X_CFLAGS@ @SDL_CFLAGS@ -x c++ -c @WARNING_FLAGS@ #-no-rtti breaks exception handling
+ 
+ OPTIMIZER	= -O3 -DDEBUG_LEVEL=0 -DCHECK_LEVEL=0 @OPTIMIZER_FLAGS@
+ 		  #-fschedule-insns # These give "register spill" errors.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/atari++.git/commitdiff/0c9ed89387594665eee833639e5f8f1b2cdaa696



More information about the pld-cvs-commit mailing list