Update of /cvsroot/fink/dists/10.2/stable/main/finkinfo/graphics In directory sc8-pr-cvs1:/tmp/cvs-serv29257
Added Files: metapixel-0.7-3.info metapixel-0.7-3.patch Log Message: stable --- NEW FILE: metapixel-0.7-3.info --- Package: metapixel Version: 0.7 Revision: 3 Source: http://www.complang.tuwien.ac.at/~schani/%n/%n-%v.tar.gz Source-MD5: ffb60f432e8a4c85432f572cbd265aff Patch: %f.patch BuildDepends: libpng3, libjpeg Depends: libpng3-shlibs, libjpeg-shlibs SetCFLAGS: -I%p/include SetLDFLAGS: -L%p/lib CompileScript: << make CC=cc COPTS="" strip %n << InstallScript: << make install CC=cc BINDIR=%i/bin << Description: Photomosaic generator DescDetail: << Can generate classical photomosaics, in which the source image is viewed as a matrix of equally sized rectangles for each of which a matching image is substitued, as well as collage-style photomosaics, in which rectangular parts of the source image at arbitrary positions (i.e. not aligned to a matrix) are substituted by matching images. << DescUsage: << Read readme for instructions. Prepare script has problems on images with spaces and special characters in the name. << DocFiles: NEWS README COPYING License: GPL Maintainer: Ben Hines <[EMAIL PROTECTED]> Homepage: http://www.complang.tuwien.ac.at/~schani/metapixel/ --- NEW FILE: metapixel-0.7-3.patch --- --- metapixel-0.7/Makefile Fri Jan 21 14:32:17 2000 +++ metapixel-0.7-patched/Makefile Mon May 13 02:39:51 2002 @@ -8,7 +8,7 @@ #PROFILE = -pg LDOPTS = -L/usr/X11R6/lib $(PROFILE) -CCOPTS = -I/usr/X11R6/include -I/usr/X11R6/include/X11 -Wall -O9 $(PROFILE) -DMETAPIXEL_VERSION=\"$(VERSION)\" +CCOPTS = -I/usr/X11R6/include -I/usr/X11R6/include/X11 -Wall $(PROFILE) -DMETAPIXEL_VERSION=\"$(VERSION)\" CC = gcc #LIBFFM = -lffm @@ -17,10 +17,10 @@ all : metapixel metapixel : $(OBJS) libzoom/libzoom.a - $(CC) $(LDOPTS) -o metapixel $(OBJS) libzoom/libzoom.a -lpng -ljpeg $(LIBFFM) -lm -lz + $(CC) $(LDFLAGS) $(LDOPTS) -o metapixel $(OBJS) libzoom/libzoom.a -lpng -ljpeg $(LIBFFM) -lm -lz %.o : %.c - $(CC) $(CCOPTS) -c $< + $(CC) $(CFLAGS) $(CCOPTS) -c $< libzoom/libzoom.a : $(MAKE) -C libzoom libzoom.a --- metapixel-0.7/getopt.c Fri Jan 21 14:32:17 2000 +++ metapixel-0.7-patched/getopt.c Mon May 13 02:51:31 2002 @@ -62,6 +62,10 @@ #endif #endif /* GNU C library. */ +#ifdef __APPLE__ +#include <unistd.h> +#endif + #ifdef VMS #include <unixlib.h> #if HAVE_STRING_H - 0 @@ -190,6 +194,10 @@ #include <string.h> #define my_index strchr #else + +#ifdef __APPLE__ +#include <string.h> +#endif /* Avoid depending on library functions or files whose names are inconsistent. */ --- metapixel-0.7/libzoom/zoom.c Fri Jan 21 14:32:17 2000 +++ metapixel-0.7-patched/libzoom/zoom.c Mon May 13 02:46:51 2002 @@ -50,6 +50,7 @@ static char rcsid[] = "$Header: /mnt/homes/cvsroot/metapixel/metapixel/libzoom/zoom.c,v 1.1 2000/01/04 03:35:21 schani Exp $"; #include <math.h> +#include <limits.h> #include "simple.h" #include "pic.h" @@ -769,7 +770,7 @@ /* evaluate the filter function: */ tr = sc*filt_func(filter, (i+.5-cen)/ap->scale); - if (tr<MINSHORT || tr>MAXSHORT) { + if (tr<SHRT_MIN || tr>SHRT_MAX) { fprintf(stderr, "tr=%g at %d\n", tr, b); exit(1); } --- metapixel-0.7/libzoom/simple.h Fri Jan 21 14:32:17 2000 +++ metapixel-0.7-patched/libzoom/simple.h Mon May 13 02:43:11 2002 @@ -2,7 +2,7 @@ #include <stdlib.h> #include <string.h> #include <assert.h> -#include <values.h> +//#include <values.h> #include <math.h> #define str_eq(a, b) (strcmp(a, b) == 0) ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Fink-commits mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-commits