aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/liblug/Makefile22
-rw-r--r--graphics/liblug/distinfo1
-rw-r--r--graphics/liblug/files/patch-aa102
-rw-r--r--graphics/liblug/files/patch-ab10
-rw-r--r--graphics/liblug/pkg-comment1
-rw-r--r--graphics/liblug/pkg-descr7
-rw-r--r--graphics/liblug/pkg-plist1
8 files changed, 145 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 0058e4e84def..4d30479c18e9 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -104,6 +104,7 @@
SUBDIR += libflash
SUBDIR += libggi
SUBDIR += libimg
+ SUBDIR += liblug
SUBDIR += libmng
SUBDIR += libmorph
SUBDIR += libungif
diff --git a/graphics/liblug/Makefile b/graphics/liblug/Makefile
new file mode 100644
index 000000000000..36dc8e114d04
--- /dev/null
+++ b/graphics/liblug/Makefile
@@ -0,0 +1,22 @@
+# New ports collection makefile for: liblug
+# Date created: 27 December 2000
+# Whom: George Reid <greid@ukug.uk.freebsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= liblug
+PORTVERSION= 1.0.6
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
+MASTER_SITE_SUBDIR= libs/graphics
+
+MAINTAINER= greid@ukug.uk.freebsd.org
+
+WRKSRC= ${WRKDIR}/lug
+
+MAKEFILE= Makefile.linux
+
+INSTALLS_SHLIB= yes
+
+.include <bsd.port.mk>
diff --git a/graphics/liblug/distinfo b/graphics/liblug/distinfo
new file mode 100644
index 000000000000..8ccc647af0d1
--- /dev/null
+++ b/graphics/liblug/distinfo
@@ -0,0 +1 @@
+MD5 (liblug-1.0.6.tar.gz) = a94c49bdadd7b510c4089b25621c3395
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>
+
diff --git a/graphics/liblug/pkg-comment b/graphics/liblug/pkg-comment
new file mode 100644
index 000000000000..d1ea5ccd15f4
--- /dev/null
+++ b/graphics/liblug/pkg-comment
@@ -0,0 +1 @@
+A multi-format graphics manipulation library
diff --git a/graphics/liblug/pkg-descr b/graphics/liblug/pkg-descr
new file mode 100644
index 000000000000..6ac8aa7837d6
--- /dev/null
+++ b/graphics/liblug/pkg-descr
@@ -0,0 +1,7 @@
+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 function: resampling, blur, sharpening, cut,
+paste, median filter, histogram equalization and so on...
+
+- George Reid
+greid@ukug.uk.freebsd.org
diff --git a/graphics/liblug/pkg-plist b/graphics/liblug/pkg-plist
new file mode 100644
index 000000000000..c5c4fceac82b
--- /dev/null
+++ b/graphics/liblug/pkg-plist
@@ -0,0 +1 @@
+lib/liblug.a