aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/dact/Makefile
blob: ef3294cba5fe19081de6bedd8721571320950378 (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
# ex:ts=8
# New ports collection makefile for:    dact
# Date created:         May 2, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   dact
PORTVERSION=    0.8.42
CATEGORIES= archivers
MASTER_SITES=   http://www.rkeene.org/files/oss/dact/release/

MAINTAINER= miwi@FreeBSD.org
COMMENT=    Dynamic Adaptive Compression Tool

LIB_DEPENDS=    mcrypt.8:${PORTSDIR}/security/libmcrypt \
        lzo2.2:${PORTSDIR}/archivers/lzo2

BROKEN= needs to be upgraded to lzo2 according to ports/156954

USE_GMAKE=  yes
GNU_CONFIGURE=  yes
MAKE_JOBS_SAFE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/lib
CPPFLAGS=   ${CXXFLAGS} -I${LOCALBASE}/include
CONFIGURE_ENV=  LDFLAGS="-L${LOCALBASE}/lib"
MAKE_ARGS=  TOBUILD="dact libdact.so dact.conf"

MAN1=       dact.1
USE_LDCONFIG=   yes

post-patch:
    @${REINPLACE_CMD} -e "s|prefix = @prefix@|prefix = ${PREFIX}|" \
    -e "s|libdir = @libdir@|libdir = ${PREFIX}/lib|" \
        ${WRKSRC}/Makefile.in

pre-install:
    @${RM} -f ${WRKSRC}/libdact.a

post-install:
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    ${CP} -n ${WRKSRC}/dact.conf ${EXAMPLESDIR}
.endif
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/Docs/dact.txt ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>