Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jan 2010 04:53:51 GMT
From:      Sevan Janiyan <venture37@geeklan.co.uk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/142406: [patch] audio/xmms-nsf use $SUB_FILES to dynamically adjust pkg-message
Message-ID:  <201001070453.o074rpSV004730@www.freebsd.org>
Resent-Message-ID: <201001070500.o0750Jl0003496@freefall.freebsd.org>

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

>Number:         142406
>Category:       ports
>Synopsis:       [patch] audio/xmms-nsf use $SUB_FILES to dynamically adjust pkg-message
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 07 05:00:19 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Sevan Janiyan
>Release:        
>Organization:
>Environment:
>Description:

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/xmms-nsf/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile	27 Mar 2009 09:53:21 -0000	1.13
+++ Makefile	7 Jan 2010 04:49:17 -0000
@@ -30,12 +30,15 @@
 		lib/xmms/Input/libnsf.la \
 		lib/xmms/Input/libnsf.so
 
+SUB_FILES=	pkg-message
+SUB_LIST=	VERSION=${PORTVERSION}
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|' \
 		${WRKSRC}/src/nes/nestypes.h
 	@${REINPLACE_CMD} -e '/objformat=/s|=.*|=elf|' ${WRKSRC}/ltconfig
 
 post-install:
-	@${SED} -e 's|%%VERSION%%|${PORTVERSION}|' ${PKGMESSAGE}
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
Index: pkg-message
===================================================================
RCS file: pkg-message
diff -N pkg-message
--- pkg-message	29 Aug 2005 17:36:07 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,6 +0,0 @@
-================================================================================
-A huge .nsf file collection can be found at: http://www.2a03.org/browse.php/2A03
-
-NSF files may contain multiple tracks. You can activate a special pannel by
-selecting "NSF Player %%VERSION%% [libnsf.so]" and pressing the "About" button.
-================================================================================
Index: files/pkg-message.in
===================================================================
RCS file: files/pkg-message.in
diff -N files/pkg-message.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/pkg-message.in	7 Jan 2010 04:49:17 -0000
@@ -0,0 +1,6 @@
+================================================================================
+A huge .nsf file collection can be found at: http://www.2a03.org/browse.php/2A03
+
+NSF files may contain multiple tracks. You can activate a special pannel by
+selecting "NSF Player %%VERSION%% [libnsf.so]" and pressing the "About" button.
+================================================================================


>Release-Note:
>Audit-Trail:
>Unformatted:



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