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

[libofx] new port #26864

Merged
merged 12 commits into from
Sep 29, 2022
31 changes: 31 additions & 0 deletions ports/libofx/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO wrobelda/libofx
REF config_cmake
SHA512 f504430072d152a42c3a3fcd9ee7a11896fe671527fc56b421f0771c855b289ba31a9532eb0b7b6d1cd0f600786a5256e3040fcff6109b50d97d8461a509e389
HEAD_REF master
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
"ofxconnect" ENABLE_OFXCONNECT
"ofxdump" ENABLE_OFXDUMP
"ofx2qif" ENABLE_OFX2QIF
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DENABLE_ICONV=ON
${FEATURE_OPTIONS}
)

vcpkg_cmake_install()
vcpkg_fixup_pkgconfig()
vcpkg_cmake_config_fixup(PACKAGE_NAME LibOFX CONFIG_PATH lib/cmake/libofx)
vcpkg_copy_pdbs()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
37 changes: 37 additions & 0 deletions ports/libofx/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "libofx",
"version": "0.10.7",
"description": "OFX banking protocol abstraction library",
"homepage": "http://libofx.sourceforge.net",
"dependencies": [
"libopensp",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
"iconv"
],
"features": {
"iconv": {
"description": "Enables ICONV support for encoding conversion",
"dependencies": [
"libiconv"
]
},
"ofx2qif": {
"description": "Enables OFX file to QIF (Quicken Interchange Format) file converter"
},
"ofxconnect": {
"description": "Enables ofxconnect utility which allows to test OFX Direct Connect"
},
"ofxdump": {
"description": "Enables ofxdump utility which prints, in human readable form, everything the library understands about a file"
}
}
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3960,6 +3960,10 @@
"baseline": "2.4.0",
"port-version": 9
},
"libofx": {
"baseline": "0.10.7",
"port-version": 0
},
"libogg": {
"baseline": "1.3.5",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/libofx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "f8cf97a9ae490a0539e1465f49b316a73578e1f2",
"version": "0.10.7",
"port-version": 0
}
]
}