git: 5cf791359427 - main - audio/libmad: Convert REINPLACE_CMD to patch file
Po-Chuan Hsieh
sunpoet at FreeBSD.org
Tue Sep 21 03:48:51 UTC 2021
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5cf791359427dfe6b1e23bb23db0dcda477eaa7f
commit 5cf791359427dfe6b1e23bb23db0dcda477eaa7f
Author: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-09-21 03:06:46 +0000
Commit: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-09-21 03:35:10 +0000
audio/libmad: Convert REINPLACE_CMD to patch file
---
audio/libmad/Makefile | 3 ---
audio/libmad/files/patch-configure | 3 ++-
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/audio/libmad/Makefile b/audio/libmad/Makefile
index 2e129133062e..8eec6b24bf38 100644
--- a/audio/libmad/Makefile
+++ b/audio/libmad/Makefile
@@ -29,9 +29,6 @@ SPEED_DESC= Optimize for speed over accuracy
SPEED_CONFIGURE_ON= --enable-speed
SPEED_CONFIGURE_OFF= --enable-accuracy
-post-patch:
- @${REINPLACE_CMD} -e 's| -fforce-mem||' ${WRKSRC}/configure
-
post-install:
${INSTALL_DATA} ${WRKDIR}/mad.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
diff --git a/audio/libmad/files/patch-configure b/audio/libmad/files/patch-configure
index f4800b97ef3d..5d5c3f1563f6 100644
--- a/audio/libmad/files/patch-configure
+++ b/audio/libmad/files/patch-configure
@@ -13,8 +13,9 @@
case "$optimize" in
-O|"-O "*)
optimize="-O"
- optimize="$optimize -fforce-mem"
+- optimize="$optimize -fforce-mem"
- optimize="$optimize -fforce-addr"
++ optimize="$optimize"
+ test $CLANG = no && optimize="$optimize -fforce-addr"
: #x optimize="$optimize -finline-functions"
: #- optimize="$optimize -fstrength-reduce"
More information about the dev-commits-ports-all
mailing list