aboutsummaryrefslogtreecommitdiff
path: root/ports/openal-soft
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-09-28 17:05:56 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-09-28 17:05:56 -0700
commit36799555441089420f29fcb2724d9fde23bc9ec1 (patch)
tree4a43133e1aa52ce71d8b9a85f4c6bd20a5d2ffa8 /ports/openal-soft
parent4c382b02c73b234122e204d4db709d5a677a3e5e (diff)
downloadvcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.tar.gz
vcpkg-36799555441089420f29fcb2724d9fde23bc9ec1.zip
Introduce SOURCE_PATH to almost all portfiles
Diffstat (limited to 'ports/openal-soft')
-rw-r--r--ports/openal-soft/portfile.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/openal-soft/portfile.cmake b/ports/openal-soft/portfile.cmake
index d80bc373c..1e9781fd3 100644
--- a/ports/openal-soft/portfile.cmake
+++ b/ports/openal-soft/portfile.cmake
@@ -1,4 +1,5 @@
include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/openal-soft-1.17.2)
vcpkg_download_distfile(ARCHIVE
URLS "http://openal-soft.org/openal-releases/openal-soft-1.17.2.tar.bz2"
FILENAME "openal-soft-1.17.2.tar.bz2"
@@ -8,7 +9,7 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive(${ARCHIVE})
vcpkg_configure_cmake(
- SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/openal-soft-1.17.2
+ SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DALSOFT_UTILS=OFF
-DALSOFT_NO_CONFIG_UTIL=ON
@@ -22,7 +23,7 @@ vcpkg_build_cmake()
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-file(COPY ${CURRENT_BUILDTREES_DIR}/src/openal-soft-1.17.2/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/openal-soft)
+file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/openal-soft)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/openal-soft/COPYING ${CURRENT_PACKAGES_DIR}/share/openal-soft/copyright)
vcpkg_copy_pdbs()