aboutsummaryrefslogtreecommitdiff
path: root/ports/ocilib
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2020-08-13 22:32:55 +0200
committerGitHub <noreply@github.com>2020-08-13 13:32:55 -0700
commit4935f12b6d1ed030efe7783e8987a1a2b382859f (patch)
treed674469733a762a3855542e0b50c9fe0431feaa7 /ports/ocilib
parent3ee1283aef870a296e87f20f65385c38e2777778 (diff)
downloadvcpkg-4935f12b6d1ed030efe7783e8987a1a2b382859f.tar.gz
vcpkg-4935f12b6d1ed030efe7783e8987a1a2b382859f.zip
[vcpkg/scripts/make] trying to iron out some issues (#11836)
* take changes from fontconfig pr * [farmhash] add autoconf * [freexl] add autoconf * [healpix] add autoconf * [libb2] add autoconf * [libwandio] add autoconf and patch * more autoconf * [x264] fix windows build issues * minimal cleanup * [libwandio] some fixes * [vcpkg/scripts/make] add include to C/CXX flags correctly set machine flags for linker * remove unnecessary comments part 1 * cleanup part 2 * cleanup * remove unnecessary code * [pbc] fix osx regressions * [lzokay] format manifest * try to copy sources to fix build issues * add autoconfig to force updated configure scripts * bump port versions of openmpi and ocilib * added lib paths back into vcpkg_build_make because they are probably required * Use CPP flags add quotes around restoring of ENV add LIB and LIBPATH correctly * Apply suggestions from code review Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com> * Apply more changes forom CR - remove mingw make - add doc for missing options - introduce two new macros for backup/restore of env vars * fix wrong variables. * use the list macro instead of the single var macro * also use it at the top Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com> Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>
Diffstat (limited to 'ports/ocilib')
-rw-r--r--ports/ocilib/CONTROL3
-rw-r--r--ports/ocilib/portfile.cmake74
2 files changed, 40 insertions, 37 deletions
diff --git a/ports/ocilib/CONTROL b/ports/ocilib/CONTROL
index c5d4fbb37..a4d44f4a3 100644
--- a/ports/ocilib/CONTROL
+++ b/ports/ocilib/CONTROL
@@ -1,5 +1,6 @@
Source: ocilib
-Version: 4.6.4-1
+Version: 4.6.4
+Port-Version: 2
Homepage: https://vrogier.github.io/ocilib/
Description: OCILIB is an open source and cross platform Oracle Driver that delivers efficient access to Oracle databases.
Supports: !(arm|uwp) \ No newline at end of file
diff --git a/ports/ocilib/portfile.cmake b/ports/ocilib/portfile.cmake
index 84912c10f..a8a451f48 100644
--- a/ports/ocilib/portfile.cmake
+++ b/ports/ocilib/portfile.cmake
@@ -1,62 +1,64 @@
vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp")
vcpkg_from_github(
- OUT_SOURCE_PATH SOURCE_PATH
- REPO vrogier/ocilib
- REF v4.6.4
- SHA512 83f5614a23c8fb4ab02517dec95d8b490c5ef472302735d5cc4cf483cc51513cc81ae2e1b4618c7c73fb5b071efe422e463b46fa79492ccb4775b511a943295a
- HEAD_REF master
- PATCHES
- out_of_source_build_version_file_configure.patch
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO vrogier/ocilib
+ REF v4.6.4
+ SHA512 83f5614a23c8fb4ab02517dec95d8b490c5ef472302735d5cc4cf483cc51513cc81ae2e1b4618c7c73fb5b071efe422e463b46fa79492ccb4775b511a943295a
+ HEAD_REF master
+ PATCHES
+ out_of_source_build_version_file_configure.patch
)
if(VCPKG_TARGET_IS_WINDOWS)
- if(VCPKG_PLATFORM_TOOLSET MATCHES "v142")
+ if(VCPKG_PLATFORM_TOOLSET MATCHES "v142")
set(SOLUTION_TYPE vs2019)
set(OCILIB_ARCH_X86 x86)
set(OCILIB_ARCH_X64 x64)
- elseif(VCPKG_PLATFORM_TOOLSET MATCHES "v141")
+ elseif(VCPKG_PLATFORM_TOOLSET MATCHES "v141")
set(SOLUTION_TYPE vs2017)
set(OCILIB_ARCH_X86 Win32)
set(OCILIB_ARCH_X64 Win64)
- else()
+ else()
set(SOLUTION_TYPE vs2015)
set(OCILIB_ARCH_X86 Win32)
set(OCILIB_ARCH_X64 Win64)
- endif()
+ endif()
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
set(PLATFORM ${OCILIB_ARCH_X86})
else()
set(PLATFORM ${OCILIB_ARCH_X64})
endif()
-
- # 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_install_msbuild(
- SOURCE_PATH ${SOURCE_PATH}
- PROJECT_SUBPATH proj/dll/ocilib_dll_${SOLUTION_TYPE}.sln
- INCLUDES_SUBPATH include
- LICENSE_SUBPATH LICENSE
- RELEASE_CONFIGURATION "Release - ANSI"
- PLATFORM ${PLATFORM}
- USE_VCPKG_INTEGRATION
- ALLOW_ROOT_INCLUDES)
+
+ # 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_install_msbuild(
+ SOURCE_PATH ${SOURCE_PATH}
+ PROJECT_SUBPATH proj/dll/ocilib_dll_${SOLUTION_TYPE}.sln
+ INCLUDES_SUBPATH include
+ LICENSE_SUBPATH LICENSE
+ RELEASE_CONFIGURATION "Release - ANSI"
+ PLATFORM ${PLATFORM}
+ USE_VCPKG_INTEGRATION
+ ALLOW_ROOT_INCLUDES)
- file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug)
- file(COPY ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug)
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug)
+ file(COPY ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug)
else()
- vcpkg_configure_make(
- SOURCE_PATH ${SOURCE_PATH}
- OPTIONS
- --with-oracle-import=runtime
- )
+ vcpkg_configure_make(
+ COPY_SOURCE
+ AUTOCONFIG
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ --with-oracle-import=runtime
+ )
- vcpkg_install_make()
+ vcpkg_install_make()
- 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)
- file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+ 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)
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
endif()