2022-08-25 00:08:34 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mchehab/zbar
|
2023-02-01 10:08:16 +08:00
|
|
|
REF "${VERSION}"
|
2022-08-25 00:08:34 +08:00
|
|
|
SHA512 d73d71873bec68ee021997512a9edbd223f5f5fe43c66c4dd3502224ba6009be2e5e1714766cb8e1056244673e87e0939ed0319116f61d7371b5ab79fb5e04eb
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
c99.patch
|
|
|
|
issue219.patch
|
|
|
|
windows.patch
|
|
|
|
x64.patch
|
|
|
|
)
|
|
|
|
|
2023-02-01 10:08:16 +08:00
|
|
|
vcpkg_list(SET options)
|
|
|
|
if("nls" IN_LIST FEATURES)
|
|
|
|
vcpkg_list(APPEND options "--enable-nls")
|
|
|
|
else()
|
|
|
|
vcpkg_list(APPEND options "--disable-nls")
|
2023-02-22 01:00:56 +08:00
|
|
|
set(ENV{AUTOPOINT} true) # true, the program
|
2023-05-22 08:56:14 +08:00
|
|
|
# Simulate the relevant effects of (interactive) `gettextize`.
|
2023-02-22 01:00:56 +08:00
|
|
|
file(TOUCH "${SOURCE_PATH}/po/Makefile.in.in")
|
2023-05-22 08:56:14 +08:00
|
|
|
file(GLOB_RECURSE m4_files "${CURRENT_HOST_INSTALLED_DIR}/share/gettext/aclocal/*.m4")
|
2023-02-22 01:00:56 +08:00
|
|
|
file(INSTALL ${m4_files} DESTINATION "${SOURCE_PATH}/config")
|
2023-02-01 10:08:16 +08:00
|
|
|
endif()
|
|
|
|
|
2022-08-25 00:08:34 +08:00
|
|
|
vcpkg_configure_make(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-02-01 10:08:16 +08:00
|
|
|
AUTOCONFIG
|
2023-02-22 01:00:56 +08:00
|
|
|
ADD_BIN_TO_PATH # checking for working iconv
|
2022-08-25 00:08:34 +08:00
|
|
|
OPTIONS
|
2023-02-01 10:08:16 +08:00
|
|
|
${options}
|
|
|
|
--without-dbus
|
2022-08-25 00:08:34 +08:00
|
|
|
--without-gtk
|
|
|
|
--without-imagemagick
|
|
|
|
--without-java
|
2023-02-01 10:08:16 +08:00
|
|
|
--without-jpeg
|
2022-08-25 00:08:34 +08:00
|
|
|
--without-python
|
|
|
|
--without-qt
|
2023-02-01 10:08:16 +08:00
|
|
|
--disable-video
|
2022-10-25 07:20:33 +08:00
|
|
|
--without-xv
|
2023-02-01 10:08:16 +08:00
|
|
|
OPTIONS_RELEASE
|
|
|
|
--disable-assert
|
2022-08-25 00:08:34 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_make()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
2023-02-01 10:08:16 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/share/doc"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/tools"
|
|
|
|
)
|
2022-08-25 00:08:34 +08:00
|
|
|
|
2023-02-01 10:08:16 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|