summaryrefslogtreecommitdiff
path: root/archivers/libdeflate/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/libdeflate/Makefile')
-rw-r--r--archivers/libdeflate/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/archivers/libdeflate/Makefile b/archivers/libdeflate/Makefile
new file mode 100644
index 000000000000..ead3370bbdff
--- /dev/null
+++ b/archivers/libdeflate/Makefile
@@ -0,0 +1,41 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= libdeflate
+PORTVERSION= 0.8
+DISTVERSIONPREFIX= v
+CATEGORIES= archivers
+
+MAINTAINER= danfe@FreeBSD.org
+COMMENT= Fast, whole-buffer DEFLATE-based compression library
+
+LICENSE= MIT
+
+USES= gmake
+USE_GITHUB= yes
+GH_ACCOUNT= ebiggers
+USE_LDCONFIG= yes
+
+MAKE_ARGS= V=1
+
+PLIST_FILES= bin/gunzip bin/gzip \
+ include/libdeflate.h \
+ lib/libdeflate.a lib/libdeflate.so
+PORTDOCS= NEWS README.md
+
+OPTIONS_DEFINE= DOCS
+
+post-patch:
+ @${REINPLACE_CMD} -e 's| -O2 -fomit-frame-pointer||' ${WRKSRC}/Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/gunzip ${WRKSRC}/gzip \
+ ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/libdeflate.h ${STAGEDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/libdeflate.[as]* ${STAGEDIR}${PREFIX}/lib
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>