forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fluidlite] Add new port (microsoft#13006)
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Source: fluidlite | ||
Version: 2020-08-20 | ||
Homepage: https://github.com/divideconcept/FluidLite | ||
Description: FluidLite is a very light version of FluidSynth designed to be hardware, platform and external dependency independant. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO divideconcept/FluidLite | ||
REF 1cf5c3ab61ea0a3abfbe13ac0692a056e8c0d535 | ||
SHA512 785911d9b414b744d8f09492ad713d63344d4ef36b4a9e747b78172c94373b4949422d7c1b1ae42af6b5305f0df5d08cf81e9c443f85c93086131f0f9c029007 | ||
HEAD_REF master | ||
) | ||
|
||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" FLUIDLITE_BUILD_STATIC) | ||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" FLUIDLITE_BUILD_SHARED) | ||
|
||
vcpkg_configure_cmake( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
PREFER_NINJA | ||
OPTIONS | ||
-DFLUIDLITE_BUILD_STATIC=${FLUIDLITE_BUILD_STATIC} | ||
-DFLUIDLITE_BUILD_SHARED=${FLUIDLITE_BUILD_SHARED} | ||
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON | ||
) | ||
|
||
vcpkg_install_cmake() | ||
|
||
# Remove unnecessary files | ||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) | ||
|
||
# Handle copyright | ||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |