-.\" $OpenBSD: bsd.port.mk.5,v 1.573 2023/01/09 17:41:03 sthen Exp $
+.\" $OpenBSD: bsd.port.mk.5,v 1.574 2023/01/21 09:01:55 kn Exp $
.\"
.\" Copyright (c) 2000-2008 Marc Espie
.\"
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 9 2023 $
+.Dd $Mdocdate: January 21 2023 $
.Dt BSD.PORT.MK 5
.Os
.Sh NAME
.It archivers/bzip2
tar.bz2, tbz2, tbz
.It archivers/xz
-tar.xz, tar.lzma
-.It archivers/lzip/lunzip
-tar.lz
+tar.xz, tar.lzma, tar.lz
.It archivers/unzip
zip
.It archivers/zstd
do
case $$patchfile in
*.bz2)
- bzip2 -dc $$patchfile | ${PATCH} ${PATCH_DIST_ARGS};;
- *.lz)
- lunzip -c $$patchfile | ${PATCH} ${PATCH_DIST_ARGS};;
+ ${BZIP2} -d <$$patchfile | ${PATCH} ${PATCH_DIST_ARGS};;
+ *.zst|*.zstd)
+ zstdcat -c <$$patchfile | ${PATCH} ${PATCH_DIST_ARGS};;
*.Z|*.gz)
- gzcat $$patchfile | ${PATCH} ${PATCH_DIST_ARGS};;
+ ${GZIP_CMD} -d <$$patchfile | ${PATCH} ${PATCH_DIST_ARGS};;
*)
${PATCH} ${PATCH_DIST_ARGS} <$$patchfile;;
esac