mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
Ports: Add Port for the yasm assembler (#6149)
This is a required dependency for many libraries.
This commit is contained in:
parent
4152f807bc
commit
ad4a4ba1c6
|
@ -96,5 +96,6 @@ Please make sure to keep this list up to date when adding and updating ports. :^
|
|||
| [`vim`](vim/) | Vim | | https://www.vim.org/ |
|
||||
| [`vitetris`](vitetris/) | vitetris | 0.59.1 | https://github.com/vicgeralds/vitetris |
|
||||
| [`vttest`](vttest/) | vttest | 20210210 | https://invisible-island.net/vttest/ |
|
||||
| [`yasm`](yasm/) | Yasm Modular Assembler | 1.3.0 | https://yasm.tortall.net/ |
|
||||
| [`zlib`](zlib/) | zlib | 1.2.11 | https://www.zlib.net/ |
|
||||
| [`zstd`](zstd/) | Zstandard | 1.4.4 | https://facebook.github.io/zstd/ |
|
||||
|
|
8
Ports/yasm/package.sh
Executable file
8
Ports/yasm/package.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=yasm
|
||||
version=1.3.0
|
||||
files="https://www.tortall.net/projects/yasm/releases/yasm-${version}.tar.gz yasm-${version}.tar.gz"
|
||||
auth_sum="3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f"
|
||||
auth_type="sha256"
|
||||
useconfigure=true
|
||||
makeopts=
|
30
Ports/yasm/patches/patch-configure.patch
Normal file
30
Ports/yasm/patches/patch-configure.patch
Normal file
|
@ -0,0 +1,30 @@
|
|||
diff --git a/configure b/patched-configure
|
||||
index d58618be9..ad8678a12 100755
|
||||
--- a/configure
|
||||
+++ b/patched-configure
|
||||
@@ -6306,25 +6306,6 @@ IFS=$ac_save_IFS
|
||||
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
||||
|
||||
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
||||
-$as_echo_n "checking host system type... " >&6; }
|
||||
-if ${ac_cv_host+:} false; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
-else
|
||||
- if test "x$host_alias" = x; then
|
||||
- ac_cv_host=$ac_cv_build
|
||||
-else
|
||||
- ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
||||
- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
||||
-fi
|
||||
-
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
||||
-$as_echo "$ac_cv_host" >&6; }
|
||||
-case $ac_cv_host in
|
||||
-*-*-*) ;;
|
||||
-*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
||||
-esac
|
||||
host=$ac_cv_host
|
||||
ac_save_IFS=$IFS; IFS='-'
|
||||
set x $ac_cv_host
|
Loading…
Reference in a new issue