aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ocilib
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/ocilib
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/ocilib')
-rw-r--r--vcpkg/ports/ocilib/fix-DisableWC4191.patch40
-rw-r--r--vcpkg/ports/ocilib/portfile.cmake46
-rw-r--r--vcpkg/ports/ocilib/vcpkg.json15
3 files changed, 101 insertions, 0 deletions
diff --git a/vcpkg/ports/ocilib/fix-DisableWC4191.patch b/vcpkg/ports/ocilib/fix-DisableWC4191.patch
new file mode 100644
index 0000000..f2ab36e
--- /dev/null
+++ b/vcpkg/ports/ocilib/fix-DisableWC4191.patch
@@ -0,0 +1,40 @@
+diff --git a/proj/dll/ocilib_dll.vcxproj b/proj/dll/ocilib_dll.vcxproj
+index 1caf1d3..b7d36ea 100644
+--- a/proj/dll/ocilib_dll.vcxproj
++++ b/proj/dll/ocilib_dll.vcxproj
+@@ -116,7 +116,7 @@
+ <PrecompiledHeader>
+ </PrecompiledHeader>
+ <WarningLevel>EnableAllWarnings</WarningLevel>
+- <TreatWarningAsError>true</TreatWarningAsError>
++ <TreatWarningAsError>false</TreatWarningAsError>
+ <DebugInformationFormat>
+ </DebugInformationFormat>
+ <CompileAs>CompileAsC</CompileAs>
+@@ -173,7 +173,7 @@
+ </DebugInformationFormat>
+ <CompileAs>CompileAsC</CompileAs>
+ <DisableSpecificWarnings>4255;4668;4996;4710;4711;4738;4774;4820;5045</DisableSpecificWarnings>
+- <TreatWarningAsError>true</TreatWarningAsError>
++ <TreatWarningAsError>false</TreatWarningAsError>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>OCI_CHARSET_ANSI;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+@@ -223,7 +223,7 @@
+ </DebugInformationFormat>
+ <CompileAs>CompileAsC</CompileAs>
+ <DisableSpecificWarnings>4255;4668;4996;4710;4711;4738;4774;4820;5045</DisableSpecificWarnings>
+- <TreatWarningAsError>true</TreatWarningAsError>
++ <TreatWarningAsError>false</TreatWarningAsError>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>OCI_CHARSET_WIDE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+@@ -276,7 +276,7 @@
+ </DebugInformationFormat>
+ <CompileAs>CompileAsC</CompileAs>
+ <DisableSpecificWarnings>4255;4668;4996;4710;4711;4738;4774;4820;5045</DisableSpecificWarnings>
+- <TreatWarningAsError>true</TreatWarningAsError>
++ <TreatWarningAsError>false</TreatWarningAsError>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>OCI_CHARSET_WIDE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
diff --git a/vcpkg/ports/ocilib/portfile.cmake b/vcpkg/ports/ocilib/portfile.cmake
new file mode 100644
index 0000000..02168d4
--- /dev/null
+++ b/vcpkg/ports/ocilib/portfile.cmake
@@ -0,0 +1,46 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO vrogier/ocilib
+ REF "v${VERSION}"
+ SHA512 1205f333fa7fa6c813dfbb93fefcec5203110ee0dc1c5d52b4f67df9e8fd5894b94e1f0f87cff79f6ad1d33dffbc9faa6535b7bf81ab36bb742cb4fd2dc5d966
+ HEAD_REF master
+ PATCHES fix-DisableWC4191.patch
+)
+
+
+if(VCPKG_TARGET_IS_WINDOWS)
+ # There is no debug configuration
+ # As it is a C library, build the release configuration and copy its output to the debug folder
+ set(VCPKG_BUILD_TYPE release)
+ vcpkg_msbuild_install(
+ SOURCE_PATH "${SOURCE_PATH}"
+ PROJECT_SUBPATH proj/dll/ocilib_dll.sln
+ RELEASE_CONFIGURATION "Release - ANSI"
+ PLATFORM ${VCPKG_TARGET_ARCHITECTURE}
+ )
+
+ file(COPY "${SOURCE_PATH}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug")
+ file(COPY "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug")
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
+ endif()
+else()
+ vcpkg_configure_make(
+ COPY_SOURCE
+ AUTOCONFIG
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ --with-oracle-import=runtime
+ )
+
+ vcpkg_install_make()
+ vcpkg_fixup_pkgconfig()
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+ file(RENAME "${CURRENT_PACKAGES_DIR}/share/doc/${PORT}" "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
+endif()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/ocilib/vcpkg.json b/vcpkg/ports/ocilib/vcpkg.json
new file mode 100644
index 0000000..678672a
--- /dev/null
+++ b/vcpkg/ports/ocilib/vcpkg.json
@@ -0,0 +1,15 @@
+{
+ "name": "ocilib",
+ "version": "4.8.0",
+ "description": "OCILIB is an open source and cross platform Oracle Driver that delivers efficient access to Oracle databases.",
+ "homepage": "https://vrogier.github.io/ocilib/",
+ "license": "Apache-2.0",
+ "supports": "!uwp & !(arm & windows)",
+ "dependencies": [
+ {
+ "name": "vcpkg-msbuild",
+ "host": true,
+ "platform": "windows"
+ }
+ ]
+}