2021-09-17 22:51:19 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "uwp" ON_ARCH "arm")
|
2017-12-27 18:49:36 +08:00
|
|
|
|
2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-08-22 00:44:38 +08:00
|
|
|
REPO portmedia
|
|
|
|
FILENAME "portmedia-code-r234.zip"
|
|
|
|
SHA512 cbc332d89bc465450b38245a83cc300dfd2e1e6de7c62284edf754ff4d8a9aa3dc49a395dcee535ed9688befb019186fa87fd6d8a3698898c2acbf3e6b7a0794
|
2021-09-17 22:51:19 +08:00
|
|
|
PATCHES
|
|
|
|
fix-build-install.patch
|
|
|
|
add-feature-options.patch
|
2017-12-27 18:49:36 +08:00
|
|
|
)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2021-09-17 22:51:19 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/portmidi/trunk"
|
2017-12-27 18:49:36 +08:00
|
|
|
OPTIONS
|
2021-09-17 22:51:19 +08:00
|
|
|
-DJAVA_SUPPORT=OFF
|
2017-12-27 18:49:36 +08:00
|
|
|
-DJAVA_INCLUDE_PATH=
|
|
|
|
-DJAVA_INCLUDE_PATH2=
|
|
|
|
-DJAVA_JVM_LIBRARY=
|
2021-09-17 22:51:19 +08:00
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
JAVA_INCLUDE_PATH
|
|
|
|
JAVA_INCLUDE_PATH2
|
2017-12-27 18:49:36 +08:00
|
|
|
)
|
|
|
|
|
2021-09-17 22:51:19 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-12-27 18:49:36 +08:00
|
|
|
|
2021-09-17 22:51:19 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/portmidi.h"
|
|
|
|
"#elif defined _PM_USEDLL" "#elif 1"
|
|
|
|
)
|
|
|
|
endif()
|
2017-12-27 18:49:36 +08:00
|
|
|
|
2021-09-17 22:51:19 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-12-27 18:49:36 +08:00
|
|
|
|
2021-09-17 22:51:19 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/portmidi/trunk/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|