forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eboard: move to github; update to 1.1.3
Attempt to use the right compiler; use Debian's patches and patch for endian.h Playing against crafty engine works as expected.
- Loading branch information
1 parent
4eebd93
commit 4a13e60
Showing
5 changed files
with
104 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- configure 2018-07-31 14:02:19.000000000 -0400 | ||
+++ configure.after 2019-11-12 21:07:10.000000000 -0500 | ||
@@ -6,11 +6,11 @@ | ||
my $prefix = "/usr/local"; | ||
my $package = "eboard"; | ||
my $version = "1.1.3"; | ||
-my $cxx = "g++"; | ||
-my @cxxflags = ("-O6"); | ||
+my $cxx = "$ENV{CXX}"; | ||
my @cxxflagsdbg = ("-ggdb"); | ||
-my @ldflags = ("-lpthread -ldl"); | ||
-my @libs = (); | ||
+my @cxxflags = map { split } join(" ",$ENV{CXXFLAGS}," ",$ENV{CPPFLAGS}); | ||
+my @ldflags = map { split } join($ENV{LDFLAGS}); | ||
+my @libs = ("-lpthread -ldl"); | ||
my $configh = "config.h"; | ||
my $configmake = "config.make"; | ||
my $nls = 1; | ||
@@ -643,9 +643,8 @@ | ||
chomp($x); | ||
@x = split(/ /,$x); | ||
for(@x) { | ||
- push @ldflags, $_; | ||
-} | ||
-push @ldflags, @libs; | ||
+ push @libs, $_; | ||
+ } | ||
|
||
if (!header_check("gtk/gtk.h","gdk/gdkkeysyms.h")) | ||
{ | ||
@@ -701,6 +700,7 @@ | ||
print CONFIGMAKE "CXXFLAGS = @cxxflags\n"; | ||
print CONFIGMAKE "CXXFLAGS_DBG = @cxxflagsdbg\n"; | ||
print CONFIGMAKE "LDFLAGS = @ldflags\n"; | ||
+print CONFIGMAKE "LIBS = @libs\n"; | ||
|
||
print CONFIGMAKE "prefix = \${DESTDIR}$prefix\n"; | ||
print CONFIGMAKE "bindir = \${DESTDIR}$prefix/bin\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- elifekam 2018-07-31 14:02:19.000000000 -0400 | ||
+++ elifekam 2019-11-12 20:54:21.000000000 -0500 | ||
@@ -31,10 +31,10 @@ | ||
debug: eboard.dbg | ||
|
||
eboard: $(OBJS) | ||
- $(CXX) $(LDFLAGS) -o eboard $(OBJS) | ||
+ $(CXX) $(LDFLAGS) -o eboard $(OBJS) $(LIBS) | ||
|
||
eboard.dbg: $(DBG_OBJS) | ||
- $(CXX) $(LDFLAGS) -o eboard.dbg $(DBG_OBJS) | ||
+ $(CXX) $(LDFLAGS) -o eboard.dbg $(DBG_OBJS) $(LIBS) | ||
|
||
dbg_%.o: %.cc $(HEADERS) $(XPMS) | ||
$(CXX) $(CXXFLAGS_DBG) -c $< -o $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- sound.cc 2018-07-31 14:02:19.000000000 -0400 | ||
+++ sound.cc 2019-11-12 20:18:49.000000000 -0500 | ||
@@ -38,7 +38,12 @@ | ||
#include <math.h> | ||
#include <limits.h> | ||
#include <gst/gst.h> | ||
-#include <endian.h> | ||
+ | ||
+#if defined(__APPLE__) && defined(__MACH__) | ||
+# include <machine/endian.h> | ||
+#else | ||
+#include <endian.h> | ||
+#endif | ||
|
||
#include "sound.h" | ||
#include "global.h" |