1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

Convert REINPLACE_CMD to patch file

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2020-05-08 20:50:48 +00:00
parent 8ae03c6a7b
commit 0a9d2813a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=534427
2 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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