diff --git a/graphics/Makefile b/graphics/Makefile index df29cbeb3655..98832f932822 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -522,6 +522,7 @@ SUBDIR += pecl-qrencode SUBDIR += pecomato SUBDIR += peps + SUBDIR += pfstools SUBDIR += pgperl SUBDIR += pgplot SUBDIR += pho diff --git a/graphics/pfstools/Makefile b/graphics/pfstools/Makefile new file mode 100644 index 000000000000..855ed0abc0d4 --- /dev/null +++ b/graphics/pfstools/Makefile @@ -0,0 +1,63 @@ +# New ports collection makefile for: pfstools +# Date created: 25 September 2007 +# Whom: Daniel O'Connor +# +# $FreeBSD$ +# + +PORTNAME= pfstools +PORTVERSION= 1.6.2 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= darius@dons.net.au +COMMENT= Tools for manipulating HDR images and video frames + +RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash +LIB_DEPENDS+= Half:${PORTSDIR}/graphics/OpenEXR \ + Magick++:${PORTSDIR}/graphics/ImageMagick + +GNU_CONFIGURE= yes +USE_AUTOTOOLS= libtool:15 +USE_GNOME= ltverhack +CONFIGURE_ARGS+=--disable-jpeghdr --disable-ppm +USE_LDCONFIG= yes +USE_GMAKE= yes +USE_QT_VER= 3 + +OPTIONS= OCTAVE "Install Octave interface" on + +MAN1= pfsabsolute.1 pfscat.1 pfsclamp.1 pfscut.1 pfsextractchannels.1 \ + pfsflip.1 pfsgamma.1 pfsin.1 pfsindcraw.1 pfsinexr.1 \ + pfsinimgmagick.1 pfsinjpeghdr.1 pfsinmulti.1 pfsinpfm.1 pfsinppm.1 \ + pfsinrgbe.1 pfsintiff.1 pfsout.1 pfsoutexr.1 pfsoutffmpeg.1 \ + pfsoutimgmagick.1 pfsoutjpeghdr.1 pfsoutpfm.1 pfsoutppm.1 pfspad.1 \ + pfspanoramic.1 pfsrotate.1 pfssize.1 pfsstat.1 pfstag.1 pfsv.1 \ + pfsview.1 +MLINKS= pfsoutppm.1 pfsouttiff.1 \ + pfsoutppm.1 pfsoutrgbe.1 + +.include + +.if defined(WITH_OCTAVE) +BUILD_DEPENDS+= octave:${PORTSDIR}/math/octave +RUN_DEPENDS+= octave:${PORTSDIR}/math/octave +PLIST_SUB= OCTAVE_VERSION="`${LOCALBASE}/bin/octave-config -v`" \ + GNU_HOST=${ARCH}-portbld-freebsd${OSREL} \ + OCTAVE_PLIST= +MAN1+= pfsoctavelum.1 pfsoctavergb.1 +.else +PLIST_SUB= OCTAVE_PLIST=# +CONFIGURE_ARGS+=--disable-octave +.endif + +pre-configure: + ${REINPLACE_CMD} -e "s,#!/bin/bash,#!${PREFIX}/bin/bash," \ + ${WRKSRC}/src/fileformat/pfsin \ + ${WRKSRC}/src/fileformat/pfsout \ + ${WRKSRC}/src/fileformat/pfsinmulti \ + ${WRKSRC}/src/fileformat/pfsindcraw \ + ${WRKSRC}/src/pfsview/pfsv + +.include diff --git a/graphics/pfstools/distinfo b/graphics/pfstools/distinfo new file mode 100644 index 000000000000..40e797f00387 --- /dev/null +++ b/graphics/pfstools/distinfo @@ -0,0 +1,3 @@ +MD5 (pfstools-1.6.2.tar.gz) = 6c39c0bfb72ff59787f4ed4396272297 +SHA256 (pfstools-1.6.2.tar.gz) = 9241d0cec09b20a5ac672adc4a58cf06d6f7a71d8787621e85195219a39af6ce +SIZE (pfstools-1.6.2.tar.gz) = 569121 diff --git a/graphics/pfstools/files/patch-pkgconfig-install.diff b/graphics/pfstools/files/patch-pkgconfig-install.diff new file mode 100644 index 000000000000..c444717095b2 --- /dev/null +++ b/graphics/pfstools/files/patch-pkgconfig-install.diff @@ -0,0 +1,11 @@ +--- src/pfs/Makefile.in.orig 2007-09-30 11:07:52.000000000 +0930 ++++ src/pfs/Makefile.in 2007-09-30 11:10:14.000000000 +0930 +@@ -183,7 +183,7 @@ + library_includedir = $(includedir)/pfs-1.2 + library_include_HEADERS = pfs.h array2d.h + #INCLUDES = +-pkgconfigdir = $(libdir)/pkgconfig ++pkgconfigdir = $(prefix)/libdata/pkgconfig + pkgconfig_DATA = pfs.pc + subdir = src/pfs + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 diff --git a/graphics/pfstools/pkg-descr b/graphics/pfstools/pkg-descr new file mode 100644 index 000000000000..9b5a6b3558c6 --- /dev/null +++ b/graphics/pfstools/pkg-descr @@ -0,0 +1,4 @@ +A set of command line (and one GUI) programs for reading, writing, manipulating +and viewing high-dynamic range (HDR) images and video frames. + +WWW: http://www.mpi-inf.mpg.de/resources/pfstools/ diff --git a/graphics/pfstools/pkg-plist b/graphics/pfstools/pkg-plist new file mode 100644 index 000000000000..4b99ea272204 --- /dev/null +++ b/graphics/pfstools/pkg-plist @@ -0,0 +1,65 @@ +bin/pfsouttiff +bin/pfsintiff +bin/pfsglview +bin/pfsabsolute +bin/pfscat +bin/pfsclamp +bin/pfscut +bin/pfsextractchannels +bin/pfsflip +bin/pfsgamma +bin/pfsin +bin/pfsindcraw +bin/pfsinexr +bin/pfsinimgmagick +bin/pfsinmulti +bin/pfsinpfm +bin/pfsinrgbe +bin/pfsoctavelum +bin/pfsoctavergb +bin/pfsout +bin/pfsoutexr +bin/pfsoutffmpeg +bin/pfsoutimgmagick +bin/pfsoutpfm +bin/pfsoutrgbe +bin/pfspad +bin/pfspanoramic +bin/pfsrotate +bin/pfssize +bin/pfsstat +bin/pfstag +bin/pfsv +bin/pfsview +include/pfs-1.2/array2d.h +include/pfs-1.2/pfs.h +@dirrm include/pfs-1.2 +lib/libpfs-1.2.a +lib/libpfs-1.2.la +lib/libpfs-1.2.so.0 +libdata/pkgconfig/pfs.pc +%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfsclose.oct +%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfsget.oct +%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfsopen.oct +%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfsput.oct +%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfsread.oct +%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfstransform_colorspace.oct +%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfswrite.oct +%%OCTAVE_PLIST%%@dirrm libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools +%%OCTAVE_PLIST%%@dirrmtry libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%% +%%OCTAVE_PLIST%%@dirrmtry libexec/octave/%%OCTAVE_VERSION%%/site/oct +%%OCTAVE_PLIST%%@dirrmtry libexec/octave/%%OCTAVE_VERSION%%/site +%%OCTAVE_PLIST%%@dirrmtry libexec/octave/%%OCTAVE_VERSION%% +%%OCTAVE_PLIST%%@dirrmtry libexec/octave +%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_close_frames.m +%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_open_frames.m +%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_read_luminance.m +%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_read_rgb.m +%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_read_xyz.m +%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_write_rgb.m +%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfssize.m +%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfsview.m +%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfsview_list.m +%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfsview_rgb.m +%%OCTAVE_PLIST%%@dirrm share/octave/%%OCTAVE_VERSION%%/site/m/pfstools +%%OCTAVE_PLIST%%@dirrmtry share/octave/%%OCTAVE_VERSION%%/site/m