summaryrefslogtreecommitdiff
path: root/graphics/pfstools/Makefile
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2015-08-25 20:16:31 +0000
committeradam <adam@pkgsrc.org>2015-08-25 20:16:31 +0000
commit652b8308fe5ce6d3d049d65cca6dbbd84ca73ce8 (patch)
tree2bc574f86b09968870f9344101666386167d61cb /graphics/pfstools/Makefile
parent825bd5701a8ad1c55dcdbae65caf2074dc104dc5 (diff)
downloadpkgsrc-652b8308fe5ce6d3d049d65cca6dbbd84ca73ce8.tar.gz
pfstools 2.0.4
* fixed: added installation of octave-based scripts: pfsoctavelum pfsoctavergb pfsstat * fixed: libraries installed in lib64 if needed (thanks to Orion for the patch) * fixed: added "so" version to the pfs.so library (thanks to Orion for the patch) * fixed: Replaced depreciated OctaveMap for compatibility with octave 4.0.0
Diffstat (limited to 'graphics/pfstools/Makefile')
-rw-r--r--graphics/pfstools/Makefile46
1 files changed, 30 insertions, 16 deletions
diff --git a/graphics/pfstools/Makefile b/graphics/pfstools/Makefile
index 7843b4e3ec1..b4dee2fb94a 100644
--- a/graphics/pfstools/Makefile
+++ b/graphics/pfstools/Makefile
@@ -1,33 +1,47 @@
-# $NetBSD: Makefile,v 1.35 2015/08/17 17:11:24 wiz Exp $
-#
+# $NetBSD: Makefile,v 1.36 2015/08/25 20:16:31 adam Exp $
-DISTNAME= pfstools-1.7.0
-PKGREVISION= 32
+DISTNAME= pfstools-2.0.4
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pfstools/}
+EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://pfstools.sourceforge.net/
COMMENT= Tools for manipulating HDR images and video frames
-
-GNU_CONFIGURE= yes
-USE_LIBTOOL= yes
-USE_TOOLS+= pkg-config
-USE_LANGUAGES= c c++
-
-CONFIGURE_ARGS+= --enable-ppm
-CONFIGURE_ARGS+= --enable-tiff
-CONFIGURE_ARGS+= --disable-jpeghdr
-CONFIGURE_ARGS+= --disable-matlab
-# patch-aa
-CONFIGURE_ENV+= NETPBM_CFLAGS=-I${BUILDLINK_PREFIX.netpbm}/include/netpbm
+LICENSE= gnu-lgpl-v2.1
+
+USE_CMAKE= yes
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+USE_TOOLS+= bash perl pkg-config
+CMAKE_ARGS+= -DBASH_EXECUTABLE=${TOOLS_BASH}
+CMAKE_ARGS+= -DPKGMANDIR=${PKGMANDIR}
+CMAKE_ARGS+= -DWITH_FFTW=NO
+CMAKE_ARGS+= -DWITH_MATLAB=NO
+CMAKE_ARGS+= -DWITH_OpenCV=NO
PKGCONFIG_OVERRIDE+= src/pfs/pfs.pc.in
DEPENDS+= dcraw-[0-9]*:../../graphics/dcraw
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_MESSAGE.paths= Fixing paths in CMake modules.
+SUBST_FILES.paths= cmake/Find*.cmake
+SUBST_SED.paths= -e 's,/usr/local,${LOCALBASE},g'
+
+SUBST_CLASSES+= perl
+SUBST_STAGE.perl= pre-configure
+SUBST_MESSAGE.perl= Imprinting Perl path.
+SUBST_FILES.perl= src/camera/pfsinhdrgen.in
+SUBST_SED.perl= -e 's,@PERL_PATH@,${PERL5},g'
+
.include "options.mk"
+.include "../../graphics/libexif/buildlink3.mk"
.include "../../graphics/netpbm/buildlink3.mk"
+.include "../../graphics/openexr/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
+#.include "../../math/fftw/buildlink3.mk"
+.include "../../math/gsl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"