Skip to content

Commit

Permalink
[pngpp] Add png++ port (as pngpp) (#12705)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
MCJack123 and JackBoosY committed Aug 5, 2020
1 parent bd98b49 commit 96adaeb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ports/pngpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
8 changes: 8 additions & 0 deletions ports/pngpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "pngpp",
"version-string": "0.2.10",
"description": "A C++ wrapper for libpng library.",
"dependencies": [
"libpng"
]
}

0 comments on commit 96adaeb

Please sign in to comment.