aboutsummaryrefslogtreecommitdiff
path: root/archivers/librtfcomp
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-02-08 19:01:35 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-02-08 19:01:35 +0000
commit4723f93aa5353506c65efee778f18bb9c281b8a8 (patch)
tree8212a630cbdff9aa20677fec65815b8d9167549f /archivers/librtfcomp
parentc8318b530789ffa3f38f2db07013d5b6a56eed6e (diff)
downloadports-4723f93aa5353506c65efee778f18bb9c281b8a8.tar.gz
ports-4723f93aa5353506c65efee778f18bb9c281b8a8.zip
Convert REINPLACE_CMD to patch file
Notes
Notes: svn path=/head/; revision=525567
Diffstat (limited to 'archivers/librtfcomp')
-rw-r--r--archivers/librtfcomp/Makefile6
-rw-r--r--archivers/librtfcomp/files/patch-configure11
2 files changed, 13 insertions, 4 deletions
diff --git a/archivers/librtfcomp/Makefile b/archivers/librtfcomp/Makefile
index 9b0c06c6eba1..44b534a6a8ba 100644
--- a/archivers/librtfcomp/Makefile
+++ b/archivers/librtfcomp/Makefile
@@ -13,13 +13,11 @@ COMMENT= Library for handling compressed RTF documents
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENCE
+USES= libtool
+
CONFIGURE_ARGS= --disable-python-bindings
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-USES= libtool
-
-post-patch:
- @${REINPLACE_CMD} -e '/VISIBILITY=/ s| -fvisibility=hidden||' ${WRKSRC}/configure
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/tests/fromrtf ${STAGEDIR}${PREFIX}/bin/fromrtf
diff --git a/archivers/librtfcomp/files/patch-configure b/archivers/librtfcomp/files/patch-configure
new file mode 100644
index 000000000000..9f599800b5c9
--- /dev/null
+++ b/archivers/librtfcomp/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig 2013-07-25 13:05:57 UTC
++++ configure
+@@ -11253,7 +11253,7 @@ fi
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+ if test x"$have_gccvisibility" = x"yes"; then
+- VISIBILITY="-DHAVE_GCCVISIBILITY -fvisibility=hidden"
++ VISIBILITY="-DHAVE_GCCVISIBILITY"
+ fi
+
+