Billy O'Neal
b295670e4b
Bulk convert control files. ( #19986 )
...
```
function Convert-Control {
Param($full)
.\vcpkg.exe format-manifest $full
$root = $full.Substring(0, $full.Length - 7) # CONTROL
$new = $root + 'vcpkg.json'
$content = Get-Content -Raw $new
$asJson = ConvertFrom-Json $content -AsHashtable -Depth 100
$oldVersion = $asJson['port-version']
if ($null -eq $oldVersion) {
$oldVersionFull = $asJson['version-string']
Write-Host "Got version $oldVersionFull"
$match = [System.Text.RegularExpressions.Regex]::Match($oldVersionFull, '^(.+)-(\d+)$')
if ($match.Success -and -not [System.Text.RegularExpressions.Regex]::IsMatch($oldVersionFull, '^\d\d\d\d-\d\d-\d\d$')) {
$newFullVersion = [string]$match.Groups[1].Value
$oldVersion = [int]$match.Groups[2].Value
Write-Host "newFullVersion $newFullVersion oldVersion $oldVersion"
$newVersion = $oldVersion + 1
$asJson['version-string'] = $newFullVersion
Write-Host "Previous version for $full extracted from version field -- setting version-string $newFullVersion and port-version $newVersion"
} else {
Write-Host "No previous version for $full -- setting 1"
$newVersion = 1
}
} else {
$newVersion = [int]$oldVersion + 1
Write-Host "New version for $full : $newVersion"
}
$asJson['port-version'] = $newVersion
$content = ConvertTo-Json $asJson -Depth 100
Set-Content -Path $new -Value $content
.\vcpkg.exe format-manifest $new
}
Get-ChildItem ports\CONTROL -Recurse | Foreach-Object {
Convert-Control $_.FullName
}
git commit -am "this message"
.\vcpkg.exe x-add-version -all
git commit -a --amend
```
2021-09-09 01:24:04 -07:00
Nemirtingas
18c93abcb4
[opengl] port path fix when crosscompiling ( #14724 )
...
* Update portfile to use native file path.
Fixes cross-compilation paths.
* Update portfile.cmake
* Update CONTROL
* Update ports/opengl/CONTROL
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2020-12-01 14:12:13 -08:00
Billy O'Neal
8eda81cc4d
[opengl wincrypt winsock2] Use $ENV{WindowsSdkDir} instead of hard coding Windows SDK paths. ( #12232 )
...
Also delete vcpkg_get_program_files_32_bit because it was used in only one place.
Resolves #8288
Obsoletes #11421 , #11261 , #8329
2020-07-06 12:42:35 -07:00
Vitalii Koshura
21848ba4de
[OpenGL] Fix lib files copy when VCPKG_BUILD_TYPE is set ( #11294 )
...
* [OpenGL] Fix lib files copy when VCPKG_BUILD_TYPE is set
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
* Change from release -> "release" in CMake if
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-05-15 16:35:33 -07:00
Nagy-Egri Máté Ferenc
cdbaa03cdd
Linux support for the OpenCL SDK package ( #4204 )
...
Enable building OpenCL libraries on Linux and macOS.
2019-09-11 12:57:02 -07:00
Alexander Karatarakis
a6866d477d
[opengl] If-def on Windows vs other
2018-03-23 09:47:18 -07:00
Alexander Karatarakis
a1a3220749
[opengl] Fix error message when WindowsSDK cannot be found
2018-03-21 16:42:06 -07:00
Stefano Sinigardi
0cf5297a72
license has been removed from SDK 16299 default installation, use a link as a copyright notice like 8.1 sdk
2018-01-25 22:49:44 +01:00
Stefano Sinigardi
f007f6971d
add GlU32.lib to OpenGL port
2017-11-10 15:39:37 +01:00
Alexander Karatarakis
9569e69b7c
[opengl] Rename portfile variable
2017-09-29 18:02:20 -07:00
Alexander Karatarakis
ec02f5bb26
[opengl] Add branch for Windows 8.1 SDK
2017-02-24 17:27:12 -08:00
Robert Schumacher
fa3f9dd962
[opengl] Add -ExecutionPolicy Bypass when invoking powershell as a child
...
process.
2017-02-21 23:29:31 -08:00
Alexander Karatarakis
3ae8349d1b
[opengl] Use the latest installed version of WinSDK
...
Resolves #697 , #99
2017-02-21 19:06:30 -08:00
Robert Schumacher
14dbb584b4
[opengl] Remove call to vcpkg_copy_pdbs
2016-09-20 10:44:43 -07:00
Alexander Karatarakis
ccca198c1b
Initial commit
2016-09-18 20:54:03 -07:00