summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2007-04-03 09:23:24 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2007-04-03 09:23:24 +0800
commit615008d8dfccbdf5f42300367f627a06b1edfde7 (patch)
tree4e60b4b45f0b7ab3bdba900bbb91f01eda5d7715
parent747a40ad099456331ebadf85855e13f070e291fe (diff)
downloadmarcuscom-ports-615008d8dfccbdf5f42300367f627a06b1edfde7.tar
marcuscom-ports-615008d8dfccbdf5f42300367f627a06b1edfde7.tar.gz
marcuscom-ports-615008d8dfccbdf5f42300367f627a06b1edfde7.tar.bz2
marcuscom-ports-615008d8dfccbdf5f42300367f627a06b1edfde7.tar.lz
marcuscom-ports-615008d8dfccbdf5f42300367f627a06b1edfde7.tar.xz
marcuscom-ports-615008d8dfccbdf5f42300367f627a06b1edfde7.tar.zst
marcuscom-ports-615008d8dfccbdf5f42300367f627a06b1edfde7.zip
Fix gimp depends
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8590 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--graphics/gimp-greycstoration/Makefile36
-rw-r--r--graphics/gimp-greycstoration/distinfo3
-rw-r--r--graphics/gimp-greycstoration/pkg-descr7
-rw-r--r--graphics/gimp-greycstoration/pkg-plist2
-rw-r--r--graphics/libpano12/Makefile57
-rw-r--r--graphics/libpano12/distinfo3
-rw-r--r--graphics/libpano12/files/patch-Makefile.am36
-rw-r--r--graphics/libpano12/files/patch-bootstrap30
-rw-r--r--graphics/libpano12/files/patch-configure.ac22
-rw-r--r--graphics/libpano12/files/patch-m4_ax_check_graphics.m474
-rw-r--r--graphics/libpano12/files/patch-m4_ax_check_java.m421
-rw-r--r--graphics/libpano12/files/patch-tools_Makefile.am35
-rw-r--r--graphics/libpano12/pkg-descr4
-rw-r--r--graphics/libpano12/pkg-plist19
-rw-r--r--graphics/ufraw/Makefile57
-rw-r--r--graphics/ufraw/distinfo3
-rw-r--r--graphics/ufraw/pkg-descr10
-rw-r--r--graphics/ufraw/pkg-plist20
18 files changed, 439 insertions, 0 deletions
diff --git a/graphics/gimp-greycstoration/Makefile b/graphics/gimp-greycstoration/Makefile
new file mode 100644
index 000000000..15ac772ce
--- /dev/null
+++ b/graphics/gimp-greycstoration/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: gimp-greycstoration
+# Date created: 6 March 2006
+# Whom: Elisey Savateev <b3k@mail.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= greycstoration
+PORTVERSION= 0.2.0
+PORTREVISION= 1
+CATEGORIES= graphics
+MASTER_SITES= http://www.haypocalc.com/perso/prog/greycstoration/ \
+ http://bio3k.softboard.ru/uploads/arch/
+PKGNAMEPREFIX= gimp-
+
+MAINTAINER= b3k@mail.ru
+COMMENT= Gimp plugin used for noise reduction
+
+BUILD_DEPENDS= gimp>0:${PORTSDIR}/graphics/gimp \
+ ${SITE_PERL}/mach/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser
+RUN_DEPENDS= gimp>0:${PORTSDIR}/graphics/gimp \
+ ${SITE_PERL}/mach/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser
+
+GNU_CONFIGURE= yes
+USE_BZIP2= yes
+USE_GNOME= gtk20
+
+# Redifine this if you need
+PLUGIN_DIR?= libexec/gimp/2.2/plug-ins
+
+PLIST_SUB= PLUGIN_DIR=${PLUGIN_DIR}
+
+post-extract:
+ @${REINPLACE_CMD} -e 's|$$(GIMP_LIBDIR)/plug-ins|${PREFIX}/${PLUGIN_DIR}|g' ${WRKSRC}/src/Makefile.in ${WRKSRC}/src/Makefile.am
+
+.include <bsd.port.mk>
diff --git a/graphics/gimp-greycstoration/distinfo b/graphics/gimp-greycstoration/distinfo
new file mode 100644
index 000000000..4d9d5d460
--- /dev/null
+++ b/graphics/gimp-greycstoration/distinfo
@@ -0,0 +1,3 @@
+MD5 (greycstoration-0.2.0.tar.bz2) = 3ec7b4d5895a54fbc407916c318ef937
+SHA256 (greycstoration-0.2.0.tar.bz2) = aa2a2f5b81134a02caf056085db22526bb3962d4deccb1885fa96395e37933a9
+SIZE (greycstoration-0.2.0.tar.bz2) = 193064
diff --git a/graphics/gimp-greycstoration/pkg-descr b/graphics/gimp-greycstoration/pkg-descr
new file mode 100644
index 000000000..80c68c31c
--- /dev/null
+++ b/graphics/gimp-greycstoration/pkg-descr
@@ -0,0 +1,7 @@
+GREYCstoration is a Gimp plugin using the algorithm written by David Tschumperle
+from GREYC laboratory (at Caen in France).
+
+WWW: http://www.haypocalc.com/wiki/GREYCstoration_in_english
+
+- Elisey Savateev
+b3k@mail.ru
diff --git a/graphics/gimp-greycstoration/pkg-plist b/graphics/gimp-greycstoration/pkg-plist
new file mode 100644
index 000000000..7ffbb2b1a
--- /dev/null
+++ b/graphics/gimp-greycstoration/pkg-plist
@@ -0,0 +1,2 @@
+%%PLUGIN_DIR%%/greycstoration
+@dirrmtry %%PLUGIN_DIR%%
diff --git a/graphics/libpano12/Makefile b/graphics/libpano12/Makefile
new file mode 100644
index 000000000..0ee8420e2
--- /dev/null
+++ b/graphics/libpano12/Makefile
@@ -0,0 +1,57 @@
+# New ports collection makefile for: panorama-tools
+# Date created: 26 august 2004
+# Whom: cartola (Carlos E. G. Carvalho)
+#
+# $FreeBSD$
+# This port has been made as a building and running dependence for the
+# hugin port.
+# The hugin port is a gui interface to interact with this and other
+# tools.
+
+PORTNAME= libpano12
+PORTVERSION= 2.8.4
+CATEGORIES= graphics java
+MASTER_SITES= SF
+MASTER_SITE_SUBDIR= panotools
+
+MAINTAINER= vd@FreeBSD.org
+COMMENT= Panorama Tools to make panorama pictures
+
+BUILD_DEPENDS= gimp>0:${PORTSDIR}/graphics/gimp
+RUN_DEPENDS= ${BUILD_DEPENDS}
+LIB_DEPENDS= tiff:${PORTSDIR}/graphics/tiff \
+ png:${PORTSDIR}/graphics/png \
+ jpeg:${PORTSDIR}/graphics/jpeg \
+ cairo:${PORTSDIR}/graphics/cairo
+
+USE_GNOME= gtk20 glib20 pango atk
+
+USE_AUTOTOOLS= autoconf:259:env autoheader:259:env aclocal:19:env \
+ automake:19:env libtool:15:env
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/gtk-2.0 \
+ -I${LOCALBASE}/include/gimp-2.0 \
+ -I${LOCALBASE}/include/glib-2.0 \
+ -I${LOCALBASE}/include/cairo \
+ -I${LOCALBASE}/include/pango-1.0 \
+ -I${LOCALBASE}/include/atk-1.0"
+
+USE_LDCONFIG= yes
+
+.if !defined(WITHOUT_JAVA)
+USE_JAVA= yes
+JAVA_VERSION= 1.3+
+JAVA_OS= native
+CONFIGURE_ARGS+= --with-java=${JAVA_HOME}
+.else
+CONFIGURE_ARGS+= --without-java
+.endif
+
+pre-configure:
+ cd ${WRKSRC} && \
+ ${SETENV} ${AUTOTOOLS_ENV} \
+ ACLOCAL="${ACLOCAL} -I ${LOCALBASE}/share/aclocal" \
+ ./bootstrap
+
+.include <bsd.port.mk>
diff --git a/graphics/libpano12/distinfo b/graphics/libpano12/distinfo
new file mode 100644
index 000000000..187e4c3ea
--- /dev/null
+++ b/graphics/libpano12/distinfo
@@ -0,0 +1,3 @@
+MD5 (libpano12-2.8.4.tar.gz) = 808fd8eda224c9490ef407f4d82cf8d8
+SHA256 (libpano12-2.8.4.tar.gz) = b16e6b0863ad2fbc1f28f7a2072b241eb676213e62b37981674d3a5a837b6967
+SIZE (libpano12-2.8.4.tar.gz) = 1933134
diff --git a/graphics/libpano12/files/patch-Makefile.am b/graphics/libpano12/files/patch-Makefile.am
new file mode 100644
index 000000000..82f528602
--- /dev/null
+++ b/graphics/libpano12/files/patch-Makefile.am
@@ -0,0 +1,36 @@
+--- Makefile.am.orig Fri Jun 16 13:30:53 2006
++++ Makefile.am Wed Jan 17 11:45:13 2007
+@@ -70,6 +70,16 @@
+
+ endif
+
++if HAVE_FREEBSD
++FBSD_SRC = sys_ansi.c ppm.c
++FBSD_DEFS = -D__Ansi__=1
++FBSD_LDFS = -version-info 0:0:0
++
++install-exec-hook:
++ @true
++
++endif
++
+ if HAVE_DARWIN
+ DAR_SRC = sys_ansi.c ppm.c
+ DAR_DEFS = -D__Ansi__=1
+@@ -80,13 +90,13 @@
+
+ endif
+
+-AM_CPPFLAGS = $(JAVA_FLAGS) $(JPEG_FLAGS) $(PNG_FLAGS) $(TIFF_FLAGS) $(ZLIB_FLAGS) $(WIN_DEFS) $(LIN_DEFS) $(DAR_DEFS) $(ENDIAN_FLAG)
++AM_CPPFLAGS = $(JAVA_FLAGS) $(JPEG_FLAGS) $(PNG_FLAGS) $(TIFF_FLAGS) $(ZLIB_FLAGS) $(WIN_DEFS) $(LIN_DEFS) $(FBSD_DEFS) $(DAR_DEFS) $(ENDIAN_FLAG)
+
+ lib_LTLIBRARIES = libpano12.la
+
+-libpano12_la_SOURCES = $(STD_SRC) $(JAVA_SRC) $(X11_SRC) $(WIN_SRC) $(MAC_SRC) $(LIN_SRC) $(DAR_SRC)
++libpano12_la_SOURCES = $(STD_SRC) $(JAVA_SRC) $(X11_SRC) $(WIN_SRC) $(MAC_SRC) $(LIN_SRC) $(FBSD_SRC) $(DAR_SRC)
+ libpano12_la_LIBADD = $(LIB_JPEG) $(LIB_PNG) $(LIB_TIFF) $(LIB_ZLIB) @PANO_WIN32_RESOURCE@
+-libpano12_la_LDFLAGS = $(LIN_LDFS) $(WIN_LDFS) $(DAR_LDFS)
++libpano12_la_LDFLAGS = $(LIN_LDFS) $(FBSD_LDFS) $(WIN_LDFS) $(DAR_LDFS)
+ libpano12_la_DEPENDENCIES = @PANO_WIN32_RESOURCE@
+
+ pkginclude_HEADERS = $(STD_HDR) $(TOOL_HDR)
diff --git a/graphics/libpano12/files/patch-bootstrap b/graphics/libpano12/files/patch-bootstrap
new file mode 100644
index 000000000..ebd097887
--- /dev/null
+++ b/graphics/libpano12/files/patch-bootstrap
@@ -0,0 +1,30 @@
+--- bootstrap.orig Tue Jan 16 18:58:24 2007
++++ bootstrap Tue Jan 16 18:58:39 2007
+@@ -96,27 +96,3 @@
+ $AUTOMAKE --add-missing --copy || exit $?
+
+ $AUTOCONF || exit $?
+-
+-cd $ORIGDIR || exit $?
+-
+-echo
+-echo "I am going to run ./configure with the following arguments:"
+-echo
+-echo " --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS $@"
+-echo
+-
+-if test -z "$*"; then
+- echo "If you wish to pass additional arguments, please specify them "
+- echo "on the $0 command line or set the AUTOGEN_CONFIGURE_ARGS "
+- echo "environment variable."
+- echo
+-fi
+-
+-$srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@"
+-RC=$?
+-if test $RC -ne 0; then
+- echo
+- echo "Configure failed or did not finish!"
+- exit $RC
+-fi
+-
diff --git a/graphics/libpano12/files/patch-configure.ac b/graphics/libpano12/files/patch-configure.ac
new file mode 100644
index 000000000..723bdcd56
--- /dev/null
+++ b/graphics/libpano12/files/patch-configure.ac
@@ -0,0 +1,22 @@
+--- configure.ac.orig Fri Jun 16 13:30:54 2006
++++ configure.ac Wed Jan 17 10:40:32 2007
+@@ -45,6 +45,11 @@
+ ;;
+ esac
+ ;;
++ *freebsd*)
++ PANO_WIN32_RESOURCE=
++ HSYS=freebsd
++ HCPU="${target_cpu}"
++ ;;
+ *darwin*)
+ PANO_WIN32_RESOURCE=
+ HSYS=darwin
+@@ -73,6 +78,7 @@
+
+ AM_CONDITIONAL(HAVE_DARWIN, test "${HSYS}" = "darwin")
+ AM_CONDITIONAL(HAVE_LINUX, test "${HSYS}" = "linux")
++AM_CONDITIONAL(HAVE_FREEBSD, test "${HSYS}" = "freebsd")
+ AM_CONDITIONAL(HAVE_MAC, test "${HSYS}" = "classic")
+ AM_CONDITIONAL(HAVE_MINGW, test "${HSYS}" = "mingw32")
+ AM_CONDITIONAL(HAVE_CYGWIN, test "${HSYS}" = "cygwin")
diff --git a/graphics/libpano12/files/patch-m4_ax_check_graphics.m4 b/graphics/libpano12/files/patch-m4_ax_check_graphics.m4
new file mode 100644
index 000000000..78414f3a0
--- /dev/null
+++ b/graphics/libpano12/files/patch-m4_ax_check_graphics.m4
@@ -0,0 +1,74 @@
+--- m4/ax_check_graphics.m4.orig Wed Jan 17 11:09:58 2007
++++ m4/ax_check_graphics.m4 Wed Jan 17 11:11:53 2007
+@@ -44,7 +44,7 @@
+ ZLIB_OLD_LDFLAGS=$LDFLAGS
+ ZLIB_OLD_CPPFLAGS=$CPPFLAGS
+ if test "x$ZLIB_HOME" != 'x' ; then
+- if test "x$HCPU" = 'xamd64' ; then
++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then
+ LDFLAGS="$LDFLAGS -L$ZLIB_HOME/lib64"
+ else
+ LDFLAGS="$LDFLAGS -L$ZLIB_HOME/lib"
+@@ -69,7 +69,7 @@
+ LIB_ZLIB="-lz"
+ ZLIB_FLAGS="-DHasZLIB"
+ else
+- if test "x$HCPU" = 'xamd64' ; then
++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then
+ LIB_ZLIB="-L$ZLIB_HOME/lib64 -lz"
+ else
+ LIB_ZLIB="-L$ZLIB_HOME/lib -lz"
+@@ -133,7 +133,7 @@
+ PNG_OLD_LDFLAGS=$LDFLAGS
+ PNG_OLD_CPPFLAGS=$CPPFLAGS
+ if test "x$PNG_HOME" != 'x' ; then
+- if test "x$HCPU" = 'xamd64' ; then
++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then
+ LDFLAGS="$LDFLAGS -L$PNG_HOME/lib64"
+ else
+ LDFLAGS="$LDFLAGS -L$PNG_HOME/lib"
+@@ -158,7 +158,7 @@
+ LIB_PNG="-lpng"
+ PNG_FLAGS="-DHasPNG"
+ else
+- if test "x$HCPU" = 'xamd64' ; then
++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then
+ LIB_PNG="-L$PNG_HOME/lib64 -lpng"
+ else
+ LIB_PNG="-L$PNG_HOME/lib -lpng"
+@@ -224,7 +224,7 @@
+ JPEG_OLD_LDFLAGS=$LDFLAGS
+ JPEG_OLD_CPPFLAGS=$CPPFLAGS
+ if test "x$JPEG_HOME" != 'x' ; then
+- if test "x$HCPU" = 'xamd64' ; then
++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then
+ LDFLAGS="$LDFLAGS -L$JPEG_HOME/lib64"
+ else
+ LDFLAGS="$LDFLAGS -L$JPEG_HOME/lib"
+@@ -274,7 +274,7 @@
+ LIB_JPEG="-ljpeg"
+ JPEG_FLAGS="-DHasJPEG"
+ else
+- if test "x$HCPU" = 'xamd64' ; then
++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then
+ LIB_JPEG="-L$JPEG_HOME/lib64 -ljpeg"
+ else
+ LIB_JPEG="-L$JPEG_HOME/lib -ljpeg"
+@@ -339,7 +339,7 @@
+ TIFF_OLD_LDFLAGS=$LDFLAGS
+ TIFF_OLD_CPPFLAGS=$CPPFLAGS
+ if test "x$TIFF_HOME" != 'x' ; then
+- if test "x$HCPU" = 'xamd64' ; then
++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then
+ LDFLAGS="$LDFLAGS -L$TIFF_HOME/lib64"
+ else
+ LDFLAGS="$LDFLAGS -L$TIFF_HOME/lib"
+@@ -364,7 +364,7 @@
+ LIB_TIFF="-ltiff"
+ TIFF_FLAGS="-DHasTIFF"
+ else
+- if test "x$HCPU" = 'xamd64' ; then
++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then
+ LIB_TIFF="-L$TIFF_HOME/lib64 -ltiff"
+ else
+ LIB_TIFF="-L$TIFF_HOME/lib -ltiff"
diff --git a/graphics/libpano12/files/patch-m4_ax_check_java.m4 b/graphics/libpano12/files/patch-m4_ax_check_java.m4
new file mode 100644
index 000000000..658cdeb47
--- /dev/null
+++ b/graphics/libpano12/files/patch-m4_ax_check_java.m4
@@ -0,0 +1,21 @@
+--- m4/ax_check_java.m4.orig Wed Jan 17 11:23:05 2007
++++ m4/ax_check_java.m4 Wed Jan 17 11:25:08 2007
+@@ -2,7 +2,7 @@
+ dnl Usage:
+ dnl AX_CHECK_JAVA
+ dnl Test for java, and defines
+-dnl - JAVA_CFLAGS (compiler flags)
++dnl - JAVA_FLAGS (compiler flags)
+ dnl - LIB_JAVA (linker flags, stripping and path)
+ dnl prerequisites:
+
+@@ -78,6 +78,9 @@
+ case "${target_os}" in
+ linux*)
+ java_extra_inc=linux
++ ;;
++ *freebsd*)
++ java_extra_inc=freebsd
+ ;;
+ darwin*)
+ java_extra_inc=darwin
diff --git a/graphics/libpano12/files/patch-tools_Makefile.am b/graphics/libpano12/files/patch-tools_Makefile.am
new file mode 100644
index 000000000..d5f1753c0
--- /dev/null
+++ b/graphics/libpano12/files/patch-tools_Makefile.am
@@ -0,0 +1,35 @@
+--- tools/Makefile.am.orig Wed Jan 17 10:49:07 2007
++++ tools/Makefile.am Wed Jan 17 10:51:24 2007
+@@ -24,6 +24,14 @@
+ LIN_DEFS =
+ endif
+
++if HAVE_FREEBSD
++FBSD_SRC = panoinfo_unix.c
++FBSD_DEFS = -D__Ansi__=1
++else
++FBSD_SRC =
++FBSD_DEFS =
++endif
++
+ if HAVE_DARWIN
+ DAR_SRC = panoinfo_unix.c
+ DAR_DEFS = -D__Ansi__=1
+@@ -32,7 +40,7 @@
+ DAR_DEFS =
+ endif
+
+-AM_CPPFLAGS = $(JAVA_FLAGS) $(LIN_DEFS) $(DAR_DEFS) $(TIFF_FLAGS) $(JPEG_FLAGS)
++AM_CPPFLAGS = $(JAVA_FLAGS) $(LIN_DEFS) $(FBSD_DEFS) $(DAR_DEFS) $(TIFF_FLAGS) $(JPEG_FLAGS)
+ AM_LDFLAGS = -L${top_builddir}
+
+ bin_PROGRAMS = panoinfo PTOptimizer PTmender PTblender PTtiff2psd PTuncrop
+@@ -52,7 +60,7 @@
+ PTOptimizer_SOURCES = PTOptimizer.c
+ PTOptimizer_LDADD = -lpano12
+
+-panoinfo_SOURCES = $(WIN_SRC) $(LIN_SRC) $(DAR_SRC)
++panoinfo_SOURCES = $(WIN_SRC) $(LIN_SRC) $(FBSD_SRC) $(DAR_SRC)
+ panoinfo_LDADD = -lpano12
+
+ EXTRA_DIST = makefile.panoinfo.win32 makefile.ptoptimizer.win32 \
diff --git a/graphics/libpano12/pkg-descr b/graphics/libpano12/pkg-descr
new file mode 100644
index 000000000..5bc4cba47
--- /dev/null
+++ b/graphics/libpano12/pkg-descr
@@ -0,0 +1,4 @@
+This is a port of panorama-tools, a set of tools to make panoramic
+images from independent pictures.
+
+WWW: http://panotools.sourceforge.net/
diff --git a/graphics/libpano12/pkg-plist b/graphics/libpano12/pkg-plist
new file mode 100644
index 000000000..16c01653b
--- /dev/null
+++ b/graphics/libpano12/pkg-plist
@@ -0,0 +1,19 @@
+bin/PTOptimizer
+bin/PTblender
+bin/PTmender
+bin/PTtiff2psd
+bin/PTuncrop
+bin/panoinfo
+include/pano12/PTcommon.h
+include/pano12/filter.h
+include/pano12/panorama.h
+include/pano12/panotypes.h
+include/pano12/pt_stdint.h
+include/pano12/pteditor.h
+include/pano12/ptutils.h
+include/pano12/queryfeature.h
+include/pano12/version.h
+lib/libpano12.la
+lib/libpano12.so
+lib/libpano12.so.0
+@dirrm include/pano12
diff --git a/graphics/ufraw/Makefile b/graphics/ufraw/Makefile
new file mode 100644
index 000000000..11855209d
--- /dev/null
+++ b/graphics/ufraw/Makefile
@@ -0,0 +1,57 @@
+# New ports collection makefile for: UFRaw
+# Date created: Sun 10 Apr 2005 14:44:15 BST
+# Whom: markm@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= ufraw
+PORTVERSION= 0.11
+PORTREVISION= 1
+CATEGORIES= graphics gnome
+MASTER_SITES= SF
+
+MAINTAINER= infofarmer@FreeBSD.org
+COMMENT= Read and manipulate raw images from digital cameras
+
+BUILD_DEPENDS= gimp>0:${PORTSDIR}/graphics/gimp
+LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
+ tiff.4:${PORTSDIR}/graphics/tiff \
+ png.5:${PORTSDIR}/graphics/png \
+ lcms.1:${PORTSDIR}/graphics/lcms
+RUN_DEPENDS= gimp>0:${PORTSDIR}/graphics/gimp
+
+GCONF_SCHEMAS= ${PORTNAME}.schemas
+GNU_CONFIGURE= yes
+USE_XLIB= yes
+USE_GETTEXT= yes
+USE_GMAKE= yes
+USE_GNOME= gtk20 glib20 gnomehack intltool intlhack libartlgpl2 pkgconfig
+WANT_GNOME= yes
+
+LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+CPPFLAGS= -I${LOCALBASE}/include
+CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
+CONFIGURE_ARGS= --mandir=${MANPREFIX}/man --enable-mime
+
+.ifndef WITHOUT_EXIF
+LIB_DEPENDS+= exif:${PORTSDIR}/graphics/libexif
+CONFIGURE_ARGS+=--with-libexif
+.ifndef WITHOUT_EXIV2
+LIB_DEPENDS+= exiv2:${PORTSDIR}/graphics/exiv2
+CONFIGURE_ARGS+=--with-exiv2
+.endif
+.endif
+
+MAN1= ufraw.1
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 504105
+BROKEN= Needs memmem(3)
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e '/@schemasdir/s|datadir|sysconfdir|' ${WRKSRC}/Makefile.in
+
+.include <bsd.port.post.mk>
diff --git a/graphics/ufraw/distinfo b/graphics/ufraw/distinfo
new file mode 100644
index 000000000..17bf8efc7
--- /dev/null
+++ b/graphics/ufraw/distinfo
@@ -0,0 +1,3 @@
+MD5 (ufraw-0.11.tar.gz) = e7e5930a872657830a77dc9ddbfce93b
+SHA256 (ufraw-0.11.tar.gz) = 0a66f8e290b634133de52745dc8ff326aad59a4424b4abf41eef12e5da0cb35c
+SIZE (ufraw-0.11.tar.gz) = 483124
diff --git a/graphics/ufraw/pkg-descr b/graphics/ufraw/pkg-descr
new file mode 100644
index 000000000..0aa9fef4f
--- /dev/null
+++ b/graphics/ufraw/pkg-descr
@@ -0,0 +1,10 @@
+The Unidentified Flying Raw (UFRaw) is a utility to read and manipulate
+raw images from digital cameras. It can be used on its own or as a Gimp
+plug-in. It reads raw images using Dave Coffin's raw conversion utility
+- DCRaw. UFRaw supports basic color management using Little CMS,
+allowing the user to apply color profiles. For Nikon users UFRaw has the
+advantage that it can read the camera's tone curves. Even if you don't
+own a Nikon, you can still apply a Nikon curve to your images.
+
+Author: Udi Fuchs
+WWW: http://ufraw.sourceforge.net/
diff --git a/graphics/ufraw/pkg-plist b/graphics/ufraw/pkg-plist
new file mode 100644
index 000000000..c602e5d6b
--- /dev/null
+++ b/graphics/ufraw/pkg-plist
@@ -0,0 +1,20 @@
+bin/ufraw
+bin/ufraw-batch
+libexec/gimp/2.2/plug-ins/ufraw-gimp
+share/applications/ufraw.desktop
+share/locale/da/LC_MESSAGES/ufraw.mo
+share/locale/fr/LC_MESSAGES/ufraw.mo
+share/locale/ja/LC_MESSAGES/ufraw.mo
+share/locale/pt/LC_MESSAGES/ufraw.mo
+share/locale/ru/LC_MESSAGES/ufraw.mo
+share/mime/packages/ufraw-mime.xml
+share/pixmaps/ufraw.png
+@dirrmtry libexec/gimp/2.2/plug-ins
+@dirrmtry libexec/gimp/2.2
+@dirrmtry libexec/gimp
+@dirrmtry share/applications
+@dirrmtry share/mime/packages
+@dirrmtry share/mime
+@dirrmtry share/locale/pt/LC_MESSAGES
+@dirrmtry share/locale/pt
+@dirrmtry share/pixmaps