Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Aug 2015 19:19:59 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r393542 - head/sysutils/usb_modeswitch
Message-ID:  <201508041919.t74JJxmP056343@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Aug  4 19:19:58 2015
New Revision: 393542
URL: https://svnweb.freebsd.org/changeset/ports/393542

Log:
  - Don't use / in sed regexps to allow paths, unbreaking cross-builds
  
  Approved by:	portmgr blanket

Modified:
  head/sysutils/usb_modeswitch/Makefile

Modified: head/sysutils/usb_modeswitch/Makefile
==============================================================================
--- head/sysutils/usb_modeswitch/Makefile	Tue Aug  4 18:53:20 2015	(r393541)
+++ head/sysutils/usb_modeswitch/Makefile	Tue Aug  4 19:19:58 2015	(r393542)
@@ -15,8 +15,8 @@ LICENSE=	GPLv2
 USES=		gmake tar:bzip2
 
 pre-patch:
-		${REINPLACE_CMD} 's/gcc/${CC}/' ${WRKSRC}/Makefile
-		${REINPLACE_CMD} 's/`pkg-config --libs --cflags libusb-1.0`/-lusb/' ${WRKSRC}/Makefile
+		${REINPLACE_CMD} 's|gcc|${CC}|' ${WRKSRC}/Makefile
+		${REINPLACE_CMD} 's|`pkg-config --libs --cflags libusb-1.0`|-lusb|' ${WRKSRC}/Makefile
 
 do-install:
 		${INSTALL_PROGRAM} ${WRKSRC}/usb_modeswitch ${STAGEDIR}${PREFIX}/sbin



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