mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 07:29:11 +08:00
bd0aeb70a3
* [portmidi] Add *inx support, refactory install process * update support * version * Re-fix dynamic build and use * version * Fix build on *inx * version * Re-fix installation * version * Add MAYBE_UNUSED_VARIABLES * version * Change macro judgment value and macro value * version stuff * Update versions/p-/portmidi.json Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
36 lines
1.1 KiB
CMake
36 lines
1.1 KiB
CMake
vcpkg_fail_port_install(ON_TARGET "uwp" ON_ARCH "arm")
|
|
|
|
vcpkg_from_sourceforge(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO portmedia
|
|
FILENAME "portmedia-code-r234.zip"
|
|
SHA512 cbc332d89bc465450b38245a83cc300dfd2e1e6de7c62284edf754ff4d8a9aa3dc49a395dcee535ed9688befb019186fa87fd6d8a3698898c2acbf3e6b7a0794
|
|
PATCHES
|
|
fix-build-install.patch
|
|
add-feature-options.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}/portmidi/trunk"
|
|
OPTIONS
|
|
-DJAVA_SUPPORT=OFF
|
|
-DJAVA_INCLUDE_PATH=
|
|
-DJAVA_INCLUDE_PATH2=
|
|
-DJAVA_JVM_LIBRARY=
|
|
MAYBE_UNUSED_VARIABLES
|
|
JAVA_INCLUDE_PATH
|
|
JAVA_INCLUDE_PATH2
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
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()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/portmidi/trunk/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|