2018-11-05 03:28:27 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO fribidi/fribidi
|
2021-10-20 09:30:40 +08:00
|
|
|
REF v1.0.11
|
|
|
|
SHA512 9ddb0dbfb28ee4f1d9dd5d46fe1fff75c5446bfdacaabf8647847c36ef72eec823f6e6d6d1369d67c292d680004f7113c9e69114a8fae1d73ab11a58c66a8b8a
|
2019-06-15 01:23:54 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2018-11-05 03:28:27 +08:00
|
|
|
|
2021-12-11 07:57:46 +08:00
|
|
|
vcpkg_configure_make(
|
2019-06-15 01:23:54 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
)
|
2018-11-05 03:28:27 +08:00
|
|
|
|
2021-12-11 07:57:46 +08:00
|
|
|
vcpkg_install_make(DISABLE_PARALLEL)
|
2020-11-19 05:36:20 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2018-11-05 03:28:27 +08:00
|
|
|
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
|
|
|
|
2021-12-11 07:57:46 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
2018-11-05 03:28:27 +08:00
|
|
|
# Handle copyright
|
2021-12-11 07:57:46 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|