Skip to content

Commit

Permalink
[swig] New port
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Mar 14, 2024
1 parent 1b75796 commit 00b0b09
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ports/swig/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO swig/swig
REF "v${VERSION}"
SHA512 5d653333f73356d4d5ba8b615882e49f33f188bc68d8204352116bc4aca7946ec01ce2e02524c5ce805b98c2219ed05e664120485bf18095c5c0785436487074
HEAD_REF master
)

vcpkg_find_acquire_program(BISON)

list(APPEND OPTIONS "-D BISON_EXECUTABLE=${BISON}")

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${OPTIONS}
)

vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
vcpkg_copy_tools(TOOL_NAMES swig AUTO_CLEAN)

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
18 changes: 18 additions & 0 deletions ports/swig/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "swig",
"version": "4.2.1",
"description": "SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.",
"homepage": "http://www.swig.org/",
"dependencies":
[
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

0 comments on commit 00b0b09

Please sign in to comment.