summaryrefslogtreecommitdiff
path: root/archivers/libdeflate/Makefile
blob: e90bcf684afe1e790e346e9403356a12058e6d49 (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
30
31
32
33
34
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>

PORTNAME=	libdeflate
PORTVERSION=	1.12
DISTVERSIONPREFIX=	v
CATEGORIES=	archivers

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Fast, whole-buffer DEFLATE-based compression library

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		gmake
USE_GITHUB=	yes
GH_ACCOUNT=	ebiggers
USE_LDCONFIG=	yes

MAKE_ARGS=	V=1
TEST_TARGET=	check

PLIST_FILES=	bin/libdeflate-gunzip bin/libdeflate-gzip \
		include/libdeflate.h \
		libdata/pkgconfig/libdeflate.pc \
		lib/libdeflate.a lib/libdeflate.so lib/libdeflate.so.0
PORTDOCS=	NEWS.md README.md

OPTIONS_DEFINE=	DOCS

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>