{ "version": "2.8.8", "description": "SDL_image is an image loading library that is used with the SDL library, and almost as portable. It allows a programmer to use multiple image formats without having to code all the loading and conversion algorithms themselves.", "homepage": "https://github.com/libsdl-org/SDL_image", "license": "Zlib", "url": [ "https://github.com/libsdl-org/SDL_image/releases/download/release-2.8.8/SDL2_image-devel-2.8.8-VC.zip", "https://github.com/libsdl-org/SDL_image/releases/download/release-2.8.8/SDL2_image-2.8.8.zip" ], "hash": [ "076cebe070c5762bff0c854d2307078e53348d0225e04748feeb7c944453a86e", "def4c7cba37a2f2cce83cfeff053220b2e1481c3c00d59638b1c526ae58545ac" ], "installer": { "script": [ "# SDL2_image is library containing a header file and a collection of dlls.", "# 'Installing' SDL2_image implies the following steps:", "#", "#", "#-------------------------------------------------------------------#", "# 1) Re-organize files into a standard scoop structure.", "#-------------------------------------------------------------------#", "# 1.1 Create helper variables", "$src_dir = \"$dir\\SDL2_image-$version\\\"", "#", "# 1.2 Create directories to store the library", "mkdir -f \"$dir\\lib\\pkgconfig\" > $null", "mkdir -f \"$dir\\include\\SDL2_image\" > $null", "#", "# 1.3 make arch consistent with scoop naming", "mv \"$src_dir\\lib\\x86\" \"$src_dir\\lib\\32bit\"", "mv \"$src_dir\\lib\\x64\" \"$src_dir\\lib\\64bit\"", "#", "# 1.4 Only keep the relevent architecture", "mv \"$src_dir\\lib\\$architecture\\*\" \"$dir\\lib\"", "#", "# 1.5 Move the header file", "mv \"$src_dir\\include\\*.h\" \"$dir\\include\\SDL2_image\"", "Write-Host \"Intalling the $app ($architecture) library to $dir.\"", "#", "#", "#-------------------------------------------------------------------#", "# 2) Configure pck-config file with the library data.", "#-------------------------------------------------------------------#", "# 2.1 Create helper variables.", "$pc_in = \"$src_dir\\SDL2_image.pc.in\"", "$pc_out = \"$dir\\lib\\pkgconfig\\SDL2_image.pc\"", "$cm_dir = if (get_config NO_JUNCTIONS) { $dir } else { \"$(appdir $app $global)\\current\" }", "$pc_dir = \"$cm_dir\\lib\\pkgconfig\"", "#", "# 2.2 Configure the pck-config file.", "Set-Content $pc_out ((gc $pc_in) `", " -replace \"@prefix@\",\"\" `", " -replace \"@exec_prefix@\",\"`${prefix}\" `", " -replace \"@libdir@\",\"`${exec_prefix}/lib\" `", " -replace \"@includedir@\",\"`${prefix}/include\" `", " -replace \"@PACKAGE@\",\"SDL2_image\" `", " -replace \"@VERSION@\",\"$version\" `", " -replace \"@SDL_VERSION@\",\"2.0.0\" `", ")", "#", "# 2.3 Make the library discoverable by adding the path to the Env variables.", "# 2.3.1 Do it for the future sessions", "# 2.3.1.1 For pck-config user", "$null, $currpath = Split-PathLikeEnvVar -Pattern $pc_dir -Path (Get-EnvVar -Name 'PKG_CONFIG_PATH' -Global:$global)", "Write-Host \"Adding $app to PKG_CONFIG_PATH.\"", "Set-EnvVar -Name 'PKG_CONFIG_PATH' -Value \"$pc_dir;$currpath\" -Global:$global", "# 2.3.1.2 For cmake user", "$null, $currpath = Split-PathLikeEnvVAr -Pattern $cm_dir -Path (Get-EnvVar -Name 'CMAKE_PREFIX_PATH' -Global:$global)", "Write-Host \"Adding $app to CMAKE_PREFIX_PATH.\"", "Set-EnvVar -Name 'CMAKE_PREFIX_PATH' -Value \"$cm_dir;$currpath\" -Global:$global", "# 2.3.2 Do it for the this sessions", "# 2.3.2.1 For pck-config user", "$null, $env:PKG_CONFIG_PATH = Split-PathLikeEnvVar -Pattern $pc_dir -Path $env:PKG_CONFIG_PATH", "$env:PKG_CONFIG_PATH = \"$pc_dir;$env:PKG_CONFIG_PATH\"", "# 2.3.2.2 For cmake user", "$null, $env:CMAKE_PREFIX_PATH = Split-PathLikeEnvVar -Pattern $cm_dir -Path $env:CMAKE_PREFIX_PATH", "$env:CMAKE_PREFIX_PATH = \"$cm_dir;$env:CMAKE_PREFIX_PATH\"", "#", "#", "#-------------------------------------------------------------------#", "# 3) Final cleanup", "#-------------------------------------------------------------------#", "# 3.1 Remove the original source folder", "Remove-Item -Recurse \"$src_dir\"", "" ] }, "uninstaller": { "script": [ "#-------------------------------------------------------------------#", "# 1) Remove library link in the env variables", "#-------------------------------------------------------------------#", "# 1.1 Create helper variables.", "$cm_dir = if (get_config NO_JUNCTIONS) { $dir } else { \"$(appdir $app $global)\\current\" }", "$pc_dir = \"$cm_dir\\lib\\pkgconfig\"", "#", "# 1.2 Delete env variables for future sessions", "$was_in_path, $newpath = Split-PathLikeEnvVar -Pattern $pc_dir -Path (Get-EnvVar -Name 'PKG_CONFIG_PATH' -Global:$global)", "if($was_in_path) {", " Write-Host \"Removing $(friendly_path $pc_dir) from your path.\"", " Set-EnvVar -Name 'PKG_CONFIG_PATH' -Value $newpath -Global:$global", "}", "$was_in_path, $newpath = Split-PathLikeEnvVar -Pattern $cm_dir -Path (Get-EnvVar -Name 'CMAKE_PREFIX_PATH' -Global:$global)", "if($was_in_path) {", " Write-Host \"Removing $(friendly_path $cm_dir) from your path.\"", " Set-EnvVar -Name 'CMAKE_PREFIX_PATH' -Value $newpath -Global:$global", "}", "#", "# 1.2 Delete env variables for this session", "$was_in_path, $newpath = Split-PathLikeEnvVar -Pattern $pc_dir -Path $env:PKG_CONFIG_PATH", "if($was_in_path) { $env:PKG_CONFIG_PATH = $newpath }", "$was_in_path, $newpath = Split-PathLikeEnvVar -Pattern $cm_dir -Path $env:CMAKE_PREFIX_PATH", "if($was_in_path) { $env:CMAKE_PREFIX_PATH = $newpath }" ] }, "checkver": { "url": "https://api.github.com/repositories/331517360/releases", "regex": "release-(2.[\\d.]+)" }, "autoupdate": { "url": [ "https://github.com/libsdl-org/SDL_image/releases/download/release-$version/SDL2_image-devel-$version-VC.zip", "https://github.com/libsdl-org/SDL_image/releases/download/release-$version/SDL2_image-$version.zip" ] } }