Skip to content
Permalink
Browse files

Build fix

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14453 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
tobypeterson committed Oct 6, 2005
1 parent 5aeeaf7 commit 00ace1ae3bac2409c61fcb3f571861d5e1d6d7d0
@@ -1,4 +1,4 @@
# $Id: Portfile,v 1.3 2004/11/28 05:00:25 jmpp Exp $
# $Id: Portfile,v 1.4 2005/10/06 20:43:04 toby Exp $

PortSystem 1.0

@@ -20,6 +20,9 @@ checksums md5 c6c6b9cf5d4b8ea4f82e498220293411

use_configure no

patchfiles patch-Makefile.diff
patchfiles patch-Makefile.diff \
patch-brick.h \
patch-game.h \
patch-screen.h
post-patch { reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/Makefile }

@@ -0,0 +1,17 @@
--- brick.h.orig 2005-10-06 13:34:23.000000000 -0700
+++ brick.h 2005-10-06 13:38:33.000000000 -0700
@@ -1,10 +1,10 @@
#ifndef _BRICK_H
#define _BRICK_H

-void change_direction(char [][], char [][], const unsigned char, const unsigned char, const char);
-void find_index(char [][], unsigned char *, unsigned char *);
-char check_brick(char [][], char [][], const unsigned char, const unsigned char);
-void draw_to_board(char [][], char [][], const char, const unsigned char, const unsigned char);
+void change_direction(char [BOARD_HEIGHT][BOARD_WIDTH], char [4][4], const unsigned char, const unsigned char, const char);
+void find_index(char [4][4], unsigned char *, unsigned char *);
+char check_brick(char [BOARD_HEIGHT][BOARD_WIDTH], char [4][4], const unsigned char, const unsigned char);
+void draw_to_board(char [BOARD_HEIGHT][BOARD_WIDTH], char [4][4], const char, const unsigned char, const unsigned char);

char brick_digit[7][4][4];

@@ -0,0 +1,15 @@
--- game.h.orig 2005-10-06 13:34:03.000000000 -0700
+++ game.h 2005-10-06 13:36:05.000000000 -0700
@@ -1,9 +1,9 @@
#ifndef _GAME_H
#define _GAME_H

-void init_board(char [][]);
-void remove_this_row(WINDOW *, char [][], unsigned char);
-void remove_rows(WINDOW *, char [][], unsigned int *, const char);
+void init_board(char [BOARD_HEIGHT][BOARD_WIDTH]);
+void remove_this_row(WINDOW *, char [BOARD_HEIGHT][BOARD_WIDTH], unsigned char);
+void remove_rows(WINDOW *, char [BOARD_HEIGHT][BOARD_WIDTH], unsigned int *, const char);
void calc_level(const unsigned int, char *);
unsigned int start_game();

@@ -0,0 +1,22 @@
--- screen.h.orig 2005-10-06 13:33:57.000000000 -0700
+++ screen.h 2005-10-06 13:37:05.000000000 -0700
@@ -13,8 +13,8 @@
void destroy_preview_win(WINDOW *);
void destroy_score_win(WINDOW *);
void show_brick_pice(WINDOW *, const char, const unsigned char, const unsigned char);
-void show_board_win(WINDOW *, char [][], char [][], const char, const unsigned char, const unsigned char);
-void show_brick(WINDOW *, char [][], const char, const unsigned char, const unsigned char);
+void show_board_win(WINDOW *, char [BOARD_HEIGHT][BOARD_WIDTH], char [4][4], const char, const unsigned char, const unsigned char);
+void show_brick(WINDOW *, char [4][4], const char, const unsigned char, const unsigned char);
void show_brick_preview(WINDOW *, const char);
int get_key(WINDOW *);
int old_get_key(WINDOW *);
@@ -27,7 +27,7 @@
void show_pause(WINDOW *);
void show_headline();
void show_colorized_char(const unsigned char, const unsigned char, const char, const char);
-void show_remove_row(WINDOW *, char [][], const unsigned char);
+void show_remove_row(WINDOW *, char [BOARD_HEIGHT][BOARD_WIDTH], const unsigned char);
void refresh_win(WINDOW *);
void show_yes_no(WINDOW *, const char);
char yes_no_question(const char *);

0 comments on commit 00ace1a

Please sign in to comment.
You can’t perform that action at this time.