mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
f77987f1cb
- Update to 1.17 [1] - Allow staging PR: ports/182780 [1] Submitted by: Horia Racoviceanu <horia racoviceanu.com> Approved by: maintainer
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ddrescue
|
|
PORTVERSION= 1.17
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= GNU
|
|
EXTRACT_SUFX= .tar.lz
|
|
|
|
MAINTAINER= jharris@widomaker.com
|
|
COMMENT= Data recovery tool
|
|
|
|
LICENSE= GPLv3
|
|
|
|
EXTRACT_DEPENDS=lzip:${PORTSDIR}/archivers/lzip
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" \
|
|
CXXFLAGS="${CXXFLAGS}"
|
|
|
|
INFO= ddrescue
|
|
PORTDOCS= AUTHORS ChangeLog NEWS README
|
|
PLIST_FILES= bin/ddrescue \
|
|
bin/ddrescuelog \
|
|
man/man1/ddrescue.1.gz \
|
|
man/man1/ddrescuelog.1.gz
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKDIR}
|
|
@${LOCALBASE}/bin/lzip -dc ${DISTDIR}/${DISTFILES} | \
|
|
${TAR} -x -f - -C ${WRKDIR} --no-same-owner --no-same-permissions
|
|
|
|
do-install:
|
|
.for i in ddrescue ddrescuelog
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${i}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/doc/ddrescue.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|