View | Details | Raw Unified | Return to bug 118389
Collapse All | Expand All

(-)pfstools/Makefile (-27 / +132 lines)
Lines 7-65 Link Here
7
7
8
PORTNAME=	pfstools
8
PORTNAME=	pfstools
9
PORTVERSION=	1.6.2
9
PORTVERSION=	1.6.2
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	graphics
11
CATEGORIES=	graphics
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	SF
13
MASTER_SITE_SUBDIR=	${PORTNAME}
13
MASTER_SITE_SUBDIR=	${PORTNAME}
14
14
15
MAINTAINER=	darius@dons.net.au
15
MAINTAINER=	darius@dons.net.au
16
COMMENT=	Tools for manipulating HDR images and video frames
16
COMMENT=	Tools for manipulating HDR images and video frames
17
17
18
RUN_DEPENDS+=	bash:${PORTSDIR}/shells/bash
18
RUN_DEPENDS+=	bash:${PORTSDIR}/shells/bash
19
LIB_DEPENDS+=	IlmImf:${PORTSDIR}/graphics/OpenEXR \
19
20
		Magick++:${PORTSDIR}/graphics/ImageMagick
20
PFS_CPPFLAGS=	-I${LOCALBASE}/include
21
PFS_LDFLAGS=	-L${LOCALBASE}/lib
22
PFS_BUILD=	${MACHINE_ARCH}-portbld-freebsd${OSREL}
21
23
22
GNU_CONFIGURE=	yes
24
GNU_CONFIGURE=	yes
25
CONFIGURE_TARGET=	--build=${PFS_BUILD}
26
CONFIGURE_ARGS=	--disable-jpeghdr --disable-matlab
27
CONFIGURE_ENV=	CPPFLAGS="${PFS_CPPFLAGS}" \
28
		LDFLAGS="${PFS_LDFLAGS}" \
29
		PKG_CONFIG_PATH="${LOCALBASE}/libdata/pkgconfig:${X11BASE}/libdata/pkgconfig"
23
USE_AUTOTOOLS=	libtool:15
30
USE_AUTOTOOLS=	libtool:15
24
USE_GNOME=	ltverhack
25
CONFIGURE_ARGS+=--disable-jpeghdr --disable-ppm
26
USE_LDCONFIG=	yes
27
USE_GMAKE=	yes
31
USE_GMAKE=	yes
28
USE_QT_VER=	3
32
USE_LDCONFIG=	yes
29
33
USE_GNOME=	pkgconfig
30
OPTIONS=	OCTAVE "Install Octave interface" on
31
34
32
MAN1=		pfsabsolute.1 pfscat.1 pfsclamp.1 pfscut.1 pfsextractchannels.1 \
35
OPTIONS=	PPM "Compile programs that use PPM (NetPBM)" off \
33
		pfsflip.1 pfsgamma.1 pfsin.1 pfsindcraw.1 pfsinexr.1 \
36
		EXR "Compile programs that use OpenEXR library" off \
34
		pfsinimgmagick.1 pfsinjpeghdr.1 pfsinmulti.1 pfsinpfm.1 pfsinppm.1 \
37
		TIFF "Compile programs that use TIFF library" on \
35
		pfsinrgbe.1 pfsintiff.1 pfsout.1 pfsoutexr.1 pfsoutffmpeg.1 \
38
		QT "Compile programs that use QT library" off \
36
		pfsoutimgmagick.1 pfsoutjpeghdr.1 pfsoutpfm.1 pfsoutppm.1 pfspad.1 \
39
		IM "Compile programs that use ImageMagick library" off \
37
		pfspanoramic.1 pfsrotate.1 pfssize.1 pfsstat.1 pfstag.1 pfsv.1 \
40
		OCT "Compile octave interface functions" off \
38
		pfsview.1
41
		GL "Compile opengl code (pfsglview)" off
39
MLINKS=		pfsoutppm.1 pfsouttiff.1 \
42
40
		pfsoutppm.1 pfsoutrgbe.1
43
MAN1=		pfsin.1 \
44
		pfsout.1 \
45
		pfsinppm.1 \
46
		pfsinexr.1 \
47
		pfsinrgbe.1 \
48
		pfsintiff.1 \
49
		pfsoutppm.1 \
50
		pfsoutexr.1 \
51
		pfsoutffmpeg.1 \
52
		pfsinpfm.1 \
53
		pfsoutpfm.1 \
