1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-25 21:07:40 +00:00
freebsd-ports/graphics/liblug/files/patch-aa
Will Andrews 8552800cb9 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>
2000-12-30 02:15:35 +00:00

103 lines
2.5 KiB
Plaintext

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