diff options
| author | Stefano Sinigardi <stesinigardi@hotmail.com> | 2018-07-04 09:58:26 +0200 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-07-04 00:58:26 -0700 |
| commit | 0a656f6a7a82011ac4b923d902d27c828cc1094e (patch) | |
| tree | e490c79cae27ea228834865584dffaf3f64c125a | |
| parent | c0ec4809b1405c64edd7ea715c022cb9058e4071 (diff) | |
| download | vcpkg-0a656f6a7a82011ac4b923d902d27c828cc1094e.tar.gz vcpkg-0a656f6a7a82011ac4b923d902d27c828cc1094e.zip | |
[pngwriter][WIP] add port (#3600)
* [pngwriter] add port
* [pngwriter] Fix x86-windows builds. Improve cmake target fixups.
| -rw-r--r-- | ports/pngwriter/CONTROL | 4 | ||||
| -rw-r--r-- | ports/pngwriter/portfile.cmake | 28 |
2 files changed, 32 insertions, 0 deletions
diff --git a/ports/pngwriter/CONTROL b/ports/pngwriter/CONTROL new file mode 100644 index 000000000..667dafa24 --- /dev/null +++ b/ports/pngwriter/CONTROL @@ -0,0 +1,4 @@ +Source: pngwriter +Version: 0.7.0-1 +Build-Depends: zlib, libpng, freetype +Description: PNGwriter is a very easy to use open source graphics library that uses PNG as its output format diff --git a/ports/pngwriter/portfile.cmake b/ports/pngwriter/portfile.cmake new file mode 100644 index 000000000..937010522 --- /dev/null +++ b/ports/pngwriter/portfile.cmake @@ -0,0 +1,28 @@ +include(vcpkg_common_functions) + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") + message("Only static linkage is supported by pngwriter.") + set(VCPKG_LIBRARY_LINKAGE static) +endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO pngwriter/pngwriter + REF 0.7.0 + SHA512 3e4ef098e4d715d18844cada64f32dbf079fdd1f7a64b6fe5e19584094f6b2a61f80c53804f936b6eefd7ef9dad4a01a7210b1273939d385a0850e48f8ba6683 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets(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) |
