1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
|
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# .
# ./files
# ./files/patch-ab
# ./files/patch-ac
# ./files/patch-ad
# ./files/Makefile.bsd
# ./Makefile
# ./distinfo
# ./pkg-descr
# ./pkg-plist
# ./pkg-comment
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-ab
sed 's/^X//' >./files/patch-ab << 'END-of-./files/patch-ab'
X--- basics/a_file.cpp Sat Dec 23 17:10:00 2000
X+++ basics/a_file.cpp Thu Jan 18 11:37:44 2001
X@@ -29,4 +29,4 @@
X # include <sys/types.h>
X+# include <sys/uio.h>
X # include <sys/stat.h>
X-# include <sys/statfs.h>
X # include <sys/ioctl.h>
X--- basics/filename.cpp Sat Dec 23 17:10:00 2000
X+++ basics/filename.cpp Thu Jan 18 11:33:35 2001
X@@ -39,3 +39,4 @@
X # include <sys/stat.h>
X-# include <sys/statfs.h>
X+# include <sys/param.h>
X+# include <sys/mount.h>
X # include <stdio.h>
X@@ -424,5 +425,4 @@
X struct statfs buf;
X- int errNum=0, fstyp;
X+ int errNum=0;
X /* Get file system stats */
X- fstyp=0;
X- errNum = statfs ( ".", &buf, sizeof( struct statfs ), fstyp);
X+ errNum = statfs ( ".", &buf);
END-of-./files/patch-ab
echo x - ./files/patch-ac
sed 's/^X//' >./files/patch-ac << 'END-of-./files/patch-ac'
X--- basics/a_file.h Sat Dec 23 17:10:00 2000
X+++ basics/a_file.h Thu Jan 18 11:41:58 2001
X@@ -46,12 +46,10 @@
X // Global Functions
X // ________________
X
X-#ifdef _WINDOWS
X uint16 shortswap(uint16); // Swap for Big/Little Endian
X uint32 longswap(uint32); // Swap for Big/Little Endian
X # define int32swap longswap
X # define int16swap shortswap
X-#endif
X
X // Classes Declarations
X // --------------------
X@@ -310,7 +308,6 @@
X
X #ifdef DEFINE_INT32_FUNCTIONS
X
X-#ifdef _WINDOWS
X inline uint32 longswap( uint32 x )
X {
X uint32 a, b;
X@@ -318,7 +315,6 @@
X b = x & 0x0000ffff;
X return ( ((uint32)shortswap((uint16)b) << 16) | (uint32)shortswap((uint16)a) );
X }
X-#endif
X
X inline Boolean Fichier::Ecriture(int32 ceLong)
X {
X@@ -376,7 +372,6 @@
X
X
X // Added by GDN
X-#ifdef _WINDOWS
X inline uint16 shortswap( uint16 x )
X {
X uint16 a, b;
X@@ -384,7 +379,6 @@
X b = x & 0x00ff;
X return ( (b << 8) | a );
X }
X-#endif
X
X inline Boolean Fichier::Ecriture(short ceShort)
X {
X@@ -487,9 +481,9 @@
X inline Boolean Fichier::EcritureTableau(short *array, int32 nshort)
X {
X Boolean ret;
X-
X+ int32 i;
X #ifndef __bigEndian
X- for (int32 i = 0; i < nshort; i++)
X+ for (i = 0; i < nshort; i++)
X array[i] = shortswap (array[i]);
X #endif
X
X@@ -509,8 +503,9 @@
X inline Boolean Fichier::EcritureTableau( int32 *array, int32 t)
X {
X Boolean ret;
X+ int32 i;
X #ifndef __bigEndian
X- for (int32 i = 0; i < t; i++)
X+ for (i = 0; i < t; i++)
X array[i] = int32swap (array[i]);
X #endif
X
END-of-./files/patch-ac
echo x - ./files/patch-ad
sed 's/^X//' >./files/patch-ad << 'END-of-./files/patch-ad'
X--- ole/gen_guid.cpp Sat Dec 23 17:12:09 2000
X+++ ole/gen_guid.cpp Thu Jan 18 11:46:44 2001
X@@ -55,2 +55,4 @@
X } timespec;
X+#else
X+# include <sys/time.h>
X #endif
END-of-./files/patch-ad
echo x - ./files/Makefile.bsd
sed 's/^X//' >./files/Makefile.bsd << 'END-of-./files/Makefile.bsd'
XLIB = fpx
XINCS = fpxlib.h
XSHLIB_MAJOR= 1
XSHLIB_MINOR= 2
X
XLIBDIR = ${LOCALBASE}/lib
XINCDIR = ${LOCALBASE}/include
X
XNOPROFILE= Don't want it
X
XCPPS != find ${.CURDIR} -name \*.cpp -print
X# Some of the .cxx files are #include-ed into others, so can't use `find' here:
XOLESS := ascii.cxx cdocfile.cxx chinst.cxx dffuncs.cxx dfiter.cxx \
X dfstream difat.cxx dir.cxx dirp.cxx docfile.cxx entry.cxx \
X expdf.cxx expiter expst.cxx fat.cxx funcs.cxx header.cxx \
X iter.cxx mem.cxx msf msfiter.cxx mstream.cxx page.cxx \
X refilb.cxx rexpdf.cxx sstream.cxx storage.cxx time.cxx \
X vect.cxx wchar.c
XJPGS != find ${.CURDIR}/jpeg -name \*.c
X
XCPPS += ${OLESS:S/^/${.CURDIR}\/oless\//} ${JPGS}
X
XSRCS = ${CPPS:T}
X
XCXXFLAGS+= -I${LOCALBASE}/include -D_UNIX
XCXXFLAGS+= -fno-rtti -fno-exceptions
XLDADD += -L${LOCALBASE}/lib -ljpeg
X
X.PATH: ${CPPS:H}
X
X.for d in oless/h jpeg ole basics ri_image oless fpx
XCXXFLAGS+= -I${.CURDIR}/$d
X.endfor
X
X.include <bsd.lib.mk>
END-of-./files/Makefile.bsd
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for: fpx
X# Date created: Jan 10 2001
X# Whom: Mikhail Teterin <mi@aldan.algebra.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= fpx
XPORTVERSION= 1.2.0
XCATEGORIES= graphics
XMASTER_SITES= ftp://ftp.wizards.dupont.com/pub/%SUBDIR%/ \
X ftp://ftp.u-aizu.ac.jp/pub/graphics/image/%SUBDIR%/ \
X ftp://ftp.fifi.org/pub/%SUBDIR%/ \
X ftp://gd.tuwien.ac.at/pub/graphics/%SUBDIR%/ \
X ftp://ftp.ms.mff.cuni.cz/MIRRORS/ftp.wizards.dupont.com/pub/%SUBDIR%/ \
X ftp://ftp.oce.nl/pub/Internet/audio+video/%SUBDIR%/
XMASTER_SITE_SUBDIR= ImageMagick/delegates
X
XMAINTAINER= mi@aldan.algebra.com
X
XLIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
X
XWRKSRC= ${WRKDIR}/lib${DISTNAME}
X
Xpost-patch:
X # Replacing references to <malloc.h> with <stdlib.h>
X # Ignore the /dev/stderr warning below. (What a hack!)
X ${PERL} -pi -e 's/<malloc.h>/<stdlib.h>/' \
X `find ${WRKSRC} -type f | xargs ${GREP} -l '<malloc.h>'` /dev/stderr
X
XINSTALLS_SHLIB= yes
XMAKEFILE= ${FILESDIR}/Makefile.bsd
XMAKE_ARGS= -j 2
X
X.include <bsd.port.mk>
END-of-./Makefile
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (fpx-1.2.0.tar.gz) = 9e431764692083f4b11e999b257bf42a
END-of-./distinfo
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XThis package is the Flashpix OpenSource Toolkit and is based
Xon source code obtained from the Digital Imaging Group Inc.
X(http://www.digitalimaging.org/).
X
XSee the file AUTHORS for the origin of this package, the file
XCOPYING for usage limitations, the file INSTALL for Unix installation
Xinstructions, and the file README.gcc for GNU make based build
Xinstructions.
X
XWWW: http://www.digitalimaging.org/
END-of-./pkg-descr
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
Xlib/libfpx.so.1.2
Xlib/libfpx.so
Xlib/libfpx.a
Xinclude/fpxlib.h
END-of-./pkg-plist
echo x - ./pkg-comment
sed 's/^X//' >./pkg-comment << 'END-of-./pkg-comment'
XLibrary routines for working with Flashpix images
END-of-./pkg-comment
exit
|