aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/lzma/Makefile
blob: 08f54bd5404e79c3ab852dce5b5372c34cff282e (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
52
53
54
55
# New ports collection makefile for:    lzma
# Date created:     25 Apr 2005
# Whom:         Radim Kolar <hsn@netmag.cz>
#
# $FreeBSD$
#

PORTNAME=   lzma
PORTVERSION=    4.65
CATEGORIES= archivers
MASTER_SITES=   SFE/sevenzip
DISTNAME=   lzma${PORTVERSION:S/.//g}

MAINTAINER= bf1783@gmail.com
COMMENT=    High-ratio LZMA compressor

CONFLICTS=  lzmautils-[0-9]*

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
.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 '/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}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif

regression-test: build
    ${BUILD_WRKSRC}/${PORTNAME} b

.include <bsd.port.mk>
eletions'>-10/+9 * Rename misnamed patch (patch:mem-limits.h)kris2004-03-251-0/+0 * Rename a wrongly named patch.knu2004-03-251-0/+0 * Update to 1.5.6mat2004-03-252-3/+3 * add openoffice-1.1-sl_SI ports/editors/openoffice-1.1-sl_SImaho2004-03-251-0/+1 * Not modify modules by handmaho2004-03-251-1/+0 * According tomaho2004-03-252-0/+15 * 1) According tomaho2004-03-253-15/+3 * - Update to 0.3pav2004-03-253-71/+3 * Port to amd64.kris2004-03-253-2/+20 * BROKEN: Does not compilekris2004-03-251-0/+2 * Support WITHOUT_NLSkris2004-03-251-0/+4 * BROKEN: Unfetchablekris2004-03-251-0/+2 * Remove myself from MAINTAINERache2004-03-251-1/+1 * upgrade to 0.10.0ijliao2004-03-253-123/+25 * ghc-6.2.1 is now in the treeobraun2004-03-253-3/+3 * Update to 0.3:vs2004-03-253-6/+6 * Link with pthreads only when WITH_THREADS is defined.demon2004-03-251-4/+7 * - Fix MASTER_SITESkrion2004-03-251-2/+1 * - Fix MASTER_SITESkrion2004-03-251-1/+0 * - Fix compile error on 4-stablekrion2004-03-253-1/+19 * Add SNMP_Session.pm to RUN_DEPENDS.bms2004-03-251-0/+1 * Fix home directory for the sandbox user.bms2004-03-252-3/+3 * - Update to version 1.8.7krion2004-03-252-3/+3 * - Fix default optionskrion2004-03-251-2/+1 * - Fix default optionskrion2004-03-251-3/+8 * bigsister --> ports/net-mgmt/bigsisterbms2004-03-251-0/+1 * Big Sister is a flexible network and system monitor with SNMP integrationbms2004-03-257-0/+908 * p5-Sys-Hostname-Long --> ports/sysutils/p5-Sys-Hostname-Longmharo2004-03-251-0/+1 * Add p5-Sys-Hostname-Long 1.0, try every conceivable way to get fullmharo2004-03-255-0/+35 * *******************IMPORTANT*******************jeh2004-03-252-3/+3 * Upgrade to 8.1.3 (small '^Ec;' bugfix).kuriyama2004-03-252-3/+3 * Clean up USE_{LIBTOOL,AUTOCONF,AUTOMAKE} to appropriate *_VER variablesade2004-03-258-8/+8 * Tag port as deprecated (will expire on 1st June 2004), with a note toade2004-03-251-0/+3 * Update to 0.17.ume2004-03-252-3/+3 * If inews exists in ${PREFIX}/bin/, then use that instead of usinghoek2004-03-251-3/+13 * make it fetchableijliao2004-03-251-0/+1 * Update to 0.5.20 to fix two buffer overflowshoek2004-03-254-8/+6 * Upgrade to 0.5.20 to fix two buffer overflowshoek2004-03-252-6/+4 * SIZE update jumbo-commit.bms2004-03-2540-0/+40 * Update my email address and make a slight formatting improvement.hoek2004-03-253-9/+9 * Use our system shared readline vs. the included static one.obrien2004-03-252-2/+12 * use included libtooleik2004-03-2510-30/+182 * better way to fix build problem on -stableijliao2004-03-252-2/+13 * Add SIZE to distinfo.jkoshy2004-03-251-0/+1 * Link gdb6 to gdb on platforms w/o /usr/src gdb support.obrien2004-03-254-10/+30 * Update for new binary version of p4v from Perforce.bms2004-03-252-3/+3 * . Fix MASTER_SITE_SAMBA site (ftp.easynet.be) URL.glewis2004-03-251-1/+1 * Add SIZE.bms2004-03-251-0/+2 * Whitespace.bms2004-03-251-9/+9 * - Drop auto*tools support (fix build)pav2004-03-254-16/+11 * Add size data, approved by maintainers.trevor2004-03-2520-0/+20 * Update to a gdb 6.1 snapshot.obrien2004-03-256-20/+44 * - Drop auto*tools support (unbreak)pav2004-03-254-16/+11 * Update to version 0.88 (from Fedora).lofi2004-03-258-22/+22 * - Always use libusbpav2004-03-255-33/+33 * - Fix build on AMD64krion2004-03-252-7/+17 * - Fix OPTIONS usage: WITH_* must be tested after <bsd.port.pre.mk>pav2004-03-252-2/+6 * - Fix a possible signal handling race condition.krion2004-03-253-0/+27 * - Update to version 0.39krion2004-03-252-4/+3 * - Reset maintainer to ports@FreeBSD.org, thank you Anders forkrion2004-03-255-5/+5 * Update to 0.14.marcus2004-03-254-1492/+7 * - Update to 4.31pav2004-03-255-43/+69 * . /usr/local -> %%LOCALBASE%%.glewis2004-03-252-2/+2 * - Update to 4.31.3pav2004-03-254-19/+15 * Update to 20040325.knu2004-03-258-4/+12 * - Update to 1.3.9 rc2pav2004-03-253-19/+163 * Update to DAT 4342jeh2004-03-252-3/+3 * Upgrade to version 1.81.olgeni2004-03-253-4/+46 * Unbreak: sync with actual updates on webmin.com.olgeni2004-03-252-19/+5 * Convert all but one port that uses libtool14 to use libtool15, in readinessade2004-03-2516-49/+73 * Fix pkg-plist.vanilla2004-03-252-67/+64 * Upgrade to 0.8.9.des2004-03-254-23/+65 * Add chinese/vim-scdoc.vanilla2004-03-251-0/+1 * Add vim-scdoc 0.6.0, vim documentation Simplified Chinese.vanilla2004-03-256-0/+121 * Add converts/p5-Convert-BinHexvanilla2004-03-251-0/+1 * Add p5-Convert-BinHex 1.119, perl module to extract data from Macintoshvanilla2004-03-255-0/+37 * * Fix pkg-install.in (thanks to Patrick Rinke)vanilla2004-03-253-2/+4 * - Update to 0.016vanilla2004-03-254-24/+58 * Add a patch to fix a minor bug with deleting a multibyte character atknu2004-03-252-0/+18 * PGSQL may be built with GSSAPI.ume2004-03-251-1/+10 * - Update to 1.6.4pav2004-03-256-286/+369 * - PATCHDIR was hitch-hiking after recent MASTERDIR change, bring it back home.pav2004-03-251-0/+1 * - Add CONFLICTS between math/netcdf and science/hdf, they both installpav2004-03-254-0/+8 * Declare CONFLICTS between freedesktop.org X extension/library ports andlofi2004-03-2521-0/+45 * Add a patch to make imake compatible with upcoming make(1) fixes.lofi2004-03-252-1/+13 * Fix packing list.trevor2004-03-251-1/+1 * libarchive -> ports/archivers/libarchiveglewis2004-03-251-0/+1 * Add a port of Tim Kientzle's libarchive:glewis2004-03-25