diff options
author | Will Andrews <will@FreeBSD.org> | 2001-03-10 20:35:18 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2001-03-10 20:35:18 +0000 |
commit | e76e22afb65de5c322744a727a4e3c45ad0fff95 (patch) | |
tree | f1c175b277877c5f1c2eca7dfeb61132bb6540e7 /graphics/libfpx | |
parent | cebd59bc7312dc4ddbfe16b0c3c6dcc0f671df5b (diff) | |
download | ports-e76e22afb65de5c322744a727a4e3c45ad0fff95.tar.gz ports-e76e22afb65de5c322744a727a4e3c45ad0fff95.zip |
Notes
Diffstat (limited to 'graphics/libfpx')
-rw-r--r-- | graphics/libfpx/Makefile | 34 | ||||
-rw-r--r-- | graphics/libfpx/distinfo | 1 | ||||
-rw-r--r-- | graphics/libfpx/files/Makefile.bsd | 35 | ||||
-rw-r--r-- | graphics/libfpx/files/patch-basics::a_file.cpp | 24 | ||||
-rw-r--r-- | graphics/libfpx/files/patch-basics::a_file.h | 70 | ||||
-rw-r--r-- | graphics/libfpx/files/patch-ole::gen_guid.cpp | 7 | ||||
-rw-r--r-- | graphics/libfpx/pkg-comment | 1 | ||||
-rw-r--r-- | graphics/libfpx/pkg-descr | 10 | ||||
-rw-r--r-- | graphics/libfpx/pkg-plist | 4 | ||||
-rw-r--r-- | graphics/libfpx/pr-patch | 240 |
10 files changed, 426 insertions, 0 deletions
diff --git a/graphics/libfpx/Makefile b/graphics/libfpx/Makefile new file mode 100644 index 000000000000..470bff4f352e --- /dev/null +++ b/graphics/libfpx/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: fpx +# Date created: Jan 10 2001 +# Whom: Mikhail Teterin <mi@aldan.algebra.com> +# +# $FreeBSD$ +# + +PORTNAME= fpx +PORTVERSION= 1.2.0 +CATEGORIES= graphics +MASTER_SITES= ftp://ftp.wizards.dupont.com/pub/%SUBDIR%/ \ + ftp://ftp.u-aizu.ac.jp/pub/graphics/image/%SUBDIR%/ \ + ftp://ftp.fifi.org/pub/%SUBDIR%/ \ + ftp://gd.tuwien.ac.at/pub/graphics/%SUBDIR%/ \ + ftp://ftp.ms.mff.cuni.cz/MIRRORS/ftp.wizards.dupont.com/pub/%SUBDIR%/ \ + ftp://ftp.oce.nl/pub/Internet/audio+video/%SUBDIR%/ +MASTER_SITE_SUBDIR= ImageMagick/delegates + +MAINTAINER= mi@aldan.algebra.com + +LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg + +WRKSRC= ${WRKDIR}/lib${DISTNAME} + +post-patch: + # Replacing references to <malloc.h> with <stdlib.h> + # Ignore the /dev/stderr warning below. (What a hack!) + ${PERL} -pi -e 's/<malloc.h>/<stdlib.h>/' \ + `find ${WRKSRC} -type f | xargs ${GREP} -l '<malloc.h>'` /dev/stderr + +INSTALLS_SHLIB= yes +MAKEFILE= ${FILESDIR}/Makefile.bsd + +.include <bsd.port.mk> diff --git a/graphics/libfpx/distinfo b/graphics/libfpx/distinfo new file mode 100644 index 000000000000..d436efca84c2 --- /dev/null +++ b/graphics/libfpx/distinfo @@ -0,0 +1 @@ +MD5 (fpx-1.2.0.tar.gz) = 9e431764692083f4b11e999b257bf42a diff --git a/graphics/libfpx/files/Makefile.bsd b/graphics/libfpx/files/Makefile.bsd new file mode 100644 index 000000000000..92fa703a2fc1 --- /dev/null +++ b/graphics/libfpx/files/Makefile.bsd @@ -0,0 +1,35 @@ +LIB = fpx +INCS = fpxlib.h +SHLIB_MAJOR= 1 +SHLIB_MINOR= 2 + +LIBDIR = ${LOCALBASE}/lib +INCDIR = ${LOCALBASE}/include + +NOPROFILE= Don't want it + +CPPS != find ${.CURDIR} -name \*.cpp -print +# Some of the .cxx files are #include-ed into others, so can't use `find' here: +OLESS := ascii.cxx cdocfile.cxx chinst.cxx dffuncs.cxx dfiter.cxx \ + dfstream difat.cxx dir.cxx dirp.cxx docfile.cxx entry.cxx \ + expdf.cxx expiter expst.cxx fat.cxx funcs.cxx header.cxx \ + iter.cxx mem.cxx msf msfiter.cxx mstream.cxx page.cxx \ + refilb.cxx rexpdf.cxx sstream.cxx storage.cxx time.cxx \ + vect.cxx wchar.c +JPGS != find ${.CURDIR}/jpeg -name \*.c + +CPPS += ${OLESS:S/^/${.CURDIR}\/oless\//} ${JPGS} + +SRCS = ${CPPS:T} + +CXXFLAGS+= -I${LOCALBASE}/include -D_UNIX +CXXFLAGS+= -fno-rtti -fno-exceptions +LDADD += -L${LOCALBASE}/lib -ljpeg + +.PATH: ${CPPS:H} + +.for d in oless/h jpeg ole basics ri_image oless fpx +CXXFLAGS+= -I${.CURDIR}/$d +.endfor + +.include <bsd.lib.mk> diff --git a/graphics/libfpx/files/patch-basics::a_file.cpp b/graphics/libfpx/files/patch-basics::a_file.cpp new file mode 100644 index 000000000000..f9abb1a75eb7 --- /dev/null +++ b/graphics/libfpx/files/patch-basics::a_file.cpp @@ -0,0 +1,24 @@ +--- basics/a_file.cpp Sat Dec 23 17:10:00 2000 ++++ basics/a_file.cpp Thu Jan 18 11:37:44 2001 +@@ -29,4 +29,4 @@ + # include <sys/types.h> ++# include <sys/uio.h> + # include <sys/stat.h> +-# include <sys/statfs.h> + # include <sys/ioctl.h> +--- basics/filename.cpp Sat Dec 23 17:10:00 2000 ++++ basics/filename.cpp Thu Jan 18 11:33:35 2001 +@@ -39,3 +39,4 @@ + # include <sys/stat.h> +-# include <sys/statfs.h> ++# include <sys/param.h> ++# include <sys/mount.h> + # include <stdio.h> +@@ -424,5 +425,4 @@ + struct statfs buf; +- int errNum=0, fstyp; ++ int errNum=0; + /* Get file system stats */ +- fstyp=0; +- errNum = statfs ( ".", &buf, sizeof( struct statfs ), fstyp); ++ errNum = statfs ( ".", &buf); diff --git a/graphics/libfpx/files/patch-basics::a_file.h b/graphics/libfpx/files/patch-basics::a_file.h new file mode 100644 index 000000000000..a67744ae5061 --- /dev/null +++ b/graphics/libfpx/files/patch-basics::a_file.h @@ -0,0 +1,70 @@ +--- basics/a_file.h Sat Dec 23 17:10:00 2000 ++++ basics/a_file.h Thu Jan 18 11:41:58 2001 +@@ -46,12 +46,10 @@ + // Global Functions + // ________________ + +-#ifdef _WINDOWS + uint16 shortswap(uint16); // Swap for Big/Little Endian + uint32 longswap(uint32); // Swap for Big/Little Endian + # define int32swap longswap + # define int16swap shortswap +-#endif + + // Classes Declarations + // -------------------- +@@ -310,7 +308,6 @@ + + #ifdef DEFINE_INT32_FUNCTIONS + +-#ifdef _WINDOWS + inline uint32 longswap( uint32 x ) + { + uint32 a, b; +@@ -318,7 +315,6 @@ + b = x & 0x0000ffff; + return ( ((uint32)shortswap((uint16)b) << 16) | (uint32)shortswap((uint16)a) ); + } +-#endif + + inline Boolean Fichier::Ecriture(int32 ceLong) + { +@@ -376,7 +372,6 @@ + + + // Added by GDN +-#ifdef _WINDOWS + inline uint16 shortswap( uint16 x ) + { + uint16 a, b; +@@ -384,7 +379,6 @@ + b = x & 0x00ff; + return ( (b << 8) | a ); + } +-#endif + + inline Boolean Fichier::Ecriture(short ceShort) + { +@@ -487,9 +481,9 @@ + inline Boolean Fichier::EcritureTableau(short *array, int32 nshort) + { + Boolean ret; +- ++ int32 i; + #ifndef __bigEndian +- for (int32 i = 0; i < nshort; i++) ++ for (i = 0; i < nshort; i++) + array[i] = shortswap (array[i]); + #endif + +@@ -509,8 +503,9 @@ + inline Boolean Fichier::EcritureTableau( int32 *array, int32 t) + { + Boolean ret; ++ int32 i; + #ifndef __bigEndian +- for (int32 i = 0; i < t; i++) ++ for (i = 0; i < t; i++) + array[i] = int32swap (array[i]); + #endif + diff --git a/graphics/libfpx/files/patch-ole::gen_guid.cpp b/graphics/libfpx/files/patch-ole::gen_guid.cpp new file mode 100644 index 000000000000..9f5e1a9cd5db --- /dev/null +++ b/graphics/libfpx/files/patch-ole::gen_guid.cpp @@ -0,0 +1,7 @@ +--- ole/gen_guid.cpp Sat Dec 23 17:12:09 2000 ++++ ole/gen_guid.cpp Thu Jan 18 11:46:44 2001 +@@ -55,2 +55,4 @@ + } timespec; ++#else ++# include <sys/time.h> + #endif diff --git a/graphics/libfpx/pkg-comment b/graphics/libfpx/pkg-comment new file mode 100644 index 000000000000..847820796a0e --- /dev/null +++ b/graphics/libfpx/pkg-comment @@ -0,0 +1 @@ +Library routines for working with Flashpix images diff --git a/graphics/libfpx/pkg-descr b/graphics/libfpx/pkg-descr new file mode 100644 index 000000000000..4f9f11b4f423 --- /dev/null +++ b/graphics/libfpx/pkg-descr @@ -0,0 +1,10 @@ +This package is the Flashpix OpenSource Toolkit and is based +on source code obtained from the Digital Imaging Group Inc. +(http://www.digitalimaging.org/). + +See the file AUTHORS for the origin of this package, the file +COPYING for usage limitations, the file INSTALL for Unix installation +instructions, and the file README.gcc for GNU make based build +instructions. + +WWW: http://www.digitalimaging.org/ diff --git a/graphics/libfpx/pkg-plist b/graphics/libfpx/pkg-plist new file mode 100644 index 000000000000..472e0ebab195 --- /dev/null +++ b/graphics/libfpx/pkg-plist @@ -0,0 +1,4 @@ +lib/libfpx.so.1.2 +lib/libfpx.so +lib/libfpx.a +include/fpxlib.h diff --git a/graphics/libfpx/pr-patch b/graphics/libfpx/pr-patch new file mode 100644 index 000000000000..4c9c400c43e6 --- /dev/null +++ b/graphics/libfpx/pr-patch @@ -0,0 +1,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 + |