diff options
author | will <will@FreeBSD.org> | 2000-12-30 10:15:35 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2000-12-30 10:15:35 +0800 |
commit | 0021f5e479e322149551265c412519e15bb03402 (patch) | |
tree | 2d33be3ccecce915917006de145764935e436a34 /graphics/liblug/files | |
parent | 8a2ef5a40159e160b9024843f518ca1b47deab28 (diff) | |
download | freebsd-ports-gnome-0021f5e479e322149551265c412519e15bb03402.tar.gz freebsd-ports-gnome-0021f5e479e322149551265c412519e15bb03402.tar.zst freebsd-ports-gnome-0021f5e479e322149551265c412519e15bb03402.zip |
Add liblug 1.0.6, a very clean graphic library which can handle gif, pcx, targa,
rgb, tiff, pix, ppm, pgm, pbm, raw, rayshade's heightfield, jpeg and do the
following functions: resampling, blur, sharpening, cut, paste, median filter,
histogram equalization, and so on.
PR: 23889
Submitted by: George Reid <greid@ukug.uk.freebsd.org>
Diffstat (limited to 'graphics/liblug/files')
-rw-r--r-- | graphics/liblug/files/patch-aa | 102 | ||||
-rw-r--r-- | graphics/liblug/files/patch-ab | 10 |
2 files changed, 112 insertions, 0 deletions
diff --git a/graphics/liblug/files/patch-aa b/graphics/liblug/files/patch-aa new file mode 100644 index 000000000000..18ef32f63bf7 --- /dev/null +++ b/graphics/liblug/files/patch-aa @@ -0,0 +1,102 @@ +--- Makefile.linux Fri Dec 29 20:49:53 2000 ++++ Makefile.linux.new Fri Dec 29 20:50:36 2000 +@@ -24,12 +24,12 @@ + # + # Uncomment next line if you are using other compiler (e.g. gcc) + # +-CC = gcc ++CC?= gcc + + # + # Compiler options ( only C-O-M-P-I-L-E-R, not LUG options ). + # +-COPTS = -O2 ++COPTS = ${CFLAGS} + + # + # Location of LUG header files. +@@ -40,7 +40,7 @@ + # + # Where lug library will live + # +-LIBLUGDEST = /usr/local/lib ++LIBLUGDEST = ${PREFIX}/lib + + # + # If you have installed the Utah Raster Toolkit library define +@@ -52,10 +52,10 @@ + # + # , or leave undefined if you don't have it. + # +-URTINC = -I/usr/local/include/urt +-URTLIB = /usr/local/lib/librle.a ++#URTINC = -I/usr/local/include/urt ++#URTLIB = /usr/local/lib/librle.a + #URTLIB = -L/usr/local/lib -lrle +-URTDEF = -DiRLE ++#URTDEF = -DiRLE + + # + # If you have installed the Sam Leffler's TIFF library define +@@ -67,9 +67,9 @@ + # + # , or leave undefined if you don't have it. + # +-TIFFINC = -I/usr/local/include/tiff +-TIFFLIB = /usr/local/lib/libtiff.a +-#TIFFLIB = -L/usr/local/lib -ltiff ++#TIFFINC = -I/usr/local/include/tiff ++#TIFFLIB = /usr/local/lib/libtiff.a ++TIFFLIB = -L${PREFIX}/lib -ltiff + TIFFDEF = -DiTIFF + + # +@@ -87,9 +87,9 @@ + # + # , or leave undefined if you don't have it. + # +-JPEGINC = -I/usr/local/include/jpeg +-JPEGLIB = /usr/local/lib/libjpeg.a +-#JPEGLIB = -L/usr/local/lib -ljpeg ++JPEGINC = -I${PREFIX}/include ++#JPEGLIB = /usr/local/lib/libjpeg.a ++JPEGLIB = -L${PREFIX}/lib -ljpeg + JPEGDEF = -DiJPEGNEW + + # +@@ -127,15 +127,15 @@ + # VIEWLIB = -lgl_s -lvfr + # VIEWINC = -I/usr/include/gl -I/usr/video/vfr/src/inc + # +-VIEWINC = -I/usr/X11/include +-VIEWLIB = -L/usr/X11/lib -lX11 ++VIEWINC = -I${X11BASE}/include ++VIEWLIB = -L${X11BASE}/lib -lX11 + VIEWDEF = -DiX11 -DiLINUX + + # + # Final includes ( don't touch this ! ). + # + INCS = $(LUGINC) $(URTINC) $(TIFFINC) $(JPEGINC) $(SGIINC) $(VIEWINC) +-LIBS = $(LUGLIB) $(URTLIB) $(TIFFLIB) $(JPEGLIB) $(VIEWLIB) -lm ++LIBS = $(LUGLIB) $(URTLIB) $(TIFFLIB) $(JPEGLIB) $(VIEWLIB) -lm -lcompat + DEFS = $(URTDEF) $(TIFFDEF) $(JPEGDEF) $(SGIDEF) $(VIEWDEF) + + # +@@ -166,15 +166,7 @@ + ( cd examples; $(MAKE) clean ) + + install: liblug.a +- @echo "Installing library..." +- @if [ ! -d $(LIBLUGDEST) ]; \ +- then \ +- mkdir $(LIBLUGDEST); \ +- chmod a+rx $(LIBLUGDEST); \ +- fi; \ +- cp liblug.a $(LIBLUGDEST); \ +- chmod 644 $(LIBLUGDEST)/liblug.a; \ +- @echo "OK." ++ /usr/bin/install -c -o root -g wheel -m 444 liblug.a $(LIBLUGDEST) + + archive:; ( cd .. ; tar cvf lug-1.0.tar lug ; compress lug-1.0.tar ) + diff --git a/graphics/liblug/files/patch-ab b/graphics/liblug/files/patch-ab new file mode 100644 index 000000000000..db7d5b263988 --- /dev/null +++ b/graphics/liblug/files/patch-ab @@ -0,0 +1,10 @@ +--- convert/rla.c.orig Mon Jul 12 08:36:48 1993 ++++ convert/rla.c Wed Dec 27 18:18:42 2000 +@@ -26,6 +26,7 @@ + * + */ + ++#include <stdio.h> + #include <lug.h> + #include <lugfnts.h> + |