* libsdl_ttf: add .zip download sources on Windows
sdl_ttf cannot be installed without using precompiled.
I think xmake should disable symlink extraction (there's the same problem with sfml)
```
=> download https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.2/SDL2_ttf-2.20.2.tar.gz .. failed
C:\Program Files\xmake\winenv\bin\7z x -y SDL2_ttf-2.20.2.tar.gz -oC:\Users\lynix\AppData\Local\Temp\.xmake\230918\_B21627892EB948108F44065483A74B70.tar
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive for archives:
1 file, 13161592 bytes (13 MiB)
Extracting archive: SDL2_ttf-2.20.2.tar.gz
--
Path = SDL2_ttf-2.20.2.tar.gz
Type = gzip
Headers Size = 10
Everything is Ok
Size: 42510336
Compressed: 13161592
C:\Program Files\xmake\winenv\bin\7z x -y C:\Users\lynix\AppData\Local\Temp\.xmake\230918\_B21627892EB948108F44065483A74B70.tar\SDL2_ttf-2.20.2.tar -osource.tmp
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive for archives:
1 file, 42510336 bytes (41 MiB)
Extracting archive: C:\Users\lynix\AppData\Local\Temp\.xmake\230918\_B21627892EB948108F44065483A74B70.tar\SDL2_ttf-2.20.2.tar
--
Path = C:\Users\lynix\AppData\Local\Temp\.xmake\230918\_B21627892EB948108F44065483A74B70.tar\SDL2_ttf-2.20.2.tar
Type = tar
Physical Size = 42510336
Headers Size = 800768
Code Page = UTF-8
ERROR: Can not create symbolic link : Le client ne dispose pas d'un privilège nécessaire. : source.tmp\SDL2_ttf-2.20.2\Xcode\macOS\SDL2.framework\Resources
ERROR: Can not create symbolic link : Le client ne dispose pas d'un privilège nécessaire. : source.tmp\SDL2_ttf-2.20.2\Xcode\macOS\SDL2.framework\Headers
ERROR: Can not create symbolic link : Le client ne dispose pas d'un privilège nécessaire. : source.tmp\SDL2_ttf-2.20.2\Xcode\macOS\SDL2.framework\SDL2
ERROR: Can not create symbolic link : Le client ne dispose pas d'un privilège nécessaire. : source.tmp\SDL2_ttf-2.20.2\Xcode\macOS\SDL2.framework\Versions\Current
Sub items Errors: 4
Archives with Errors: 1
Sub items Errors: 4
tar -xf C:\Users\lynix\AppData\Local\Temp\.xmake\230918\_B21627892EB948108F44065483A74B70.tar\SDL2_ttf-2.20.2.tar
SDL2_ttf-2.20.2/Xcode/macOS/SDL2.framework/Resources: Can't create '\\\\?\\C:\\Users\\lynix\\AppData\\Local\\.xmake\\cache\\packages\\2309\\l\\libsdl_ttf\\2.20.2\\source.tmp\\SDL2_ttf-2.20.2\\Xcode\\macOS\\SDL2.framework\\Resources'
SDL2_ttf-2.20.2/Xcode/macOS/SDL2.framework/Headers: Can't create '\\\\?\\C:\\Users\\lynix\\AppData\\Local\\.xmake\\cache\\packages\\2309\\l\\libsdl_ttf\\2.20.2\\source.tmp\\SDL2_ttf-2.20.2\\Xcode\\macOS\\SDL2.framework\\Headers'
SDL2_ttf-2.20.2/Xcode/macOS/SDL2.framework/SDL2: Can't create '\\\\?\\C:\\Users\\lynix\\AppData\\Local\\.xmake\\cache\\packages\\2309\\l\\libsdl_ttf\\2.20.2\\source.tmp\\SDL2_ttf-2.20.2\\Xcode\\macOS\\SDL2.framework\\SDL2'
SDL2_ttf-2.20.2/Xcode/macOS/SDL2.framework/Versions/Current: Can't create '\\\\?\\C:\\Users\\lynix\\AppData\\Local\\.xmake\\cache\\packages\\2309\\l\\libsdl_ttf\\2.20.2\\source.tmp\\SDL2_ttf-2.20.2\\Xcode\\macOS\\SDL2.framework\\Versions\\Current'
tar: Error exit delayed from previous errors.
error: ...modules\private\action\require\impl\actions\download.lua:213: cannot extract SDL2_ttf-2.20.2.tar.gz, maybe missing extractor or invalid package file!
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:921]:
[...modules\private\action\require\impl\actions\download.lua:213]: in function '_download'
[...modules\private\action\require\impl\actions\download.lua:325]:
=> download https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.20.2.tar.gz .. failed
we can also download these packages manually:
- https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.2/SDL2_ttf-2.20.2.tar.gz
- https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.20.2.tar.gz
to the local search directories:
- libsdl_ttf-2.20.2.tar.gz, SDL2_ttf-2.20.2.tar.gz
and we can run `xmake g --pkg_searchdirs=/xxx` to set the search directories.
error: @programdir\modules\private\async\runjobs.lua:256: ...modules\private\action\require\impl\actions\download.lua:378:
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:921]:
[...modules\private\action\require\impl\actions\download.lua:378]: in function 'catch'
[@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
[...modules\private\action\require\impl\actions\download.lua:298]:
[...modules\private\action\require\impl\install_packages.lua:472]: in function 'jobfunc'
[@programdir\modules\private\async\runjobs.lua:232]:
stack traceback:
[C]: in function 'error'
@programdir\core\base\os.lua:921: in function 'os.raiselevel'
(...tail calls...)
@programdir\modules\private\async\runjobs.lua:256: in field 'catch'
@programdir\core\sandbox\modules\try.lua:123: in global 'try'
@programdir\modules\private\async\runjobs.lua:218: in upvalue 'cotask'
@programdir\core\base\scheduler.lua:404: in function <@programdir\core\base\scheduler.lua:397>
```
* Update xmake.lua
* lzham_codec: add package
* Added another test and moved WIN32 defines
* Add #include <cstdint>, add more define to ios, change .+64 to x64, Add "x86" to is_arch
* Added patches from lzham_codec pull requests
* Add arm64 support and moved mingw out of elseif
* Add define __GNUC__, remove package_end
* Update fix_arm64.patch
* Add string.h patch, update fix_arm64.patch
* Using __yield() for windows ARM64, Fix checksum of fix_mingw.patch
* Fix fix_arm64.patch
* fix_mingw.patch file to utf-8
* Add mimalloc for mingw
* Add config defines mimalloc
* Add configs dictonary with mimalloc to install
* Update xmake.lua
* Move add_packages and add_defines into target
---------
Co-authored-by: ruki <waruqi@gmail.com>
* added package for libgpiod.
The hash doesn't verify for any version
The sha256 of the gzip archive is(v2.0.1): 62071ac22872d9b936408e4a067d15edcdd61dce864ace8725eacdaefe23b898 (result of: shasum -a 256 libgpiod-2.0.1.tar.gz
The sha256() function in xmake seems to come up with something different.
Signed-off-by: Dakota Carter <slang.veteran-0s@icloud.com>
* updated
-removed comments
-moved `packages/l/xmake.lua` -> `packages/l/libgpiod/xmake.lua
-switched to tools.autoconf`
Signed-off-by: Dakota Carter <slang.veteran-0s@icloud.com>
* -added file, forgot to
Signed-off-by: Dakota Carter <slang.veteran-0s@icloud.com>
* added space
* Update xmake.lua
* Update xmake.lua
* Update xmake.lua
---------
Signed-off-by: Dakota Carter <slang.veteran-0s@icloud.com>
Co-authored-by: ruki <waruqi@gmail.com>