Skip to content

Commit fa46408

Browse files
authored
[mchehab-zbar] Update to 0.23.93 (microsoft#42739)
1 parent e2fa7da commit fa46408

File tree

8 files changed

+25
-154
lines changed

8 files changed

+25
-154
lines changed

ports/mchehab-zbar/c99.patch

Lines changed: 0 additions & 89 deletions
This file was deleted.

ports/mchehab-zbar/issue219.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

ports/mchehab-zbar/portfile.cmake

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ vcpkg_from_github(
22
OUT_SOURCE_PATH SOURCE_PATH
33
REPO mchehab/zbar
44
REF "${VERSION}"
5-
SHA512 d73d71873bec68ee021997512a9edbd223f5f5fe43c66c4dd3502224ba6009be2e5e1714766cb8e1056244673e87e0939ed0319116f61d7371b5ab79fb5e04eb
5+
SHA512 2dd607afbb1e52346bfb740f916c8616112d14153f071f82458b7c653f647b332290a5089543abebfe1c7679eae98b349a84777185d61cfb9ff275bfecc6e08f
66
HEAD_REF master
77
PATCHES
8-
c99.patch
9-
issue219.patch
108
windows.patch
119
x64.patch
1210
)
@@ -17,10 +15,9 @@ if("nls" IN_LIST FEATURES)
1715
else()
1816
vcpkg_list(APPEND options "--disable-nls")
1917
set(ENV{AUTOPOINT} true) # true, the program
18+
set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_HOST_INSTALLED_DIR}/share/gettext/aclocal/\"")
2019
# Simulate the relevant effects of (interactive) `gettextize`.
2120
file(TOUCH "${SOURCE_PATH}/po/Makefile.in.in")
22-
file(GLOB_RECURSE m4_files "${CURRENT_HOST_INSTALLED_DIR}/share/gettext/aclocal/*.m4")
23-
file(INSTALL ${m4_files} DESTINATION "${SOURCE_PATH}/config")
2421
endif()
2522

2623
vcpkg_configure_make(

ports/mchehab-zbar/vcpkg.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "mchehab-zbar",
3-
"version": "0.23.90",
4-
"port-version": 5,
3+
"version": "0.23.93",
54
"description": "ZBar is an open source software suite for reading bar codes from various sources, including webcams. This fork is actively maintained.",
65
"homepage": "https://github.com/mchehab/zbar",
76
"license": "LGPL-2.1-or-later",

ports/mchehab-zbar/windows.patch

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/configure.ac b/configure.ac
2-
index c8fea14..eb0a097 100644
2+
index f0f9723..9e79db9 100644
33
--- a/configure.ac
44
+++ b/configure.ac
55
@@ -55,7 +55,7 @@ AC_DEFINE_UNQUOTED([LIB_VERSION_REVISION],
@@ -11,45 +11,17 @@ index c8fea14..eb0a097 100644
1111
AM_CXXFLAGS="$AM_CFLAGS"
1212
AC_SUBST([AM_CPPFLAGS])
1313
AC_SUBST([AM_CFLAGS])
14-
diff --git a/zbar/libzbar.rc b/zbar/libzbar.rc
15-
index 413635b..c241f82 100644
16-
--- a/zbar/libzbar.rc
17-
+++ b/zbar/libzbar.rc
18-
@@ -17,8 +17,7 @@ VS_VERSION_INFO VERSIONINFO
19-
VALUE "InternalName", "libzbar"
20-
VALUE "OriginalFilename", "libzbar-" XSTR(LIB_VERSION_MAJOR) ".dll"
21-
22-
- VALUE "FileVersion", XSTR(LIB_VERSION_MAJOR) "." \
23-
- XSTR(LIB_VERSION_MINOR) "." XSTR(LIB_VERSION_REVISION)
24-
+ VALUE "FileVersion", XSTR(LIB_VERSION_MAJOR) "." XSTR(LIB_VERSION_MINOR) "." XSTR(LIB_VERSION_REVISION)
25-
VALUE "ProductVersion", PACKAGE_VERSION
26-
27-
VALUE "FileDescription", "Bar code reader library"
2814
diff --git a/zbar/processor.h b/zbar/processor.h
29-
index d5e9fef..54d6584 100644
15+
index a8289e0..8a7e33c 100644
3016
--- a/zbar/processor.h
3117
+++ b/zbar/processor.h
32-
@@ -27,7 +27,9 @@
33-
#ifdef HAVE_INTTYPES_H
34-
# include <inttypes.h>
18+
@@ -29,7 +29,9 @@
3519
#endif
36-
-#include <unistd.h>
37-
+#ifndef WIN32
38-
+# include <unistd.h>
39-
+#endif
4020
#include <stdlib.h>
4121
#include <string.h>
22+
+#ifndef WIN32
23+
#include <unistd.h>
24+
+#endif
4225

43-
diff --git a/zbar/thread.h b/zbar/thread.h
44-
index 96d6415..252d3f2 100644
45-
--- a/zbar/thread.h
46-
+++ b/zbar/thread.h
47-
@@ -35,7 +35,7 @@
48-
# define HAVE_THREADS
49-
# define ZTHREAD DWORD WINAPI
50-
51-
-typedef ZTHREAD (zbar_thread_proc_t)(void*);
52-
+typedef ZTHREAD zbar_thread_proc_t(void*);
53-
54-
typedef DWORD zbar_thread_id_t;
55-
26+
#include <zbar.h>
27+
#include "error.h"

ports/mchehab-zbar/x64.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
diff --git a/zbar/decoder.c b/zbar/decoder.c
2-
index 7f7336f..e9ffc45 100644
2+
index 6c41b7f..cbf0bb7 100644
33
--- a/zbar/decoder.c
44
+++ b/zbar/decoder.c
55
@@ -25,6 +25,7 @@
6-
#include <stdlib.h> /* malloc, calloc, free */
7-
#include <stdio.h> /* snprintf */
8-
#include <string.h> /* memset, strlen */
9-
+#include <stddef.h> /* offsetof */
6+
#include <stdio.h> /* snprintf */
7+
#include <stdlib.h> /* malloc, calloc, free */
8+
#include <string.h> /* memset, strlen */
9+
+#include <stddef.h> /* offsetof */
1010

1111
#include <zbar.h>
1212

13-
@@ -113,7 +114,7 @@ void zbar_decoder_destroy (zbar_decoder_t *dcode)
13+
@@ -113,7 +114,7 @@ void zbar_decoder_destroy(zbar_decoder_t *dcode)
1414

15-
void zbar_decoder_reset (zbar_decoder_t *dcode)
15+
void zbar_decoder_reset(zbar_decoder_t *dcode)
1616
{
1717
- memset(dcode, 0, (long)&dcode->buf_alloc - (long)dcode);
1818
+ memset(dcode, 0, offsetof(zbar_decoder_t, buf_alloc));

versions/baseline.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5857,8 +5857,8 @@
58575857
"port-version": 0
58585858
},
58595859
"mchehab-zbar": {
5860-
"baseline": "0.23.90",
5861-
"port-version": 5
5860+
"baseline": "0.23.93",
5861+
"port-version": 0
58625862
},
58635863
"mcpp": {
58645864
"baseline": "2.7.2.14",

versions/m-/mchehab-zbar.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "41ada8728385b27a6c57dca0817c78e967f3cb3d",
5+
"version": "0.23.93",
6+
"port-version": 0
7+
},
38
{
49
"git-tree": "368a491e8bad201ee1b88e88314b77c540dcea2b",
510
"version": "0.23.90",

0 commit comments

Comments
 (0)