diff options
Diffstat (limited to 'vcpkg/ports/pngwriter')
| -rw-r--r-- | vcpkg/ports/pngwriter/portfile.cmake | 22 | ||||
| -rw-r--r-- | vcpkg/ports/pngwriter/vcpkg.json | 19 |
2 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/pngwriter/portfile.cmake b/vcpkg/ports/pngwriter/portfile.cmake new file mode 100644 index 0000000..38c577e --- /dev/null +++ b/vcpkg/ports/pngwriter/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO pngwriter/pngwriter + REF 0.7.0 + SHA512 3e4ef098e4d715d18844cada64f32dbf079fdd1f7a64b6fe5e19584094f6b2a61f80c53804f936b6eefd7ef9dad4a01a7210b1273939d385a0850e48f8ba6683 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/PNGwriter) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/doc/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/pngwriter" RENAME copyright) diff --git a/vcpkg/ports/pngwriter/vcpkg.json b/vcpkg/ports/pngwriter/vcpkg.json new file mode 100644 index 0000000..bb57c11 --- /dev/null +++ b/vcpkg/ports/pngwriter/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "pngwriter", + "version": "0.7.0", + "port-version": 5, + "description": "PNGwriter is a very easy to use open source graphics library that uses PNG as its output format", + "dependencies": [ + "freetype", + "libpng", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zlib" + ] +} |