diff --git a/devel/libkiwix/Makefile b/devel/libkiwix/Makefile index 1c5a5ccd4a6b..e33da8db2a4b 100644 --- a/devel/libkiwix/Makefile +++ b/devel/libkiwix/Makefile @@ -1,40 +1,39 @@ PORTNAME= libkiwix -DISTVERSION= 12.0.0 -PORTREVISION= 1 +DISTVERSION= 12.1.0 CATEGORIES= devel MAINTAINER= olce.freebsd.ports@certner.fr COMMENT= Common code base for all Kiwix ports WWW= https://www.kiwix.org/ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libzim.so:devel/libzim \ libpugixml.so:textproc/pugixml \ libaria2.so:www/aria2 \ libicui18n.so:devel/icu \ libicuuc.so:devel/icu \ libxapian.so:databases/xapian-core \ libctpp2.so:textproc/ctpp2 \ libcurl.so:ftp/curl \ libmicrohttpd.so:www/libmicrohttpd USES= compiler:c++11-lang meson pkgconfig python shebangfix USE_GITHUB= yes GH_ACCOUNT= kiwix GH_TUPLE= kiwix:${PORTNAME}:${PORTVERSION}:DEFAULT \ kainjow:Mustache:v4.1:mustache USE_LDCONFIG= yes SHEBANG_FILES= scripts/format_code.sh SHEBANG_REGEX= ./scripts/kiwix.*[^.]. CPPFLAGS+= -I${WRKSRC_mustache} CXXFLAGS+= -I${WRKSRC_mustache} LDFLAGS+= -lz PLIST_SUB= PORTVERSION=${PORTVERSION} PORTMAJ=${PORTVERSION:C/\..*//} .include diff --git a/devel/libkiwix/distinfo b/devel/libkiwix/distinfo index 3526ae0576cf..39023c5f8af9 100644 --- a/devel/libkiwix/distinfo +++ b/devel/libkiwix/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1686582304 -SHA256 (kiwix-libkiwix-12.0.0_GH0.tar.gz) = 8608ef73fdaa34c28144eb5ad732a74ca94dd99710d08d7a1ddb1277d1985b02 -SIZE (kiwix-libkiwix-12.0.0_GH0.tar.gz) = 1114076 +TIMESTAMP = 1692892288 +SHA256 (kiwix-libkiwix-12.1.0_GH0.tar.gz) = 42e8f9f973054e11f17381c988790c8f8267898b5a611741f0aa03cc4ccf3f75 +SIZE (kiwix-libkiwix-12.1.0_GH0.tar.gz) = 1098820 SHA256 (kainjow-Mustache-v4.1_GH0.tar.gz) = acd66359feb4318b421f9574cfc5a511133a77d916d0b13c7caa3783c0bfe167 SIZE (kainjow-Mustache-v4.1_GH0.tar.gz) = 98905 diff --git a/devel/libkiwix/files/patch-meson.build b/devel/libkiwix/files/patch-meson.build index f5aa75063095..eb9c07cc45fe 100644 --- a/devel/libkiwix/files/patch-meson.build +++ b/devel/libkiwix/files/patch-meson.build @@ -1,16 +1,16 @@ ---- meson.build.orig 2022-11-30 17:10:19 UTC +--- meson.build.orig 2023-09-09 03:15:43 UTC +++ meson.build -@@ -36,7 +36,7 @@ else - endif +@@ -7,12 +7,7 @@ compiler = meson.get_compiler('cpp') - libzim_dep = dependency('libzim', version : '>=8.1.0', static:static_deps) --if not compiler.has_header_symbol('zim/zim.h', 'LIBZIM_WITH_XAPIAN') -+if not compiler.has_header_symbol('zim/zim.h', 'LIBZIM_WITH_XAPIAN', dependencies: libzim_dep) - error('Libzim seems to be compiled without xapian. Xapian support is mandatory.') - endif + static_deps = get_option('static-linkage') or get_option('default_library') == 'static' -@@ -86,4 +86,3 @@ configure_file(output : 'kiwix.pc', - input : 'kiwix.pc.in', - install_dir: get_option('libdir')+'/pkgconfig' - ) -- +-# See https://github.com/kiwix/libkiwix/issues/371 +-if ['arm', 'mips', 'm68k', 'ppc', 'sh4'].contains(host_machine.cpu_family()) +- extra_libs = ['-latomic'] +-else +- extra_libs = [] +-endif ++extra_libs = [] + + if (compiler.get_id() == 'gcc' and build_machine.system() == 'linux') or host_machine.system() == 'freebsd' + # C++ std::thread is implemented using pthread on linux by gcc