ports/71738: [PATCH] graphics/tcm: fix PKGMESSAGE
Yen-Ming Lee
leeym at FreeBSD.org
Tue Sep 14 18:40:22 UTC 2004
>Number: 71738
>Category: ports
>Synopsis: [PATCH] graphics/tcm: fix PKGMESSAGE
>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: Tue Sep 14 18:40:21 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Yen-Ming Lee
>Release: FreeBSD 5.3-BETA4 i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD utopia.leeym.com 5.3-BETA4 FreeBSD 5.3-BETA4 #7: Mon Sep 13 05:12:30 CST 2004
>Description:
- apply better (?) way to handle PKGMESSAGE
- unbreak this port
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/i386-5-latest/tcm-2.20_1.log
>Fix:
--- tcm-2.20_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/graphics/tcm/Makefile,v
retrieving revision 1.9
diff -u -u -r1.9 Makefile
--- Makefile 18 Aug 2004 15:59:35 -0000 1.9
+++ Makefile 14 Sep 2004 18:30:34 -0000
@@ -19,7 +19,7 @@
RUN_DEPENDS= fig2dev:${PORTSDIR}/print/transfig
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-
+PKGMESSAGE= ${WRKSRC}/pkg-message
USE_REINPLACE= yes
USE_MOTIF= yes
USE_BISON= yes
@@ -36,7 +36,11 @@
@${CHMOD} 0644 ${WRKSRC}/lib/colorrgb.txt
@${REINPLACE_CMD} -e 's:gcc:g++:g' ${WRKSRC}/bin/makedepend.sh
+post-build:
+ @${CP} pkg-message ${PKGMESSAGE}
+ @${REINPLACE_CMD} -e 's:%%LOCALBASE%%:${PREFIX}:g' ${PKGMESSAGE}
+
post-install:
- @${REINPLACE_CMD} -e 's:/usr/local:${PREFIX}:g' ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
Index: pkg-message
===================================================================
RCS file: /home/pcvs/ports/graphics/tcm/pkg-message,v
retrieving revision 1.1
diff -u -u -r1.1 pkg-message
--- pkg-message 2 Feb 2003 15:01:33 -0000 1.1
+++ pkg-message 14 Sep 2004 18:30:34 -0000
@@ -1,5 +1,5 @@
==================================================================
You need to set the environment variable TCM_HOME to
-/usr/local/tcm for tcm to be able to start. You may also want to
-add /usr/local/tcm/man in your manpath.config.
+%%LOCALBASE%%/tcm for tcm to be able to start. You may also want to
+add %%LOCALBASE%%/tcm/man in your manpath.config.
==================================================================
--- tcm-2.20_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list