blob: ab01d57e78ae66e2ea5537b0579d67782a4606a3 (
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
|
# New ports collection makefile for: lzma
# Date created: 25 Apr 2005
# Whom: Radim Kolar <hsn@netmag.cz>
#
# $FreeBSD$
#
PORTNAME= lzma
PORTVERSION= 4.43
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sevenzip
DISTNAME= lzma${PORTVERSION:S/.//g}
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= High-ratio LZMA compressor
USE_BZIP2= yes
NO_WRKSUBDIR= yes
USE_DOS2UNIX= yes
BUILD_WRKSRC= ${WRKSRC}/C/7zip/Compress/LZMA_Alone
MAKEFILE= makefile.gcc
PLIST_FILES= bin/lzma
CFLAGS+= -D_LZMA_SYSTEM_SIZE_T
PORTDOCS= 7zC.txt 7zFormat.txt Methods.txt history.txt lzma.txt
post-patch:
@${REINPLACE_CMD} -e \
's|^CXX.*||; \
s|CXX_C|CC|; \
s|^CFLAGS =|CFLAGS +=|' \
${BUILD_WRKSRC}/${MAKEFILE}
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/lzma ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif
.include <bsd.port.mk>
|