mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 03:37:36 +00:00
Ports: Add xz port
This commit is contained in:
parent
bd08f9188a
commit
8388e822cb
3 changed files with 26 additions and 0 deletions
13
Ports/xz/package.sh
Executable file
13
Ports/xz/package.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=xz
|
||||
version=5.2.5
|
||||
useconfigure=true
|
||||
files="https://tukaani.org/xz/xz-${version}.tar.gz xz-${version}.tar.gz f6f4910fd033078738bd82bfba4f49219d03b17eb0794eb91efbae419f4aba10"
|
||||
auth_type=sha256
|
||||
depends="zlib libiconv"
|
||||
|
||||
install() {
|
||||
run make DESTDIR=$DESTDIR $installopts install
|
||||
${CC} -shared -o $DESTDIR/usr/local/lib/liblzma.so -Wl,--whole-archive $DESTDIR/usr/local/lib/liblzma.a -Wl,--no-whole-archive -lz -liconv
|
||||
rm -f $DESTDIR/usr/local/lib/liblzma.la
|
||||
}
|
12
Ports/xz/patches/configure.patch
Normal file
12
Ports/xz/patches/configure.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff -Naur xz-5.2.5/build-aux/config.sub xz-5.2.5.serenity/build-aux/config.sub
|
||||
--- xz-5.2.5/build-aux/config.sub 2020-03-17 15:29:35.000000000 +0100
|
||||
+++ xz-5.2.5.serenity/build-aux/config.sub 2021-04-18 21:28:26.405741777 +0200
|
||||
@@ -1363,7 +1363,7 @@
|
||||
# The portable systems comes first.
|
||||
# Each alternative MUST end in a * to match a version number.
|
||||
# -sysv* is not here because it comes later, after sysvr4.
|
||||
- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
||||
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* | -serenity* \
|
||||
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
|
||||
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
|
||||
| -sym* | -kopensolaris* | -plan9* \
|
Loading…
Add table
Add a link
Reference in a new issue