mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
819f25b36d
The conflict checks compare the patterns first against the package names without version (as reported by "pkg query "%n"), then - if there was no match - agsinst the full package names including the version (as reported by "pkg query "%n-%v"). Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter for the bash package in any version. But that pattern is functionally identical with just "bash". Approved by: portmgr (blanket)
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# Created by: Radim Kolar <hsn@netmag.cz>
|
|
|
|
PORTNAME= lzma
|
|
PORTVERSION= 19.00
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= SF/sevenzip/LZMA%20SDK/
|
|
DISTNAME= lzma${PORTVERSION:S/.//g}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= High-ratio LZMA compressor
|
|
|
|
CONFLICTS= lzmautils xz
|
|
|
|
USES= 7z 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 lzma-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
|
|
|
|
do-install-DOCS-on:
|
|
@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC}/DOC/&&${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
|
|
|
do-test:
|
|
${BUILD_WRKSRC}/${PORTNAME} b
|
|
|
|
.include <bsd.port.mk>
|