packages: crafty/crafty-Makefile.patch, crafty/crafty-paths.patch - updated
blekot
blekot at pld-linux.org
Mon May 7 22:35:59 CEST 2012
Author: blekot Date: Mon May 7 20:35:59 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- updated
---- Files affected:
packages/crafty:
crafty-Makefile.patch (1.2 -> 1.3) , crafty-paths.patch (1.4 -> 1.5)
---- Diffs:
================================================================
Index: packages/crafty/crafty-Makefile.patch
diff -u packages/crafty/crafty-Makefile.patch:1.2 packages/crafty/crafty-Makefile.patch:1.3
--- packages/crafty/crafty-Makefile.patch:1.2 Sun Nov 18 13:13:11 2007
+++ packages/crafty/crafty-Makefile.patch Mon May 7 22:35:54 2012
@@ -1,11 +1,49 @@
---- ./Makefile.org 2007-11-17 23:27:09.113833335 +0100
-+++ ./Makefile 2007-11-17 23:27:53.999426624 +0100
-@@ -432,7 +432,7 @@ crafty-make:
+--- Makefile.orig 2010-03-06 22:16:20.000000000 +0100
++++ Makefile 2010-03-06 22:38:29.000000000 +0100
+@@ -108,19 +108,19 @@
+ linux-amd64-profile:
+ $(MAKE) target=LINUX \
+ CC=gcc CXX=g++ \
+- CFLAGS='-Wall -pipe -fprofile-arcs -fomit-frame-pointer -O3 -march=k8' \
++ CFLAGS='-Wall -pipe -fprofile-arcs -fomit-frame-pointer -O3' \
+ CXFLAGS='' \
+- LDFLAGS='$(LDFLAGS) -lpthread -lnuma -fprofile-arcs -lstdc++' \
+- opt='$(opt) -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA' \
++ LDFLAGS='$(LDFLAGS) -lpthread -pthreads -fprofile-arcs -lstdc++' \
++ opt='$(opt) -DINLINE64 -DCPUS=8' \
+ crafty-make
+
+ linux-amd64:
+ $(MAKE) target=LINUX \
+ CC=gcc CXX=g++ \
+- CFLAGS='-Wall -pipe -fbranch-probabilities -fomit-frame-pointer -O3 -march=k8' \
++ CFLAGS='-Wall -pipe -fbranch-probabilities -fomit-frame-pointer -O3' \
+ CXFLAGS='' \
+- LDFLAGS='$(LDFLAGS) -lpthread -lnuma -lstdc++' \
+- opt='$(opt) -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA' \
++ LDFLAGS='$(LDFLAGS) -lpthread -pthread -lstdc++' \
++ opt='$(opt) -DINLINE64 -DCPUS=8' \
+ crafty-make
+
+ linux:
+@@ -128,8 +128,8 @@
+ CC=gcc CXX=g++ \
+ CFLAGS='-pg -Wall -pipe' \
+ CXFLAGS='' \
+- LDFLAGS='$(LDFLAGS) -pg -lstdc++ -lpthread' \
+- opt='$(opt) -DTRACE -DINLINE64 -DCPUS=2' \
++ LDFLAGS='$(LDFLAGS) -pg -lstdc++ -pthread -lpthread' \
++ opt='$(opt) -DTRACE -DINLINE32 -DCPUS=2' \
+ crafty-make
+
+ linux-profile:
+@@ -322,7 +322,7 @@
crafty.o: *.c *.h
- crafty: $(objects)
-- $(CC) $(LDFLAGS) -o crafty $(objects) -lm $(LIBS)
-+ $(CXX) $(LDFLAGS) -o crafty $(objects) -lm $(LIBS)
+ crafty: $(objects) egtb.o
+- $(CC) $(LDFLAGS) -o crafty $(objects) egtb.o -lm $(LIBS)
++ $(CXX) $(LDFLAGS) -o crafty $(objects) egtb.o -lm $(LIBS)
- dgt: dgtdrv.o
- @cc -O -o dgt dgtdrv.c
+ egtb.o: egtb.cpp
+ $(CXX) -c $(CXFLAGS) $(opts) egtb.cpp
+
================================================================
Index: packages/crafty/crafty-paths.patch
diff -u packages/crafty/crafty-paths.patch:1.4 packages/crafty/crafty-paths.patch:1.5
--- packages/crafty/crafty-paths.patch:1.4 Sun Nov 18 13:13:11 2007
+++ packages/crafty/crafty-paths.patch Mon May 7 22:35:54 2012
@@ -1,29 +1,38 @@
---- ./chess.h.org 2007-11-18 11:40:45.390602131 +0100
-+++ ./chess.h 2007-11-18 11:42:18.652054921 +0100
-@@ -131,7 +131,7 @@
- # define UNIX /* system is unix-based */
- #endif
- #if !defined(BOOKDIR)
--# define BOOKDIR "."
-+# define BOOKDIR "/usr/share/crafty"
- #endif
- #if !defined(PERSDIR)
- # define PERSDIR "."
-@@ -140,7 +140,7 @@
- # define LOGDIR "."
- #endif
- #if !defined(TBDIR)
--# define TBDIR "./TB"
-+# define TBDIR "/usr/share/crafty/TB"
- #endif
- #if !defined(RCDIR)
- # define RCDIR "."
-@@ -1072,7 +1072,7 @@ extern void WinFreeInterleaved(void *, s
- # include "inlinex86.h"
- #endif
- #if defined(UNIX)
--# define SPEAK "./speak "
-+# define SPEAK "/usr/bin/crafty-speak "
- #else
- # define SPEAK ".\\Speak.exe "
- #endif
+--- chess.h.org 2010-11-08 19:07:43.000000000 +0100
++++ chess.h 2012-05-07 20:13:11.000000000 +0200
+@@ -110,13 +110,13 @@
+ # define UNIX /* system is unix-based */
+ # endif
+ # if !defined(BOOKDIR)
+-# define BOOKDIR "."
++# define BOOKDIR "/usr/share/crafty"
+ # endif
+ # if !defined(LOGDIR)
+ # define LOGDIR "."
+ # endif
+ # if !defined(TBDIR)
+-# define TBDIR "./TB"
++# define TBDIR "/usr/share/crafty/TB"
+ # endif
+ # if !defined(RCDIR)
+ # define RCDIR "."
+@@ -684,7 +684,7 @@
+ # include "inline32.h"
+ # endif
+ # if defined(UNIX)
+-# define SPEAK "./speak "
++# define SPEAK "/usr/bin/crafty-speak "
+ # else
+ # define SPEAK ".\\Speak.exe "
+ # endif
+--- option.c.orig 2010-03-04 03:11:14.000000000 +0100
++++ option.c 2010-03-06 22:15:00.000000000 +0100
+@@ -1038,7 +1038,7 @@
+ char *readstat = (char *) -1;
+ int lines = 0;
+
+- helpfile = fopen("crafty.hlp", "r");
++ helpfile = fopen("/usr/share/crafty/crafty.hlp", "r");
+ if (!helpfile) {
+ printf("ERROR. Unable to open \"crafty.hlp\" -- help unavailable\n");
+ return (1);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/crafty/crafty-Makefile.patch?r1=1.2&r2=1.3
http://cvs.pld-linux.org/packages/crafty/crafty-paths.patch?r1=1.4&r2=1.5
More information about the pld-cvs-commit
mailing list