2016-10-27 10:06:43 +08:00
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
message(FATAL_ERROR "Static building not supported yet")
|
|
|
|
endif()
|
2016-09-19 11:50:08 +08:00
|
|
|
include(vcpkg_common_functions)
|
2016-09-29 08:05:56 +08:00
|
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/openal-soft-1.17.2)
|
2016-09-19 11:50:08 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2016-09-25 06:23:04 +08:00
|
|
|
URLS "http://openal-soft.org/openal-releases/openal-soft-1.17.2.tar.bz2"
|
2016-09-19 11:50:08 +08:00
|
|
|
FILENAME "openal-soft-1.17.2.tar.bz2"
|
|
|
|
MD5 1764e0d8fec499589b47ebc724e0913d
|
2016-09-23 04:13:09 +08:00
|
|
|
SHA512 50c20cd3ddada55d91643a79c2894d5a14315d5fc1ed8e870e3d8d3f410e8b7d8da29b838226e7fce37fbeca719ff919b51806f72e4cd529a18fbe8bd68860e3
|
2016-09-19 11:50:08 +08:00
|
|
|
)
|
|
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2016-09-29 08:05:56 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2016-09-19 11:50:08 +08:00
|
|
|
OPTIONS
|
|
|
|
-DALSOFT_UTILS=OFF
|
|
|
|
-DALSOFT_NO_CONFIG_UTIL=ON
|
|
|
|
-DALSOFT_EXAMPLES=OFF
|
|
|
|
-DALSOFT_TESTS=OFF
|
|
|
|
-DALSOFT_CONFIG=OFF
|
|
|
|
-DALSOFT_HRTF_DEFS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2016-09-29 08:05:56 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/openal-soft)
|
2016-09-19 11:50:08 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/openal-soft/COPYING ${CURRENT_PACKAGES_DIR}/share/openal-soft/copyright)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|