2022-09-23 05:23:53 +08:00
vcpkg_from_github (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O b r e a k f a s t q u a y / r u b b e r b a n d
2023-04-07 08:02:13 +08:00
R E F " v $ { V E R S I O N } "
S H A 5 1 2 9 5 3 d 7 0 5 e 4 a 6 9 e d 4 0 7 3 2 6 4 4 b 8 0 3 9 d a e 0 2 d d f 5 9 6 2 1 6 e 4 8 4 c e 8 6 2 5 f d d e 7 9 6 e 0 d e 3 5 f e 6 a c 6 c 4 f 1 8 0 e a b c 4 5 7 c 9 8 b 6 3 c 3 f b a 2 1 2 a f a 7 4 b 7 3 1 e a c 5 7 0 b e a 1 9 0 2 b 6 6 7 f 5 0 6 f
2022-09-23 05:23:53 +08:00
H E A D _ R E F d e f a u l t
)
2023-04-07 08:02:13 +08:00
if ( "cli" IN_LIST FEATURES )
set ( CLI_FEATURE enabled )
else ( )
set ( CLI_FEATURE disabled )
endif ( )
2022-09-23 05:23:53 +08:00
vcpkg_configure_meson (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
O P T I O N S
2023-04-07 08:02:13 +08:00
- D f f t = f f t w # 'auto', 'builtin', 'kissfft', 'fftw', sleef', 'vdsp', 'ipp' 'FFT library to use. The default (auto) will use vDSP if available, the builtin implementation otherwise.')
- D r e s a m p l e r = l i b s a m p l e r a t e # 'auto', 'builtin', 'libsamplerate', 'speex', 'libspeexdsp', 'ipp' 'Resampler library to use. The default (auto) simply uses the builtin implementation.'
2022-09-23 05:23:53 +08:00
- D i p p _ p a t h = # 'Path to Intel IPP libraries, if selected for any of the other options.'
- D e x t r a _ i n c l u d e _ d i r s = # 'Additional local header directories to search for dependencies.'
- D e x t r a _ l i b _ d i r s = # 'Additional local library directories to search for dependencies.'
2023-04-07 08:02:13 +08:00
- D j n i = d i s a b l e d # 'auto', 'disabled', 'enabled'
- D l a d s p a = d i s a b l e d # 'auto', 'disabled', 'enabled'
- D l v 2 = d i s a b l e d # 'auto', 'disabled', 'enabled' lv2 feature is not yet supported yet because vcpkg can't isntall to
# %APPDATA%\LV2 or %COMMONPROGRAMFILES%\LV2 but also complains about dlls in "${CURRENT_PACKAGES_DIR}/lib/lv2"
- D v a m p = d i s a b l e d # 'auto', 'disabled', 'enabled'
- D c m d l i n e = $ { C L I _ F E A T U R E } # 'auto', 'disabled', 'enabled'
- D t e s t s = d i s a b l e d # 'auto', 'disabled', 'enabled'
2022-09-23 05:23:53 +08:00
)
vcpkg_install_meson ( )
vcpkg_fixup_pkgconfig ( )
vcpkg_copy_pdbs ( )
if ( EXISTS "${CURRENT_PACKAGES_DIR}/bin/rubberband-program${VCPKG_TARGET_EXECUTABLE_SUFFIX}" )
2022-11-03 04:43:21 +08:00
# Rubberband uses a different executable name when compiled with msvc
2022-09-23 05:23:53 +08:00
# Just looking for that file is faster than detecting msvc builds
2022-11-03 04:43:21 +08:00
set ( RUBBERBAND_PROGRAM_NAMES rubberband-program rubberband-program-r3 )
2022-09-23 05:23:53 +08:00
else ( )
2022-11-03 04:43:21 +08:00
set ( RUBBERBAND_PROGRAM_NAMES rubberband rubberband-r3 )
endif ( )
2022-09-23 05:23:53 +08:00
2022-11-03 04:43:21 +08:00
# Remove them when not enabled.
2022-09-23 05:23:53 +08:00
if ( "cli" IN_LIST FEATURES )
2022-11-03 04:43:21 +08:00
vcpkg_copy_tools ( TOOL_NAMES ${ RUBBERBAND_PROGRAM_NAMES } AUTO_CLEAN )
2022-09-23 05:23:53 +08:00
endif ( )
file (
I N S T A L L " $ { S O U R C E _ P A T H } / C O P Y I N G "
D E S T I N A T I O N " $ { C U R R E N T _ P A C K A G E S _ D I R } / s h a r e / $ { P O R T } "
R E N A M E c o p y r i g h t
)