summaryrefslogtreecommitdiff
path: root/graphics/pdiff
diff options
context:
space:
mode:
authorheinz <heinz>2006-06-10 19:53:54 +0000
committerheinz <heinz>2006-06-10 19:53:54 +0000
commit57bea641f0a4a82baa9217a2972067fdf94e699f (patch)
treecc0ae33a4de4180114e365c4a79f55a341f78012 /graphics/pdiff
parentf20c3450c65fc88feb7ea1691fb920bd22ae4b99 (diff)
downloadpkgsrc-57bea641f0a4a82baa9217a2972067fdf94e699f.tar.gz
Initial version of pdiff-0.9b
Pdiff is an image comparison utility that makes use of a computational model of the human visual system to compare two images.
Diffstat (limited to 'graphics/pdiff')
-rw-r--r--graphics/pdiff/DESCR2
-rw-r--r--graphics/pdiff/Makefile43
-rw-r--r--graphics/pdiff/PLIST2
-rw-r--r--graphics/pdiff/distinfo5
4 files changed, 52 insertions, 0 deletions
diff --git a/graphics/pdiff/DESCR b/graphics/pdiff/DESCR
new file mode 100644
index 00000000000..fa2bf74f829
--- /dev/null
+++ b/graphics/pdiff/DESCR
@@ -0,0 +1,2 @@
+Pdiff is an image comparison utility that makes use of a computational
+model of the human visual system to compare two images.
diff --git a/graphics/pdiff/Makefile b/graphics/pdiff/Makefile
new file mode 100644
index 00000000000..b9f2df3f7cf
--- /dev/null
+++ b/graphics/pdiff/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/06/10 19:53:54 heinz Exp $
+#
+
+DISTNAME= pdiff0.9b-src
+PKGNAME= pdiff-0.9b
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pdiff/}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= heinz@NetBSD.org
+HOMEPAGE= http://pdiff.sourceforge.net/
+COMMENT= Image comparison through perceptually based image metric
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+EXTRACT_OPTS+= -d pdiff
+
+WRKSRC= ${WRKDIR}/pdiff
+USE_LANGUAGES+= c++
+
+BUILD_DEPENDS+= cmake>=2:../../devel/cmake
+
+OPSYSVARS+= LIBTIFFNAME
+LIBTIFFNAME.*= libtiff.so
+LIBTIFFNAME.Darwin= libtiff.dylib
+
+CMAKEFLAGS.pdiff+= -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX}
+CMAKEFLAGS.pdiff+= -DTIFF_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.tiff}/include
+CMAKEFLAGS.pdiff+= -DTIFF_LIBRARY:PATH=${BUILDLINK_PREFIX.tiff}/lib/${LIBTIFFNAME}
+
+post-extract:
+ ${MV} ${WRKSRC}/compareargs.cpp ${WRKSRC}/CompareArgs.cpp
+ ${MV} ${WRKSRC}/metric.cpp ${WRKSRC}/Metric.cpp
+
+do-configure:
+ cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
+ ${LOCALBASE}/bin/cmake ${CMAKEFLAGS.pdiff} .
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/perceptualdiff ${PREFIX}/bin/.
+
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/pdiff/PLIST b/graphics/pdiff/PLIST
new file mode 100644
index 00000000000..42d70ff82bf
--- /dev/null
+++ b/graphics/pdiff/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/06/10 19:53:54 heinz Exp $
+bin/perceptualdiff
diff --git a/graphics/pdiff/distinfo b/graphics/pdiff/distinfo
new file mode 100644
index 00000000000..f95534f8f65
--- /dev/null
+++ b/graphics/pdiff/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/06/10 19:53:54 heinz Exp $
+
+SHA1 (pdiff0.9b-src.zip) = 4769fbca93450586c4d19f131c40c23efe4da50e
+RMD160 (pdiff0.9b-src.zip) = e5cca72b83bbf82f51723ca9729b74e18ee0452f
+Size (pdiff0.9b-src.zip) = 19802 bytes