aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kyne <xskyne@gmail.com>2018-04-19 23:30:39 +0100
committerRobert Schumacher <roschuma@microsoft.com>2018-04-19 15:30:39 -0700
commit8f08e64ace2bc18db78b5246711a29395c6180a1 (patch)
treefe4133faf673c82f5832f0a4a534b6fb3dcd4488
parent96dbb6c3df72b45cd81b166a6853bf341c683ab7 (diff)
downloadvcpkg-8f08e64ace2bc18db78b5246711a29395c6180a1.tar.gz
vcpkg-8f08e64ace2bc18db78b5246711a29395c6180a1.zip
[fluidsynth] Initial port (#3016)
* [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. * [fluidsynth] Initial port * Fixed version numbers
-rw-r--r--ports/fluidsynth/CONTROL4
-rw-r--r--ports/fluidsynth/portfile.cmake34
2 files changed, 38 insertions, 0 deletions
diff --git a/ports/fluidsynth/CONTROL b/ports/fluidsynth/CONTROL
new file mode 100644
index 000000000..7fbb29a5b
--- /dev/null
+++ b/ports/fluidsynth/CONTROL
@@ -0,0 +1,4 @@
+Source: fluidsynth
+Version: 1.1.10
+Description: FluidSynth reads and handles MIDI events from the MIDI input device. It is the software analogue of a MIDI synthesizer. FluidSynth can also play midifiles using a Soundfont.
+Build-Depends: glib \ No newline at end of file
diff --git a/ports/fluidsynth/portfile.cmake b/ports/fluidsynth/portfile.cmake
new file mode 100644
index 000000000..ed0cf532d
--- /dev/null
+++ b/ports/fluidsynth/portfile.cmake
@@ -0,0 +1,34 @@
+include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/fluidsynth-1.1.10)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO FluidSynth/fluidsynth
+ REF v1.1.10
+ SHA512 7ff7757baf6dee37f65a4fd214ffab1aa1434cfd1545deb4108fe2e9b0ed19d616880b2740a693b51ade0a4be998a671910b43cae26eb67fb97b16a513752cbc
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA # Disable this option if project cannot be built with Ninja
+ OPTIONS -Denable-pkgconfig=0
+)
+
+vcpkg_install_cmake()
+
+# Copy fluidsynth.exe to tools dir
+file(COPY ${CURRENT_PACKAGES_DIR}/bin/fluidsynth.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools/fluidsynth)
+vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/fluidsynth)
+
+# Remove unnecessary files
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/fluidsynth.exe)
+file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/fluidsynth.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}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/fluidsynth RENAME copyright)