vcpkg/ports/nana/portfile.cmake

34 lines
1.1 KiB
CMake
Raw Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2016-12-04 22:03:47 +08:00
if(NOT VCPKG_TARGET_IS_WINDOWS)
message(WARNING "You will need to install Xorg dependencies to use nana:\napt install libx11-dev libxft-dev libxcursor-dev\n")
endif()
2017-05-03 19:43:07 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO cnjinhao/nana
REF 554c4fe87fc31b8ee104228e9117d545d34855b5 # v1.7.4
SHA512 d9db8ea1bd47fe663b8e2443a1a3e279760dbd11ef6bc78d9dc8f6fd12f9736b8c8315dfc84d21325e02ad6b2dc3a429593ac80e7610097ddc7253668c383178
2017-06-01 00:59:08 +08:00
HEAD_REF develop
PATCHES
fix-build-error.patch
2017-05-03 19:43:07 +08:00
)
2016-12-04 22:03:47 +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}")
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2016-12-04 22:03:47 +08:00
OPTIONS
-DNANA_ENABLE_PNG=ON
-DNANA_ENABLE_JPEG=ON
2016-12-04 22:03:47 +08:00
OPTIONS_DEBUG
-DNANA_INSTALL_HEADERS=OFF)
2016-12-04 22:03:47 +08:00
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-nana)
2016-12-04 22:03:47 +08:00
vcpkg_copy_pdbs()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)