diff options
Diffstat (limited to 'graphics/liblug/files/patch-Makefile.linux')
-rw-r--r-- | graphics/liblug/files/patch-Makefile.linux | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/graphics/liblug/files/patch-Makefile.linux b/graphics/liblug/files/patch-Makefile.linux new file mode 100644 index 000000000000..aab5efef8f07 --- /dev/null +++ b/graphics/liblug/files/patch-Makefile.linux @@ -0,0 +1,103 @@ +--- Makefile.linux.orig Fri Oct 14 00:57:43 1994 ++++ Makefile.linux Sun Mar 18 08:09:35 2001 +@@ -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 +-VIEWDEF = -DiX11 -DiLINUX ++VIEWINC = -I${LOCALBASE}/include ++VIEWLIB = -L${LOCALBASE}/lib -lX11 ++VIEWDEF = -DiX11 + + # + # 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 -m 444 liblug.a $(DESTDIR)$(LIBLUGDEST) + + archive:; ( cd .. ; tar cvf lug-1.0.tar lug ; compress lug-1.0.tar ) + |