mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Fix build in unusual environments:
- CFLAGS containing commas [1] - Missing /usr/bin/perl symlink [2] Requested by: Denis Kozadaev <denis@tambov.ru> [1] Requested by: Michal Bartkowiak <michal@bartkowiak.biz> [2]
This commit is contained in:
parent
942750a0fe
commit
8a13eaf0cc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=223023
@ -118,13 +118,16 @@ post-patch:
|
||||
@cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/cdrom-dma-patch
|
||||
.endif
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e "s,^(CFLAGS=).*,\1${CFLAGS} -fno-strict-aliasing," \
|
||||
-e "s,^(LDFLAGS=).*,\1${LDFLAGS}," \
|
||||
-e "s|^(CFLAGS=).*|\1${CFLAGS} -fno-strict-aliasing|" \
|
||||
-e "s|^(LDFLAGS=).*|\1${LDFLAGS}|" \
|
||||
${WRKSRC}/Makefile.target
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e "s,^(CFLAGS=).*,\1${CFLAGS} -fno-strict-aliasing -I.," \
|
||||
-e "s,^(LDFLAGS=).*,\1${LDFLAGS}," \
|
||||
-e "s|^(CFLAGS=).*|\1${CFLAGS} -fno-strict-aliasing -I.|" \
|
||||
-e "s|^(LDFLAGS=).*|\1${LDFLAGS}|" \
|
||||
${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e "1s|^(#! )/usr/bin/perl|\1${PERL}|" \
|
||||
${WRKSRC}/texi2pod.pl
|
||||
|
||||
post-install:
|
||||
@${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifup.sample ${PREFIX}/etc
|
||||
|
@ -102,13 +102,16 @@ post-patch:
|
||||
@cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/cdrom-dma-patch
|
||||
.endif
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e "s,^(CFLAGS=).*,\1${CFLAGS} -fno-strict-aliasing," \
|
||||
-e "s,^(LDFLAGS=).*,\1${LDFLAGS}," \
|
||||
-e "s|^(CFLAGS=).*|\1${CFLAGS} -fno-strict-aliasing|" \
|
||||
-e "s|^(LDFLAGS=).*|\1${LDFLAGS}|" \
|
||||
${WRKSRC}/Makefile.target
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e "s,^(CFLAGS=).*,\1${CFLAGS} -fno-strict-aliasing -I.," \
|
||||
-e "s,^(LDFLAGS=).*,\1${LDFLAGS}," \
|
||||
-e "s|^(CFLAGS=).*|\1${CFLAGS} -fno-strict-aliasing -I.|" \
|
||||
-e "s|^(LDFLAGS=).*|\1${LDFLAGS}|" \
|
||||
${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e "1s|^(#! )/usr/bin/perl|\1${PERL}|" \
|
||||
${WRKSRC}/texi2pod.pl
|
||||
|
||||
post-install:
|
||||
@${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifup.sample ${PREFIX}/etc
|
||||
|
Loading…
Reference in New Issue
Block a user