54
		pfsinmulti.1 \
55
		pfsinimgmagick.1 \
56
		pfsoutimgmagick.1 \
57
		pfsinjpeghdr.1 \
58
		pfsoutjpeghdr.1 \
59
		pfsindcraw.1 \
60
		pfsgamma.1 \
61
		pfsclamp.1 \
62
		pfstag.1 \
63
		pfssize.1 \
64
		pfsextractchannels.1 \
65
		pfspanoramic.1 \
66
		pfsrotate.1 \
67
		pfsflip.1 \
68
		pfscut.1 \
69
		pfspad.1 \
70
		pfscat.1 \
71
		pfsabsolute.1
72
MLINKS=		pfsoutppm.1 \
73
		pfsouttiff.1 \
74
		pfsoutppm.1 \
75
		pfsoutrgbe.1
41
76
42
.include <bsd.port.pre.mk>
77
.include <bsd.port.pre.mk>
43
78
44
.if defined(WITH_OCTAVE)
79
.if defined(WITH_PPM)
80
CONFIGURE_ARGS+=--enable-ppm
81
LIB_DEPENDS+=	netpbm.1:${PORTSDIR}/graphics/netpbm
82
PLIST_SUB+=	PPM=""
83
.else
84
CONFIGURE_ARGS+=--disable-ppm
85
PLIST_SUB+=	PPM="@comment "
86
.endif
87
88
.if defined(WITH_EXR)
89
PFS_CPPFLAGS+=	${PTHREAD_CFLAGS}
90
PFS_LDFLAGS+=	${PTHREAD_LIBS}
91
CONFIGURE_ARGS+=--enable-openexr --with-exrdir=${LOCALBASE}/include/OpenEXR
92
LIB_DEPENDS+=	IlmImf:${PORTSDIR}/graphics/OpenEXR
93
PLIST_SUB+=	EXR=""
94
.else
95
CONFIGURE_ARGS+=--disable-openexr
96
PLIST_SUB+=	EXR="@comment "
97
.endif
98
99
.if defined(WITH_TIFF)
100
CONFIGURE_ARGS+=--enable-tiff
101
LIB_DEPENDS+=	tiff:${PORTSDIR}/graphics/tiff
102
PLIST_SUB+=	TIFF=""
103
.else
104
CONFIGURE_ARGS+=--disable-tiff
105
PLIST_SUB+=	TIFF="@comment "
106
.endif
107
108
.if defined(WITH_QT)
109
CONFIGURE_ARGS+=--enable-qt
110
USE_QT_VER=	3
111
LIB_DEPENDS+=	qt-mt.3:${PORTSDIR}/x11-toolkits/qt33
112
PLIST_SUB+=	QT=""
113
MAN1+=		pfsview.1 \
114
		pfsv.1
115
.else
116
CONFIGURE_ARGS+=--disable-qt
117
PLIST_SUB+=	QT="@comment "
118
.endif
119
120
.if defined(WITH_IM)
121
CONFIGURE_ARGS+=--enable-imagemagick
122
LIB_DEPENDS+=	Magick++.10:${PORTSDIR}/graphics/ImageMagick
123
PLIST_SUB+=	IM=""
124
.else
125
CONFIGURE_ARGS+=--disable-imagemagick
126
PLIST_SUB+=	IM="@comment "
127
.endif
128
129
.if defined(WITH_OCT)
130
CONFIGURE_ARGS+=--enable-octave
45
USE_FORTRAN=	yes
131
USE_FORTRAN=	yes
46
BUILD_DEPENDS+=	octave:${PORTSDIR}/math/octave
132
BUILD_DEPENDS+=	mkoctfile:${PORTSDIR}/math/octave
47
RUN_DEPENDS+=	octave:${PORTSDIR}/math/octave
133
RUN_DEPENDS+=	octave:${PORTSDIR}/math/octave
48
PLIST_SUB=	OCTAVE_VERSION="`${LOCALBASE}/bin/octave-config -v`" \
134
PLIST_SUB+=	OCT=""
49
		GNU_HOST=${ARCH}-portbld-freebsd${OSREL} \
135
PLIST_SUB+=	OCTAVE_VERSION="`${LOCALBASE}/bin/octave-config -v`"
50
		OCTAVE_PLIST=
136
PLIST_SUB+=	BUILD=${PFS_BUILD}
51
MAN1+=		pfsoctavelum.1 pfsoctavergb.1
137
MAN1+=		pfsoctavelum.1 \
138
		pfsoctavergb.1 \
