2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2016-12-04 22:03:47 +08:00
|
|
|
|
2020-09-28 08:41:42 +08:00
|
|
|
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
2020-04-07 05:08:04 +08:00
|
|
|
message(WARNING "You will need to install Xorg dependencies to use nana:\napt install libx11-dev libxft-dev libxcursor-dev\n")
|
2018-06-15 05:56:43 +08:00
|
|
|
endif()
|
|
|
|
|
2017-05-03 19:43:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cnjinhao/nana
|
2020-09-28 08:41:42 +08:00
|
|
|
REF 554c4fe87fc31b8ee104228e9117d545d34855b5 # v1.7.4
|
|
|
|
SHA512 d9db8ea1bd47fe663b8e2443a1a3e279760dbd11ef6bc78d9dc8f6fd12f9736b8c8315dfc84d21325e02ad6b2dc3a429593ac80e7610097ddc7253668c383178
|
2017-06-01 00:59:08 +08:00
|
|
|
HEAD_REF develop
|
2019-06-26 02:00:48 +08:00
|
|
|
PATCHES
|
|
|
|
fix-build-error.patch
|
2017-05-03 19:43:07 +08:00
|
|
|
)
|
2016-12-04 22:03:47 +08:00
|
|
|
|
2018-06-15 05:56:43 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.cmake.in DESTINATION ${SOURCE_PATH})
|
|
|
|
|
2016-12-04 22:03:47 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-06-01 00:59:08 +08:00
|
|
|
PREFER_NINJA
|
2016-12-04 22:03:47 +08:00
|
|
|
OPTIONS
|
2018-06-15 05:56:43 +08:00
|
|
|
-DNANA_ENABLE_PNG=ON
|
|
|
|
-DNANA_ENABLE_JPEG=ON
|
2016-12-04 22:03:47 +08:00
|
|
|
OPTIONS_DEBUG
|
2018-06-15 05:56:43 +08:00
|
|
|
-DNANA_INSTALL_HEADERS=OFF)
|
2016-12-04 22:03:47 +08:00
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2018-06-15 05:56:43 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-nana TARGET_PATH share/unofficial-nana)
|
|
|
|
|
2016-12-04 22:03:47 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2020-09-28 08:41:42 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|