View | Details | Raw Unified | Return to bug 248055 | Differences between
and this patch

Collapse All | Expand All

(-)devel/libzim/Makefile (-3 / +2 lines)
Lines 1-8 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	libzim
3
PORTNAME=	libzim
4
PORTVERSION=	5.0.0
4
PORTVERSION=	6.1.8
5
PORTREVISION=	4
6
CATEGORIES=	devel
5
CATEGORIES=	devel
7
6
8
MAINTAINER=	swills@FreeBSD.org
7
MAINTAINER=	swills@FreeBSD.org
Lines 20-25 USE_GITHUB= yes Link Here
20
GH_ACCOUNT=	openzim
19
GH_ACCOUNT=	openzim
21
20
22
BINARY_ALIAS=	python3=python${PYTHON_VER} python3-config=python${PYTHON_VER}-config
21
BINARY_ALIAS=	python3=python${PYTHON_VER} python3-config=python${PYTHON_VER}-config
23
PLIST_SUB=	PORTVERSION=${PORTVERSION}
22
PLIST_SUB=	PORTVERSION=${PORTVERSION} PORTMAJ=${PORTVERSION:C/\..*//}
24
23
25
.include <bsd.port.mk>
24
.include <bsd.port.mk>
(-)devel/libzim/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1559136305
1
TIMESTAMP = 1595027958
2
SHA256 (openzim-libzim-5.0.0_GH0.tar.gz) = dbec0a36155315037a6496a9be5c7ede17171fcde47063c97ce937057b437fdb
2
SHA256 (openzim-libzim-6.1.8_GH0.tar.gz) = 1be605b1d22a0a7c225e80eab2cb1a249bf0f1b500ec8ed42e1091fc96c49fb3
3
SIZE (openzim-libzim-5.0.0_GH0.tar.gz) = 1655189
3
SIZE (openzim-libzim-6.1.8_GH0.tar.gz) = 28589142
(-)devel/libzim/files/patch-meson.build (-20 / +17 lines)
Lines 1-26 Link Here
1
--- meson.build.orig	2019-04-15 13:10:25 UTC
1
--- meson.build.orig	2020-07-15 14:24:54 UTC
2
+++ meson.build
2
+++ meson.build
3
@@ -1,7 +1,7 @@
3
@@ -7,7 +7,8 @@ if build_machine.system() != 'windows'
4
 project('libzim', ['c', 'cpp'],
5
   version : '4.0.7',
6
   license : 'GPL2',
7
-  default_options : ['c_std=c11', 'cpp_std=c++11', 'werror=true'])
8
+  default_options : ['c_std=c11', 'cpp_std=c++11'])
9
 
10
 if build_machine.system() != 'windows'
11
   add_project_arguments('-D_LARGEFILE64_SOURCE=1', '-D_FILE_OFFSET_BITS=64', language: 'cpp')
4
   add_project_arguments('-D_LARGEFILE64_SOURCE=1', '-D_FILE_OFFSET_BITS=64', language: 'cpp')
12
@@ -22,6 +22,9 @@ else
13
 endif
5
 endif
14
 conf.set('ENABLE_USE_BUFFER_HEADER', get_option('USE_BUFFER_HEADER'))
15
 
6
 
16
+cc = meson.get_compiler('c')
7
-sizeof_off_t = meson.get_compiler('cpp').sizeof('off_t')
17
+execinfo_dep = cc.find_library('execinfo', required : false)
8
+cpp = meson.get_compiler('cpp')
18
+
9
+sizeof_off_t = cpp.sizeof('off_t')
19
 static_linkage = get_option('static-linkage')
20
 static_linkage = static_linkage or get_option('default_library')=='static'
21
 
10
 
