diff options
| author | JackMacWindows <jackmacwindowslinux@gmail.com> | 2020-08-05 16:10:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-05 13:10:26 -0700 |
| commit | 96adaeb47ded75ebdd32c005f6df366582d11a62 (patch) | |
| tree | 7aef6fd27400c48f3f52df6376842cf4b0b6d3b6 | |
| parent | bd98b498c539aedcfd0e6a9620c160baff105656 (diff) | |
| download | vcpkg-96adaeb47ded75ebdd32c005f6df366582d11a62.tar.gz vcpkg-96adaeb47ded75ebdd32c005f6df366582d11a62.zip | |
[pngpp] Add png++ port (as pngpp) (#12705)
* Create vcpkg.json
* Create portfile.cmake
* Fixed CI
* Update ports/pngpp/portfile.cmake
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
* Update ports/pngpp/portfile.cmake
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
| -rw-r--r-- | ports/pngpp/portfile.cmake | 15 | ||||
| -rw-r--r-- | ports/pngpp/vcpkg.json | 8 |
2 files changed, 23 insertions, 0 deletions
diff --git a/ports/pngpp/portfile.cmake b/ports/pngpp/portfile.cmake new file mode 100644 index 000000000..1fa23e444 --- /dev/null +++ b/ports/pngpp/portfile.cmake @@ -0,0 +1,15 @@ +# Header only library +vcpkg_download_distfile(ARCHIVE + URLS "http://download.savannah.nongnu.org/releases/pngpp/png++-0.2.10.tar.gz" + FILENAME "png++-0.2.10.tar.gz" + SHA512 c54a74c0c20212bd0dcf86386c0c11dd824ad14952917ba0ff4c184b6547744458728a4f06018371acb7d5b842b641708914ccaa81bad8e72e173903f494ca85 +) + +vcpkg_extract_source_archive_ex( + OUT_SOURCE_PATH SOURCE_PATH + ARCHIVE ${ARCHIVE} +) + +file(GLOB HEADER_FILES ${SOURCE_PATH}/*.hpp) +file(INSTALL ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/png++) +file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/pngpp/vcpkg.json b/ports/pngpp/vcpkg.json new file mode 100644 index 000000000..67312ef2f --- /dev/null +++ b/ports/pngpp/vcpkg.json @@ -0,0 +1,8 @@ +{ + "name": "pngpp", + "version-string": "0.2.10", + "description": "A C++ wrapper for libpng library.", + "dependencies": [ + "libpng" + ] +} |
