diff options
| author | grdowns <grdowns@microsoft.com> | 2019-07-01 12:41:26 -0700 |
|---|---|---|
| committer | grdowns <grdowns@microsoft.com> | 2019-07-01 12:41:26 -0700 |
| commit | dbeae6f05c417e7652f7295f77c94f9cd6bda992 (patch) | |
| tree | 076fc19a883ac2c7697f2ce24ffdc5033224c02f | |
| parent | 0550221978d520e4e12c459a6fab5be16d5fa753 (diff) | |
| download | vcpkg-dbeae6f05c417e7652f7295f77c94f9cd6bda992.tar.gz vcpkg-dbeae6f05c417e7652f7295f77c94f9cd6bda992.zip | |
Clean up comments and whitespace
| -rw-r--r-- | ports/soxr/portfile.cmake | 46 |
1 files changed, 12 insertions, 34 deletions
diff --git a/ports/soxr/portfile.cmake b/ports/soxr/portfile.cmake index c1a028114..15180241c 100644 --- a/ports/soxr/portfile.cmake +++ b/ports/soxr/portfile.cmake @@ -1,33 +1,14 @@ -# Common Ambient Variables:
-# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
-# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
-# CURRENT_PORT_DIR = ${VCPKG_ROOT_DIR}\ports\${PORT}
-# PORT = current port name (zlib, etc)
-# TARGET_TRIPLET = current triplet (x86-windows, x64-windows-static, etc)
-# VCPKG_CRT_LINKAGE = C runtime linkage type (static, dynamic)
-# VCPKG_LIBRARY_LINKAGE = target library linkage type (static, dynamic)
-# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
-# VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm)
-#
-
include(vcpkg_common_functions)
vcpkg_download_distfile(ARCHIVE
- URLS "https://netcologne.dl.sourceforge.net/project/soxr/soxr-0.1.3-Source.tar.xz"
- FILENAME "soxr-0.1.3-Source.tar.xz"
- SHA512 f4883ed298d5650399283238aac3dbe78d605b988246bea51fa343d4a8ce5ce97c6e143f6c3f50a3ff81795d9c19e7a07217c586d4020f6ced102aceac46aaa8
+ URLS "https://netcologne.dl.sourceforge.net/project/soxr/soxr-0.1.3-Source.tar.xz"
+ FILENAME "soxr-0.1.3-Source.tar.xz"
+ SHA512 f4883ed298d5650399283238aac3dbe78d605b988246bea51fa343d4a8ce5ce97c6e143f6c3f50a3ff81795d9c19e7a07217c586d4020f6ced102aceac46aaa8
)
vcpkg_extract_source_archive_ex(
- OUT_SOURCE_PATH SOURCE_PATH
- ARCHIVE ${ARCHIVE}
- # (Optional) A friendly name to use instead of the filename of the archive (e.g.: a version number or tag).
- # REF 1.0.0
- # (Optional) Read the docs for how to generate patches at:
- # https://github.com/Microsoft/vcpkg/blob/master/docs/examples/patching.md
- # PATCHES
- # 001_port_fixes.patch
- # 002_more_port_fixes.patch
+ OUT_SOURCE_PATH SOURCE_PATH
+ ARCHIVE ${ARCHIVE}
PATCHES
001_initialize-resampler.patch
002_disable_warning.patch
@@ -35,21 +16,18 @@ vcpkg_extract_source_archive_ex( )
vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA # Disable this option if project cannot be built with Ninja
- # OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
- # OPTIONS_RELEASE -DOPTIMIZE=1
- # OPTIONS_DEBUG -DDEBUGGABLE=1
- OPTIONS -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF -DWITH_OPENMP=OFF -DWITH_LSR_BINDINGS=OFF
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_TESTS=OFF
+ -DBUILD_EXAMPLES=OFF
+ -DWITH_OPENMP=OFF
+ -DWITH_LSR_BINDINGS=OFF
)
vcpkg_install_cmake()
-# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENCE DESTINATION ${CURRENT_PACKAGES_DIR}/share/soxr RENAME copyright)
-# Post-build test for cmake libraries
-# vcpkg_test_cmake(PACKAGE_NAME soxr)
-
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
