diff --git a/games/ctris/Makefile b/games/ctris/Makefile index 17cb731eddc6..a22286743928 100644 --- a/games/ctris/Makefile +++ b/games/ctris/Makefile @@ -1,33 +1,32 @@ PORTNAME= ctris DISTVERSIONPREFIX= v -DISTVERSION= 0.42.1 -PORTREVISION= 1 +DISTVERSION= 0.43 CATEGORIES= games MAINTAINER= ehaupt@FreeBSD.org COMMENT= Colorized, small, and flexible Tetris(TM)-clone for the console WWW= https://github.com/dominikhackl/ctris LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING USES= ncurses USE_GITHUB= yes GH_ACCOUNT= dominikhackl MAKE_ARGS= LIBS="${LDFLAGS} -lncurses" PLIST_FILES= bin/ctris \ share/man/man6/ctris.6.gz post-patch: - @${REINPLACE_CMD} -e "s|v0\.42|v${PORTVERSION}|" ${WRKSRC}/ctris.h + @${REINPLACE_CMD} -e "s|^\(#define VERSION\).*|\1 \"v${PORTVERSION}\"|" ${WRKSRC}/ctris.h @${REINPLACE_CMD} -e "s|gcc|${CC}|" -e "s|CFLAGS=.*|CFLAGS+=-Wall|" \ ${WRKSRC}/Makefile do-install: ${INSTALL_MAN} ${WRKSRC}/ctris.6.gz \ ${STAGEDIR}${PREFIX}/share/man/man6/ctris.6.gz ${INSTALL_PROGRAM} ${WRKSRC}/ctris ${STAGEDIR}${PREFIX}/bin/ctris .include diff --git a/games/ctris/distinfo b/games/ctris/distinfo index d816f851e40e..62a483f5bfee 100644 --- a/games/ctris/distinfo +++ b/games/ctris/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1486030284 -SHA256 (dominikhackl-ctris-v0.42.1_GH0.tar.gz) = c5fe3e70b76129ea83cac85a3c5dbc084066a62d7ef4edcc73c545ee89222ed8 -SIZE (dominikhackl-ctris-v0.42.1_GH0.tar.gz) = 16116 +TIMESTAMP = 1736342248 +SHA256 (dominikhackl-ctris-v0.43_GH0.tar.gz) = 21f19ea3402a19ba993affe2e7c322b8806b94e459cb710a4b33d6aa7add31a8 +SIZE (dominikhackl-ctris-v0.43_GH0.tar.gz) = 16663 diff --git a/games/ctris/files/patch-brick.h b/games/ctris/files/patch-brick.h deleted file mode 100644 index 9afeb6b6210a..000000000000 --- a/games/ctris/files/patch-brick.h +++ /dev/null @@ -1,11 +0,0 @@ ---- brick.h.orig 2020-08-28 18:12:58 UTC -+++ brick.h -@@ -8,7 +8,7 @@ void find_index(char [4][4], unsigned char *, unsigned - 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]; -+extern char brick_digit[7][4][4]; - - #endif - diff --git a/games/ctris/files/patch-ctris.h b/games/ctris/files/patch-ctris.h deleted file mode 100644 index 6e17b539356b..000000000000 --- a/games/ctris/files/patch-ctris.h +++ /dev/null @@ -1,23 +0,0 @@ ---- ctris.h.orig 2015-08-24 12:06:35 UTC -+++ ctris.h -@@ -15,7 +15,7 @@ - #include - #include - --#define VERSION "v0.42" // version info -+#define VERSION "v0.42.1" // version info - #define HEIGHT 24 // height of the screen - #define WIDTH 80 // width of the screen - #define BOARD_HEIGHT (HEIGHT - 5) // height of the board -@@ -44,9 +44,9 @@ void handle_quit_signal(const int); - unsigned char get_rand(const unsigned char); - int main(int, char *[]); - --char game_state, old_style_keys, counterclockwise_rotation, hide_cursor_workaround, highscore_file_path[256], default_name[40]; -+extern char game_state, old_style_keys, counterclockwise_rotation, hide_cursor_workaround, highscore_file_path[256], default_name[40]; - --unsigned long rseed; -+extern unsigned long rseed; - - #endif -