diff options
-rw-r--r-- | Ports/AvailablePorts.md | 1 | ||||
-rwxr-xr-x | Ports/yasm/package.sh | 8 | ||||
-rw-r--r-- | Ports/yasm/patches/patch-configure.patch | 30 |
3 files changed, 39 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 1da2937002..b64ac43c2a 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -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/ | diff --git a/Ports/yasm/package.sh b/Ports/yasm/package.sh new file mode 100755 index 0000000000..7f5923bc81 --- /dev/null +++ b/Ports/yasm/package.sh @@ -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= diff --git a/Ports/yasm/patches/patch-configure.patch b/Ports/yasm/patches/patch-configure.patch new file mode 100644 index 0000000000..a444ac5e56 --- /dev/null +++ b/Ports/yasm/patches/patch-configure.patch @@ -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 |