aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/ddrescue/Makefile
blob: 162a254adcad643bd660edb99c5a0412253cc720 (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
# New ports collection makefile for:    ddrescue
# Date created:     16 August 2007
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   ddrescue
PORTVERSION=    1.16
CATEGORIES= sysutils
MASTER_SITES=   GNU
EXTRACT_SUFX=   .tar.lz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Data recovery tool

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

EXTRACT_DEPENDS=lzip:${PORTSDIR}/archivers/lzip

EXTRACT_CMD=    ${LOCALBASE}/bin/lzip

OPTIONS_DEFINE= DOCS

HAS_CONFIGURE=  yes
CONFIGURE_ARGS= CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" \
        CXXFLAGS="${CXXFLAGS}"
MAKE_JOBS_SAFE= yes

MAN1=       ddrescue.1 ddrescuelog.1
INFO=       ddrescue
PORTDOCS=   AUTHORS ChangeLog NEWS README
PLIST_FILES=    bin/ddrescue bin/ddrescuelog

.include <bsd.port.options.mk>

do-install:
.for i in ddrescue ddrescuelog
    ${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/doc/${i}.1 ${MAN1PREFIX}/man/man1
.endfor
.for i in ddrescue
    ${INSTALL_DATA} ${WRKSRC}/doc/${i}.info ${PREFIX}/${INFO_PATH}
.endfor
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>