aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2009-06-01 04:23:11 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2009-06-01 04:23:11 +0800
commit7d233e0a404e3d1d2dac5ff72acebfcae3f7abcc (patch)
tree4df3aacd58aadd512a608dfa836e37044c3045c0 /graphics
parent8dbbe52bb416d8dc0f80ab3bee5c97e2d42caf8a (diff)
downloadfreebsd-ports-gnome-7d233e0a404e3d1d2dac5ff72acebfcae3f7abcc.tar.gz
freebsd-ports-gnome-7d233e0a404e3d1d2dac5ff72acebfcae3f7abcc.tar.zst
freebsd-ports-gnome-7d233e0a404e3d1d2dac5ff72acebfcae3f7abcc.zip
An open source C library for efficient image processing and
image analysis operations. WWW: http://code.google.com/p/leptonica/ PR: 134717 Submitted by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/leptonica/Makefile38
-rw-r--r--graphics/leptonica/distinfo3
-rw-r--r--graphics/leptonica/files/patch-configure.ac11
-rw-r--r--graphics/leptonica/files/patch-src__Makefile.am24
-rw-r--r--graphics/leptonica/pkg-descr4
-rw-r--r--graphics/leptonica/pkg-plist26
-rw-r--r--graphics/leptonlib/Makefile38
-rw-r--r--graphics/leptonlib/distinfo3
-rw-r--r--graphics/leptonlib/files/patch-configure.ac11
-rw-r--r--graphics/leptonlib/files/patch-src__Makefile.am24
-rw-r--r--graphics/leptonlib/pkg-descr4
-rw-r--r--graphics/leptonlib/pkg-plist26
13 files changed, 213 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index a8271fe770b5..71fec816c593 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -389,6 +389,7 @@
SUBDIR += lcms
SUBDIR += leafpak
SUBDIR += lensfun
+ SUBDIR += leptonlib
SUBDIR += lfview
SUBDIR += lib3ds
SUBDIR += libGL
diff --git a/graphics/leptonica/Makefile b/graphics/leptonica/Makefile
new file mode 100644
index 000000000000..205c27b0edda
--- /dev/null
+++ b/graphics/leptonica/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: leptonlib
+# Date created: 2009-05-20
+# Whom: Hiroto Kagotani <hiroto.kagotani@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= leptonlib
+PORTVERSION= 1.60
+CATEGORIES= graphics
+MASTER_SITES= GOOGLE_CODE
+
+MAINTAINER= hiroto.kagotani@gmail.com
+COMMENT= C library for efficient image processing and image analysis operations
+
+LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
+ jpeg.9:${PORTSDIR}/graphics/jpeg \
+ tiff.4:${PORTSDIR}/graphics/tiff
+
+PROJECTHOST= leptonica
+
+MAKE_JOBS_SAFE= yes
+USE_AUTOTOOLS= libtool:15 aclocal:110 automake:110 autoconf:262
+ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I${LOCALBASE}/share/aclocal
+USE_LDCONFIG= yes
+CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
+
+post-patch:
+ @${MV} ${WRKSRC}/src/makefile ${WRKSRC}/src/makefile.linux
+ @${RM} ${WRKSRC}/src/jpeglib.h ${WRKSRC}/src/jmorecfg.h
+
+pre-configure:
+ @(cd ${CONFIGURE_WRKSRC} \
+ && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} --automake)
+
+run-autotools:: run-autotools-aclocal run-autotools-automake run-autotools-autoconf
+
+.include <bsd.port.mk>
diff --git a/graphics/leptonica/distinfo b/graphics/leptonica/distinfo
new file mode 100644
index 000000000000..f72424024664
--- /dev/null
+++ b/graphics/leptonica/distinfo
@@ -0,0 +1,3 @@
+MD5 (leptonlib-1.60.tar.gz) = 8f13a190a86f73388e9901bd59ebfa25
+SHA256 (leptonlib-1.60.tar.gz) = 9c9b7710418a33aad35dcd7b76b6b69affdc90b2b62cce56b6c6dc93f5e7a072
+SIZE (leptonlib-1.60.tar.gz) = 4115391
diff --git a/graphics/leptonica/files/patch-configure.ac b/graphics/leptonica/files/patch-configure.ac
new file mode 100644
index 000000000000..ab80d8f6791e
--- /dev/null
+++ b/graphics/leptonica/files/patch-configure.ac
@@ -0,0 +1,11 @@
+--- ./configure.ac.orig 2009-01-19 14:30:19.000000000 +0900
++++ ./configure.ac 2009-05-21 00:15:20.000000000 +0900
+@@ -114,7 +114,7 @@
+
+ # Check where all the following programs are and set
+ # variables accordingly:
+-AC_PROG_RANLIB
++AM_PROG_LIBTOOL
+ # AC_PROG_LN_S
+ # AC_PATH_PROG(MV, mv)
+ # AC_PATH_PROG(CP, cp)
diff --git a/graphics/leptonica/files/patch-src__Makefile.am b/graphics/leptonica/files/patch-src__Makefile.am
new file mode 100644
index 000000000000..74f0cb78f4eb
--- /dev/null
+++ b/graphics/leptonica/files/patch-src__Makefile.am
@@ -0,0 +1,24 @@
+--- src/Makefile.am.orig 2009-01-19 08:30:19.000000000 +0300
++++ src/Makefile.am 2009-05-21 21:55:01.000000000 +0400
+@@ -6,10 +6,9 @@
+ MAKE = make -f Makefile
+ AM_CFLAGS = -D_BSD_SOURCE -DANSI -fPIC
+ AM_CPPFLAGS = $(ENDIANNESS)
+-CFLAGS = -O2
+
+-lib_LIBRARIES = liblept.a
+-liblept_a_SOURCES = adaptmap.c \
++lib_LTLIBRARIES = liblept.la
++liblept_la_SOURCES = adaptmap.c \
+ affine.c affinecompose.c \
+ arithlow.c arrayaccess.c \
+ bardecode.c \
+@@ -73,7 +72,7 @@
+
+ include_HEADERS = allheaders.h alltypes.h arrayaccess.h \
+ array.h bbuffer.h bmf.h bmp.h ccbord.h environ.h \
+- gplot.h imageio.h jbclass.h jmorecfg.h jpeglib.h leptprotos.h list.h \
++ gplot.h imageio.h jbclass.h leptprotos.h list.h \
+ morph.h pheap.h pix.h pqueue.h readbarcode.h stack.h watershed.h
+
+ EXTRA_DIST = Makefile.mingw arrayaccess.h.vc arrayaccess.h.vc60 \
diff --git a/graphics/leptonica/pkg-descr b/graphics/leptonica/pkg-descr
new file mode 100644
index 000000000000..852653951312
--- /dev/null
+++ b/graphics/leptonica/pkg-descr
@@ -0,0 +1,4 @@
+An open source C library for efficient image processing and
+image analysis operations.
+
+WWW: http://code.google.com/p/leptonica/
diff --git a/graphics/leptonica/pkg-plist b/graphics/leptonica/pkg-plist
new file mode 100644
index 000000000000..cda07166e1cf
--- /dev/null
+++ b/graphics/leptonica/pkg-plist
@@ -0,0 +1,26 @@
+include/liblept/allheaders.h
+include/liblept/alltypes.h
+include/liblept/arrayaccess.h
+include/liblept/array.h
+include/liblept/bbuffer.h
+include/liblept/bmf.h
+include/liblept/bmp.h
+include/liblept/ccbord.h
+include/liblept/environ.h
+include/liblept/gplot.h
+include/liblept/imageio.h
+include/liblept/jbclass.h
+include/liblept/leptprotos.h
+include/liblept/list.h
+include/liblept/morph.h
+include/liblept/pheap.h
+include/liblept/pix.h
+include/liblept/pqueue.h
+include/liblept/readbarcode.h
+include/liblept/stack.h
+include/liblept/watershed.h
+lib/liblept.a
+lib/liblept.la
+lib/liblept.so
+lib/liblept.so.0
+@dirrm include/liblept
diff --git a/graphics/leptonlib/Makefile b/graphics/leptonlib/Makefile
new file mode 100644
index 000000000000..205c27b0edda
--- /dev/null
+++ b/graphics/leptonlib/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: leptonlib
+# Date created: 2009-05-20
+# Whom: Hiroto Kagotani <hiroto.kagotani@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= leptonlib
+PORTVERSION= 1.60
+CATEGORIES= graphics
+MASTER_SITES= GOOGLE_CODE
+
+MAINTAINER= hiroto.kagotani@gmail.com
+COMMENT= C library for efficient image processing and image analysis operations
+
+LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
+ jpeg.9:${PORTSDIR}/graphics/jpeg \
+ tiff.4:${PORTSDIR}/graphics/tiff
+
+PROJECTHOST= leptonica
+
+MAKE_JOBS_SAFE= yes
+USE_AUTOTOOLS= libtool:15 aclocal:110 automake:110 autoconf:262
+ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I${LOCALBASE}/share/aclocal
+USE_LDCONFIG= yes
+CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
+
+post-patch:
+ @${MV} ${WRKSRC}/src/makefile ${WRKSRC}/src/makefile.linux
+ @${RM} ${WRKSRC}/src/jpeglib.h ${WRKSRC}/src/jmorecfg.h
+
+pre-configure:
+ @(cd ${CONFIGURE_WRKSRC} \
+ && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} --automake)
+
+run-autotools:: run-autotools-aclocal run-autotools-automake run-autotools-autoconf
+
+.include <bsd.port.mk>
diff --git a/graphics/leptonlib/distinfo b/graphics/leptonlib/distinfo
new file mode 100644
index 000000000000..f72424024664
--- /dev/null
+++ b/graphics/leptonlib/distinfo
@@ -0,0 +1,3 @@
+MD5 (leptonlib-1.60.tar.gz) = 8f13a190a86f73388e9901bd59ebfa25
+SHA256 (leptonlib-1.60.tar.gz) = 9c9b7710418a33aad35dcd7b76b6b69affdc90b2b62cce56b6c6dc93f5e7a072
+SIZE (leptonlib-1.60.tar.gz) = 4115391
diff --git a/graphics/leptonlib/files/patch-configure.ac b/graphics/leptonlib/files/patch-configure.ac
new file mode 100644
index 000000000000..ab80d8f6791e
--- /dev/null
+++ b/graphics/leptonlib/files/patch-configure.ac
@@ -0,0 +1,11 @@
+--- ./configure.ac.orig 2009-01-19 14:30:19.000000000 +0900
++++ ./configure.ac 2009-05-21 00:15:20.000000000 +0900
+@@ -114,7 +114,7 @@
+
+ # Check where all the following programs are and set
+ # variables accordingly:
+-AC_PROG_RANLIB
++AM_PROG_LIBTOOL
+ # AC_PROG_LN_S
+ # AC_PATH_PROG(MV, mv)
+ # AC_PATH_PROG(CP, cp)
diff --git a/graphics/leptonlib/files/patch-src__Makefile.am b/graphics/leptonlib/files/patch-src__Makefile.am
new file mode 100644
index 000000000000..74f0cb78f4eb
--- /dev/null
+++ b/graphics/leptonlib/files/patch-src__Makefile.am
@@ -0,0 +1,24 @@
+--- src/Makefile.am.orig 2009-01-19 08:30:19.000000000 +0300
++++ src/Makefile.am 2009-05-21 21:55:01.000000000 +0400
+@@ -6,10 +6,9 @@
+ MAKE = make -f Makefile
+ AM_CFLAGS = -D_BSD_SOURCE -DANSI -fPIC
+ AM_CPPFLAGS = $(ENDIANNESS)
+-CFLAGS = -O2
+
+-lib_LIBRARIES = liblept.a
+-liblept_a_SOURCES = adaptmap.c \
++lib_LTLIBRARIES = liblept.la
++liblept_la_SOURCES = adaptmap.c \
+ affine.c affinecompose.c \
+ arithlow.c arrayaccess.c \
+ bardecode.c \
+@@ -73,7 +72,7 @@
+
+ include_HEADERS = allheaders.h alltypes.h arrayaccess.h \
+ array.h bbuffer.h bmf.h bmp.h ccbord.h environ.h \
+- gplot.h imageio.h jbclass.h jmorecfg.h jpeglib.h leptprotos.h list.h \
++ gplot.h imageio.h jbclass.h leptprotos.h list.h \
+ morph.h pheap.h pix.h pqueue.h readbarcode.h stack.h watershed.h
+
+ EXTRA_DIST = Makefile.mingw arrayaccess.h.vc arrayaccess.h.vc60 \
diff --git a/graphics/leptonlib/pkg-descr b/graphics/leptonlib/pkg-descr
new file mode 100644
index 000000000000..852653951312
--- /dev/null
+++ b/graphics/leptonlib/pkg-descr
@@ -0,0 +1,4 @@
+An open source C library for efficient image processing and
+image analysis operations.
+
+WWW: http://code.google.com/p/leptonica/
diff --git a/graphics/leptonlib/pkg-plist b/graphics/leptonlib/pkg-plist
new file mode 100644
index 000000000000..cda07166e1cf
--- /dev/null
+++ b/graphics/leptonlib/pkg-plist
@@ -0,0 +1,26 @@
+include/liblept/allheaders.h
+include/liblept/alltypes.h
+include/liblept/arrayaccess.h
+include/liblept/array.h
+include/liblept/bbuffer.h
+include/liblept/bmf.h
+include/liblept/bmp.h
+include/liblept/ccbord.h
+include/liblept/environ.h
+include/liblept/gplot.h
+include/liblept/imageio.h
+include/liblept/jbclass.h
+include/liblept/leptprotos.h
+include/liblept/list.h
+include/liblept/morph.h
+include/liblept/pheap.h
+include/liblept/pix.h
+include/liblept/pqueue.h
+include/liblept/readbarcode.h
+include/liblept/stack.h
+include/liblept/watershed.h
+lib/liblept.a
+lib/liblept.la
+lib/liblept.so
+lib/liblept.so.0
+@dirrm include/liblept