2019-05-07 06:52:14 +08:00
|
|
|
set( LIBNOISE_VERSION "1.0.0" )
|
|
|
|
set( LIBNOISE_COMMIT "d7e68784a2b24c632868506780eba336ede74ecd" )
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO RobertHue/libnoise
|
|
|
|
REF ${LIBNOISE_COMMIT}
|
|
|
|
SHA512 8c4d654acb4ae3d90ee62ebdf0447f876022dcb887ebfad88f39b09d29183a58e6fc1b1f1d03edff804975c8befcc6eda33c44797495285aae338c2e869a14d7
|
|
|
|
HEAD_REF master
|
2020-10-22 07:31:06 +08:00
|
|
|
PATCHES fix-build.patch
|
2019-05-07 06:52:14 +08:00
|
|
|
)
|
|
|
|
|
2022-03-24 07:20:53 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-10-22 07:31:06 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_WALL=ON
|
|
|
|
-DBUILD_SPEED_OPTIMIZED=ON
|
|
|
|
-DBUILD_LIBNOISE_DOCUMENTATION=OFF
|
|
|
|
-DBUILD_LIBNOISE_UTILS=ON
|
|
|
|
-DBUILD_LIBNOISE_EXAMPLES=OFF
|
2019-05-07 06:52:14 +08:00
|
|
|
)
|
|
|
|
|
2022-03-24 07:20:53 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-05-07 06:52:14 +08:00
|
|
|
|
2022-03-24 07:20:53 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-noise CONFIG_PATH share/unofficial-noise)
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-noiseutils CONFIG_PATH share/unofficial-noiseutils)
|
2019-05-07 06:52:14 +08:00
|
|
|
|
2020-10-22 07:31:06 +08:00
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/noise/module/modulebase.h
|
|
|
|
"if NOISE_STATIC" "if 1" )
|
|
|
|
endif()
|
|
|
|
|
2022-03-24 07:20:53 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|