mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 03:49:01 +08:00
[mchehab-zbar] Fix dependencies (#29232)
Do not use msys devel packages.
This commit is contained in:
parent
c3e8743a25
commit
cda6c1f124
@ -1,11 +1,7 @@
|
|||||||
if(EXISTS ${CURRENT_INSTALLED_DIR}/share/zbar/copyright)
|
|
||||||
message(FATAL_ERROR "${PORT} conflicts with zbar. Please remove zbar before installing ${PORT}.")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_from_github(
|
vcpkg_from_github(
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
REPO mchehab/zbar
|
REPO mchehab/zbar
|
||||||
REF 0.23.90
|
REF "${VERSION}"
|
||||||
SHA512 d73d71873bec68ee021997512a9edbd223f5f5fe43c66c4dd3502224ba6009be2e5e1714766cb8e1056244673e87e0939ed0319116f61d7371b5ab79fb5e04eb
|
SHA512 d73d71873bec68ee021997512a9edbd223f5f5fe43c66c4dd3502224ba6009be2e5e1714766cb8e1056244673e87e0939ed0319116f61d7371b5ab79fb5e04eb
|
||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
PATCHES
|
PATCHES
|
||||||
@ -15,35 +11,40 @@ vcpkg_from_github(
|
|||||||
x64.patch
|
x64.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
|
vcpkg_list(SET options)
|
||||||
|
if("nls" IN_LIST FEATURES)
|
||||||
|
vcpkg_list(APPEND options "--enable-nls")
|
||||||
|
else()
|
||||||
|
vcpkg_list(APPEND options "--disable-nls")
|
||||||
|
endif()
|
||||||
|
|
||||||
vcpkg_configure_make(
|
vcpkg_configure_make(
|
||||||
SOURCE_PATH "${SOURCE_PATH}"
|
SOURCE_PATH "${SOURCE_PATH}"
|
||||||
NO_ADDITIONAL_PATHS
|
AUTOCONFIG
|
||||||
ADD_BIN_TO_PATH
|
|
||||||
ADDITIONAL_MSYS_PACKAGES findutils gettext gettext-devel liblzma tar xz
|
|
||||||
OPTIONS
|
OPTIONS
|
||||||
--disable-video
|
${options}
|
||||||
|
--without-dbus
|
||||||
--without-gtk
|
--without-gtk
|
||||||
--without-imagemagick
|
--without-imagemagick
|
||||||
--without-java
|
--without-java
|
||||||
|
--without-jpeg
|
||||||
--without-python
|
--without-python
|
||||||
--without-qt
|
--without-qt
|
||||||
|
--disable-video
|
||||||
--without-xv
|
--without-xv
|
||||||
|
OPTIONS_RELEASE
|
||||||
|
--disable-assert
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_make()
|
vcpkg_install_make()
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
vcpkg_fixup_pkgconfig()
|
vcpkg_fixup_pkgconfig()
|
||||||
|
|
||||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
||||||
file(REMOVE_RECURSE
|
|
||||||
"${CURRENT_PACKAGES_DIR}/bin"
|
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
file(REMOVE_RECURSE
|
file(REMOVE_RECURSE
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
||||||
"${CURRENT_PACKAGES_DIR}/share/doc")
|
"${CURRENT_PACKAGES_DIR}/share/doc"
|
||||||
|
"${CURRENT_PACKAGES_DIR}/tools"
|
||||||
|
)
|
||||||
|
|
||||||
file(RENAME "${CURRENT_PACKAGES_DIR}/share/zbar" "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
||||||
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
|
||||||
|
@ -1,12 +1,31 @@
|
|||||||
{
|
{
|
||||||
"name": "mchehab-zbar",
|
"name": "mchehab-zbar",
|
||||||
"version": "0.23.90",
|
"version": "0.23.90",
|
||||||
"port-version": 1,
|
"port-version": 2,
|
||||||
"description": "ZBar is an open source software suite for reading bar codes from various sources, including webcams. This fork is actively maintained.",
|
"description": "ZBar is an open source software suite for reading bar codes from various sources, including webcams. This fork is actively maintained.",
|
||||||
"homepage": "https://github.com/mchehab/zbar",
|
"homepage": "https://github.com/mchehab/zbar",
|
||||||
"license": "LGPL-2.1-or-later",
|
"license": "LGPL-2.1-or-later",
|
||||||
"supports": "windows & !uwp",
|
"supports": "!uwp",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "gettext",
|
||||||
|
"host": true
|
||||||
|
},
|
||||||
"libiconv"
|
"libiconv"
|
||||||
]
|
],
|
||||||
|
"features": {
|
||||||
|
"nls": {
|
||||||
|
"description": "Native Language Support",
|
||||||
|
"dependencies": [
|
||||||
|
"gettext",
|
||||||
|
{
|
||||||
|
"name": "gettext",
|
||||||
|
"host": true,
|
||||||
|
"features": [
|
||||||
|
"tools"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,19 +11,6 @@ index c8fea14..eb0a097 100644
|
|||||||
AM_CXXFLAGS="$AM_CFLAGS"
|
AM_CXXFLAGS="$AM_CFLAGS"
|
||||||
AC_SUBST([AM_CPPFLAGS])
|
AC_SUBST([AM_CPPFLAGS])
|
||||||
AC_SUBST([AM_CFLAGS])
|
AC_SUBST([AM_CFLAGS])
|
||||||
diff --git a/zbar/Makefile.am b/zbar/Makefile.am
|
|
||||||
index ca54d01..6c0cd83 100644
|
|
||||||
--- a/zbar/Makefile.am
|
|
||||||
+++ b/zbar/Makefile.am
|
|
||||||
@@ -68,7 +68,7 @@ if WIN32
|
|
||||||
|
|
||||||
libzbar_la_SOURCES += processor/win.c libzbar.rc
|
|
||||||
libzbar_la_CPPFLAGS += -mthreads
|
|
||||||
-libzbar_la_LDFLAGS += -mthreads
|
|
||||||
+libzbar_la_LDFLAGS += -mthreads -Xcompiler -Wl,-DEBUG
|
|
||||||
# FIXME broken
|
|
||||||
libzbar_la_LIBADD += libzbar-rc.lo
|
|
||||||
else
|
|
||||||
diff --git a/zbar/libzbar.rc b/zbar/libzbar.rc
|
diff --git a/zbar/libzbar.rc b/zbar/libzbar.rc
|
||||||
index 413635b..c241f82 100644
|
index 413635b..c241f82 100644
|
||||||
--- a/zbar/libzbar.rc
|
--- a/zbar/libzbar.rc
|
||||||
|
@ -4886,7 +4886,7 @@
|
|||||||
},
|
},
|
||||||
"mchehab-zbar": {
|
"mchehab-zbar": {
|
||||||
"baseline": "0.23.90",
|
"baseline": "0.23.90",
|
||||||
"port-version": 1
|
"port-version": 2
|
||||||
},
|
},
|
||||||
"mcpp": {
|
"mcpp": {
|
||||||
"baseline": "2.7.2.14",
|
"baseline": "2.7.2.14",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "af1f66aef9076cd2e27c941851d1549d1cbffe00",
|
||||||
|
"version": "0.23.90",
|
||||||
|
"port-version": 2
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "545ecda77fa95f46216d944ca8ab1f7e12378930",
|
"git-tree": "545ecda77fa95f46216d944ca8ab1f7e12378930",
|
||||||
"version": "0.23.90",
|
"version": "0.23.90",
|
||||||
|
Loading…
Reference in New Issue
Block a user