aboutsummaryrefslogtreecommitdiff
path: root/graphics/iulib
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2009-05-31 20:24:14 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2009-05-31 20:24:14 +0000
commite58267aca6cbe9017fbb2550ca70ba85088f8380 (patch)
treeab0f6a005cd1fdb5fd27e0269e9406bb722c1251 /graphics/iulib
parentf8d5253d2542682085f859f4a23a4be48d4b626e (diff)
downloadports-e58267aca6cbe9017fbb2550ca70ba85088f8380.tar.gz
ports-e58267aca6cbe9017fbb2550ca70ba85088f8380.zip
Notes
Diffstat (limited to 'graphics/iulib')
-rw-r--r--graphics/iulib/Makefile57
-rw-r--r--graphics/iulib/distinfo3
-rw-r--r--graphics/iulib/files/patch-Makefile.am48
-rw-r--r--graphics/iulib/files/patch-configure.ac11
-rw-r--r--graphics/iulib/files/patch-vidio__vidio.cc19
-rw-r--r--graphics/iulib/pkg-descr5
-rw-r--r--graphics/iulib/pkg-plist55
7 files changed, 198 insertions, 0 deletions
diff --git a/graphics/iulib/Makefile b/graphics/iulib/Makefile
new file mode 100644
index 000000000000..5380bbc8aa79
--- /dev/null
+++ b/graphics/iulib/Makefile
@@ -0,0 +1,57 @@
+# New ports collection makefile for: iulib
+# Date created: 2009-05-20
+# Whom: Hiroto Kagotani <hiroto.kagotani@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= iulib
+PORTVERSION= 0.3
+CATEGORIES= graphics
+MASTER_SITES= GOOGLE_CODE
+
+MAINTAINER= hiroto.kagotani@gmail.com
+COMMENT= A library of image understanding-related algorithms
+
+LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
+ jpeg.9:${PORTSDIR}/graphics/jpeg
+
+WRKSRC= ${WRKDIR}/iulib
+
+OPTIONS= SDL "Enable SDL" off \
+ VIDIO "Enable Video Input/Output (using ffmpeg)" off
+
+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
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITH_SDL)
+CONFIGURE_ARGS+=--without-SDL
+.else
+USE_SDL= sdl
+.endif
+
+.if !defined(WITH_VIDIO)
+PLIST_SUB+= VIDIO="@comment "
+.else
+LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
+PLIST_SUB+= VIDIO=""
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e '/tiff/s/^/#/' ${WRKSRC}/configure.ac
+.if !defined(WITH_VIDIO)
+ @${REINPLACE_CMD} -e 's/novidio, 0/novidio, 1/' ${WRKSRC}/configure.ac
+.endif
+
+pre-configure:
+ @(cd ${CONFIGURE_WRKSRC} \
+ && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} --automake)
+
+run-autotools: run-autotools-aclocal run-autotools-automake run-autotools-autoconf
+
+.include <bsd.port.post.mk>
diff --git a/graphics/iulib/distinfo b/graphics/iulib/distinfo
new file mode 100644
index 000000000000..3c8f19927352
--- /dev/null
+++ b/graphics/iulib/distinfo
@@ -0,0 +1,3 @@
+MD5 (iulib-0.3.tar.gz) = eb98f97d5b93fae6ff1e416922a4f389
+SHA256 (iulib-0.3.tar.gz) = 229f6c6b3724a442efd7306def6d2b35cd7ad38ec725adc6446632c9e8cd20f2
+SIZE (iulib-0.3.tar.gz) = 3065868
diff --git a/graphics/iulib/files/patch-Makefile.am b/graphics/iulib/files/patch-Makefile.am
new file mode 100644
index 000000000000..12692e23fff7
--- /dev/null
+++ b/graphics/iulib/files/patch-Makefile.am
@@ -0,0 +1,48 @@
+--- ./Makefile.am.orig 2008-10-16 03:50:34.000000000 +0900
++++ ./Makefile.am 2009-05-22 09:19:51.000000000 +0900
+@@ -3,9 +3,9 @@
+ includedir = ${prefix}/include/iulib
+ colibdir = ${prefix}/include/colib
+
+-lib_LIBRARIES = libiulib.a
++lib_LTLIBRARIES = libiulib.la
+
+-libiulib_a_SOURCES = \
++libiulib_la_SOURCES = \
+ $(srcdir)/imgio/autoinvert.cc $(srcdir)/imgio/imgio.cc $(srcdir)/imgio/io_jpeg.cc $(srcdir)/imgio/io_pbm.cc $(srcdir)/imgio/io_png.cc \
+ $(srcdir)/imglib/imgbrushfire.cc $(srcdir)/imglib/imgedges.cc $(srcdir)/imglib/imgfilters.cc $(srcdir)/imglib/imggauss.cc $(srcdir)/imglib/imglabels.cc $(srcdir)/imglib/imgmap.cc $(srcdir)/imglib/imgmisc.cc $(srcdir)/imglib/imgmorph.cc $(srcdir)/imglib/imgops.cc $(srcdir)/imglib/imgrescale.cc $(srcdir)/imglib/imgthin.cc $(srcdir)/imglib/imgtrace.cc $(srcdir)/imglib/imggraymorph.cc \
+ $(srcdir)/imgbits/imgbits.cc $(srcdir)/imgbits/imgbsmp.cc $(srcdir)/imgbits/imgbthin.cc $(srcdir)/imgbits/imgrle.cc $(srcdir)/imgbits/imgblit.cc $(srcdir)/imgbits/imgblit_c.cc
+@@ -21,28 +21,16 @@
+ # conditionals
+
+ if have_sdl
+- libiulib_a_SOURCES += $(srcdir)/utils/dgraphics.cc
++ libiulib_la_SOURCES += $(srcdir)/utils/dgraphics.cc
+ else
+- libiulib_a_SOURCES += $(srcdir)/utils/dgraphics_nosdl.cc
++ libiulib_la_SOURCES += $(srcdir)/utils/dgraphics_nosdl.cc
+ endif
+
+ if have_vidio
+- libiulib_a_SOURCES += $(srcdir)/vidio/vidio.cc
++ libiulib_la_SOURCES += $(srcdir)/vidio/vidio.cc
+ include_HEADERS += $(srcdir)/vidio/vidio.h
+ endif
+
+ if have_v4l2
+- libiulib_a_SOURCES += $(srcdir)/vidio/v4l2cap.cc
++ libiulib_la_SOURCES += $(srcdir)/vidio/v4l2cap.cc
+ endif
+-
+-# make installation of colib a separate target
+-
+-install-colib:
+- install -d $(colibdir)
+- install $(colib_HEADERS) $(colibdir)
+-
+-install: all install-colib
+- install -d $(includedir)
+- install -d $(libdir)
+- install $(include_HEADERS) $(includedir)
+- install $(lib_LIBRARIES) $(libdir)
+\ No newline at end of file
diff --git a/graphics/iulib/files/patch-configure.ac b/graphics/iulib/files/patch-configure.ac
new file mode 100644
index 000000000000..8d0dd4eba206
--- /dev/null
+++ b/graphics/iulib/files/patch-configure.ac
@@ -0,0 +1,11 @@
+--- ./configure.ac.orig 2008-10-16 03:50:34.000000000 +0900
++++ ./configure.ac 2009-05-22 09:21:25.000000000 +0900
+@@ -10,7 +10,7 @@
+
+ AC_PROG_CXX
+ AC_PROG_CC
+-AC_PROG_RANLIB
++AM_PROG_LIBTOOL
+
+ AC_HEADER_STDC
+ AC_HEADER_SYS_WAIT
diff --git a/graphics/iulib/files/patch-vidio__vidio.cc b/graphics/iulib/files/patch-vidio__vidio.cc
new file mode 100644
index 000000000000..2e773af22b84
--- /dev/null
+++ b/graphics/iulib/files/patch-vidio__vidio.cc
@@ -0,0 +1,19 @@
+--- ./vidio/vidio.cc.orig 2008-10-16 03:50:34.000000000 +0900
++++ ./vidio/vidio.cc 2009-05-22 09:19:51.000000000 +0900
+@@ -27,7 +27,6 @@
+ extern "C" {
+ #include <assert.h>
+ #include <math.h>
+-#include <malloc.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <ctype.h>
+@@ -481,7 +480,7 @@
+ av_freep(&oc->streams[i]);
+ }
+
+- url_fclose(&oc->pb);
++ url_fclose(oc->pb);
+
+ // free the stream
+ av_free(oc);
diff --git a/graphics/iulib/pkg-descr b/graphics/iulib/pkg-descr
new file mode 100644
index 000000000000..20d73e9021a5
--- /dev/null
+++ b/graphics/iulib/pkg-descr
@@ -0,0 +1,5 @@
+A library of image understanding-related algorithms.
+Provides basic image processing, mathematical morphology,
+and machine learning algorithms.
+
+WWW: http://code.google.com/p/iulib/
diff --git a/graphics/iulib/pkg-plist b/graphics/iulib/pkg-plist
new file mode 100644
index 000000000000..db76b1998eaa
--- /dev/null
+++ b/graphics/iulib/pkg-plist
@@ -0,0 +1,55 @@
+include/colib/rowarrays.h
+include/colib/coords.h
+include/colib/misc.h
+include/colib/narray-ops.h
+include/colib/narray.h
+include/colib/vec2.h
+include/colib/checks.h
+include/colib/counted.h
+include/colib/strbuf.h
+include/colib/objlist.h
+include/colib/narray-util.h
+include/colib/nustring.h
+include/colib/clib.h
+include/colib/nbest.h
+include/colib/smartptr.h
+include/colib/iarith.h
+include/colib/hash.h
+include/colib/compat.h
+include/colib/classifier.h
+include/colib/quicksort.h
+include/colib/ocrinterfaces.h
+include/colib/env.h
+include/colib/colib.h
+include/colib/heap.h
+include/iulib/autoinvert.h
+include/iulib/imgio.h
+include/iulib/io_pbm.h
+include/iulib/io_png.h
+include/iulib/io_jpeg.h
+include/iulib/imgtrace.h
+include/iulib/imgthin.h
+include/iulib/imgmorph.h
+include/iulib/imgmisc.h
+include/iulib/imgops.h
+include/iulib/imglabels.h
+include/iulib/imglib.h
+include/iulib/imgfilters.h
+include/iulib/imgmap.h
+include/iulib/imgrescale.h
+include/iulib/imggauss.h
+include/iulib/imgedges.h
+include/iulib/imggraymorph.h
+include/iulib/imgbrushfire.h
+include/iulib/dgraphics.h
+include/iulib/imgbits.h
+include/iulib/imgbitptr.h
+include/iulib/imgrle.h
+include/iulib/bithacks.h
+%%VIDIO%%include/iulib/vidio.h
+lib/libiulib.a
+lib/libiulib.la
+lib/libiulib.so
+lib/libiulib.so.0
+@dirrm include/colib
+@dirrm include/iulib