diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2008-10-24 19:00:14 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2008-10-24 19:00:14 +0000 |
commit | c02da56a8b05efbe11b604cacb63626d8af15097 (patch) | |
tree | 9b6c903cd7add783eb32c3cfc7af91163205ed78 /archivers/lzma/Makefile | |
parent | 295112e7daa791ff69f3c399e28bdb5099eb641f (diff) | |
download | ports-c02da56a8b05efbe11b604cacb63626d8af15097.tar.gz ports-c02da56a8b05efbe11b604cacb63626d8af15097.zip |
Notes
Diffstat (limited to 'archivers/lzma/Makefile')
-rw-r--r-- | archivers/lzma/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/archivers/lzma/Makefile b/archivers/lzma/Makefile index 44b931e33b48..5700fd2ad73a 100644 --- a/archivers/lzma/Makefile +++ b/archivers/lzma/Makefile @@ -6,7 +6,7 @@ # PORTNAME= lzma -PORTVERSION= 4.58 +PORTVERSION= 4.60 CATEGORIES= archivers MASTER_SITES= SFE/sevenzip DISTNAME= lzma${PORTVERSION:S/.//g} @@ -24,11 +24,18 @@ BUILD_WRKSRC= ${WRKSRC}/CPP/7zip/Compress/LZMA_Alone MAKEFILE= makefile.gcc PLIST_FILES= bin/${PORTNAME} CFLAGS+= -D_LZMA_SYSTEM_SIZE_T +.ifdef(WITH_LZMA_PROB32) +#increase the speed of decoding on some 32-bit CPUs, at the expense of doubled +#memory usage for CLzmaDec::probs +CFLAGS+= -D_LZMA_PROB32 +.endif +.ifdef(WITH_LZMA_SIZE_OPT) +#enable some optimizations in LZMA Decoder to get smaller executable code +CFLAGS+= -D_LZMA_SIZE_OPT +.endif PORTDOCS= 7zC.txt 7zFormat.txt Methods.txt history.txt lzma.txt post-patch: - @${REINPLACE_CMD} -e 's|4\.56|${DISTVERSION}|' \ - ${BUILD_WRKSRC}/LzmaAlone.cpp @${REINPLACE_CMD} -e '/bool Open(LPCTSTR fileName, DWORD creationDisposition)/,/}/d'\ ${WRKSRC}/CPP/7zip/Common/FileStreams.h @${REINPLACE_CMD} -e \ @@ -42,4 +49,7 @@ do-install: @cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ .endif +regression-test: build + ${BUILD_WRKSRC}/${PORTNAME} b + .include <bsd.port.mk> |