45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# New ports collection makefile for: lzma
|
|
# Date created: 25 Apr 2005
|
|
# Whom: Radim Kolar <hsn@netmag.cz>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= lzma
|
|
PORTVERSION= 4.57
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= SFE/sevenzip
|
|
DISTNAME= 7z${PORTVERSION:S/.//g}
|
|
|
|
MAINTAINER= infofarmer@FreeBSD.org
|
|
COMMENT= High-ratio LZMA compressor
|
|
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
NO_WRKSUBDIR= yes
|
|
USE_DOS2UNIX= yes
|
|
BUILD_WRKSRC= ${WRKSRC}/CPP/7zip/Compress/LZMA_Alone
|
|
MAKEFILE= makefile.gcc
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
CFLAGS+= -D_LZMA_SYSTEM_SIZE_T
|
|
MAKE_ENV+= CXX="${CXX}"
|
|
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 \
|
|
'/^CXX/d;s|CXX_C|CC|;s|^CFLAGS =|CFLAGS +=|;s|-o|${CFLAGS} -o|'\
|
|
${BUILD_WRKSRC}/${MAKEFILE}
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${PREFIX}/bin/
|
|
.ifndef NOPORTDOCS
|
|
@${INSTALL} -d ${DOCSDIR}/
|
|
@cd ${WRKSRC}/DOC/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|