summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2001-03-26 06:11:19 +0000
committerjkoshy <jkoshy@FreeBSD.org>2001-03-26 06:11:19 +0000
commit0e176af40275e32dcaef8f3f77b746a612389575 (patch)
tree5c66a3feb944af83ec7695feb228e437b8112b57 /graphics
parent24aaf8a5f5f2cee4bd5838ac6682680cf1938105 (diff)
downloadFreeBSD-ports-0e176af40275e32dcaef8f3f77b746a612389575.zip
FreeBSD-ports-0e176af40275e32dcaef8f3f77b746a612389575.tar.gz
1. Fix man page installation error; this port installs to MANN not MAN1
2. Fix buglet in clipping zoomed images. PR: ports/26075 Submitted by: Yoshihiko Sarumaru <mistral@imasy.or.jp> 3. Enable handling Gzip'ped images. 4. Better default image path. PORTREVISION incremented to `1'.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/xli/Makefile4
-rw-r--r--graphics/xli/files/patch-aa26
-rw-r--r--graphics/xli/files/patch-ab13
3 files changed, 38 insertions, 5 deletions
diff --git a/graphics/xli/Makefile b/graphics/xli/Makefile
index a980ae1..b835c3d 100644
--- a/graphics/xli/Makefile
+++ b/graphics/xli/Makefile
@@ -7,6 +7,7 @@
PORTNAME= xli
PORTVERSION= 1.17.0
+PORTREVISION= 1
CATEGORIES= graphics x11
MASTER_SITES= ${MASTER_SITE_XCONTRIB} \
http://pantransit.reptiles.org/prog/
@@ -18,7 +19,8 @@ LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg
USE_IMAKE= yes
-MAN1= xli.1 xlito.1
+MANN= xli.n xlito.n
+MANCOMPRESSED= no
post-patch:
@${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/Imakefile
diff --git a/graphics/xli/files/patch-aa b/graphics/xli/files/patch-aa
index ef60087..2ea0ca5 100644
--- a/graphics/xli/files/patch-aa
+++ b/graphics/xli/files/patch-aa
@@ -1,13 +1,31 @@
---- Imakefile-- Wed Feb 9 09:23:32 2000
-+++ Imakefile Thu Apr 13 00:59:16 2000
+--- Imakefile-- Mon Mar 26 11:31:28 2001
++++ Imakefile Mon Mar 26 11:32:04 2001
@@ -12,8 +12,8 @@
CCOPTIONS = -Aa -D_HPUX_SOURCE
#endif
-JPEG_INCLUDES =
-JPEG_LDFLAGS =
-+JPEG_INCLUDES = -I%%LOCALBASE%%/include
-+JPEG_LDFLAGS = -L%%LOCALBASE%%/lib
++JPEG_INCLUDES = -I/usr/local/include
++JPEG_LDFLAGS = -L/usr/local/lib
PNG_INCLUDES =
PNG_LDFLAGS =
+@@ -22,7 +22,7 @@
+ DEPLIBS = $(DEPXLIB)
+ LOCAL_LIBRARIES = $(XLIB) $(JPEG_LDFLAGS) $(PNG_LDFLAGS) -ljpeg -lpng -lz
+ SYS_LIBRARIES = -lm
+-DEFINES = -DHAS_MEMCPY
++DEFINES = -DHAS_MEMCPY -DHAVE_GUNZIP
+ EXTRA_INCLUDES = $(JPEG_INCLUDES) $(PNG_INCLUDES)
+
+ SRCS1 = bright.c clip.c cmuwmrast.c compress.c dither.c faces.c fbm.c fill.c g3.c gif.c halftone.c imagetypes.c img.c mac.c mcidas.c mc_tables.c merge.c misc.c new.c options.c path.c pbm.c pcx.c reduce.c jpeg.c rle.c rlelib.c root.c rotate.c send.c smooth.c sunraster.c value.c window.c xbitmap.c xli.c xpixmap.c xwd.c zio.c zoom.c ddxli.c tga.c bmp.c pcd.c png.c
+@@ -47,7 +47,7 @@
+ @echo "*** it for your site. See the xloadimage manual page for"
+ @echo "*** details on the contents of this file."
+ cp /dev/null $(SYSPATHFILE)
+- echo "path=$(INCDIR)/bitmaps $(INCDIR)/images" \
++ echo "path=$(INCDIR)/X11/bitmaps $(INCDIR)/X11/pixmaps" \
+ >> $(SYSPATHFILE)
+ echo "extension=.gif .jpg .rle .csun .msun .sun .face .xbm .bm" \
+ >>$(SYSPATHFILE)
diff --git a/graphics/xli/files/patch-ab b/graphics/xli/files/patch-ab
new file mode 100644
index 0000000..20a416e
--- /dev/null
+++ b/graphics/xli/files/patch-ab
@@ -0,0 +1,13 @@
+--- xli.c.orig Wed Feb 9 14:53:35 2000
++++ xli.c Mon Mar 26 10:37:35 2001
+@@ -369,8 +369,8 @@
+ winheight = globals.dinfo.height;
+
+ if (!images[0].ats) {
+- atx = (winwidth - inew->width) / 2;
+- aty = (winheight - inew->height) / 2;
++ atx = (int)(winwidth - inew->width) / 2;
++ aty = (int)(winheight - inew->height) / 2;
+ }
+ /* use clip to put border around image */
+ itmp = clip(inew, -atx, -aty, winwidth, winheight,
OpenPOWER on IntegriCloud