Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/frank/35217 #5

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ports/cimg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/CImg.h
DESTINATION include
)

install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/plugins DESTINATION include)

12 changes: 8 additions & 4 deletions ports/cimg/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH
REPO dtschump/CImg
REF b33dcc8f9f1acf1f276ded92c04f8231f6c23fcd # v2.9.9
SHA512 327c72320e7cac386ba72d417c45b9e8b40df34650370c34e687c362731919af1b447b2ee498f21278d4af155f0d9dbfabd222856d5f18c2e05569fa638a5909
REF d6c022169271fa3c73abf94002a557c4e6f8327f #v3.3.2
SHA512 0cb2e0cc41902bdb3a21bac079104d4c49bbf51ae0eef6497fdb645934311aa75480bffcc2fc9d11c5b54912397fb4910c4c20ccd766a83e317a8e861b9b513b
HEAD_REF master
)

Expand All @@ -17,5 +18,8 @@ vcpkg_cmake_install()
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")

file(INSTALL "${SOURCE_PATH}/Licence_CeCILL-C_V1-en.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL "${SOURCE_PATH}/Licence_CeCILL_V2-en.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright2)
vcpkg_install_copyright(
FILE_LIST
"${SOURCE_PATH}/Licence_CeCILL-C_V1-en.txt"
"${SOURCE_PATH}/Licence_CeCILL_V2-en.txt"
)
2 changes: 1 addition & 1 deletion ports/cimg/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cimg",
"version": "2.9.9",
"version": "3.3.2",
"description": "The CImg Library is a small, open-source, and modern C++ toolkit for image processing",
"homepage": "https://github.com/dtschump/CImg",
"dependencies": [
Expand Down
15 changes: 15 additions & 0 deletions ports/libslirp/fix-osx.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/meson.build b/meson.build
index 5605dc9..968edfb 100644
--- a/meson.build
+++ b/meson.build
@@ -117,6 +117,10 @@ if cc.has_link_argument(vflag_test)
vflag += vflag_test
endif

+if host_system == 'darwin'
+ vflag += '-framework CoreFoundation -framework AppKit -framework Carbon'
+endif
+
install_devel = not meson.is_subproject()

configure_file(
3 changes: 3 additions & 0 deletions ports/libslirp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ vcpkg_from_gitlab(
REF v4.7.0
SHA512 387f4a6dad240ce633df2640bb49c6cb0041c8b3afc8d0ef38186d385f00dd9e4ef4443e93e1b71dbf05e22892b6f2771a87a202e815d8ec899ab5c147a1f09f
HEAD_REF master
PATCHES
fix-osx.patch
)

if(VCPKG_HOST_IS_WINDOWS)
Expand All @@ -24,4 +26,5 @@ vcpkg_fixup_pkgconfig()

vcpkg_copy_pdbs()

file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libslirp" RENAME copyright)
5 changes: 5 additions & 0 deletions ports/libslirp/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
slirp can be imported via CMake FindPkgConfig module:

find_package(PkgConfig REQUIRED)
pkg_check_modules(Slirp REQUIRED IMPORTED_TARGET slirp)
target_link_libraries(slirp-test PRIVATE PkgConfig::Slirp)
1 change: 1 addition & 0 deletions ports/libslirp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "libslirp",
"version-semver": "4.7.0",
"port-version": 1,
"description": "libslirp is a user-mode networking library used by virtual machines, containers or various tools.",
"homepage": "https://gitlab.freedesktop.org/slirp/libslirp",
"license": "BSD-3-Clause",
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@
"port-version": 0
},
"cimg": {
"baseline": "2.9.9",
"baseline": "3.3.2",
"port-version": 0
},
"cista": {
Expand Down Expand Up @@ -4754,7 +4754,7 @@
},
"libslirp": {
"baseline": "4.7.0",
"port-version": 0
"port-version": 1
},
"libsm": {
"baseline": "1.2.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/cimg.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "aa3a7f6664a72a9c74b840e065abdd184655939a",
"version": "3.3.2",
"port-version": 0
},
{
"git-tree": "2eac332b873f6a2b9108c3e71e59feec8efe5026",
"version": "2.9.9",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libslirp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "39a62e66eeef4b2ad36c679ce5ccdd854b3d9920",
"version-semver": "4.7.0",
"port-version": 1
},
{
"git-tree": "6946f40e08a89013e998d3bf397613bdf08cb581",
"version-semver": "4.7.0",
Expand Down