summaryrefslogtreecommitdiff
path: root/archivers/gzrecover/Makefile
blob: 18996ea509f38e57a4cfd6336424061b86e23ed2 (plain)
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
PORTNAME=	gzrecover
PORTVERSION=	0.8
CATEGORIES=	archivers
MASTER_SITES=	https://www.urbanophile.com/arenn/hacking/gzrt/ \
		LOCAL/ehaupt
DISTNAME=	gzrt-${PORTVERSION}

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	GZIP recovery toolkit
WWW=		https://www.urbanophile.com/arenn/hacking/gzrt/

LICENSE=	GPLv2

CFLAGS+=	-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -lz

PLIST_FILES=	bin/${PORTNAME}
PORTDOCS=	README

OPTIONS_DEFINE=	DOCS

do-build:
	${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}/${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}/${DOCSDIR}

.include <bsd.port.mk>