exiv2: update to 0.28.0, again. geeqie already supports it, patches for two others incoming.diff -r1.54 -r1.55 pkgsrc/graphics/exiv2/Makefile
(wiz)
@@ -1,42 +1,44 @@ | @@ -1,42 +1,44 @@ | |||
1 | # $NetBSD: Makefile,v 1.54 2023/05/17 10:49:15 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.55 2023/07/01 22:13:14 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= exiv2-0.27.6-Source | 3 | DISTNAME= exiv2-0.28.0-Source | |
4 | PKGNAME= ${DISTNAME:S/-Source//} | 4 | PKGNAME= ${DISTNAME:S/-Source//} | |
5 | CATEGORIES= graphics | 5 | CATEGORIES= graphics | |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=Exiv2/} | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=Exiv2/} | |
7 | GITHUB_RELEASE= v${PKGVERSION_NOREV} | 7 | GITHUB_RELEASE= v${PKGVERSION_NOREV} | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://www.exiv2.org/ | 10 | HOMEPAGE= https://exiv2.org/ | |
11 | COMMENT= Image metadata manipulation | 11 | COMMENT= Image metadata manipulation | |
12 | LICENSE= gnu-gpl-v2 | 12 | LICENSE= gnu-gpl-v2 | |
13 | 13 | |||
14 | CHECK_PORTABILITY_SKIP+= contrib/coverity.sh | 14 | CHECK_PORTABILITY_SKIP+= contrib/coverity.sh | |
15 | 15 | |||
16 | USE_TOOLS+= msgfmt | 16 | USE_TOOLS+= msgfmt | |
17 | USE_LANGUAGES= c c++ | 17 | USE_LANGUAGES= c c++ | |
18 | GCC_REQD+= 3.3 | 18 | GCC_REQD+= 3.3 | |
19 | 19 | |||
20 | .include "../../mk/bsd.prefs.mk" | 20 | .include "../../mk/bsd.prefs.mk" | |
21 | 21 | |||
22 | CMAKE_ARGS+= -DEXIV2_BUILD_SAMPLES:BOOL=OFF | 22 | CMAKE_ARGS+= -DEXIV2_BUILD_SAMPLES:BOOL=OFF | |
23 | # turn on BMFF support -- will be default as of 1.00 | 23 | # turn on BMFF support -- will be default as of 1.00 | |
24 | CMAKE_ARGS+= -DEXIV2_ENABLE_BMFF:BOOL=ON | 24 | CMAKE_ARGS+= -DEXIV2_ENABLE_BMFF:BOOL=ON | |
25 | .if ${OPSYS} == "Darwin" | 25 | .if ${OPSYS} == "Darwin" | |
26 | CMAKE_ARGS+= -DIntl_INCLUDE_DIR=${BUILDLINK_PREFIX.gettext}/include | 26 | CMAKE_ARGS+= -DIntl_INCLUDE_DIR=${BUILDLINK_PREFIX.gettext}/include | |
27 | .endif | 27 | .endif | |
28 | 28 | |||
29 | LDFLAGS.Linux+= -ldl | 29 | LDFLAGS.Linux+= -ldl | |
30 | LDFLAGS.SunOS+= -lsocket -lnsl | 30 | LDFLAGS.SunOS+= -lsocket -lnsl | |
31 | 31 | |||
32 | CXXFLAGS.SunOS+= -fPIC | 32 | CXXFLAGS.SunOS+= -fPIC | |
33 | 33 | |||
34 | PKGCONFIG_OVERRIDE= cmake/exiv2.pc.in | 34 | PKGCONFIG_OVERRIDE= cmake/exiv2.pc.in | |
35 | 35 | |||
36 | .include "../../devel/cmake/build.mk" | 36 | .include "../../devel/cmake/build.mk" | |
37 | .include "../../archivers/brotli/buildlink3.mk" | |||
37 | .include "../../converters/libiconv/buildlink3.mk" | 38 | .include "../../converters/libiconv/buildlink3.mk" | |
38 | .include "../../devel/gettext-lib/buildlink3.mk" | 39 | .include "../../devel/gettext-lib/buildlink3.mk" | |
39 | .include "../../devel/zlib/buildlink3.mk" | 40 | .include "../../devel/zlib/buildlink3.mk" | |
40 | .include "../../textproc/expat/buildlink3.mk" | 41 | .include "../../textproc/expat/buildlink3.mk" | |
42 | .include "../../textproc/inih/buildlink3.mk" | |||
41 | .include "../../mk/pthread.buildlink3.mk" | 43 | .include "../../mk/pthread.buildlink3.mk" | |
42 | .include "../../mk/bsd.pkg.mk" | 44 | .include "../../mk/bsd.pkg.mk" |
@@ -1,61 +1,58 @@ | @@ -1,61 +1,58 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.24 2023/05/17 10:49:15 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.25 2023/07/01 22:13:14 wiz Exp $ | |
2 | bin/exiv2 | 2 | bin/exiv2 | |
3 | include/exiv2/asfvideo.hpp | 3 | include/exiv2/asfvideo.hpp | |
4 | include/exiv2/basicio.hpp | 4 | include/exiv2/basicio.hpp | |
5 | include/exiv2/bmffimage.hpp | 5 | include/exiv2/bmffimage.hpp | |
6 | include/exiv2/bmpimage.hpp | 6 | include/exiv2/bmpimage.hpp | |
7 | include/exiv2/config.h | 7 | include/exiv2/config.h | |
8 | include/exiv2/convert.hpp | 8 | include/exiv2/convert.hpp | |
9 | include/exiv2/cr2image.hpp | 9 | include/exiv2/cr2image.hpp | |
10 | include/exiv2/crwimage.hpp | 10 | include/exiv2/crwimage.hpp | |
11 | include/exiv2/datasets.hpp | 11 | include/exiv2/datasets.hpp | |
12 | include/exiv2/easyaccess.hpp | 12 | include/exiv2/easyaccess.hpp | |
13 | include/exiv2/epsimage.hpp | 13 | include/exiv2/epsimage.hpp | |
14 | include/exiv2/error.hpp | 14 | include/exiv2/error.hpp | |
15 | include/exiv2/exif.hpp | 15 | include/exiv2/exif.hpp | |
16 | include/exiv2/exiv2.hpp | 16 | include/exiv2/exiv2.hpp | |
17 | include/exiv2/exiv2lib_export.h | 17 | include/exiv2/exiv2lib_export.h | |
18 | include/exiv2/exv_conf.h | 18 | include/exiv2/exv_conf.h | |
19 | include/exiv2/futils.hpp | 19 | include/exiv2/futils.hpp | |
20 | include/exiv2/gifimage.hpp | 20 | include/exiv2/gifimage.hpp | |
21 | include/exiv2/http.hpp | 21 | include/exiv2/http.hpp | |
22 | include/exiv2/image.hpp | 22 | include/exiv2/image.hpp | |
23 | include/exiv2/ini.hpp | 23 | include/exiv2/image_types.hpp | |
24 | include/exiv2/iptc.hpp | 24 | include/exiv2/iptc.hpp | |
25 | include/exiv2/jp2image.hpp | 25 | include/exiv2/jp2image.hpp | |
26 | include/exiv2/jpgimage.hpp | 26 | include/exiv2/jpgimage.hpp | |
27 | include/exiv2/matroskavideo.hpp | 27 | include/exiv2/matroskavideo.hpp | |
28 | include/exiv2/metadatum.hpp | 28 | include/exiv2/metadatum.hpp | |
29 | include/exiv2/mrwimage.hpp | 29 | include/exiv2/mrwimage.hpp | |
30 | include/exiv2/orfimage.hpp | 30 | include/exiv2/orfimage.hpp | |
31 | include/exiv2/pgfimage.hpp | 31 | include/exiv2/pgfimage.hpp | |
32 | include/exiv2/photoshop.hpp | |||
32 | include/exiv2/pngimage.hpp | 33 | include/exiv2/pngimage.hpp | |
33 | include/exiv2/preview.hpp | 34 | include/exiv2/preview.hpp | |
34 | include/exiv2/properties.hpp | 35 | include/exiv2/properties.hpp | |
35 | include/exiv2/psdimage.hpp | 36 | include/exiv2/psdimage.hpp | |
36 | include/exiv2/quicktimevideo.hpp | 37 | include/exiv2/quicktimevideo.hpp | |
37 | include/exiv2/rafimage.hpp | 38 | include/exiv2/rafimage.hpp | |
38 | include/exiv2/riffvideo.hpp | 39 | include/exiv2/riffvideo.hpp | |
39 | include/exiv2/rw2image.hpp | 40 | include/exiv2/rw2image.hpp | |
40 | include/exiv2/rwlock.hpp | |||
41 | include/exiv2/slice.hpp | 41 | include/exiv2/slice.hpp | |
42 | include/exiv2/ssh.hpp | |||
43 | include/exiv2/tags.hpp | 42 | include/exiv2/tags.hpp | |
44 | include/exiv2/tgaimage.hpp | 43 | include/exiv2/tgaimage.hpp | |
45 | include/exiv2/tiffimage.hpp | 44 | include/exiv2/tiffimage.hpp | |
46 | include/exiv2/types.hpp | 45 | include/exiv2/types.hpp | |
47 | include/exiv2/utilsvideo.hpp | |||
48 | include/exiv2/value.hpp | 46 | include/exiv2/value.hpp | |
49 | include/exiv2/version.hpp | 47 | include/exiv2/version.hpp | |
50 | include/exiv2/webpimage.hpp | 48 | include/exiv2/webpimage.hpp | |
51 | include/exiv2/xmp_exiv2.hpp | 49 | include/exiv2/xmp_exiv2.hpp | |
52 | include/exiv2/xmpsidecar.hpp | 50 | include/exiv2/xmpsidecar.hpp | |
53 | lib/cmake/exiv2/exiv2Config-release.cmake | 51 | lib/cmake/exiv2/exiv2Config-release.cmake | |
54 | lib/cmake/exiv2/exiv2Config.cmake | 52 | lib/cmake/exiv2/exiv2Config.cmake | |
55 | lib/cmake/exiv2/exiv2ConfigVersion.cmake | 53 | lib/cmake/exiv2/exiv2ConfigVersion.cmake | |
56 | lib/libexiv2-xmp.a | |||
57 | lib/libexiv2.so | 54 | lib/libexiv2.so | |
58 | lib/libexiv2.so.${PKGVERSION} | 55 | lib/libexiv2.so.${PKGVERSION} | |
59 | lib/libexiv2.so.27 | 56 | lib/libexiv2.so.28 | |
60 | lib/pkgconfig/exiv2.pc | 57 | lib/pkgconfig/exiv2.pc | |
61 | man/man1/exiv2.1 | 58 | man/man1/exiv2.1 |
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.21 2023/05/17 10:49:15 wiz Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.22 2023/07/01 22:13:14 wiz Exp $ | |
2 | 2 | |||
3 | BUILDLINK_TREE+= exiv2 | 3 | BUILDLINK_TREE+= exiv2 | |
4 | 4 | |||
5 | .if !defined(EXIV2_BUILDLINK3_MK) | 5 | .if !defined(EXIV2_BUILDLINK3_MK) | |
6 | EXIV2_BUILDLINK3_MK:= | 6 | EXIV2_BUILDLINK3_MK:= | |
7 | 7 | |||
8 | BUILDLINK_API_DEPENDS.exiv2+= exiv2>=0.27 | 8 | BUILDLINK_API_DEPENDS.exiv2+= exiv2>=0.27 | |
9 | BUILDLINK_ABI_DEPENDS.exiv2+= exiv2>=0.27 | 9 | BUILDLINK_ABI_DEPENDS.exiv2+= exiv2>=0.28.0 | |
10 | BUILDLINK_PKGSRCDIR.exiv2?= ../../graphics/exiv2 | 10 | BUILDLINK_PKGSRCDIR.exiv2?= ../../graphics/exiv2 | |
11 | 11 | |||
12 | .include "../../devel/gettext-lib/buildlink3.mk" | 12 | .include "../../devel/gettext-lib/buildlink3.mk" | |
13 | .include "../../devel/zlib/buildlink3.mk" | 13 | .include "../../devel/zlib/buildlink3.mk" | |
14 | .include "../../textproc/expat/buildlink3.mk" | 14 | .include "../../textproc/expat/buildlink3.mk" | |
15 | .include "../../textproc/inih/buildlink3.mk" | |||
15 | .endif # EXIV2_BUILDLINK3_MK | 16 | .endif # EXIV2_BUILDLINK3_MK | |
16 | 17 | |||
17 | BUILDLINK_TREE+= -exiv2 | 18 | BUILDLINK_TREE+= -exiv2 |
@@ -1,11 +1,8 @@ | @@ -1,11 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.44 2023/05/17 10:49:15 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.45 2023/07/01 22:13:14 wiz Exp $ | |
2 | 2 | |||
3 | BLAKE2s (exiv2-0.27.6-Source.tar.gz) = a59ddbc2e0d4cfd741b1178525dc33e957280326cc9f5cd430ec33a6d7dc9181 | 3 | BLAKE2s (exiv2-0.28.0-Source.tar.gz) = dcb2df9e21ec4a140e6fe44025279d906f4248490671fbadaed6a0aaf94cb4ac | |
4 | SHA512 (exiv2-0.27.6-Source.tar.gz) = 045d7fb391202b53897336094812600680141a292367a9194e9529bccb8ab54465190ea0f0636970114402a38840b33b2fcf2edf7b6c616f3e585fa295a887a4 | 4 | SHA512 (exiv2-0.28.0-Source.tar.gz) = 5c523ee8c2156417df978048e8e5c5009f77b05eb546ca7063c00dd4f468aa89b1aa60fe4411a638bcf75adc72042bb2ecb3c023b5367f6b756f486c00776dfb | |
5 | Size (exiv2-0.27.6-Source.tar.gz) = 32280263 bytes | 5 | Size (exiv2-0.28.0-Source.tar.gz) = 44893310 bytes | |
6 | SHA1 (patch-cmake_compilerFlags.cmake) = 9f56d637e5dc99d7377a8d57ca9be9aab5833a76 | 6 | SHA1 (patch-cmake_compilerFlags.cmake) = 9f56d637e5dc99d7377a8d57ca9be9aab5833a76 | |
7 | SHA1 (patch-cmake_config.h.cmake) = b7e0336e5ca55a9df08958a05d8ac2a2c800e836 | 7 | SHA1 (patch-cmake_config.h.cmake) = 5e8b863c505b32619efc71de6b6086fedfe75ba6 | |
8 | SHA1 (patch-contrib_organize_Makefile) = 27348fdb0f80092b6e16f27e3ac1dca988eefe70 | 8 | SHA1 (patch-src_futils.cpp) = 2c11b118ecf4c588ebaaef91d490ed718238940c | |
9 | SHA1 (patch-contrib_organize_helpers.cpp) = ec003c826d463b3e7e571ab4c41baffaca1240e9 | |||
10 | SHA1 (patch-include_exiv2_types.hpp) = 829e101c1c5f06de0a497b8c6a052b0a4e667d25 | |||
11 | SHA1 (patch-src_convert.cpp) = b600c1f6f6bf3ac6323ef51203603b248f9c0432 |
@@ -1,14 +1,17 @@ | @@ -1,14 +1,17 @@ | |||
1 | $NetBSD: patch-cmake_config.h.cmake,v 1.4 2023/05/17 10:49:15 wiz Exp $ | 1 | $NetBSD: patch-cmake_config.h.cmake,v 1.5 2023/07/01 22:13:15 wiz Exp $ | |
2 | ||||
3 | Support newer NetBSD versions. | |||
4 | https://github.com/Exiv2/exiv2/pull/2626 | |||
2 | 5 | |||
3 | --- cmake/config.h.cmake.orig 2019-07-29 06:33:06.000000000 +0000 | 6 | --- cmake/config.h.cmake.orig 2019-07-29 06:33:06.000000000 +0000 | |
4 | +++ cmake/config.h.cmake | 7 | +++ cmake/config.h.cmake | |
5 | @@ -35,7 +35,17 @@ | 8 | @@ -35,7 +35,17 @@ | |
6 | 9 | |||
7 | /* Define to `const' or to empty, depending on the second argument of `iconv'. */ | 10 | /* Define to `const' or to empty, depending on the second argument of `iconv'. */ | |
8 | #cmakedefine ICONV_ACCEPTS_CONST_INPUT | 11 | #cmakedefine ICONV_ACCEPTS_CONST_INPUT | |
9 | -#if defined(ICONV_ACCEPTS_CONST_INPUT) || defined(__NetBSD__) | 12 | -#if defined(ICONV_ACCEPTS_CONST_INPUT) || defined(__NetBSD__) | |
10 | + | 13 | + | |
11 | +#if defined(__NetBSD__) | 14 | +#if defined(__NetBSD__) | |
12 | +#include <sys/param.h> | 15 | +#include <sys/param.h> | |
13 | +#if __NetBSD_Prereq__(9,99,17) | 16 | +#if __NetBSD_Prereq__(9,99,17) | |
14 | +#define NETBSD_POSIX_ICONV 1 | 17 | +#define NETBSD_POSIX_ICONV 1 |
$NetBSD: patch-src_futils.cpp,v 1.4 2023/07/01 22:13:15 wiz Exp $
Fix build on NetBSD.
https://github.com/Exiv2/exiv2/pull/2625
--- src/futils.cpp.orig 2023-05-08 16:01:13.000000000 +0000
+++ src/futils.cpp
@@ -360,7 +360,7 @@ std::string getProcessPath() {
TCHAR pathbuf[MAX_PATH];
GetModuleFileName(nullptr, pathbuf, MAX_PATH);
auto path = fs::path(pathbuf);
-#elif __has_include(<libproc.h>)
+#elif defined(PROC_PIDPATHINFO_MAXSIZE)
char pathbuf[PROC_PIDPATHINFO_MAXSIZE];
proc_pidpath(getpid(), pathbuf, sizeof(pathbuf));
auto path = fs::path(pathbuf);