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> |