139
		pfsstat.1
52
.else
140
.else
53
PLIST_SUB=	OCTAVE_PLIST=#
54
CONFIGURE_ARGS+=--disable-octave
141
CONFIGURE_ARGS+=--disable-octave
142
PLIST_SUB+=	OCT="@comment "
143
.endif
144
145
.if defined(WITH_GL)
146
PFS_CPPFLAGS+=	-I${X11BASE}/include
147
PFS_LDFLAGS+=	-L${X11BASE}/lib
148
CONFIGURE_ARGS+=--enable-opengl
149
LIB_DEPENDS+=	glut.4:${PORTSDIR}/graphics/libglut
150
PLIST_SUB+=	GL=""
151
.else
152
CONFIGURE_ARGS+=--disable-opengl
153
PLIST_SUB+=	GL="@comment "
55
.endif
154
.endif
56
155
156
57
pre-configure:
157
pre-configure:
58
	${REINPLACE_CMD} -e "s,#!/bin/bash,#!${LOCALBASE}/bin/bash," \
158
	@${REINPLACE_CMD} -e "s,#!/bin/bash,#!${LOCALBASE}/bin/bash," \
59
		${WRKSRC}/src/fileformat/pfsin \
159
		${WRKSRC}/src/fileformat/pfsin \
60
		${WRKSRC}/src/fileformat/pfsout \
160
		${WRKSRC}/src/fileformat/pfsout \
61
		${WRKSRC}/src/fileformat/pfsinmulti \
161
		${WRKSRC}/src/fileformat/pfsinmulti \
62
		${WRKSRC}/src/fileformat/pfsindcraw \
162
		${WRKSRC}/src/fileformat/pfsindcraw \
63
		${WRKSRC}/src/pfsview/pfsv
163
		${WRKSRC}/src/pfsview/pfsv
164
.if defined(WITH_OCT)
165
	@${REINPLACE_CMD} \
166
		-e 's|/usr/bin/octave|${LOCALBASE}/bin/octave|' \
