Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jun 2004 04:40:10 -0700 (PDT)
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/68363: Add support for "menucolor" patch
Message-ID:  <200406261140.i5QBeAQT059253@pentarou.parodius.com>
Resent-Message-ID: <200406261140.i5QBeO6l031706@freefall.freebsd.org>

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

>Number:         68363
>Category:       ports
>Synopsis:       Add support for "menucolor" patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 26 11:40:24 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jeremy Chadwick
>Release:        FreeBSD 4.10-PRERELEASE i386
>Organization:
Parodius Networking
>Environment:
System: FreeBSD pentarou.parodius.com 4.10-PRERELEASE FreeBSD 4.10-PRERELEASE #0: Wed May 5 03:33:17 PDT 2004 root@pentarou.parodius.com:/usr/obj/usr/src/sys/PENTAROU i386
>Description:
	This modification adds the WITH_MENUCOLORS tweak for those who want
	the non-standard "menucolors" option.  This patch will only apply
	to the "-nox11" version of nethack34.

	For further details, see the following URLs:

	http://www.cs.joensuu.fi/~pkalli/code/
	http://www.netsonic.fi/~walker/nethack.html
>How-To-Repeat:
	Not applicable.
>Fix:
	See included patch below.


diff -ruN nethack34.orig/Makefile nethack34/Makefile
--- nethack34.orig/Makefile	Tue Feb  3 21:20:33 2004
+++ nethack34/Makefile	Sat Jun 26 04:31:17 2004
@@ -7,7 +7,7 @@
 
 PORTNAME=	nethack
 PORTVERSION=	3.4.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES?=	games
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -45,6 +45,11 @@
 GRAPHICS=	GNOME_GRAPHICS
 .elif ${PKGNAMESUFFIX} == "-nox11"
 GRAPHICS=	# none
+.if defined(WITH_MENUCOLORS)
+PATCHFILES+=	nh343-menucolor.diff
+PATCH_SITES+=	http://www.cs.joensuu.fi/~pkalli/code/
+PATCH_DIST_STRIP=	-p1
+.endif
 .elif ${PKGNAMESUFFIX} == "-qt"
 USE_QT_VER=	3
 MAKE_ENV+=	QTCPPFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \
@@ -70,6 +75,9 @@
 	${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/win/Qt/qt_win.cpp
 .if defined(WITHOUT_SHELL)
 	@${REINPLACE_CMD} -e 's|#define SHELL|/* #define SHELL|' ${WRKSRC}/include/unixconf.h
+.endif
+.if defined(WITH_MENUCOLORS)
+	${REINPLACE_CMD} -e 's|<regex.h>|<gnuregex.h>|g' ${WRKSRC}/include/color.h
 .endif
 
 pre-configure:
diff -ruN nethack34.orig/distinfo nethack34/distinfo
--- nethack34.orig/distinfo	Wed Jan 28 23:23:58 2004
+++ nethack34/distinfo	Sat Jun 26 04:20:39 2004
@@ -1,2 +1,4 @@
 MD5 (nethack-343-src.tgz) = 21479c95990eefe7650df582426457f9
 SIZE (nethack-343-src.tgz) = 3497458
+MD5 (nh343-menucolor.diff) = 8177010cbf6cfa50b6fd063458f28e25
+SIZE (nh343-menucolor.diff) = 17862
>Release-Note:
>Audit-Trail:
>Unformatted:



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