Skip to content

Commit

Permalink
games/brutalchess: Fix correupted files by dos2unix
Browse files Browse the repository at this point in the history
Some files will not load properly due to ASCII conversion corruption.

While here, fix other issues including patch format, USES_GL and general
formatting.

PR:		271303
Reported by:	ntspam2@netscape.net
Approved by:	gustau.perez@gmail.com (maintainer, timeout > 2 weeks)
MFH:		2023Q2 (runtime fix)
  • Loading branch information
Fernando Apesteguía authored and Fernando Apesteguía committed May 22, 2023
1 parent e184e77 commit 4f3963f
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 23 deletions.
26 changes: 20 additions & 6 deletions games/brutalchess/Makefile
@@ -1,25 +1,39 @@
PORTNAME= brutalchess
PORTVERSION= 0.5.2
PORTREVISION= 15
PORTREVISION= 16
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-alpha/${PORTNAME}-alpha-${PORTVERSION}
DISTNAME= ${PORTNAME}-alpha-${PORTVERSION}-src

LIB_DEPENDS= libfreetype.so:print/freetype2

MAINTAINER= gustau.perez@gmail.com
COMMENT= Nice looking OpenGL chess game
WWW= http://brutalchess.sourceforge.net/

WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

LIB_DEPENDS= libfreetype.so:print/freetype2

GNU_CONFIGURE= yes
USES= dos2unix gl gmake libtool pkgconfig sdl xorg
USE_GL= yes
USE_GL= glu
USE_SDL= sdl image
USE_XORG= x11 xext xt xmu xi

DOS2UNIX_FILES= brutalchess.nsi \
fonts/!pizzadude.txt \
models/debug.obj \
NEWS \
README \
src/board.cpp \
src/board.h \
src/boardmove.cpp \
src/brutalchess.cpp \
src/brutalplayer.cpp

GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
BINARY_ALIAS= freetype-config=true
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}

pre-build:
${CHMOD} 0755 ${WRKSRC}/install-sh
Expand Down
6 changes: 3 additions & 3 deletions games/brutalchess/files/patch-aclocal.m4
@@ -1,6 +1,6 @@
--- aclocal.m4.orig Tue Feb 6 23:28:00 2007
+++ aclocal.m4 Tue Feb 6 23:28:12 2007
@@ -926,7 +926,7 @@
--- aclocal.m4.orig 2006-12-27 04:28:00 UTC
+++ aclocal.m4
@@ -926,7 +926,7 @@ fi
# restrict ourselves to GNU make (using the --version option ensures
# this.)
AC_DEFUN([AM_PROG_MKDIR_P],
Expand Down
@@ -1,5 +1,5 @@
--- install-sh.orig Sat Mar 11 01:36:44 2006
+++ install-sh Tue Feb 6 23:51:32 2007
--- install-sh.orig 2006-03-11 00:36:44 UTC
+++ install-sh
@@ -0,0 +1,251 @@
+#!/bin/sh
+#
Expand Down
8 changes: 4 additions & 4 deletions games/brutalchess/files/patch-src-md3view.cpp
@@ -1,6 +1,6 @@
--- src/md3view.cpp.orig 2007-09-02 15:56:32.000000000 +0200
+++ src/md3view.cpp 2007-09-02 16:00:35.000000000 +0200
@@ -72,7 +72,7 @@
--- src/md3view.cpp.orig 2006-04-18 22:26:16 UTC
+++ src/md3view.cpp
@@ -72,7 +72,7 @@ void quit( int returnCode )
exit( returnCode );
}

Expand All @@ -9,7 +9,7 @@
// function to reset our viewport after a window resize
int resizeWindow( int width, int height )
{
@@ -108,7 +108,7 @@
@@ -108,7 +108,7 @@ int resizeWindow( int width, int height )


// general OpenGL initialization function
Expand Down
10 changes: 5 additions & 5 deletions games/brutalchess/files/patch-src-objview.cpp
@@ -1,6 +1,6 @@
--- src/objview.cpp.orig 2007-09-02 16:01:24.000000000 +0200
+++ src/objview.cpp 2007-09-02 16:02:00.000000000 +0200
@@ -73,7 +73,7 @@
--- src/objview.cpp.orig 2006-04-18 20:34:25 UTC
+++ src/objview.cpp
@@ -73,7 +73,7 @@ void quit( int returnCode )
exit( returnCode );
}

Expand All @@ -9,7 +9,7 @@
// function to reset our viewport after a window resize
int resizeWindow( int width, int height )
{
@@ -109,7 +109,7 @@
@@ -109,7 +109,7 @@ int resizeWindow( int width, int height )


// general OpenGL initialization function
Expand All @@ -18,7 +18,7 @@
{
cout << "Initializing OpenGL" << endl;
// Enable smooth shading
@@ -158,7 +158,7 @@
@@ -158,7 +158,7 @@ int initGL( GLvoid )
}

// Here goes our drawing code
Expand Down
2 changes: 1 addition & 1 deletion games/brutalchess/files/patch-src_board.h
@@ -1,4 +1,4 @@
--- src/board.h.orig 2013-10-01 21:08:24.000000000 +0000
--- src/board.h.orig 2023-05-08 11:15:17 UTC
+++ src/board.h
@@ -12,6 +12,7 @@
#include <cstdio>
Expand Down
4 changes: 2 additions & 2 deletions games/brutalchess/files/patch-src_fontloader.h
@@ -1,5 +1,5 @@
--- src/fontloader.h.orig 2013-12-13 10:49:49.000000000 +0100
+++ src/fontloader.h 2013-12-13 10:50:39.000000000 +0100
--- src/fontloader.h.orig 2006-12-19 04:00:01 UTC
+++ src/fontloader.h
@@ -12,11 +12,9 @@
//FreeType Headers
#include <ft2build.h>
Expand Down

0 comments on commit 4f3963f

Please sign in to comment.