aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/lzo2/Makefile
blob: 56ad60beca8e4d820a9aa962ffb2e97bfc514c1a (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
# New ports collection makefile for:    lzo
# Date created:             21 Feb 1998
# Whom:                 giffunip@asme.org
#
# $FreeBSD$
#

PORTNAME=   lzo2
PORTVERSION=    2.03
PORTREVISION=   2
CATEGORIES= archivers devel
MASTER_SITES=   http://www.oberhumer.com/opensource/lzo/download/ \
        http://fresh.t-systems-sfr.com/unix/src/misc/ \
        http://ftp.uni-koeln.de/util/arc/
MASTER_SITE_SUBDIR= libs/compression
DISTNAME=   lzo-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}

MAINTAINER= matthias.andree@gmx.de
COMMENT=    Portable speedy, lossless data compression library

USE_AUTOTOOLS=  libtool:15
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-shared
USE_LDCONFIG=   yes

post-build:
    @${ECHO_MSG} "===>  Running self-tests for ${PKGNAME} (can take a few minutes)"
    @#: override MALLOC_OPTIONS, else tests take excessively long
    cd ${WRKSRC} && env MALLOC_OPTIONS=jz ${MAKE} check test SHELL="${SH} -x"

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,doc/,,' NEWS README
.for i in AUTHORS BUGS COPYING NEWS README THANKS
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
.endfor
    ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}/
.endif

.if !defined(NOPORTEXAMPLES)
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/[a-z]*.[ch] ${EXAMPLESDIR}/
.endif

.include <bsd.port.mk>