aboutsummaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-05-08 20:50:48 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-05-08 20:50:48 +0000
commit0a9d2813a0ddc9ccf6a9385168973596d715d581 (patch)
treee0f30c8c6a0fde0cf979309357204faa325737e9 /archivers
parent8ae03c6a7b31cc19045ca09ea73c1d356b083a16 (diff)
downloadports-0a9d2813a0ddc9ccf6a9385168973596d715d581.tar.gz
ports-0a9d2813a0ddc9ccf6a9385168973596d715d581.zip
Convert REINPLACE_CMD to patch file
Notes
Notes: svn path=/head/; revision=534427
Diffstat (limited to 'archivers')
-rw-r--r--archivers/p5-Compress-Raw-Zlib/Makefile3
-rw-r--r--archivers/p5-Compress-Raw-Zlib/files/patch-config.in15
2 files changed, 15 insertions, 3 deletions
diff --git a/archivers/p5-Compress-Raw-Zlib/Makefile b/archivers/p5-Compress-Raw-Zlib/Makefile
index 78f19b243706..0fbefcb88919 100644
--- a/archivers/p5-Compress-Raw-Zlib/Makefile
+++ b/archivers/p5-Compress-Raw-Zlib/Makefile
@@ -18,9 +18,6 @@ TEST_DEPENDS= p5-Test-Pod>=1:devel/p5-Test-Pod
USES= perl5
USE_PERL5= configure
-post-patch:
- @${REINPLACE_CMD} -e '/^BUILD_ZLIB/ s|True|False|; /^INCLUDE/ s|= .*$$|= ${INCLUDEDIR}|; /^LIB/ s|= .*$$|= ${LIBDIR}|' ${WRKSRC}/config.in
-
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Compress/Raw/Zlib/Zlib.so
diff --git a/archivers/p5-Compress-Raw-Zlib/files/patch-config.in b/archivers/p5-Compress-Raw-Zlib/files/patch-config.in
new file mode 100644
index 000000000000..a1f6f50a7ab3
--- /dev/null
+++ b/archivers/p5-Compress-Raw-Zlib/files/patch-config.in
@@ -0,0 +1,15 @@
+--- config.in.orig 2019-03-16 16:41:19 UTC
++++ config.in
+@@ -16,9 +16,9 @@
+ # Setting the Gzip OS Code
+ #
+
+-BUILD_ZLIB = True
+-INCLUDE = ./zlib-src
+-LIB = ./zlib-src
++BUILD_ZLIB = False
++INCLUDE = /usr/include
++LIB = /usr/lib
+ OLD_ZLIB = False
+ GZIP_OS_CODE = AUTO_DETECT
+