diff --git a/ports/swig/portfile.cmake b/ports/swig/portfile.cmake new file mode 100644 index 0000000..1857072 --- /dev/null +++ b/ports/swig/portfile.cmake @@ -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) \ No newline at end of file diff --git a/ports/swig/vcpkg.json b/ports/swig/vcpkg.json new file mode 100644 index 0000000..03c23bd --- /dev/null +++ b/ports/swig/vcpkg.json @@ -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 + } + ] +} + \ No newline at end of file