blob: d965eecda140e78618ee0feb34387aed2597a3c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Created by: Radim Kolar <hsn@netmag.cz>
# $FreeBSD$
PORTNAME= lzma
PORTVERSION= 9.22
CATEGORIES= archivers
MASTER_SITES= SF/sevenzip/LZMA%20SDK/
DISTNAME= lzma${PORTVERSION:S/.//g}
MAINTAINER= ports@FreeBSD.org
COMMENT= High-ratio LZMA compressor
CONFLICTS= lzmautils-[0-9]* xz-[0-9]*
USES= tar:bzip2 gmake dos2unix
NO_WRKSUBDIR= yes
BUILD_WRKSRC= ${WRKSRC}/CPP/7zip/Bundles/LzmaCon
MAKEFILE= makefile.gcc
PLIST_FILES= bin/${PORTNAME}
.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
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e '/bool Open(LPCTSTR fileName, DWORD creationDisposition)/,/}/d'\
${WRKSRC}/CPP/7zip/Common/FileStreams.h
@${REINPLACE_CMD} -e 's|malloc\.h|stdlib.h|g' \
${WRKSRC}/CPP/7zip/UI/Common/Bench.cpp \
${WRKSRC}/CPP/Common/MyWindows.cpp
@${REINPLACE_CMD} -e \
'/^CXX/d;s|CXX_C|CC|;s|^CFLAGS =|CFLAGS +=|;s|-o|${CFLAGS} -o|'\
${BUILD_WRKSRC}/${MAKEFILE}
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
regression-test: build
${BUILD_WRKSRC}/${PORTNAME} b
.include <bsd.port.mk>
|