2018-11-05 03:28:27 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO fribidi/fribidi
|
2020-08-11 06:33:47 +08:00
|
|
|
REF 5464c284034da9c058269377b7f5013bb089f553 # v1.0.10
|
|
|
|
SHA512 82e42b022f23d6ecebac5071f997c9f46db6aa41c36f87a7f1a28a79b4ccaada10d68b233bbf687c552fc94d91f4b47161e0ef4909fd1de0b483089f1d1377f9
|
2019-06-15 01:23:54 +08:00
|
|
|
HEAD_REF master
|
2019-08-21 03:18:47 +08:00
|
|
|
PATCHES fix-win-static-suffix.patch
|
2019-06-15 01:23:54 +08:00
|
|
|
)
|
2018-11-05 03:28:27 +08:00
|
|
|
|
2019-06-15 01:23:54 +08:00
|
|
|
vcpkg_configure_meson(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2018-11-05 03:28:27 +08:00
|
|
|
OPTIONS
|
|
|
|
-Ddocs=false
|
2020-08-11 06:33:47 +08:00
|
|
|
-Dbin=false
|
|
|
|
-Dtests=false
|
2019-06-15 01:23:54 +08:00
|
|
|
--backend=ninja
|
|
|
|
)
|
2018-11-05 03:28:27 +08:00
|
|
|
|
|
|
|
vcpkg_install_meson()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2020-08-11 06:33:47 +08:00
|
|
|
# Define static macro
|
|
|
|
file(READ ${CURRENT_PACKAGES_DIR}/include/fribidi/fribidi-common.h FRIBIDI_COMMON_H)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
string(REPLACE "#ifndef FRIBIDI_LIB_STATIC" "#if 0" FRIBIDI_COMMON_H "${FRIBIDI_COMMON_H}")
|
|
|
|
else()
|
|
|
|
string(REPLACE "#ifndef FRIBIDI_LIB_STATIC" "#if 1" FRIBIDI_COMMON_H "${FRIBIDI_COMMON_H}")
|
2019-03-21 00:51:08 +08:00
|
|
|
endif()
|
2020-08-11 06:33:47 +08:00
|
|
|
file(WRITE ${CURRENT_PACKAGES_DIR}/include/fribidi/fribidi-common.h "${FRIBIDI_COMMON_H}")
|
2019-03-21 00:51:08 +08:00
|
|
|
|
2018-11-05 03:28:27 +08:00
|
|
|
# Handle copyright
|
2020-05-21 01:10:59 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|