View | Details | Raw Unified | Return to bug 206239 | Differences between
and this patch

Collapse All | Expand All

(-)pfstools/Makefile (-2 / +2 lines)
Lines 71-77 Link Here
71
OCTAVE_VERSION!=${OCTAVE_BASE}/bin/octave-config -v 2>&1 || ${ECHO} "0"
71
OCTAVE_VERSION!=${OCTAVE_BASE}/bin/octave-config -v 2>&1 || ${ECHO} "0"
72
OCTAVE_SITE_OCT!=${OCTAVE_BASE}/bin/octave-config --oct-site-dir 2>&1 || ${ECHO} ""
72
OCTAVE_SITE_OCT!=${OCTAVE_BASE}/bin/octave-config --oct-site-dir 2>&1 || ${ECHO} ""
73
OCTAVE_SITE_M!=	${OCTAVE_BASE}/bin/octave-config --m-site-dir 2>&1 || ${ECHO} ""
73
OCTAVE_SITE_M!=	${OCTAVE_BASE}/bin/octave-config --m-site-dir 2>&1 || ${ECHO} ""
74
PLIST_SUB+=	OCTAVE="" \
74
PLIST_SUB+=	\
75
		OCTAVE_BASE=${OCTAVE_BASE} \
75
		OCTAVE_BASE=${OCTAVE_BASE} \
76
		OCTAVE_SITE_M=${OCTAVE_SITE_M:S|^${OCTAVE_BASE}/||} \
76
		OCTAVE_SITE_M=${OCTAVE_SITE_M:S|^${OCTAVE_BASE}/||} \
77
		OCTAVE_SITE_OCT=${OCTAVE_SITE_OCT:S|^${OCTAVE_BASE}/||}
77
		OCTAVE_SITE_OCT=${OCTAVE_SITE_OCT:S|^${OCTAVE_BASE}/||}
