aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kyne <xskyne@gmail.com>2018-02-16 22:42:54 +0000
committerRobert Schumacher <roschuma@microsoft.com>2018-02-16 14:42:54 -0800
commitcc779ce6928d7682c252bda2d616b3e85dc843c7 (patch)
tree7bc4202b3240409400034ea176842aad05ae42ed
parentbfac7b57161168b8b54ea159bbf2c88794098c1c (diff)
downloadvcpkg-cc779ce6928d7682c252bda2d616b3e85dc843c7.tar.gz
vcpkg-cc779ce6928d7682c252bda2d616b3e85dc843c7.zip
[liblo] Initial port (#2821)
* [portaudio] Added ASIO support to build * Update libpng to 1.6.34 * [liblo] Initial port * Revert "Update libpng to 1.6.34" This reverts commit ede0bb947b07aea119b7b05e3625c3eec1395af4. * Revert "[liblo] Initial port" This reverts commit bb819eb21841bb8cf4816af5a78e17ef58ec8ce5. * [liblo] Initial port * [liblo] Use vcpkg_from_github() and vcpkg_fixup_cmake_targets() * [liblo] Fix SHA512
-rw-r--r--ports/liblo/CONTROL3
-rw-r--r--ports/liblo/portfile.cmake36
2 files changed, 39 insertions, 0 deletions
diff --git a/ports/liblo/CONTROL b/ports/liblo/CONTROL
new file mode 100644
index 000000000..b5c4f6861
--- /dev/null
+++ b/ports/liblo/CONTROL
@@ -0,0 +1,3 @@
+Source: liblo
+Version: 0.29-1
+Description: liblo is an implementation of the Open Sound Control protocol for POSIX systems \ No newline at end of file
diff --git a/ports/liblo/portfile.cmake b/ports/liblo/portfile.cmake
new file mode 100644
index 000000000..4dae62903
--- /dev/null
+++ b/ports/liblo/portfile.cmake
@@ -0,0 +1,36 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO radarsat1/liblo
+ REF 0.29
+ SHA512 45648f2b2280e056b045dc0f08491baa7c154a983af95cf79438ac8fafd8f03a44c337a4beb0e01dce1f4d7352a03dc9088244d8db77dcdbfa6e39874dd6250f
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}/cmake
+ PREFER_NINJA # Disable this option if project cannot be built with Ninja
+ OPTIONS -DTHREADING=1
+)
+
+vcpkg_install_cmake()
+
+# Install needed files into package directory
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/liblo)
+
+file(INSTALL ${CURRENT_PACKAGES_DIR}/bin/oscsend.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools/liblo)
+file(INSTALL ${CURRENT_PACKAGES_DIR}/bin/oscdump.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools/liblo)
+vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/liblo)
+
+# Remove unnecessary files
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/oscsend.exe ${CURRENT_PACKAGES_DIR}/bin/oscdump.exe)
+file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/oscsend.exe ${CURRENT_PACKAGES_DIR}/debug/bin/oscdump.exe)
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
+endif()
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/liblo RENAME copyright)