svn commit: r393546 - head/chinese/autoconvert

Dmitry Marakasov amdmi3 at FreeBSD.org
Tue Aug 4 19:25:37 UTC 2015


Author: amdmi3
Date: Tue Aug  4 19:25:36 2015
New Revision: 393546
URL: https://svnweb.freebsd.org/changeset/ports/393546

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

Modified:
  head/chinese/autoconvert/Makefile

Modified: head/chinese/autoconvert/Makefile
==============================================================================
--- head/chinese/autoconvert/Makefile	Tue Aug  4 19:22:52 2015	(r393545)
+++ head/chinese/autoconvert/Makefile	Tue Aug  4 19:25:36 2015	(r393546)
@@ -22,10 +22,10 @@ USE_LDCONFIG=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
 post-patch:
-	@${REINPLACE_CMD} -e 's/CFLAG/CFLAGS/' -e 's/make/$$(MAKE)/' \
+	@${REINPLACE_CMD} -e 's|CFLAG|CFLAGS|' -e 's|make|$$(MAKE)|' \
 		${WRKSRC}/Makefile
-	@${REINPLACE_CMD} -e 's/gcc/${CC}/' -e 's/LIBS=/&${LDFLAGS} /' \
-		-e 's/CFLAGS=/&${CPPFLAGS} ${CFLAGS} /' \
+	@${REINPLACE_CMD} -e 's|gcc|${CC}|' -e 's|LIBS=|&${LDFLAGS} |' \
+		-e 's|CFLAGS=|&${CPPFLAGS} ${CFLAGS} |' \
 		${WRKSRC}/Makefile ${WRKSRC}/hzconvert/Makefile
 
 post-install:


More information about the svn-ports-all mailing list