167
		${WRKSRC}/src/octave/*
168
.endif
64
169
65
.include <bsd.port.post.mk>
170
.include <bsd.port.post.mk>
(-)pfstools/pkg-plist (-57 / +63 lines)
Lines 1-65 Link Here
1
bin/pfsouttiff
2
bin/pfsintiff
3
bin/pfsglview
4
bin/pfsabsolute
5
bin/pfscat
6
bin/pfsclamp
7
bin/pfscut
8
bin/pfsextractchannels
9
bin/pfsflip
10
bin/pfsgamma
11
bin/pfsin
12
bin/pfsindcraw
13
bin/pfsinexr
14
bin/pfsinimgmagick
15
bin/pfsinmulti
16
bin/pfsinpfm
17
bin/pfsinrgbe
1
bin/pfsinrgbe
18
bin/pfsoctavelum
2
bin/pfsoutrgbe
19
bin/pfsoctavergb
3
bin/pfsinpfm
4
bin/pfsoutpfm
5
bin/pfsin
20
bin/pfsout
6
bin/pfsout
21
bin/pfsoutexr
22
bin/pfsoutffmpeg
7
bin/pfsoutffmpeg
23
bin/pfsoutimgmagick
8
bin/pfsinmulti
24
bin/pfsoutpfm
9
bin/pfsindcraw
25
bin/pfsoutrgbe
10
bin/pfsclamp
26
bin/pfspad
11
bin/pfsgamma
12
bin/pfstag
13
bin/pfssize
14
bin/pfsextractchannels
27
bin/pfspanoramic
15
bin/pfspanoramic
28
bin/pfsrotate
16
bin/pfsrotate
29
bin/pfssize
17
bin/pfsflip
30
bin/pfsstat
18
bin/pfscut
31
bin/pfstag
19
bin/pfspad
32
bin/pfsv
20
bin/pfscat
33
bin/pfsview
21
bin/pfsabsolute
34
include/pfs-1.2/array2d.h
22
%%PPM%%bin/pfsinppm
23
%%PPM%%bin/pfsoutppm
24
%%EXR%%bin/pfsinexr
25
%%EXR%%bin/pfsoutexr
26
%%TIFF%%bin/pfsintiff
27
%%TIFF%%bin/pfsouttiff
28
%%IM%%bin/pfsinimgmagick
29
%%IM%%bin/pfsoutimgmagick
30
%%QT%%bin/pfsview
31
%%QT%%bin/pfsv
32
%%OCT%%bin/pfsoctavelum
33
%%OCT%%bin/pfsoctavergb
34
%%OCT%%bin/pfsstat
35
%%GL%%bin/pfsglview
35
include/pfs-1.2/pfs.h
36
include/pfs-1.2/pfs.h
36
@dirrm include/pfs-1.2
37
include/pfs-1.2/array2d.h
37
lib/libpfs-1.2.a
38
lib/libpfs-1.2.la
39
lib/libpfs-1.2.so.0
38
lib/libpfs-1.2.so.0
39
lib/libpfs-1.2.so
40
lib/libpfs-1.2.la
41
lib/libpfs-1.2.a
40
libdata/pkgconfig/pfs.pc
42
libdata/pkgconfig/pfs.pc
41
%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfsclose.oct
43
%%OCT%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%BUILD%%/pfstools/pfsclose.oct
42
%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfsget.oct
44
%%OCT%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%BUILD%%/pfstools/pfsget.oct
43
%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfsopen.oct
45
%%OCT%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%BUILD%%/pfstools/pfsopen.oct
44
%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfsput.oct
46
%%OCT%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%BUILD%%/pfstools/pfsput.oct
45
%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfsread.oct
47
%%OCT%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%BUILD%%/pfstools/pfsread.oct
46
%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfstransform_colorspace.oct
48
%%OCT%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%BUILD%%/pfstools/pfstransform_colorspace.oct
47
%%OCTAVE_PLIST%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools/pfswrite.oct
49
%%OCT%%libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%BUILD%%/pfstools/pfswrite.oct
48
%%OCTAVE_PLIST%%@dirrm libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%/pfstools
50
%%OCT%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_close_frames.m
49
%%OCTAVE_PLIST%%@dirrmtry libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%%
51
%%OCT%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_open_frames.m
50
%%OCTAVE_PLIST%%@dirrmtry libexec/octave/%%OCTAVE_VERSION%%/site/oct
52
%%OCT%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_read_luminance.m
51
%%OCTAVE_PLIST%%@dirrmtry libexec/octave/%%OCTAVE_VERSION%%/site
53
%%OCT%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_read_rgb.m
52
%%OCTAVE_PLIST%%@dirrmtry libexec/octave/%%OCTAVE_VERSION%%
54
%%OCT%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_read_xyz.m
53
%%OCTAVE_PLIST%%@dirrmtry libexec/octave
55
%%OCT%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_write_rgb.m
54
%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_close_frames.m
56
%%OCT%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfssize.m
55
%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_open_frames.m
57
%%OCT%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfsview.m
56
%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_read_luminance.m
58
%%OCT%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfsview_list.m
57
%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_read_rgb.m
59
%%OCT%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfsview_rgb.m
58
%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_read_xyz.m
60
@dirrm include/pfs-1.2
59
%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfs_write_rgb.m
61
%%OCT%%@dirrm share/octave/%%OCTAVE_VERSION%%/site/m/pfstools
60
%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfssize.m
62
%%OCT%%@dirrmtry share/octave/%%OCTAVE_VERSION%%/site/m
61
%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfsview.m
63
%%OCT%%@dirrmtry share/octave/%%OCTAVE_VERSION%%/site
62
%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfsview_list.m
64
%%OCT%%@dirrmtry share/octave/%%OCTAVE_VERSION%%
63
%%OCTAVE_PLIST%%share/octave/%%OCTAVE_VERSION%%/site/m/pfstools/pfsview_rgb.m
65
%%OCT%%@dirrmtry share/octave
64
%%OCTAVE_PLIST%%@dirrm share/octave/%%OCTAVE_VERSION%%/site/m/pfstools
66
%%OCT%%@dirrm libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%BUILD%%/pfstools
65
%%OCTAVE_PLIST%%@dirrmtry share/octave/%%OCTAVE_VERSION%%/site/m
67
%%OCT%%@dirrmtry libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%BUILD%%
68
%%OCT%%@dirrmtry libexec/octave/%%OCTAVE_VERSION%%/site/oct
69
%%OCT%%@dirrmtry libexec/octave/%%OCTAVE_VERSION%%/site
70
%%OCT%%@dirrmtry libexec/octave/%%OCTAVE_VERSION%%
71
%%OCT%%@dirrmtry libexec/octave

Return to bug 118389