aboutsummaryrefslogtreecommitdiff
path: root/net/gnu-dico
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2020-09-02 09:38:08 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2020-09-02 09:38:08 +0000
commit989662acdb697a621d6cc3dd864628485f8d2892 (patch)
tree7b921522579fe34294b545ee1a154d6af867d9fa /net/gnu-dico
parent0d32ef5455ede981121888e4d64b05d1aee72133 (diff)
downloadports-989662acdb697a621d6cc3dd864628485f8d2892.tar.gz
ports-989662acdb697a621d6cc3dd864628485f8d2892.zip
Ensure that there is only one variable definition per each object, as
the C (and C++) standards mandated for years and compilers started to enforce as of recently (Clang 11, GCC 10). Reported by: pkg-fallout
Notes
Notes: svn path=/head/; revision=547350
Diffstat (limited to 'net/gnu-dico')
-rw-r--r--net/gnu-dico/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/gnu-dico/Makefile b/net/gnu-dico/Makefile
index 044612a8ff5d..70c91017908f 100644
--- a/net/gnu-dico/Makefile
+++ b/net/gnu-dico/Makefile
@@ -59,6 +59,8 @@ post-patch:
-e 's/python-config/$${PYTHON_CONFIG}/' \
${WRKSRC}/configure
@${REINPLACE_CMD} 's/mergesort/xmergesort/' ${WRKSRC}/lib/mergesort.c
+ @${REINPLACE_CMD} -E '/(dico_markup_list|text_udb_def);/s,^,extern ,' \
+ ${WRKSRC}/include/dico/markup.h ${WRKSRC}/dicod/dicod.h
post-install:
${INSTALL_DATA} ${FILESDIR}/dicod.conf ${STAGEDIR}${PREFIX}/etc/dicod.conf.sample