From 0e377d053fa40a270cdd8e924d617fd910c17f0d Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Fri, 27 Apr 2001 18:16:33 +0000 Subject: A change in sdl12 broke the alephone port. This has been fixed. PR: 26708 Submitted by: MAINTAINER --- games/alephone/Makefile | 5 +---- games/alephone/files/patch-Source_Files::Misc::screen_sdl.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 games/alephone/files/patch-Source_Files::Misc::screen_sdl.cpp (limited to 'games/alephone') diff --git a/games/alephone/Makefile b/games/alephone/Makefile index 36334ad9a509..6b62af53f612 100644 --- a/games/alephone/Makefile +++ b/games/alephone/Makefile @@ -7,7 +7,7 @@ PORTNAME= alephone PORTVERSION= 0.11.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= marathon @@ -23,9 +23,6 @@ USE_X_PREFIX= yes GNU_CONFIGURE= yes CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" -pre-configure: - ${PERL} -pi -e "s@uint8 red@Uint16 red@g" ${WRKSRC}/Source_Files/Misc/screen_sdl.cpp - post-install: .if !defined(NOPORTDOCS) @${CAT} ${PKGMESSAGE} diff --git a/games/alephone/files/patch-Source_Files::Misc::screen_sdl.cpp b/games/alephone/files/patch-Source_Files::Misc::screen_sdl.cpp new file mode 100644 index 000000000000..e9a9e1636ed4 --- /dev/null +++ b/games/alephone/files/patch-Source_Files::Misc::screen_sdl.cpp @@ -0,0 +1,11 @@ +--- Source_Files/Misc/screen_sdl.cpp.orig Sat Apr 28 01:48:07 2001 ++++ Source_Files/Misc/screen_sdl.cpp Sat Apr 28 01:49:40 2001 +@@ -625,7 +625,7 @@ + build_sdl_color_table(color_table, colors); + SDL_SetPalette(main_surface, SDL_PHYSPAL, colors, 0, 256); + } else { +-#if SDL_PATCHLEVEL > 6 ++#if SDL_VERSION_ATLEAST(1,1,7) + // SDL 1.1.7 defines these as 16-bit arrays... + uint16 red[256], green[256], blue[256]; + for (int i=0; icolor_count; i++) { -- cgit v1.2.3