- Don't use / in sed regexps to allow paths, unbreaking cross-builds

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2015-08-04 19:25:36 +00:00
parent 1a99d77218
commit 2e8d299e72
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=393546

View file

@ -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: