Tue Jul 19 02:11:51 2016 UTC ()
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.
(agc)
diff -r1.746 -r1.747 pkgsrc/graphics/Makefile
diff -r0 -r1.1 pkgsrc/graphics/lepton/DESCR
diff -r0 -r1.1 pkgsrc/graphics/lepton/Makefile
diff -r0 -r1.1 pkgsrc/graphics/lepton/PLIST
diff -r0 -r1.1 pkgsrc/graphics/lepton/distinfo
diff -r0 -r1.1 pkgsrc/graphics/lepton/patches/patch-src--lepton--fork_serve.cc
diff -r0 -r1.1 pkgsrc/graphics/lepton/patches/patch-src--lepton--socket_serve.cc
diff -r0 -r1.1 pkgsrc/graphics/lepton/patches/patch-src--vp8--model--jpeg_meta.hh
diff -r0 -r1.1 pkgsrc/graphics/lepton/patches/patch-src--vp8--util--vpx_config.hh
--- pkgsrc/graphics/Makefile 2016/07/15 07:37:02 1.746
+++ pkgsrc/graphics/Makefile 2016/07/19 02:11:51 1.747
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.746 2016/07/15 07:37:02 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.747 2016/07/19 02:11:51 agc Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | COMMENT= Graphics tools and libraries | | 4 | COMMENT= Graphics tools and libraries |
5 | | | 5 | |
6 | SUBDIR+= AfterShotPro | | 6 | SUBDIR+= AfterShotPro |
7 | SUBDIR+= CRWInfo | | 7 | SUBDIR+= CRWInfo |
8 | SUBDIR+= Cenon | | 8 | SUBDIR+= Cenon |
9 | SUBDIR+= Coin | | 9 | SUBDIR+= Coin |
10 | SUBDIR+= GMT | | 10 | SUBDIR+= GMT |
11 | SUBDIR+= GUIlib | | 11 | SUBDIR+= GUIlib |
12 | SUBDIR+= GraphicsMagick | | 12 | SUBDIR+= GraphicsMagick |
13 | SUBDIR+= ImageMagick | | 13 | SUBDIR+= ImageMagick |
14 | SUBDIR+= ImageMagick6 | | 14 | SUBDIR+= ImageMagick6 |
| @@ -266,26 +266,27 @@ SUBDIR+= kipi-plugins-kde3 | | | @@ -266,26 +266,27 @@ SUBDIR+= kipi-plugins-kde3 |
266 | SUBDIR+= kolourpaint | | 266 | SUBDIR+= kolourpaint |
267 | SUBDIR+= koverartist | | 267 | SUBDIR+= koverartist |
268 | SUBDIR+= kphotoalbum | | 268 | SUBDIR+= kphotoalbum |
269 | SUBDIR+= kphotobook | | 269 | SUBDIR+= kphotobook |
270 | SUBDIR+= kphotools | | 270 | SUBDIR+= kphotools |
271 | SUBDIR+= kplotting | | 271 | SUBDIR+= kplotting |
272 | SUBDIR+= kruler | | 272 | SUBDIR+= kruler |
273 | SUBDIR+= ksaneplugin | | 273 | SUBDIR+= ksaneplugin |
274 | SUBDIR+= ksnapshot | | 274 | SUBDIR+= ksnapshot |
275 | SUBDIR+= lasem | | 275 | SUBDIR+= lasem |
276 | SUBDIR+= lcms | | 276 | SUBDIR+= lcms |
277 | SUBDIR+= lcms2 | | 277 | SUBDIR+= lcms2 |
278 | SUBDIR+= lensfun | | 278 | SUBDIR+= lensfun |
| | | 279 | SUBDIR+= lepton |
279 | SUBDIR+= leptonica | | 280 | SUBDIR+= leptonica |
280 | SUBDIR+= lib3ds | | 281 | SUBDIR+= lib3ds |
281 | SUBDIR+= libart | | 282 | SUBDIR+= libart |
282 | SUBDIR+= libbpg | | 283 | SUBDIR+= libbpg |
283 | SUBDIR+= libcaca | | 284 | SUBDIR+= libcaca |
284 | SUBDIR+= libepoxy | | 285 | SUBDIR+= libepoxy |
285 | SUBDIR+= libexif | | 286 | SUBDIR+= libexif |
286 | SUBDIR+= libexif-gtk | | 287 | SUBDIR+= libexif-gtk |
287 | SUBDIR+= libgdiplus | | 288 | SUBDIR+= libgdiplus |
288 | SUBDIR+= libggi | | 289 | SUBDIR+= libggi |
289 | SUBDIR+= libggigcp | | 290 | SUBDIR+= libggigcp |
290 | SUBDIR+= libggimisc | | 291 | SUBDIR+= libggimisc |
291 | SUBDIR+= libggiwmh | | 292 | SUBDIR+= libggiwmh |
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.
# $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
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"
@comment $NetBSD: PLIST,v 1.1 2016/07/19 02:11:51 agc Exp $
bin/lepton
$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
$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>
$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>
$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
$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