[packages/einstein] Rel 4

arekm arekm at pld-linux.org
Thu May 21 15:30:47 CEST 2026


commit 3b27c2e6196c98fe0a20502e26e95e091423422c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 15:30:29 2026 +0200

    Rel 4

 einstein-makefile.patch | 24 ++++++++++++++++++++++--
 einstein.spec           |  5 +++--
 2 files changed, 25 insertions(+), 4 deletions(-)
---
diff --git a/einstein.spec b/einstein.spec
index 56e445b..8a95078 100644
--- a/einstein.spec
+++ b/einstein.spec
@@ -2,7 +2,7 @@ Summary:	An implementation of Albert Einstein's puzzle
 Summary(pl.UTF-8):	Implementacja gry logicznej Alberta Einsteina
 Name:		einstein
 Version:	2.0
-Release:	3
+Release:	4
 License:	GPL
 Group:		X11/Applications/Games
 Source0:	http://games.flowix.com/files/einstein/%{name}-%{version}-src.tar.gz
@@ -35,7 +35,8 @@ podpowiedzi opisujących relacje pomiędzy poszczególnymi kartami.
 %build
 %{__make} \
 	CXX="%{__cxx}" \
-	OPTIMIZE="%{rpmcflags}"
+	LDFLAGS="%{rpmldflags}" \
+	OPTIMIZE="%{rpmcppflags} %{rpmcxxflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/einstein-makefile.patch b/einstein-makefile.patch
index 23e4160..aafafd1 100644
--- a/einstein-makefile.patch
+++ b/einstein-makefile.patch
@@ -1,5 +1,5 @@
 --- einstein-2.0/Makefile~	2005-09-25 23:20:30.000000000 +0200
-+++ einstein-2.0/Makefile	2006-10-12 18:30:03.000000000 +0200
++++ einstein-2.0/Makefile	2026-05-21 01:23:18.722581997 +0200
 @@ -5,7 +5,7 @@
  ########################################
  
@@ -9,13 +9,33 @@
  
  ########################################
  #
+@@ -16,8 +16,8 @@
+ OPTIMIZE=#-O6 -march=pentium4 -mfpmath=sse -fomit-frame-pointer -funroll-loops
+ PROFILER=#-pg
+ DEBUG=#-ggdb
+-CXXFLAGS=-pipe -Wall $(OPTIMIZE) $(DEBUG) `sdl-config --cflags` -DPREFIX=L\"$(PREFIX)\" $(PROFILER)
+-LNFLAGS=-pipe -lSDL_ttf -lfreetype `sdl-config --libs` -lz -lSDL_mixer $(PROFILER)
++CXXFLAGS+=-pipe -Wall $(OPTIMIZE) $(DEBUG) `sdl-config --cflags` -DPREFIX=L\"$(PREFIX)\" $(PROFILER)
++LNFLAGS+=-pipe $(LDFLAGS) -lSDL_ttf -lfreetype `sdl-config --libs` -lz -lSDL_mixer $(PROFILER)
+ INSTALL=install
+ 
+ TARGET=einstein
+@@ -49,7 +49,7 @@
+ 
+ 
+ $(TARGET): $(OBJECTS)
+-	$(CXX) $(LNFLAGS) $(OBJECTS) -o $(TARGET)
++	$(CXX) $(OBJECTS) $(LNFLAGS) -o $(TARGET)
+ 
+ clean:
+ 	rm -f $(OBJECTS) core* *core $(TARGET) *~
 @@ -61,8 +61,8 @@
  	./$(TARGET)
  
  install: $(TARGET)
 -	$(INSTALL) -s -D $(TARGET) $(PREFIX)/bin/$(TARGET)
 -	$(INSTALL) -D einstein.res $(PREFIX)/share/einstein/res/einstein.res
-+	$(INSTALL) -s -D $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
++	$(INSTALL) -D $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
 +	$(INSTALL) -D einstein.res $(DESTDIR)$(PREFIX)/share/einstein/res/einstein.res
  	
  # DO NOT DELETE THIS LINE -- make depend depends on it.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/einstein.git/commitdiff/3b27c2e6196c98fe0a20502e26e95e091423422c



More information about the pld-cvs-commit mailing list