22
@@ -73,3 +76,4 @@ pkg_mod.generate(libraries : libzim,
11
 conf = configuration_data()
23
                  filebase : 'libzim',
12
 conf.set('VERSION', '"@0@"'.format(meson.project_version()))
24
                  description : 'A Library to zim.',
13
@@ -32,6 +33,10 @@ lzma_dep = dependency('liblzma', static:static_linkage
25
                  requires : pkg_requires)
14
 
15
 zstd_dep = dependency('libzstd', required:false, static:static_linkage)
16
 conf.set('ENABLE_ZSTD', zstd_dep.found())
26
+
17
+
18
+if target_machine.system() == 'freebsd'
19
+    execinfo_dep = cpp.find_library('execinfo')
20
+endif
21
 
22
 xapian_dep = dependency('xapian-core',
23
                         required:false,
(-)devel/libzim/files/patch-src_buffer.cpp (-7 / +7 lines)
Lines 1-11 Link Here
1
--- src/buffer.cpp.orig	2018-09-04 16:23:32 UTC
1
--- src/buffer.cpp.orig	2020-07-15 14:24:54 UTC
2
+++ src/buffer.cpp
2
+++ src/buffer.cpp
3
@@ -49,7 +49,7 @@ MMapBuffer::MMapBuffer(int fd, offset_t offset, zsize_
3
@@ -48,6 +48,8 @@ MMapBuffer::MMapBuffer(int fd, offset_t offset, zsize_
4
 #if defined(__APPLE__)
4
   _offset = offset-pa_offset;
5
 #if defined(__APPLE__) || defined(__OpenBSD__)
5
   #define MAP_FLAGS MAP_PRIVATE
6
   #define MAP_FLAGS MAP_PRIVATE
6
 #else
7
+#elif defined(__FreeBSD__)
7
-  #define MAP_FLAGS MAP_PRIVATE|MAP_POPULATE
8
+  #define MAP_FLAGS MAP_PRIVATE|MAP_PREFAULT_READ
8
+  #define MAP_FLAGS MAP_PRIVATE|MAP_PREFAULT_READ
9
 #else
10
   #define MAP_FLAGS MAP_PRIVATE|MAP_POPULATE
9
 #endif
11
 #endif
10
 #if !MMAP_SUPPORT_64
11
   if(pa_offset.v >= INT32_MAX) {
(-)devel/libzim/files/patch-src_file__compound.h (-10 lines)
Removed Link Here
1
--- src/file_compound.h.orig	2018-07-11 01:26:16.144860000 +0000
2
+++ src/file_compound.h	2018-07-11 01:26:30.132058000 +0000
3
@@ -25,6 +25,7 @@
4
 #include <map>
5
 #include <memory>
6
 #include <cstdio>
7
+#include <time.h>
8
 
9
 namespace zim {
10
 
(-)devel/libzim/files/patch-src_fs__unix.cpp (-3 / +3 lines)
Lines 1-11 Link Here
1
--- src/fs_unix.cpp.orig	2018-12-04 23:56:33 UTC
1
--- src/fs_unix.cpp.orig	2020-07-15 14:24:54 UTC
2
+++ src/fs_unix.cpp
2
+++ src/fs_unix.cpp
3
@@ -34,7 +34,7 @@ namespace unix {
3
@@ -34,7 +34,7 @@ namespace unix {
4
 
4
 
5
 zsize_t FD::readAt(char* dest, zsize_t size, offset_t offset) const
5
 zsize_t FD::readAt(char* dest, zsize_t size, offset_t offset) const
6
 {
6
 {
7
-#ifdef __APPLE__
7
-#if defined(__APPLE__) || defined(__OpenBSD__)
8
+#if defined(__APPLE__) || defined(__FreeBSD__)
8
+#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__)
9
 # define PREAD pread
9
 # define PREAD pread
10
 #else
10
 #else
11
 # define PREAD pread64
11
 # define PREAD pread64
(-)devel/libzim/files/patch-src_meson.build (-4 / +4 lines)
Lines 1-10 Link Here
1
--- src/meson.build.orig	2018-09-04 16:23:32 UTC
1
--- src/meson.build.orig	2020-07-15 14:24:54 UTC
2
+++ src/meson.build
2
+++ src/meson.build
3
@@ -58,6 +58,10 @@ if zlib_dep.found()
3
@@ -56,6 +56,10 @@ if zstd_dep.found()
4
     deps += [zlib_dep]
4
     deps += [zstd_dep]
5
 endif
5
 endif
6
 
6
 
7
+if execinfo_dep.found()
7
+if target_machine.system() == 'freebsd'
8
+    deps += [execinfo_dep]
8
+    deps += [execinfo_dep]
9
+endif
9
+endif
10
+
10
+
(-)devel/libzim/pkg-plist (-1 / +1 lines)
Lines 12-17 include/zim/writer/creator.h Link Here
12
include/zim/writer/url.h
12
include/zim/writer/url.h
13
include/zim/zim.h
13
include/zim/zim.h
14
lib/libzim.so
14
lib/libzim.so
15
lib/libzim.so.5
15
lib/libzim.so.%%PORTMAJ%%
16
lib/libzim.so.%%PORTVERSION%%
16
lib/libzim.so.%%PORTVERSION%%
17
libdata/pkgconfig/libzim.pc
17
libdata/pkgconfig/libzim.pc

Return to bug 248055