diff --git a/ports/physac/LICENSE b/ports/physac/LICENSE new file mode 100644 index 0000000000..9cf7227b76 --- /dev/null +++ b/ports/physac/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 VĂ­ctor Fisac + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/ports/physac/portfile.cmake b/ports/physac/portfile.cmake new file mode 100644 index 0000000000..3d9fc5e6f8 --- /dev/null +++ b/ports/physac/portfile.cmake @@ -0,0 +1,14 @@ +#header-only library +set(VCPKG_BUILD_TYPE release) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO victorfisac/Physac + REF "${VERSION}" + SHA512 c539ee73d6f456e592d4a92cc5707278476632626b0fa0edfe6396cd4460fe0c2669843f4df3a22a132664d1981d261601061cca76ad1e4b63510a901fc3987b + HEAD_REF master +) + +file(INSTALL "${SOURCE_PATH}/src/physac.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include") + +vcpkg_install_copyright(FILE_LIST "${CMAKE_CURRENT_LIST_DIR}/LICENSE") diff --git a/ports/physac/vcpkg.json b/ports/physac/vcpkg.json new file mode 100644 index 0000000000..2b478cd811 --- /dev/null +++ b/ports/physac/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "physac", + "version": "1.1", + "description": "2D physics header-only library for videogames developed in C using raylib library.", + "homepage": "https://github.com/victorfisac/Physac", + "license": "MIT" +} diff --git a/versions/baseline.json b/versions/baseline.json index 42fa170b31..b0c1446f66 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5908,6 +5908,10 @@ "baseline": "2020-12-21", "port-version": 0 }, + "physac": { + "baseline": "1.1", + "port-version": 0 + }, "physfs": { "baseline": "3.2.0", "port-version": 1 diff --git a/versions/p-/physac.json b/versions/p-/physac.json new file mode 100644 index 0000000000..56caa120dd --- /dev/null +++ b/versions/p-/physac.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "9223c960b5280c6fed8fb4289523a3433b50349e", + "version": "1.1", + "port-version": 0 + } + ] +}