Skip site navigation (1)Skip section navigation (2)
Date:      19 Apr 2001 18:56:07 -0000
From:      malyn@strangeGizmo.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/26708: [MAINTAINER] Update alephone to work with sdl12
Message-ID:  <20010419185607.1291.qmail@sonic.eng.aeolon.com>

next in thread | raw e-mail | index | archive | help

>Number:         26708
>Category:       ports
>Synopsis:       [MAINTAINER] Update alephone to work with sdl12
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 19 12:00:06 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Michael Alyn Miller
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
strangeGizmo.com
>Environment:

>Description:

	A change in sdl12 broke the alephone port.  This has been fixed.
	Please note that this change includes both a patch to the Makefile and
	a patch file (should be named `patch-aa') for insertion in the `files'
	directory of the port.

>How-To-Repeat:

>Fix:


MAKEFILE PATCH:

*** Makefile	2001/04/17 17:21:29	1.4
--- Makefile	2001/04/19 18:49:18
***************
*** 7,13 ****
  
  PORTNAME=	alephone
  PORTVERSION=	0.11.1
! PORTREVISION=	1
  CATEGORIES=	games
  MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
  MASTER_SITE_SUBDIR=	marathon
--- 7,13 ----
  
  PORTNAME=	alephone
  PORTVERSION=	0.11.1
! PORTREVISION=	2
  CATEGORIES=	games
  MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
  MASTER_SITE_SUBDIR=	marathon
***************
*** 22,30 ****
  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)
--- 22,27 ----


PATCH FILE `patch-aa':

*** Source_Files/Misc/screen_sdl.cpp.orig	Fri Jan 19 16:40:27 2001
--- Source_Files/Misc/screen_sdl.cpp	Thu Apr 19 11:36:26 2001
***************
*** 625,631 ****
  		build_sdl_color_table(color_table, colors);
  		SDL_SetPalette(main_surface, SDL_PHYSPAL, colors, 0, 256);
  	} else {
! #if SDL_PATCHLEVEL > 6
  		// SDL 1.1.7 defines these as 16-bit arrays...
  		uint16 red[256], green[256], blue[256];
  		for (int i=0; i<color_table->color_count; i++) {
--- 625,631 ----
  		build_sdl_color_table(color_table, colors);
  		SDL_SetPalette(main_surface, SDL_PHYSPAL, colors, 0, 256);
  	} else {
! #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; i<color_table->color_count; i++) {
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010419185607.1291.qmail>