pkgsrc/sysutils/ddrescue/Makefile
obache c69a26585a Import ddrescue-1.8.
Based on PR 39202 by Edgar Fuss, some fixes and improvement by me.

GNU ddrescue is a data recovery tool. It copies data from one file or block
device (hard disc, cdrom, etc) to another, trying hard to rescue data in case
of read errors.
2008-07-28 14:08:07 +00:00

37 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2008/07/28 14:08:07 obache Exp $
DISTNAME= ddrescue-1.8
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GNU:=ddrescue/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= ef@math.uni-bonn.de
HOMEPAGE= http://www.gnu.org/software/ddrescue/ddrescue.html
COMMENT= GNU ddrescue is a data recovery tool
#LICENSE= gnu-gpl-v3
PKG_DESTDIR_SUPPORT= user-destdir
HAS_CONFIGURE= YES
USE_LANGUAGES= c++
INFO_FILES= YES
CONFIGURE_ARGS+= CC=${CC:Q} CXX=${CXX:Q} CPPFLAGS=${CPPFLAGS:Q}
CONFIGURE_ARGS+= CFLAGS=${CFLAGS:Q} CXXFLAGS=${CXXFLAGS:Q}
CONFIGURE_ARGS+= LDFLAGS=${LDFLAGS:Q}
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --infodir=${PREFIX}/${PKGINFODIR}
CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
SUBST_CLASSES+= llmaxmin
SUBST_STAGE.llmaxmin= pre-build
SUBST_FILES.llmaxmin= main.cc rescuebook.cc
SUBST_SED.llmaxmin= -e 's/LONG_LONG_MAX/LLONG_MAX/g'
SUBST_SED.llmaxmin+= -e 's/LONG_LONG_MIN/LLONG_MIN/g'
TEST_TARGET= check
INSTALL_TARGET= install install-man
.include "../../mk/bsd.pkg.mk"