pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics Add dropbox's graphics/lepton, a lossless JPG...
details: https://anonhg.NetBSD.org/pkgsrc/rev/828a8aa39126
branches: trunk
changeset: 349915:828a8aa39126
user: agc <agc%pkgsrc.org@localhost>
date: Tue Jul 19 02:11:51 2016 +0000
description:
Add dropbox's graphics/lepton, a lossless JPG compression/decompression
program, version 1.2.1, into the packages collection.
Lepton is a tool and file format for losslessly compressing JPEGs by
an average of 22%.
This can be used to archive large photo collections, or to serve
images live and save 22% banwdith.
diffstat:
graphics/Makefile | 3 +-
graphics/lepton/DESCR | 5 ++
graphics/lepton/Makefile | 26 +++++++++++++
graphics/lepton/PLIST | 2 +
graphics/lepton/distinfo | 10 +++++
graphics/lepton/patches/patch-src--lepton--fork_serve.cc | 14 +++++++
graphics/lepton/patches/patch-src--lepton--socket_serve.cc | 13 ++++++
graphics/lepton/patches/patch-src--vp8--model--jpeg_meta.hh | 19 +++++++++
graphics/lepton/patches/patch-src--vp8--util--vpx_config.hh | 21 ++++++++++
9 files changed, 112 insertions(+), 1 deletions(-)
diffs (159 lines):
diff -r 1ca8bf6988dc -r 828a8aa39126 graphics/Makefile
--- a/graphics/Makefile Tue Jul 19 01:08:35 2016 +0000
+++ b/graphics/Makefile Tue Jul 19 02:11:51 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.746 2016/07/15 07:37:02 wiz Exp $
+# $NetBSD: Makefile,v 1.747 2016/07/19 02:11:51 agc Exp $
#
COMMENT= Graphics tools and libraries
@@ -276,6 +276,7 @@
SUBDIR+= lcms
SUBDIR+= lcms2
SUBDIR+= lensfun
+SUBDIR+= lepton
SUBDIR+= leptonica
SUBDIR+= lib3ds
SUBDIR+= libart
diff -r 1ca8bf6988dc -r 828a8aa39126 graphics/lepton/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/lepton/DESCR Tue Jul 19 02:11:51 2016 +0000
@@ -0,0 +1,5 @@
+Lepton is a tool and file format for losslessly compressing JPEGs by
+an average of 22%.
+
+This can be used to archive large photo collections, or to serve
+images live and save 22% banwdith.
diff -r 1ca8bf6988dc -r 828a8aa39126 graphics/lepton/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/lepton/Makefile Tue Jul 19 02:11:51 2016 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2016/07/19 02:11:51 agc Exp $
+
+DISTNAME= lepton-1.2.1
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_GITHUB:=dropbox/}
+GITHUB_TAG= 911d79a560c303a2a62e5412117d0a4ccb41836d
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/dropbox/lepton/
+COMMENT= Lossless compression/decompression for JPEG images
+LICENSE= modified-bsd
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_LANGUAGES+= c c++
+USE_TOOLS+= autoconf autoreconf automake gmake makeinfo
+
+AUTO_MKDIRS= yes
+
+pre-configure:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} sh ./autogen.sh
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/lepton ${DESTDIR}${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff -r 1ca8bf6988dc -r 828a8aa39126 graphics/lepton/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/lepton/PLIST Tue Jul 19 02:11:51 2016 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/19 02:11:51 agc Exp $
+bin/lepton
diff -r 1ca8bf6988dc -r 828a8aa39126 graphics/lepton/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/lepton/distinfo Tue Jul 19 02:11:51 2016 +0000
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1 2016/07/19 02:11:51 agc Exp $
+
+SHA1 (lepton-1.2.1-911d79a560c303a2a62e5412117d0a4ccb41836d.tar.gz) = fe7142d68f33a054a124cf8862b25af7780a1049
+RMD160 (lepton-1.2.1-911d79a560c303a2a62e5412117d0a4ccb41836d.tar.gz) = 1ef14dee2db286c9940ae72bbf2addcdc656ff92
+SHA512 (lepton-1.2.1-911d79a560c303a2a62e5412117d0a4ccb41836d.tar.gz) =
c6b490c232a399c10792b278390ce916494782334d1ee06b9823889ccdbe8f528f1ecbfd3d3274dbc81494d29d065c98338a4643f829fead9c18815200a441ad
+Size (lepton-1.2.1-911d79a560c303a2a62e5412117d0a4ccb41836d.tar.gz) = 50228341 bytes
+SHA1 (patch-src--lepton--fork_serve.cc) = 8fad491ce8c106a999391d27b176c665337cd903
+SHA1 (patch-src--lepton--socket_serve.cc) = 5c0e94a8b2f5e61a556cd33784a0787c588e1c7f
+SHA1 (patch-src--vp8--model--jpeg_meta.hh) = 5f1424e5d5160c12a43b75402c33adf9894f868f
+SHA1 (patch-src--vp8--util--vpx_config.hh) = 857472457ad1b1f8b8bd6d7c66ae2c0991e4e4ef
diff -r 1ca8bf6988dc -r 828a8aa39126 graphics/lepton/patches/patch-src--lepton--fork_serve.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/lepton/patches/patch-src--lepton--fork_serve.cc Tue Jul 19 02:11:51 2016 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src--lepton--fork_serve.cc,v 1.1 2016/07/19 02:11:51 agc Exp $
+
+Port this properly
+
+--- src/lepton/fork_serve.cc 2016/07/19 01:26:14 1.1
++++ src/lepton/fork_serve.cc 2016/07/19 01:26:36
+@@ -2,6 +2,7 @@
+ #ifndef _WIN32
+
+ #include <sys/types.h>
++#include <sys/param.h>
+ #include <signal.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
diff -r 1ca8bf6988dc -r 828a8aa39126 graphics/lepton/patches/patch-src--lepton--socket_serve.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/lepton/patches/patch-src--lepton--socket_serve.cc Tue Jul 19 02:11:51 2016 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-src--lepton--socket_serve.cc,v 1.1 2016/07/19 02:11:51 agc Exp $
+
+Port this properly
+
+--- src/lepton/socket_serve.cc 2016/07/19 01:27:59 1.1
++++ src/lepton/socket_serve.cc 2016/07/19 01:28:26
+@@ -1,5 +1,6 @@
+ #ifndef _WIN32
+ #include <sys/types.h>
++#include <sys/param.h>
+ #include <signal.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
diff -r 1ca8bf6988dc -r 828a8aa39126 graphics/lepton/patches/patch-src--vp8--model--jpeg_meta.hh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/lepton/patches/patch-src--vp8--model--jpeg_meta.hh Tue Jul 19 02:11:51 2016 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-src--vp8--model--jpeg_meta.hh,v 1.1 2016/07/19 02:11:51 agc Exp $
+
+Port to BSD-based systems
+
+--- src/vp8/model/jpeg_meta.hh 2016/07/17 17:54:51 1.1
++++ src/vp8/model/jpeg_meta.hh 2016/07/17 17:55:35
+@@ -4,8 +4,11 @@
+ #include <vector>
+ #include <type_traits>
+ #ifndef __APPLE__
+-#ifndef BSD
+ #ifndef _WIN32
++#include <sys/param.h>
++#if (defined(BSD) && BSD >= 199506)
++#include <sys/endian.h>
++#else
+ #include <endian.h>
+ #endif
+ #endif
diff -r 1ca8bf6988dc -r 828a8aa39126 graphics/lepton/patches/patch-src--vp8--util--vpx_config.hh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/lepton/patches/patch-src--vp8--util--vpx_config.hh Tue Jul 19 02:11:51 2016 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-src--vp8--util--vpx_config.hh,v 1.1 2016/07/19 02:11:51 agc Exp $
+
+Make this work on BSD_derived systems
+
+--- src/vp8/util/vpx_config.hh 2016/07/17 17:50:27 1.1
++++ src/vp8/util/vpx_config.hh 2016/07/17 17:52:16
+@@ -44,10 +44,11 @@
+ #ifndef _BSD_SOURCE
+ #define _BSD_SOURCE /* See feature_test_macros(7) */
+ #endif
+-#ifdef BSD
++#include <sys/param.h>
++# if (defined(BSD) && BSD >= 199506)
+ #include <sys/endian.h>
+-#else
++# else
+ #include <endian.h>
+-#endif
++# endif
+ #endif
+ #endif
Home |
Main Index |
Thread Index |
Old Index