the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: xli
Version: 1.17.0
Revision: 2
Maintainer: Christian Page
#
BuildDepends: fink (>= 0.24.12), libjpeg, libpng3, x11-dev, xmkmf (>= 1.0.2-3)
Depends: libjpeg-shlibs, libpng3-shlibs, x11
Source: http://pantransit.reptiles.org/prog/xli-%v.tar.gz
Source-MD5: 996d8cd0b2be2071332412c6802852e6
PatchFile: %n.patch
PatchFile-MD5: 4eacf0bb6ea360748200a968cfd44816
PatchScript: <<
sed -e 's,@PREFIX@,%p,g' < %{PatchFile} | patch -p1
perl -pi -e 's/zopen/my_zopen/g' *
<<
CompileScript: <<
#!/bin/sh -ev
export PATH=%p/lib/xmkmf/bin:$PATH
export IMAKEINCLUDE=-I%p/lib/X11/config
xmkmf -a
make
<<
InstallScript: <<
#!/bin/sh -ev
export PATH=%p/lib/xmkmf/bin:$PATH
export IMAKEINCLUDE=-I%p/lib/X11/config
make install DESTDIR=%d BINDIR=%p/bin CONFDIR=%p/etc INSTALLFLAGS=-c
ln -s xli %i/bin/xsetbg
ln -s xli %i/bin/xview
make install.man DESTDIR=%d MANPATH=%p/share/man DOCDIR=%p/share/doc/%n INSTALLFLAGS=-c
<<
DocFiles: README README.xloadimage copyright.h TODO ABOUTGAMMA
#
Description: Very fast X11 Image Loading Utility
DescDetail: <<
xli is an image display program for X, created by Graeme Gill from Jim
Frost's xloadimage, and currently maintained by smar@reptiles.org.
xli will view several types of images under X11, or load images onto
the X11 root window.
<<
DescPort: <<
Patch Imakefile to use relative-path CC or it will hardcode absolute path to /usr/bin/cc
which can build the wrong architecture. So feed CC through Fink's path-prefix.
<<
Homepage: http://pantransit.reptiles.org/prog/#xli
License: BSD
diff -Nurd -x'~*' xli-1.17.0.orig/Imakefile xli-1.17.0/Imakefile
--- xli-1.17.0.orig/Imakefile 2000-02-09 04:23:32.000000000 -0500
+++ xli-1.17.0/Imakefile 2005-12-16 13:23:53.000000000 -0500
@@ -12,11 +12,14 @@
CCOPTIONS = -Aa -D_HPUX_SOURCE
#endif
-JPEG_INCLUDES =
-JPEG_LDFLAGS =
+JPEG_INCLUDES = -I@PREFIX@/include
+JPEG_LDFLAGS = -L@PREFIX@/lib
-PNG_INCLUDES =
-PNG_LDFLAGS =
+PNG_INCLUDES = -I@PREFIX@/include
+PNG_LDFLAGS = -L@PREFIX@/lib
+
+CC = cc
+CXX = c++
SYSPATHFILE = $(XAPPLOADDIR)/Xli
DEPLIBS = $(DEPXLIB)
@@ -34,22 +34,3 @@
ComplexProgramTarget_1(xli,$(DEFINES) $(LOCAL_LIBRARIES),)
ComplexProgramTarget_2(xlito,,)
-
-install:: $(SYSPATHFILE)
- $(RM) $(BINDIR)/xview $(BINDIR)/xsetbg
- $(LN) $(BINDIR)/xli $(BINDIR)/xview
- $(LN) $(BINDIR)/xli $(BINDIR)/xsetbg
-
-$(SYSPATHFILE):
- @echo "*** Creating default $(SYSPATHFILE) since you"
- @echo "*** don't have one. This file is used to set up default places"
- @echo "*** and names to look for images. You probably want to edit"
- @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" \
- >> $(SYSPATHFILE)
- echo "extension=.gif .jpg .rle .csun .msun .sun .face .xbm .bm" \
- >>$(SYSPATHFILE)
- chmod a+r $(SYSPATHFILE)
-
diff -Nurd -x'~*' xli-1.17.0.orig/rlelib.c xli-1.17.0/rlelib.c
--- xli-1.17.0.orig/rlelib.c 1999-10-24 22:15:03.000000000 -0400
+++ xli-1.17.0/rlelib.c 2005-12-16 12:44:54.000000000 -0500
@@ -12,7 +12,7 @@
*/
#include "xli.h"
-#include
+//#include
#include
#include "rle.h"
diff -Nurd -x'~*' xli-1.17.0.orig/window.c xli-1.17.0/window.c
--- xli-1.17.0.orig/window.c 2000-02-09 04:23:35.000000000 -0500
+++ xli-1.17.0/window.c 2005-12-16 13:41:29.000000000 -0500
@@ -209,7 +209,7 @@
static void setViewportColormap(Display *disp, int scrn, Visual *visual)
{
XSetWindowAttributes swa;
- static cmap_atom = None;
+ static Atom cmap_atom = None;
Window cmap_windows[2];
if (cmap_atom == None)