Lines 79-85 Link Here
79
SHEBANG_FILES=	src/octave/*
79
SHEBANG_FILES=	src/octave/*
80
SHEBANG_LANG+=	octave
80
SHEBANG_LANG+=	octave
81
octave_OLD_CMD?=/usr/bin/octave
81
octave_OLD_CMD?=/usr/bin/octave
82
octave_CMD?=	${LOCALBASE}/bin/octave
82
octave_CMD?=	${OCTAVE_BASE}/bin/octave
83
.endif
83
.endif
84
84
85
.include <bsd.port.mk>
85
.include <bsd.port.mk>
(-)pfstools/files/patch-configure (-9 lines)
Lines 1-14 Link Here
1
--- configure.orig	2011-10-27 08:40:31.000000000 +0000
1
--- configure.orig	2011-10-27 08:40:31.000000000 +0000
2
+++ configure	2014-02-20 19:04:01.546588828 +0000
2
+++ configure	2014-02-20 19:04:01.546588828 +0000
3
@@ -14827,7 +14827,7 @@
4
   imagemagick_support="no"
5
 else
6
 	IMAGEMAGICK_CFLAGS=$pkg_cv_IMAGEMAGICK_CFLAGS
7
-	IMAGEMAGICK_LIBS=$pkg_cv_IMAGEMAGICK_LIBS
8
+	IMAGEMAGICK_LIBS="$pkg_cv_IMAGEMAGICK_LIBS /usr/local/lib/gcc47/libstdc++.so"
9
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10
 $as_echo "yes" >&6; }
11
 
12
@@ -15411,7 +15411,7 @@
3
@@ -15411,7 +15411,7 @@
13
 if test -z "$QTDIR"; then
4
 if test -z "$QTDIR"; then
14
   MOC="moc-qt4"
5
   MOC="moc-qt4"
(-)pfstools/files/patch-src-octave-pfsclose.cpp (+14 lines)
Line 0 Link Here
1
--- src/octave/pfsclose.cpp.orig	2016-01-12 13:32:11.031123026 +0000
2
+++ src/octave/pfsclose.cpp	2016-01-12 13:32:11.061123988 +0000
3
@@ -53,9 +53,9 @@
4
     return retval;
5
   }
6
 
7
-  Octave_map pfsStream = args(0).map_value();
8
+  octave_map pfsStream = args(0).map_value();
9
 
10
-  Octave_map::const_iterator itFH = pfsStream.seek( "FH" );
11
+  octave_map::const_iterator itFH = pfsStream.seek( "FH" );
12
   if( itFH == pfsStream.end() ||
13
     !pfsStream.contents( itFH )(0).is_real_scalar() )
14
   {
(-)pfstools/files/patch-src-octave-pfsget.cpp (+58 lines)
Line 0 Link Here
1
--- src/octave/pfsget.cpp.orig	2016-01-12 13:32:11.031123026 +0000
2
+++ src/octave/pfsget.cpp	2016-01-12 13:32:11.061123988 +0000
3
@@ -52,9 +52,9 @@
4
     return retval;
5
   }
6
 
7
-  Octave_map pfsStream = args(0).map_value();
8
+  octave_map pfsStream = args(0).map_value();
9
 
10
-  Octave_map::const_iterator itFH = pfsStream.seek( "FH" );
11
+  octave_map::const_iterator itFH = pfsStream.seek( "FH" );
12
   if( itFH == pfsStream.end() ||
13
     !pfsStream.contents( itFH )(0).is_real_scalar() )
14
   {
15
@@ -63,7 +63,7 @@
16
   }  
17
   FILE *fh = (FILE*)((long)(pfsStream.contents( itFH )(0).double_value()));
18
 
19
-  Octave_map::const_iterator itMode = pfsStream.seek( "MODE" );
20
+  octave_map::const_iterator itMode = pfsStream.seek( "MODE" );
21
   if( itMode == pfsStream.end() || !pfsStream.contents( itMode )(0).is_string() )
22
   {
23
     error( SCRIPT_NAME ": MODE field missing in the structure or it has wrong type");
24
@@ -95,7 +95,7 @@
25
     
26
       // Add channels as matrices to pfs stream struct
27
       {
28
-        Octave_map channels;
29
+        octave_scalar_map channels;
30
         
31
         pfs::ChannelIteratorPtr cit( frame->getChannelIterator() );
32
         while( cit->hasNext() ) {
33
@@ -115,7 +115,7 @@
34
 
35
       //Add tags
36
       {
37
-        Octave_map tags;
38
+        octave_scalar_map tags;
39
         
40
         pfs::TagIteratorPtr it( frame->getTags()->getIterator() );        
41
         while( it->hasNext() ) {
42
@@ -124,14 +124,14 @@
43
         }
44
         pfsStream.assign( "tags", tags );
45
         
46
-        Octave_map channelTagList;
47
+        octave_scalar_map channelTagList;
48
 
49
         //Copy all channel tags
50
         pfs::ChannelIteratorPtr cit( frame->getChannelIterator() );
51
         while( cit->hasNext() ) {
52
           pfs::Channel *ch = cit->getNext();
53
 
54
-          Octave_map channelTags;
55
+          octave_scalar_map channelTags;
56
           
57
           pfs::TagIteratorPtr tit( ch->getTags()->getIterator() );        
58
           while( tit->hasNext() ) {
(-)pfstools/files/patch-src-octave-pfsopen.cpp (+20 lines)
Line 0 Link Here
1
--- src/octave/pfsopen.cpp.orig	2016-01-12 13:32:11.031123026 +0000
2
+++ src/octave/pfsopen.cpp	2016-01-12 13:32:11.061123988 +0000
3
@@ -137,7 +137,7 @@
4
     }    
5
   }
6
 
7
-  Octave_map pfsStream;
8
+  octave_map pfsStream;
9
   pfsStream.assign( "FH", octave_value((double)((long)fh)) );
10
   pfsStream.assign( "MODE", writeMode ? octave_value("W") : octave_value("R") );
11
   pfsStream.assign( "EOF", octave_value(false) );
12
@@ -145,7 +145,7 @@
13
   if( writeMode ) {
14
     pfsStream.assign( "columns", octave_value(width) );
15
     pfsStream.assign( "rows", octave_value(height) );
16
-    Octave_map channels;
17
+    octave_map channels;
18
     pfsStream.assign( "channels", octave_value(channels) );    
19
   }
20
   
(-)pfstools/files/patch-src-octave-pfsput.cpp (+103 lines)
Line 0 Link Here
1
--- src/octave/pfsput.cpp.orig	2016-01-12 13:32:11.031123026 +0000
2
+++ src/octave/pfsput.cpp	2016-01-12 13:32:11.061123988 +0000
3
@@ -52,9 +52,9 @@
4
     return retval;
5
   }
6
   
7
-  Octave_map pfsStream = args(0).map_value();
8
+  octave_map pfsStream = args(0).map_value();
9
 
10
-  Octave_map::const_iterator itFH = pfsStream.seek( "FH" );
11
+  octave_map::const_iterator itFH = pfsStream.seek( "FH" );
12
   if( itFH == pfsStream.end() ||
13
     !pfsStream.contents( itFH )(0).is_real_scalar() )
14
   {
15
@@ -65,7 +65,7 @@
16
 
17
   // Check mode
18
   {                             
19
-    Octave_map::const_iterator itMode = pfsStream.seek( "MODE" );
20
+    octave_map::const_iterator itMode = pfsStream.seek( "MODE" );
21
     if( itMode == pfsStream.end() || !pfsStream.contents( itMode )(0).is_string() )
22
     {
23
       error( SCRIPT_NAME ": MODE field missing in the structure or it has wrong type");
24
@@ -80,8 +80,8 @@
25
   // Get width & height
26
   int width, height;
27
   {                             
28
-    Octave_map::const_iterator itCols = pfsStream.seek( "columns" );
29
-    Octave_map::const_iterator itRows = pfsStream.seek( "rows" );
30
+    octave_map::const_iterator itCols = pfsStream.seek( "columns" );
31
+    octave_map::const_iterator itRows = pfsStream.seek( "rows" );
32
     if( itCols == pfsStream.end() || itRows == pfsStream.end() ||
33
       !pfsStream.contents( itCols )(0).is_real_scalar() ||
34
       !pfsStream.contents( itRows )(0).is_real_scalar() )
35
@@ -94,9 +94,9 @@
36
   }
37
 
38
   // Get channels
39
-  Octave_map channels;
40
+  octave_map channels;
41
   {
42
-    Octave_map::const_iterator itChannels = pfsStream.seek( "channels" );
43
+    octave_map::const_iterator itChannels = pfsStream.seek( "channels" );
44
     if( itChannels == pfsStream.end() ||
45
       !pfsStream.contents( itChannels )(0).is_map() )
46
     {
47
@@ -111,7 +111,7 @@
48
     pfs::Frame *frame = ctx.createFrame( width, height );
49
 
50
     // For each channel in the 'channels' map
51
-    for( Octave_map::iterator itCh = channels.begin(); itCh != channels.end(); itCh++ ) {
52
+    for( octave_map::iterator itCh = channels.begin(); itCh != channels.end(); itCh++ ) {
53
       std::string channelName = channels.key(itCh);
54
 
55
       if( !channels.contents( itCh )(0).is_real_matrix() ) {
56
@@ -135,15 +135,15 @@
57
 
58
     // Copy frame tags
59
     {
60
-      Octave_map::const_iterator itTags = pfsStream.seek( "tags" );
61
+      octave_map::const_iterator itTags = pfsStream.seek( "tags" );
62
       if( itTags != pfsStream.end() ) {
63
         if( !pfsStream.contents( itTags )(0).is_map() )
64
         {
65
           throw pfs::Exception( "'tags' field must be a structure" );  
66
         }
67
         
68
-        Octave_map tags = pfsStream.contents( itTags )(0).map_value();
69
-        for( Octave_map::iterator itTag = tags.begin(); itTag != tags.end(); itTag++ ) {
70
+        octave_map tags = pfsStream.contents( itTags )(0).map_value();
71
+        for( octave_map::iterator itTag = tags.begin(); itTag != tags.end(); itTag++ ) {
72
           std::string tagName = tags.key(itTag);
73
 
74
           if( !tags.contents( itTag )(0).is_string() ) 
75
@@ -156,14 +156,14 @@
76
 
77
     // Copy channel tags
78
     {
79
-      Octave_map::const_iterator itChTags = pfsStream.seek( "channelTags" );
80
+      octave_map::const_iterator itChTags = pfsStream.seek( "channelTags" );
81
       if( itChTags != pfsStream.end() ) {
82
         if( !pfsStream.contents( itChTags )(0).is_map() )
83
         {
84
           throw pfs::Exception( "'channelTags' field must be a structure" );  
85
         }
86
-        Octave_map tagChannels = pfsStream.contents( itChTags )(0).map_value();
87
-        for( Octave_map::iterator itCh = tagChannels.begin(); itCh != tagChannels.end(); itCh++ ) {
88
+        octave_map tagChannels = pfsStream.contents( itChTags )(0).map_value();
89
+        for( octave_map::iterator itCh = tagChannels.begin(); itCh != tagChannels.end(); itCh++ ) {
90
           std::string channelName = tagChannels.key(itCh);
91
           if( !tagChannels.contents( itCh )(0).is_map() ) {
92
             throw pfs::Exception( "each channelTags file must be a structure" );  
93
@@ -173,8 +173,8 @@
94
             throw pfs::Exception( "can not set channel tag if channel is missing" );
95
           }
96
           
97
-          Octave_map tags = tagChannels.contents( itCh )(0).map_value();
98
-          for( Octave_map::iterator itTag = tags.begin(); itTag != tags.end(); itTag++ ) {
99
+          octave_map tags = tagChannels.contents( itCh )(0).map_value();
100
+          for( octave_map::iterator itTag = tags.begin(); itTag != tags.end(); itTag++ ) {
101
             std::string tagName = tags.key(itTag);
102
             if( !tags.contents( itTag )(0).is_string() ) 
103
               throw pfs::Exception( "all channel tags must be given as strings" );
(-)pfstools/pkg-plist (-1 / +26 lines)
Lines 52-58 Link Here
52
man/man1/pfsextractchannels.1.gz
52
man/man1/pfsextractchannels.1.gz
53
man/man1/pfsflip.1.gz
53
man/man1/pfsflip.1.gz
54
man/man1/pfsgamma.1.gz
54
man/man1/pfsgamma.1.gz
55
%%OPENGL%%man/man1/pfsglview.1.gz
55
man/man1/pfsglview.1.gz
56
man/man1/pfsin.1.gz
56
man/man1/pfsin.1.gz
57
man/man1/pfsindcraw.1.gz
57
man/man1/pfsindcraw.1.gz
58
man/man1/pfsinexr.1.gz
58
man/man1/pfsinexr.1.gz
Lines 108-110 Link Here
108
%%IMAGEMAGICK%%%%DATADIR%%/hdrhtml_hdrlabs_templ/hdrhtml_image_templ_slider-above.html
108
%%IMAGEMAGICK%%%%DATADIR%%/hdrhtml_hdrlabs_templ/hdrhtml_image_templ_slider-above.html
109
%%IMAGEMAGICK%%%%DATADIR%%/hdrhtml_hdrlabs_templ/hdrhtml_image_templ.html
109
%%IMAGEMAGICK%%%%DATADIR%%/hdrhtml_hdrlabs_templ/hdrhtml_image_templ.html
110
%%IMAGEMAGICK%%%%DATADIR%%/hdrhtml_hdrlabs_templ/hdrhtml_page_templ_short.html
110
%%IMAGEMAGICK%%%%DATADIR%%/hdrhtml_hdrlabs_templ/hdrhtml_page_templ_short.html
111
@dirrm include/pfs-1.2
112
%%IMAGEMAGICK%%@dirrm %%DATADIR%%/hdrhtml_hdrlabs_templ/hdrhtml_assets
113
%%IMAGEMAGICK%%@dirrm %%DATADIR%%/hdrhtml_hdrlabs_templ
114
%%IMAGEMAGICK%%@dirrm %%DATADIR%%/hdrhtml_default_templ
115
%%IMAGEMAGICK%%@dirrm %%DATADIR%%
116
%%OCTAVE%%@cwd %%OCTAVE_BASE%%
117
%%OCTAVE%%%%OCTAVE_SITE_OCT%%/pfstools/pfsclose.oct
118
%%OCTAVE%%%%OCTAVE_SITE_OCT%%/pfstools/pfsget.oct
119
%%OCTAVE%%%%OCTAVE_SITE_OCT%%/pfstools/pfsopen.oct
120
%%OCTAVE%%%%OCTAVE_SITE_OCT%%/pfstools/pfsput.oct
121
%%OCTAVE%%%%OCTAVE_SITE_OCT%%/pfstools/pfsread.oct
122
%%OCTAVE%%%%OCTAVE_SITE_OCT%%/pfstools/pfstransform_colorspace.oct
123
%%OCTAVE%%%%OCTAVE_SITE_OCT%%/pfstools/pfswrite.oct
124
%%OCTAVE%%%%OCTAVE_SITE_M%%/pfstools/pfs_close_frames.m
125
%%OCTAVE%%%%OCTAVE_SITE_M%%/pfstools/pfs_open_frames.m
126
%%OCTAVE%%%%OCTAVE_SITE_M%%/pfstools/pfs_read_luminance.m
127
%%OCTAVE%%%%OCTAVE_SITE_M%%/pfstools/pfs_read_rgb.m
128
%%OCTAVE%%%%OCTAVE_SITE_M%%/pfstools/pfs_read_xyz.m
129
%%OCTAVE%%%%OCTAVE_SITE_M%%/pfstools/pfs_write_rgb.m
130
%%OCTAVE%%%%OCTAVE_SITE_M%%/pfstools/pfssize.m
131
%%OCTAVE%%%%OCTAVE_SITE_M%%/pfstools/pfsview.m
132
%%OCTAVE%%%%OCTAVE_SITE_M%%/pfstools/pfsview_list.m
133
%%OCTAVE%%%%OCTAVE_SITE_M%%/pfstools/pfsview_rgb.m
134
%%OCTAVE%%@dirrm %%OCTAVE_SITE_OCT%%/pfstools
135
%%OCTAVE%%@dirrm %%OCTAVE_SITE_M%%/pfstools

Return to bug 206239