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

PORTNAME=	ddrescue
DISTVERSION=	1.8
CATEGORIES=	sysutils
MASTER_SITES=	GNU

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

HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}"\
		CXXFLAGS="${CXXFLAGS}"
USE_BZIP2=	yes
PLIST_FILES=	bin/${PORTNAME}
MAN1=	${PORTNAME}.1
INFO=	${PORTNAME}
PORTDOCS=	AUTHORS ChangeLog NEWS README

post-patch:
	@${REINPLACE_CMD} -e 's|LONG_LONG|LLONG|' \
		${WRKSRC}/main.cc ${WRKSRC}/rescuebook.cc

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
	@${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
	@${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.info ${PREFIX}/${INFO_PATH}/
.ifndef NOPORTDOCS
	@${INSTALL} -d ${DOCSDIR}/
	@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif

.include <bsd.port.mk>