summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/Makefile3
-rw-r--r--graphics/lepton/DESCR5
-rw-r--r--graphics/lepton/Makefile26
-rw-r--r--graphics/lepton/PLIST2
-rw-r--r--graphics/lepton/distinfo10
-rw-r--r--graphics/lepton/patches/patch-src--lepton--fork_serve.cc14
-rw-r--r--graphics/lepton/patches/patch-src--lepton--socket_serve.cc13
-rw-r--r--graphics/lepton/patches/patch-src--vp8--model--jpeg_meta.hh19
-rw-r--r--graphics/lepton/patches/patch-src--vp8--util--vpx_config.hh21
9 files changed, 112 insertions, 1 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 90573b91007..9674035b457 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -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+= lasem
SUBDIR+= lcms
SUBDIR+= lcms2
SUBDIR+= lensfun
+SUBDIR+= lepton
SUBDIR+= leptonica
SUBDIR+= lib3ds
SUBDIR+= libart
diff --git a/graphics/lepton/DESCR b/graphics/lepton/DESCR
new file mode 100644
index 00000000000..ea4e58419de
--- /dev/null
+++ b/graphics/lepton/DESCR
@@ -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 --git a/graphics/lepton/Makefile b/graphics/lepton/Makefile
new file mode 100644
index 00000000000..998276f94a0
--- /dev/null
+++ b/graphics/lepton/Makefile
@@ -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
+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 --git a/graphics/lepton/PLIST b/graphics/lepton/PLIST
new file mode 100644
index 00000000000..11c751eccbd
--- /dev/null
+++ b/graphics/lepton/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/19 02:11:51 agc Exp $
+bin/lepton
diff --git a/graphics/lepton/distinfo b/graphics/lepton/distinfo
new file mode 100644
index 00000000000..04d2b30b0bd
--- /dev/null
+++ b/graphics/lepton/distinfo
@@ -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 --git a/graphics/lepton/patches/patch-src--lepton--fork_serve.cc b/graphics/lepton/patches/patch-src--lepton--fork_serve.cc
new file mode 100644
index 00000000000..af58c10312b
--- /dev/null
+++ b/graphics/lepton/patches/patch-src--lepton--fork_serve.cc
@@ -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 --git a/graphics/lepton/patches/patch-src--lepton--socket_serve.cc b/graphics/lepton/patches/patch-src--lepton--socket_serve.cc
new file mode 100644
index 00000000000..18e8874cb2b
--- /dev/null
+++ b/graphics/lepton/patches/patch-src--lepton--socket_serve.cc
@@ -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 --git a/graphics/lepton/patches/patch-src--vp8--model--jpeg_meta.hh b/graphics/lepton/patches/patch-src--vp8--model--jpeg_meta.hh
new file mode 100644
index 00000000000..eae6602213b
--- /dev/null
+++ b/graphics/lepton/patches/patch-src--vp8--model--jpeg_meta.hh
@@ -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 --git a/graphics/lepton/patches/patch-src--vp8--util--vpx_config.hh b/graphics/lepton/patches/patch-src--vp8--util--vpx_config.hh
new file mode 100644
index 00000000000..a5577c8d195
--- /dev/null
+++ b/graphics/lepton/patches/patch-src--vp8--util--vpx_config.hh
@@ -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