Skip to content

Commit

Permalink
archivers/lzsa: add new port
Browse files Browse the repository at this point in the history
LZSA is a collection of byte-aligned compression formats that are
engineered for very fast decompression on 8-bit systems.

WWW: https://github.com/emmanuel-marty/lzsa
  • Loading branch information
MaxBrazhnikov committed Oct 30, 2023
1 parent db51a0e commit d4bdd5d
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions archivers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
SUBDIR += lzmalib
SUBDIR += lzo2
SUBDIR += lzop
SUBDIR += lzsa
SUBDIR += makeself
SUBDIR += mar
SUBDIR += maxcso
Expand Down
33 changes: 33 additions & 0 deletions archivers/lzsa/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
PORTNAME= lzsa
DISTVERSION= 1.4.1
CATEGORIES= archivers emulators

MAINTAINER= makc@FreeBSD.org
COMMENT= LZSA compression utility

WWW= https://github.com/emmanuel-marty/lzsa

LICENSE= CC0-1.0 ZLIB
LICENSE_COMB= multi
LICENSE_FILE_CC0-1.0= ${WRKSRC}/LICENSE.cc0.md
LICENSE_FILE_ZLIB= ${WRKSRC}/LICENSE.zlib.md

USES= gmake

USE_GITHUB= yes
GH_ACCOUNT= emmanuel-marty

PLIST_FILES= bin/lzsa
PORTDOCS= BlockFormat_LZSA1.md BlockFormat_LZSA2.md README.md \
StreamFormat.md pareto_graph.png

OPTIONS_DEFINE= DOCS

do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/lzsa ${STAGEDIR}/${PREFIX}/bin

do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR} && \
${INSTALL_DATA} ${PORTDOCS:C,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions archivers/lzsa/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1698576531
SHA256 (emmanuel-marty-lzsa-1.4.1_GH0.tar.gz) = c65ca1e6a43696f4ca5edc2c98229fba1044806bd21bc2a8ce4b867dc9cfc45c
SIZE (emmanuel-marty-lzsa-1.4.1_GH0.tar.gz) = 152571
10 changes: 10 additions & 0 deletions archivers/lzsa/files/patch-Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- Makefile.orig 2023-02-27 17:23:00 UTC
+++ Makefile
@@ -1,5 +1,5 @@
-CC=clang
-CFLAGS=-O3 -g -fomit-frame-pointer -Isrc/libdivsufsort/include -Isrc
+CC?= clang
+CFLAGS+= -Isrc/libdivsufsort/include -Isrc
OBJDIR=obj
LDFLAGS=

2 changes: 2 additions & 0 deletions archivers/lzsa/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
LZSA is a collection of byte-aligned compression formats that are specifically
engineered for very fast decompression on 8-bit systems.

0 comments on commit d4bdd5d

Please sign in to comment.