freebsd-ports/archivers/lzma/Makefile
Jean-Yves Lefort 3a6cbec0cb Simple command line version of compression program using LZMA compression
method. This program is taken from LZMA SDK. 7-zip uses the same compression
method, but creates 7Z archives instead of pure LZMA data stream. LZMA can
compress and decompress data streams using standard input/output.

Compression ratio is about 25-30% better than bzip2 and decompression speed
is about two times faster. This makes LZMA good bzip2 replacement for
use in software distribution.

WWW: http://www.7-zip.org/sdk.html

PR:		ports/80554
Submitted by:	Radim Kolar <hsn@netmag.cz>
2005-05-07 19:11:16 +00:00

45 lines
869 B
Makefile

# New ports collection makefile for: lzma
# Date created: 25 Apr 2005
# Whom: Radim Kolar
#
# $FreeBSD$
#
PORTNAME= lzma
PORTVERSION= 4.0.6
CATEGORIES= archivers
MASTER_SITES= http://www.7-zip.org/dl/
DISTNAME= lzma${PORTVERSION:S/.//g}
MAINTAINER= jylefort@FreeBSD.org
COMMENT= Command line lzma archiver
USE_GCC= 3.4+
USE_ZIP= yes
USE_GMAKE= yes
USE_REINPLACE= yes
NO_WRKSUBDIR= yes
BUILD_WRKSRC= ${WRKSRC}/SRC/7zip/Compress/LZMA_Alone
MAKEFILE= makefile
PLIST_FILES= bin/lzma
.if !defined(NOPORTDOCS)
PORTDOCS= *.txt
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|^CXX = .*||; \
s|^CFLAGS =|CFLAGS +=|' \
${BUILD_WRKSRC}/${MAKEFILE}
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/lzma ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${RM} -f ${WRKSRC}/LGPL.txt
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
.endif
.include <bsd.port.mk>