diff options
author | nox <nox@FreeBSD.org> | 2008-11-19 04:07:53 +0800 |
---|---|---|
committer | nox <nox@FreeBSD.org> | 2008-11-19 04:07:53 +0800 |
commit | a9122019270e4ef4151b77ff149023f6f047559e (patch) | |
tree | 239681bafc3cc6964ec7767d9d8c88cc7ce4ccb0 /emulators/qemu | |
parent | ab1ab2ffa003bfb5ba3407d7f87bde2a4769b33e (diff) | |
download | freebsd-ports-gnome-a9122019270e4ef4151b77ff149023f6f047559e.tar.gz freebsd-ports-gnome-a9122019270e4ef4151b77ff149023f6f047559e.tar.zst freebsd-ports-gnome-a9122019270e4ef4151b77ff149023f6f047559e.zip |
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]
Diffstat (limited to 'emulators/qemu')
-rw-r--r-- | emulators/qemu/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile index d9cb1d2439c4..a3216aacc018 100644 --- a/emulators/qemu/Makefile +++ b/emulators/qemu/Makefile @@ -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 |