Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jan 2010 19:38:14 GMT
From:      Sevan Janiyan <venture37@geeklan.co.uk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/142543: [patch] graphics/liblqr-1 add pkg-message.in to FILESDIR & use $SUB_FILES to dynamically adjust pkg-message 
Message-ID:  <201001091938.o09JcEVX067863@www.freebsd.org>
Resent-Message-ID: <201001091940.o09Je7C3064696@freefall.freebsd.org>

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

>Number:         142543
>Category:       ports
>Synopsis:       [patch] graphics/liblqr-1 add pkg-message.in to FILESDIR & 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:   Sat Jan 09 19:40:07 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/graphics/liblqr-1/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile	28 Jul 2009 16:34:33 -0000	1.7
+++ Makefile	9 Jan 2010 19:28:46 -0000
@@ -31,7 +31,8 @@
 .if !defined(NOPORTEXAMPLES)
 PORTEXAMPLES=	*
 
-PKGMESSAGE=	${WRKDIR}/pkg_message
+SUB_FILES=	pkg-message
+SUB_LIST=	PORTSDIR=${PORTSDIR}
 .endif
 
 .include <bsd.port.pre.mk>
@@ -61,12 +62,6 @@
 	${MKDIR} ${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
 
-	@${ECHO_CMD} "==========================================================================" >> ${PKGMESSAGE}
-	@${ECHO_CMD} "NOTE: In order to compile examples for liblrq, you will" >> ${PKGMESSAGE}
-	@${ECHO_CMD} "also need pngwriter port (${PORTSDIR}/graphics/pngwriter)." >> ${PKGMESSAGE}
-	@${ECHO_CMD} "Examples are located in ${EXAMPLESDIR}" >> ${PKGMESSAGE}
-	@${ECHO_CMD} "==========================================================================" >> ${PKGMESSAGE}
-
 .if !exists(${LOCALBASE}/lib/libpngwriter.a)
 	@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
 .endif
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	9 Jan 2010 19:28:46 -0000
@@ -0,0 +1,6 @@
+==========================================================================
+NOTE: In order to compile examples for liblrq, you will
+also need pngwriter port (%%PORTSDIR%%/graphics/pngwriter).
+Examples are located in %%EXAMPLESDIR%%
+==========================================================================
+


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



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