- Don't use / in sed regexps to allow paths, unbreaking cross-builds
Approved by: portmgr blanket
This commit is contained in:
parent
1a99d77218
commit
2e8d299e72
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=393546
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue