Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
237 commits
Select commit Hold shift + click to select a range
5557539
Disable ffmpeg support in opencv (currently failing on windows7 x64)
Sep 28, 2017
70d9883
Force debug postfix on dlib library
Sep 28, 2017
18af85e
Build dlib with openblas,clapack support
Oct 5, 2017
033a95c
Remove non-numeric characters from Windows SDK version string
Oct 23, 2017
2162b51
Merge remote-tracking branch 'vcpkg/master'
Oct 23, 2017
5926e1b
Merge branch 'master' of https://github.com/Microsoft/vcpkg
Nov 9, 2017
3ad9642
[libraw] Add 'd' debug postfix
Nov 13, 2017
b4c8e9d
[lcms] Add 'd' debug postfix
Nov 13, 2017
93e4229
[liblzma] Add 'd' to debug postfix
Nov 13, 2017
dcbd893
Merge branch 'libraw-debug-postfix'
Nov 13, 2017
4f933bb
Merge remote-tracking branch 'origin/libraw-debug-postfix'
Nov 13, 2017
d40102b
Merge branch 'master' of https://github.com/seanwarren/vcpkg
Nov 27, 2017
f4e5096
Merge master
Dec 11, 2017
8790632
Merge branch 'vcpkg-master'
Dec 11, 2017
7fde1a4
Add lapack as optional dependency in dlib
Dec 11, 2017
94f3748
Merge remote-tracking branch 'vcpkg/master'
Jan 2, 2018
304423e
Do not add debug prefix for liblmza [prevents detection from cmake]
Jan 2, 2018
9ea6c42
Merge remote-tracking branch 'vcpkg/master'
Jan 12, 2018
f23c57e
Merge branch 'vcpkg-master'
Jan 14, 2018
2484b0e
Merge remote-tracking branch 'vcpkg/master'
Jan 21, 2018
a0044c0
Merge remote-tracking branch 'vcpkg/master'
Feb 27, 2018
2e242bd
Merge remote-tracking branch 'vcpkg/master'
Mar 1, 2018
620f7ac
Merge remote-tracking branch 'vcpkg/master'
Apr 5, 2018
ea8f921
Merge remote-tracking branch 'vcpkg/master'
Apr 16, 2018
939af42
Disable MKL in dlib
May 21, 2018
6d89dfc
Merge remote-tracking branch 'vcpkg/master'
May 21, 2018
1b92846
Hardcode 32 openblas threads
May 24, 2018
fe7d848
Merge remote-tracking branch 'vcpkg/master'
May 31, 2018
05e9121
Rollback explicit exclusion of MKL from dlib
May 31, 2018
07cdfdf
Merge commit '3fc54807cb9b0bf242f8a2e7d1035bdbbd591aac'
Jun 3, 2018
38be953
Use unicode paths with exiv2
Jun 5, 2018
d0e2488
Enable unicode path with exiv
Jun 19, 2018
2f58ad3
Merge branch 'vcpkg-master'
Sep 19, 2018
8f1f11a
Merge remote-tracking branch 'vcpkg/master'
Sep 20, 2018
0c94e81
Merge branch 'master' of https://github.com/seanwarren/vcpkg
Oct 8, 2018
860fe86
Merge commit '9122643930108772ef7f3ca12536330bd0316074'
Oct 8, 2018
fd123ca
Remove dlib dependency on blas,lapack on mac (where it currently does…
Oct 8, 2018
0b23ca0
dlib: Force static linkage of BLAS libraries
Oct 8, 2018
93a0605
openblas: Don't hardcode number of threads
Oct 8, 2018
1ce8732
Merge branch 'master' of https://github.com/seanwarren/vcpkg
Oct 19, 2018
af89fd7
Merge main branch
Nov 7, 2018
9e63b00
fix find_package for fftw3
Neumann-A Nov 21, 2018
e8c69ab
the patch took care of moving the files
Neumann-A Nov 21, 2018
49f1c6e
Additional Patch to add Suffix to LibraryDepends
Neumann-A Nov 21, 2018
d2c3bc2
Merge branch 'vcpkg-master'
Dec 4, 2018
968e264
fixed minsizerel and relwithdebinfo for vs cmake configs
Neumann-A Dec 13, 2018
fc1b2a8
Merge branch 'vcpkg-master'
Jan 20, 2019
a7f5d31
[xalan-c] Use CMake build system, enables linux/mac build
Jan 31, 2019
c263cfd
[libics] Add libics
Jan 31, 2019
7cddb28
[hdf5] use szip find module to correctly link for static library
Feb 18, 2019
e10ea8f
[omefiles] Add omefiles, omemodel, omecommon
Jan 31, 2019
4f0befe
[dlib] Find fftw, sqlite3 using config files rather than manually to …
Feb 20, 2019
8920ff4
[dlib] fix fftw linkage
Feb 20, 2019
247a870
Merge branch 'vcpkg-master' into fftw3-fix
Feb 21, 2019
c107149
Merge branch 'fftw3-fix'
Feb 21, 2019
15845e0
[fftw] add missing patch
Feb 21, 2019
965634c
Use new omefiles repository
Feb 24, 2019
dbb2630
Only use win_unicode on windows
Feb 24, 2019
8dcc170
Merge branch 'master' of https://github.com/seanwarren/vcpkg
Feb 24, 2019
01a8908
Add missing dependencies to ome-files, fix relwithdebinfo build
Feb 25, 2019
b594ab4
Add bioimage port, expose some private headers from tiff port
Feb 25, 2019
70ba960
Add export for _TIFFSeekOK
Feb 26, 2019
0a01146
Fix bioimage linkage
Feb 26, 2019
df5a14c
Merge branch 'vcpkg-master'
Feb 26, 2019
e3ca102
Merge branch 'vcpkg-master'
Feb 26, 2019
a5e74eb
Remove stray patch file
Feb 26, 2019
9e0a46b
[exiv2] Update exiv2 to 0.27 release, optionally support unicode on w…
Feb 26, 2019
02ff94e
Merge branch 'exiv2-0.27-unicode'
Feb 26, 2019
50ebb9a
Use unicode exiv2 for bioimage
Feb 26, 2019
5c17517
Add wrappers for exiv2 to find iconv
Feb 26, 2019
35ef0ce
Allow build of xalan-c in static triplet mode (force dynamic)
Feb 26, 2019
9a7e852
Update exiv2 to 0.27 release, optionally support unicode on windows
Feb 26, 2019
0e86d56
Static ome-files
Feb 26, 2019
bc53f71
[gettext] Set includes correctly in target
Feb 27, 2019
0d3f8e2
[libiconv] Before creating targets, check they do not exist already
Feb 27, 2019
065bdc4
[exiv2] Include gettext dependency required for NLS
Feb 27, 2019
421b134
Use wrapper to add hdf5 szip dependency
Feb 27, 2019
dc9bbb3
[libiconv] Before creating targets, check they do not exist already
Feb 27, 2019
502f24a
[libiconv] Before creating targets, check they do not exist already
Feb 27, 2019
9c12943
Merge branch 'exiv2-0.27-unicode'
Feb 27, 2019
f1037dc
Merge branch 'master' into static-omefiles
Feb 27, 2019
ed57495
fix omefiles static build on windows
Feb 27, 2019
1464f6b
Merge branch 'vcpkg-master'
Feb 27, 2019
5ca45a3
[hdf5] Use cmake wrapper to ensure consuming libraries link to szip i…
Feb 27, 2019
65f0592
[hdf5] Move hdf5 cmake code from vcpkg.cmake to vcpkg-cmake-wrapper
Feb 27, 2019
8d7edb9
Merge branch 'fix-hdf5-static-link'
Feb 27, 2019
a518ab3
[hdf5] Move hdf5 cmake code from vcpkg.cmake to vcpkg-cmake-wrapper
Feb 27, 2019
67cb6ec
[dlib] fix mac, windows-static build
Feb 27, 2019
eb7d697
Merge branch 'fix-dlib-mac-static'
Feb 28, 2019
557c9d9
Merge branch 'fix-hdf5-static-link'
Feb 28, 2019
f391c4f
[hdf5] Add missing newline in patch file
Feb 28, 2019
a0d47c5
[libxml2] Link to iconv correctly on mac,linux
Feb 27, 2019
10aa65b
[hdf5] Do not force search in config mode
Mar 1, 2019
8c3a614
Merge branch 'fix-libiconv-targets'
Mar 1, 2019
1bfd92f
Merge branch 'fix-hdf5-static-link'
Mar 1, 2019
2ac1341
Merge branch 'ms-master'
Mar 1, 2019
050801d
[xerces-c] Link required frameworks on mac
Mar 1, 2019
1207d7c
[omefiles] Remap unittypes config files
Mar 1, 2019
fa59d47
[libraw] Correctly link to jasper in static configuration
Mar 4, 2019
d3cd54a
[bioimage] Add explicit dependency on tiff
Mar 4, 2019
5806f58
[fftw3] Fix static linkage on windows with dynamic CRT
Mar 4, 2019
ed7bd0f
[hdf5] balance needs of vtk and kealib
Mar 4, 2019
e84215a
[liblzma] Use config file to correctly distinguish debug/release libr…
Mar 5, 2019
4f52d5a
[hdf5] balance needs of vtk and kealib
Mar 4, 2019
6b8db98
[lzma] fix library variable capitalisation
Mar 5, 2019
5a4a962
[proj4] Fix cross-compile detection
Mar 5, 2019
bbacf86
[bioimage] Fix type conflict on mac
Mar 5, 2019
fcc2cf7
Merge branch 'fix-hdf5-static-link'
Mar 5, 2019
9547558
[liblzma] Ensure debug/release libraries are correctly identified
Mar 5, 2019
13e6079
[clapack] Fix windows-static build by including f2c as object file
Mar 6, 2019
c796953
Merge branch 'vcpkg-master'
Mar 6, 2019
a947c62
[hdf5] sync with microsoft/vcpkg
Mar 6, 2019
323cea4
[openblas] Update for static build
Mar 6, 2019
4b881bf
[dlib] Remove patch now fixed correctly by vcpkg_fix_cmake_targets
Mar 6, 2019
7be12a5
[qt5] Update hashes for qt5-declarative and qt5-winextras
Mar 6, 2019
bfcd3bb
Update vcpkg.cmake to add libraries for static Qt build
Mar 7, 2019
679be91
Additional work on adding Qt libraries
Mar 7, 2019
abdb7bf
[bioimage] Ensure openjpeg does not export DllMain
Mar 7, 2019
9a5090e
[opencv] Make opencv build exportable
Mar 7, 2019
026b249
Add more missing libraries for static Qt
Mar 8, 2019
956c2f3
revert changes to qt-declarative, winextras
Mar 8, 2019
19d9710
[double-conversion] fix relwithdebinfo, minsizerel linkage using wrapper
Mar 8, 2019
88e4f5d
[opencv] Remove unnecessary replace in opencv
Mar 8, 2019
e121cf1
[qt5] Add configuration for os-x
Mar 8, 2019
122b17e
Merge branch 'master' of https://github.com/seanwarren/vcpkg
Mar 8, 2019
0e1e136
Update qmake build and configure for mac/linux
Mar 8, 2019
c494b05
Merge branch 'master' of https://github.com/microsoft/vcpkg
Mar 8, 2019
b32286c
Update qt build for mac
Mar 9, 2019
daffb93
Add qt libraries required for mac
Mar 9, 2019
c595fec
Initial implementation of applocal on mac
Mar 10, 2019
0a26179
Cleanup new mac applocal
Mar 10, 2019
159d4e3
[libiconv] Make exported targets global for VTK
Mar 11, 2019
2664735
[liblzma] Use generator in libraries for VTK
Mar 11, 2019
79ada3c
[omefiles] Workaround for omefiles static build
Mar 11, 2019
22e18a0
Do not require static CRT for xalan-c
Mar 11, 2019
9ddd2c9
Use dynamic build of xalan-c, xerces-c in static triplet
Mar 11, 2019
c8e3cc6
Only use applocal on mac bundle
Mar 11, 2019
3625a05
Merge branch 'master' of https://github.com/seanwarren/vcpkg
Mar 11, 2019
43cf401
Merge branch 'vcpkg-master'
Mar 11, 2019
0fc1e14
[qt5] Fix mac build
Mar 11, 2019
43e6b9b
[libraw] Add wrapper for static build dependencies
Mar 11, 2019
b2f12da
[qt5] Disable parallel build on mac
Mar 11, 2019
b297a0e
[qt5] Fix qmake find on mac
Mar 11, 2019
ec1c1f0
[qt5] Move mac specific dependencies
Mar 11, 2019
ce94651
[qt5] Update find jom for mac
Mar 11, 2019
7ddab6a
Merge branch 'fix-libraw-static-deps'
Mar 11, 2019
f3af2c4
Merge branch 'fix-qt5-mac'
Mar 11, 2019
64f8cc2
Set up CI with Azure Pipelines
Mar 11, 2019
bd60bb4
Update azure-pipelines.yml for Azure Pipelines
Mar 11, 2019
bbe6698
Update azure-pipelines.yml for Azure Pipelines
Mar 11, 2019
992b2be
[qt5] Fix invocation of build command
Mar 11, 2019
35cbed1
[qt5] Fix invocation of build command
Mar 11, 2019
e85edd2
Merge branch 'master' of https://github.com/Microsoft/vcpkg into dev/…
vicroms Mar 12, 2019
71d251b
[qt5-base] Rebuild packages for #5624
vicroms Mar 13, 2019
0895907
[harfbuzz] Remove disabled assert (failing due to -Werror)
Mar 13, 2019
63b8b45
[qt5] Bump control version
Mar 13, 2019
715f765
[qt5] Disable harfbuzz on mac
Mar 13, 2019
3141b2a
[qt5-base] Disable harfbuzz on mac
vicroms Mar 13, 2019
5a77984
[omefiles] Remove Xalan and Xerces checks (do not link correctly stat…
Mar 13, 2019
82fe509
Restore static triplet
Mar 14, 2019
a0d5b86
Merge branch 'fix-qt5-mac'
Mar 14, 2019
2dd8f94
[qt5] Improve library search on mac
Mar 14, 2019
4c6d645
[qt5-macextras] Add qt5-macextras port
Mar 14, 2019
0c48204
[libqglviewer] Fix install paths on mac
Mar 14, 2019
52019d0
[qscintilla] Fix install on mac
Mar 14, 2019
550df13
[cutelyst2] Fix install on mac
Mar 14, 2019
252120c
[qt5-purchasing] Add missing dependency on qt5-declarative
Mar 14, 2019
16cfc43
Merge branch 'vcpkg-master'
Mar 14, 2019
0bb9af2
Merge branch 'master' of https://github.com/seanwarren/vcpkg
Mar 14, 2019
ac067a4
Merge branch 'vcpkg-master'
Mar 16, 2019
7113b7b
[libiconv] fix libiconv targets
Mar 19, 2019
c4947f0
Merge branch 'fix-libiconv-targets-2' of https://github.com/seanwarre…
Mar 19, 2019
72c7b56
[lzma] Locate correct release/debug libraries in static build using w…
Mar 11, 2019
40dceea
[qt5] Restore harfbuzz
Mar 20, 2019
0b2973c
[omefiles] Download and install python six
Mar 26, 2019
b3c3b71
Merge branch 'master' of https://github.com/Microsoft/vcpkg
Mar 26, 2019
f37fc5d
Merge branch 'master' of https://github.com/seanwarren/vcpkg
Mar 26, 2019
13a2a7d
Back out changes to libiconv, libxml2 and liblzma
Mar 27, 2019
e0cf419
Merge branch 'master' of https://github.com/microsoft/vcpkg
Mar 27, 2019
c6ca80c
[exiv2] Fix link to iconv on mac
Mar 28, 2019
c9be546
[exiv2] Fix iconv link on windows
Mar 28, 2019
080f64a
Merge branch 'vcpkg-master'
Mar 28, 2019
c2ef101
Remove stray files
Mar 29, 2019
6f8f460
backout unnecessary changes to clapack
Mar 29, 2019
60265ee
backout changes to double-conversion
Mar 29, 2019
62c4051
Back out canges to vcpkg.cmake now ported to qt wrapper
Mar 29, 2019
d37647d
Simplify and document omefiles portfile
Mar 29, 2019
f688efd
Merge branch 'vcpkg-master'
Mar 31, 2019
3c3f176
Add tiff patch for large IFDs and bump bioimage to v2.5.2
Apr 1, 2019
7b30a82
Add -allowAppleClang option to bootstrap.sh. (fixes #4698)
soroshsabz Apr 2, 2019
b4d2697
[vcpkg-bootstrap] Simplify appleclang changes and reformat
ras0219-msft Apr 3, 2019
502ec75
[clapack] Fix build on linux
Apr 5, 2019
2c2edcb
[clapack] bump version number
Apr 5, 2019
37821e0
[libics] patch for new gcc version
Apr 5, 2019
efb384a
[libics] Bump version number
Apr 5, 2019
065c272
[clapack] Link openblas correctly
Apr 5, 2019
682c17d
Enable clean after build option
Apr 5, 2019
b459874
Also clean downloads after build
Apr 5, 2019
65ee73a
Add missing line
Apr 5, 2019
dab440f
Merge remote-tracking branch 'soroshsabz/master'
Apr 5, 2019
e4a5d12
Only remove files from download folder
Apr 6, 2019
a830afa
Disable (broken) xalan-c ICU support
Apr 7, 2019
68f836c
[xalan-c] Impose version constraint on icu
Apr 8, 2019
123e4e6
Debugging for python
Apr 8, 2019
f95b2d5
[omefiles] Update python
Apr 8, 2019
d4f46dd
[omefiles] Only use required boost libraries
Apr 8, 2019
297be14
[omefiles] Correct licence location for case sensitive OS
Apr 8, 2019
ec7c11e
[liblzma] Whitespace change to trigger CI
Apr 8, 2019
d7dc651
[exiv2] Correct case for config.cmake file
Apr 8, 2019
9f88fec
[libraw] Correct case for config.cmake file
Apr 8, 2019
89be696
Merge branch 'vcpkg-master' into fix-lzma-static-targets
Apr 8, 2019
f1deb4a
Merge branch 'fix-lzma-static-targets' of https://github.com/seanwarr…
Apr 8, 2019
e7d8922
[openblas] Do not build lapack on linux
Apr 9, 2019
e73e2d2
[libpng] Add missing link to m on linux
Apr 9, 2019
c954724
[dlib] Fix link to openblas on linux
Apr 9, 2019
75f5a59
Set CMAKE_FIND_FRAMEWORK to LAST
Apr 9, 2019
c6a5b15
[libgeotiff] Fixup cmake targets for export
Apr 10, 2019
43ed4f3
[libgeotiff] Fix mac/linux regression
Apr 10, 2019
c06635e
[double-conversion] fix relwithdebinfo, minsizerel linkage using wrapper
Mar 8, 2019
4d4f968
[qt5] Improve wrapper
Apr 10, 2019
828f6a9
Add files for CI build of flimfit environment
Apr 10, 2019
b16ccac
Update azure-pipelines.yml for Azure Pipelines [skip ci]
Apr 11, 2019
b888180
Update build script
Apr 11, 2019
c0f615c
Update pipeline
Apr 11, 2019
85fc5f7
Update azure-pipelines.yml for Azure Pipelines [skip ci]
Apr 12, 2019
3f7f683
Update azure-pipelines.yml for Azure Pipelines
May 4, 2019
38156d8
Make uic executable on mac/linux
May 5, 2019
3c7cc6f
[xalan-c] Update SHA
May 6, 2019
ca26439
Test new pipeline
May 6, 2019
b688c49
Use libics in test
May 6, 2019
f4c15e7
Fix azure variables
May 6, 2019
debb1ac
[libics] add zlib dependency
May 6, 2019
c03087d
Build all ports
May 6, 2019
91a9432
Update azure-pipelines.yml for Azure Pipelines
May 6, 2019
55384be
Merge pull request #3 from seanwarren/qt5-uic
May 7, 2019
3d0db4f
Update azure-pipelines.yml for Azure Pipelines
May 15, 2019
53c0182
[lapack] Include f2c as object library to fix static build
May 15, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- master

pr:
- master

jobs:
- job: Build
timeoutInMinutes: 360

strategy:
matrix:
linux:
imageName: 'ubuntu-16.04'
CXX: '/usr/bin/clang++'
CC: '/usr/bin/clang'
buildPlatform: 'linux'
mac:
imageName: 'macos-10.13'
DEVELOPER_DIR: '/Applications/Xcode_9.4.1.app'
buildPlatform: 'osx'

windows:
imageName: 'vs2017-win2016'
buildPlatform: 'windows'

variables:
VCPKG_ROOT: '$(Build.SourcesDirectory)/vcpkg'
archiveFile: '$(Build.ArtifactStagingDirectory)/flimfit-env-$(buildPlatform).zip'

pool:
vmImage: $(imageName)

steps:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
architecture: 'x64'

- script: brew install gcc6 p7zip
displayName: 'Install brew dependencies'
condition: eq(variables['buildPlatform'],'osx')

- task: CopyFiles@2
inputs:
contents: '**'
targetFolder: '$(Build.SourcesDirectory)/vcpkg'

- script: python build-flimfit-env.py
workingDirectory: 'vcpkg'
displayName: 'Build vcpkg ports'

- task: CopyFiles@2
condition: always()
inputs:
contents: 'vcpkg/buildtrees/**/*.log'
targetFolder: '$(Build.ArtifactStagingDirectory)/logs'

- task: PublishBuildArtifacts@1
condition: always()
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/logs'
artifactName: 'vcpkg-logs-$(buildPlatform)'

- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.SourcesDirectory)/vcpkg'
archiveType: 'zip'
archiveFile: '$(archiveFile)'

- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(archiveFile)'
artifactName: 'flimfit-env-$(buildPlatform)'

- task: GithubRelease@0
displayName: 'Create GitHub Release'
inputs:
githubConnection: seanwarren
repositoryName: seanwarren/vcpkg
assets: $(archiveFile)
35 changes: 35 additions & 0 deletions build-flimfit-env.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import json
import subprocess
import platform
import os
import re
import shutil

# Get vcpkg directory
vcpkg_dir = os.path.dirname(os.path.realpath(__file__))

# Get system and setup extension
system = platform.system()
if system == "Windows":
script_ext = ".bat"
exec_ext = ".exe"
else:
script_ext = ".sh"
exec_ext = ""

# Bootstrap vcpkg
subprocess.run([os.path.join(vcpkg_dir, "bootstrap-vcpkg" + script_ext)], check=True)

# Read configuration
json_file = open(os.path.join(vcpkg_dir, 'flimfit-env-config.json'))
config = json.load(json_file)

# Setup ports
triplet_ext = ":" + config["default_triplet"][system]
ports = [port + triplet_ext for port in config["ports"]]

# Build ports
subprocess.run([os.path.join(vcpkg_dir, "vcpkg" + exec_ext), "install", "--clean-after-build"] + ports,
cwd=vcpkg_dir, check=True)

shutil.rmtree(os.path.join(vcpkg_dir, "downloads"))
30 changes: 30 additions & 0 deletions flimfit-env-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"default_triplet": {
"Windows": "x64-windows-static",
"Darwin": "x64-osx",
"Linux": "x64-linux"
},

"ports" :
[
"qt5-serialport",
"boost",
"dlib",
"opencv",
"fftw3",
"omefiles",
"bioimage[opencv]",
"libics",
"hdf5",
"boost-random",
"boost-serialization",
"boost-align",
"boost-interprocess",
"boost-bind",
"boost-function",
"boost-math",
"boost-accumulators",
"boost-filesystem",
"boost-property-tree"
]
}
8 changes: 8 additions & 0 deletions ports/bioimage/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Source: bioimage
Version: 2.5.2
Description: LibBioImage is a C++ library for access and process biological 3D images. It supports many input and output formats and basic image processing operations.
Build-Depends: tiff, libraw, eigen3, proj4, libjpeg-turbo, libgeotiff, exiv2[unicode]

Feature: opencv
Description: opencv functionality for bioimage
Build-Depends: opencv[core]
204 changes: 204 additions & 0 deletions ports/bioimage/bioimageconvert.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -67,6 +67,11 @@
cmake_policy(SET CMP0060 NEW)
endif()

+# Make IMPORTED_LINK_INTERFACE_LIBRARIES per configuration when exported
+if(POLICY CMP0022)
+ cmake_policy(SET CMP0022 OLD)
+endif()
+

#---------------------------------------------------------------------
# Set project information
--- cmake/bioimageConfig.cmake.in
+++ cmake/bioimageConfig.cmake.in
@@ -1,4 +1,8 @@
@PACKAGE_INIT@

+include(CMakeFindDependencyMacro)
+find_dependency(PROJ4)
+find_dependency(GeoTIFF)
+find_dependency(Exiv2)
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
check_required_components("@PROJECT_NAME@")

--- cmake/Modules/FindLCMS2.cmake
+++ cmake/Modules/FindLCMS2.cmake
@@ -29,18 +29,32 @@
PATH_SUFFIXES lcms2 liblcms2
)

-find_library(LCMS2_LIBRARIES NAMES lcms2 liblcms2 lcms-2 liblcms-2
+find_library(LCMS2_RELEASE_LIBRARY NAMES lcms2
PATHS
${PC_LCMS2_LIBDIR}
${PC_LCMS2_LIBRARY_DIRS}
PATH_SUFFIXES lcms2
)

-if(LCMS2_INCLUDE_DIR AND LCMS2_LIBRARIES)
+find_library(LCMS2_DEBUG_LIBRARY NAMES lcms2d
+ PATHS
+ ${PC_LCMS2_LIBDIR}
+ ${PC_LCMS2_LIBRARY_DIRS}
+ PATH_SUFFIXES lcms2
+)
+
+
+if(LCMS2_INCLUDE_DIR AND LCMS2_RELEASE_LIBRARY)
set(LCMS2_FOUND TRUE)
-else(LCMS2_INCLUDE_DIR AND LCMS2_LIBRARIES)
+else()
set(LCMS2_FOUND FALSE)
-endif(LCMS2_INCLUDE_DIR AND LCMS2_LIBRARIES)
+endif()
+
+if (LCMS2_DEBUG_LIBRARY)
+ set(LCMS2_LIBRARIES optimized "${LCMS2_RELEASE_LIBRARY}" debug "${LCMS2_DEBUG_LIBRARY}")
+else()
+ set(LCMS2_LIBRARIES ${LCMS2_RELEASE_LIBRARY})
+endif()

if(LCMS2_FOUND)
file(READ ${LCMS2_INCLUDE_DIR}/lcms2.h LCMS2_VERSION_CONTENT)
--- cmake/Modules/FindTIFF.cmake
+++ cmake/Modules/FindTIFF.cmake
@@ -47,14 +47,55 @@
endforeach()

if(NOT TIFF_LIBRARY)
- find_library(TIFF_LIBRARY_RELEASE NAMES ${TIFF_NAMES})
- find_library(TIFF_LIBRARY_DEBUG NAMES ${TIFF_NAMES_DEBUG})
+ find_library(TIFF_LIBRARY_RELEASE
+ NAMES ${TIFF_NAMES}
+ PATH_SUFFIXES "lib" "local/lib")
+ find_library(TIFF_LIBRARY_DEBUG
+ NAMES ${TIFF_NAMES_DEBUG}
+ PATH_SUFFIXES "debug/lib" "lib" "local/lib")
+
+ if(TIFF_LIBRARY_RELEASE)
+
+ get_filename_component(TIFF_LIBRARY_NAME ${TIFF_LIBRARY_RELEASE} NAME_WE)
+ get_filename_component(TIFF_LIBRARY_EXTENSION ${TIFF_LIBRARY_RELEASE} EXT)
+ get_filename_component(TIFF_LIBRARY_PATH ${TIFF_LIBRARY_RELEASE} DIRECTORY)
+ get_filename_component(TIFF_DEBUG_LIBRARY_PATH ${TIFF_LIBRARY_DEBUG} DIRECTORY)
+
+ message("searching for: "${TIFF_LIBRARY_NAME}xx${TIFF_LIBRARY_EXTENSION}" in ${TIFF_LIBRARY_PATH}")
+
+ find_library(TIFFXX_LIBRARY_RELEASE
+ NAMES "${TIFF_LIBRARY_NAME}xx${TIFF_LIBRARY_EXTENSION}"
+ PATHS ${TIFF_LIBRARY_PATH}
+ NO_DEFAULT_PATH)
+ find_library(TIFFXX_LIBRARY_DEBUG
+ NAMES "${TIFF_LIBRARY_NAME}xxd${TIFF_LIBRARY_EXTENSION}"
+ PATHS ${TIFF_DEBUG_LIBRARY_PATH}
+ NO_DEFAULT_PATH)
+
+ if(TIFFXX_LIBRARY_RELEASE)
+ list(APPEND TIFF_LIBRARY_RELEASE ${TIFFXX_LIBRARY_RELEASE})
+ list(APPEND TIFF_LIBRARY_DEBUG ${TIFFXX_LIBRARY_DEBUG})
+ set(CPP_TIFF_LIBRARY optimised ${TIFFXX_LIBRARY_RELEASE} debug ${TIFFXX_LIBRARY_DEBUG})
+ set(TIFF_CXX_FOUND TRUE)
+ else()
+ message(FATAL_ERROR "Could NOT find TIFF/C++ library ${CPP_TIFF_LIBRARY}.")
+ endif()
+
+ endif()
+
include(SelectLibraryConfigurations)
select_library_configurations(TIFF)
mark_as_advanced(TIFF_LIBRARY_RELEASE TIFF_LIBRARY_DEBUG)
+
endif()
unset(TIFF_NAMES)
unset(TIFF_NAMES_DEBUG)
+unset(TIFF_LIBRARY_NAME)
+unset(TIFF_LIBRARY_PATH)
+unset(TIFF_LIBRARY_EXTENSION)
+
+message("${TIFF_FOUND} ==== ${TIFF_LIBRARY} ==== ${TIFF_LIBRARY_RELEASE} ==== ${TIFF_LIBRARY_DEBUG}")
+message("TIFF_LIBRARY: ${TIFF_LIBRARY}")

if(TIFF_INCLUDE_DIR AND EXISTS "${TIFF_INCLUDE_DIR}/tiffvers.h")
file(STRINGS "${TIFF_INCLUDE_DIR}/tiffvers.h" tiff_version_str
@@ -101,49 +142,6 @@
endif()
endif()

- # looking for C++ version of library libtiffxx.so
- set(TIFF_CXX_FOUND FALSE)
- foreach(TIFF_LIBRARY ${TIFF_LIBRARIES})
- # We do not want just any tiffxx library, we specifically want
- # the one that belongs to the tiff library we found before. So we
- # expect the same path and extension.
- get_filename_component(TIFF_LIBRARY_NAME ${TIFF_LIBRARY} NAME_WE)
- get_filename_component(TIFF_LIBRARY_PATH ${TIFF_LIBRARY} DIRECTORY)
- get_filename_component(TIFF_LIBRARY_EXTENSION ${TIFF_LIBRARY} EXT)
- if(TIFF_LIBRARY_NAME MATCHES "d$")
- # Check for libtiffdxx:
- set(CPP_TIFF_LIBRARY "${TIFF_LIBRARY_PATH}/${TIFF_LIBRARY_NAME}xx${TIFF_LIBRARY_EXTENSION}")
- if(NOT EXISTS ${CPP_TIFF_LIBRARY})
- message("-- Could NOT find (debug) TIFF/C++ library ${CPP_TIFF_LIBRARY}.")
- # Check for libtiffxxd:
- string(REGEX REPLACE "d$" "" TIFF_LIBRARY_NAME ${TIFF_LIBRARY_NAME})
- set(CPP_TIFF_LIBRARY "${TIFF_LIBRARY_PATH}/${TIFF_LIBRARY_NAME}xxd${TIFF_LIBRARY_EXTENSION}")
- if(NOT EXISTS ${CPP_TIFF_LIBRARY})
- message("-- Could NOT find (debug) TIFF/C++ library ${CPP_TIFF_LIBRARY}.")
- continue()
- endif()
- endif()
- else()
- # Check for libtiffxx:
- set(CPP_TIFF_LIBRARY "${TIFF_LIBRARY_PATH}/${TIFF_LIBRARY_NAME}xx${TIFF_LIBRARY_EXTENSION}")
- if(NOT EXISTS ${CPP_TIFF_LIBRARY})
- message("-- Could NOT find TIFF/C++ library ${CPP_TIFF_LIBRARY}.")
- continue()
- endif()
- endif()
-
- message("-- Found TIFF/C++ library ${CPP_TIFF_LIBRARY}")
- set(TIFF_CXX_FOUND TRUE)
- list(APPEND TIFF_LIBRARIES "${CPP_TIFF_LIBRARY}")
- unset(TIFF_LIBRARY)
- unset(TIFF_LIBRARY_NAME)
- unset(TIFF_LIBRARY_PATH)
- unset(TIFF_LIBRARY_EXTENSION)
- break()
- endforeach()
- if(NOT TIFF_CXX_FOUND)
- message(FATAL_ERROR "Could NOT find TIFF/C++ library ${CPP_TIFF_LIBRARY}.")
- endif()
endif()

-mark_as_advanced(TIFF_INCLUDE_DIR TIFF_LIBRARY)
\ No newline at end of file
+mark_as_advanced(TIFF_INCLUDE_DIR TIFF_LIBRARY)
--- libsrc/libbioimg/core_lib/xtypes.h
+++ libsrc/libbioimg/core_lib/xtypes.h
@@ -52,7 +52,12 @@
typedef short int16;
typedef unsigned short uint16;

-#if defined(WIN32) || defined(WIN64) || defined(_WIN32) || defined(_WIN64) || defined(_MSVC)
+#if defined(__APPLE__)
+typedef int32_t int32;
+typedef long int64;
+typedef uint32_t uint32;
+typedef unsigned long uint64;
+#elif defined(WIN32) || defined(WIN64) || defined(_WIN32) || defined(_WIN64) || defined(_MSVC)
typedef __int32 int32;
typedef __int64 int64;
typedef unsigned __int32 uint32;
--- libsrc/libbioimg/formats_api/bim_image.h
+++ libsrc/libbioimg/formats_api/bim_image.h
@@ -67,7 +67,7 @@
#endif //BIM_USE_EIGEN

#ifdef BIM_USE_OPENCV
-#include <opencv2/core/core.hpp>
+namespace cv { class Mat; }
#endif //BIM_USE_OPENCV

#ifdef BIM_USE_NUMPY
Loading