Merge pull request #5475 from cipr3s/eboard

New package: eboard-1.1.1
This commit is contained in:
Toyam Cox 2017-01-09 18:45:07 -05:00 committed by GitHub
commit a782be0af3
4 changed files with 97 additions and 0 deletions

View File

@ -0,0 +1,16 @@
--- cimg.cc.orig 2017-01-05 00:43:20.664395461 +0100
+++ cimg.cc 2017-01-05 00:44:12.366397039 +0100
@@ -94,11 +94,11 @@
ct == PNG_COLOR_TYPE_GRAY_ALPHA)
png_set_gray_to_rgb(pngp);
- alloc(pngp->width,pngp->height);
+ alloc(width,height);
if (!ok) { fclose(f); return; }
ok = 0;
- for(i=0;i<pngp->height;i++) {
+ for(i=0;i<height;i++) {
png_read_row(pngp, (png_bytep) (&data[i*rowlen]), NULL);
}

View File

@ -0,0 +1,57 @@
--- configure.orig 2017-01-05 01:07:49.029440284 +0100
+++ configure 2017-01-08 19:42:47.704475698 +0100
@@ -7,7 +7,7 @@
my $version = "1.1.1";
my $cxx = "g++";
my @cxxflags = ("-O6");
-my @ldflags = ("-lpthread");
+my @ldflags = ("-ldl", "-lpthread");
my @libs = ();
my $configh = "config.h";
my $configmake = "config.make";
@@ -16,6 +16,7 @@
my $manprefix = '';
#my $dgt = 1;
+
# ------------
sub usage;
@@ -640,7 +641,20 @@
# print CONFIGH "#define WITH_DGT_BOARD 1\n";
# }
#}
+ #
+@envcxxflags = split(/ /, $ENV{CXXFLAGS});
+for (@envcxxflags) {
+ if ($_ ne "") {
+ push @cxxflags, "$_";
+}
+}
+@envldflags = split(/ /, $ENV{LDFLAGS});
+for (@envldflags) {
+ if ($_ ne "") {
+ push @ldflags, "$_";
+}
+}
# end
@@ -649,7 +663,7 @@
}
if ($manprefix eq '') {
- $manprefix = "$prefix/man";
+ $manprefix = "$prefix/share/man";
}
print CONFIGH "#define DATADIR \"$dataprefix\"\n";
@@ -666,7 +680,6 @@
close CONFIGH;
print "wrote $configh\n";
-print CONFIGMAKE "CXX = $cxx\n";
print CONFIGMAKE "CXXFLAGS = @cxxflags\n";
print CONFIGMAKE "LDFLAGS = @ldflags\n";

View File

@ -0,0 +1,11 @@
--- ntext.cc.orig 2017-01-05 00:57:16.943420989 +0100
+++ ntext.cc 2017-01-05 00:57:29.321421367 +0100
@@ -244,7 +244,7 @@
return;
}
- p = strchr(text, '\n');
+ p = (char *) strchr(text, '\n');
if (p!=NULL) {
*p = 0;
i = strlen(text);

13
srcpkgs/eboard/template Normal file
View File

@ -0,0 +1,13 @@
# Template file for 'eboard'
pkgname=eboard
version=1.1.1
revision=1
build_style=gnu-configure
hostmakedepends="perl pkg-config"
makedepends="libpng-devel gtk+-devel"
short_desc="A chess interface to ICS and chess engines"
maintainer="cipr3s <cipr3s@gmx.com>"
license="GPL-2"
homepage="http://www.bergo.eng.br/eboard"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum="ad971086697c0d5a1c8a64401f6675339e832acb386dc96fa4e17da1832ca26e"