ports/150604: [PATCH] sysutils/superiotool: Fix build with alternate LOCALBASE
Anonymous
swell.k at gmail.com
Wed Sep 15 22:00:15 UTC 2010
The following reply was made to PR ports/150604; it has been noted by GNATS.
From: Anonymous <swell.k at gmail.com>
To: Tim Bishop <tim at bishnet.net>
Cc: bug-followup at FreeBSD.org, avg at icyb.net.ua
Subject: Re: ports/150604: [PATCH] sysutils/superiotool: Fix build with alternate LOCALBASE
Date: Thu, 16 Sep 2010 01:50:11 +0400
Tim Bishop <tim at bishnet.net> writes:
> --- superiotool-20090930.patch begins here ---
> Index: Makefile
> ===================================================================
> RCS file: /u1/freebsd/cvs/ports/sysutils/superiotool/Makefile,v
> retrieving revision 1.3
> diff -u -r1.3 Makefile
> --- Makefile 1 Apr 2010 05:32:03 -0000 1.3
> +++ Makefile 15 Sep 2010 20:28:58 -0000
> @@ -37,6 +37,7 @@
>
> post-patch:
> @${REINPLACE_CMD} -e 's#/share/man/#/man/#g' -e 's#-ansi##g' \
> + -e 's#/usr/local#${PREFIX}#g' \
You can use `?=' as well. And it'd be useful in a few more places.
--- a.diff begins here ---
Index: sysutils/superiotool/Makefile
===================================================================
RCS file: /a/.cvsup/ports/sysutils/superiotool/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- sysutils/superiotool/Makefile 1 Apr 2010 05:32:03 -0000 1.3
+++ sysutils/superiotool/Makefile 15 Sep 2010 21:41:03 -0000
@@ -37,6 +37,8 @@ gen-dist:
post-patch:
@${REINPLACE_CMD} -e 's#/share/man/#/man/#g' -e 's#-ansi##g' \
+ -Ee '\#^(CC|INSTALL|PREFIX)#s#=#?=#' \
+ -e '\#^CFLAGS#s#=#+=#' -e 's#-O2##' \
${WRKSRC}/Makefile
.include <bsd.port.pre.mk>
--- a.diff ends here ---
More information about the freebsd-ports-bugs
mailing list