the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: lesstif
Version: 0.95.2
Epoch: 1
Revision: 4
Source: mirror:sourceforge:lesstif/%n-%v.tar.gz
Source-MD5: f81c3fec2f14df8463e36601188181df
Depends: %N-shlibs (= %e:%v-%r)
PatchFile: %n.patch
PatchFile-MD5: 773d2a386320d97dfacca3d2adb6595a
PatchScript: <<
sed -e 's|@PREFIX@|%p|' < %{PatchFile} | patch -p1
<<
BuildDepends: x11-dev, fink (>= 0.24.12-1)
Replaces: lesstif-bin (<< 1:0.95.0-1), lesstif-dev, openmotif3, openmotif4
Conflicts: openmotif3, openmotif4
BuildDependsOnly: True
NoSetLDFLAGS: true
SetLDFLAGS: -L/usr/X11R6/lib
ConfigureParams: <<
--disable-build-12 \
--disable-build-20 \
--enable-build-21 \
--enable-static \
--enable-production \
--with-freetype-config=/usr/X11R6/bin/freetype-config \
--with-fontconfig_lib=/usr/X11R6/lib \
--x-includes=/usr/X11R6/include \
--x-libraries=/usr/X11R6/lib
<<
InstallScript: <<
make install DESTDIR=%d
mkdir -p %i/share/doc/%n
mv %i/LessTif/doc %i/share/doc/%n
rm -R %i/LessTif
rm %i/share/man/man1/ltversion.1
<<
SplitOff: <<
Package: %N-shlibs
Depends: x11
Replaces: %N (<= 0.93.18-4)
Files: lib/libMrm.*.dylib lib/libUil.*.dylib lib/libXm.*.dylib lib/libDtPrint.*.dylib
Shlibs: <<
%p/lib/libDtPrint.1.dylib 2.0.0 %n (>= 0.93.18-1)
%p/lib/libMrm.2.dylib 3.0.0 %n (>= 0.93.18-1)
%p/lib/libUil.2.dylib 3.0.0 %n (>= 0.93.18-1)
%p/lib/libXm.2.dylib 3.0.0 %n (>= 0.93.18-1)
<<
DocFiles: AUTHORS BUG-REPORTING COPYING COPYING.LIB CREDITS FAQ README NEWS ReleaseNotes.txt
<<
SplitOff2: <<
Package: %N-bin
Depends: %N-shlibs (= %e:%v-%r), app-defaults
Replaces: %N (<= 0.93.18-4), openmotif3-bin, openmotif4-bin
Conflicts: openmotif3-bin, openmotif4-bin
Files: <<
bin/mwm bin/uil bin/xmbind
share/man/man1 share/man/man5
lib/X11
etc
share/doc/%N/doc
<<
DocFiles: AUTHORS BUG-REPORTING COPYING COPYING.LIB CREDITS FAQ README ReleaseNotes.txt
<<
DocFiles: AUTHORS BUG-REPORTING COPYING COPYING.LIB CREDITS FAQ README ReleaseNotes.txt
PostInstScript: <<
update-alternatives --install %p/share/man/man3/Object.3 Object.3 %p/share/man/man3/Object.3.lesstif 70
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
update-alternatives --remove Object.3 %p/share/man/man3/Object.3.lesstif
fi
<<
#
Description: Free implementation of OSF/Motif
DescPort: <<
Lesstif 0.95.0 only builds Motif v2.1 libraries now.
<<
DescPackaging: <<
man pages that conflict with other packages are managed
with update-alternatives.
Previous versions by Christoph Pfisterer.
Patch configure to avoid requiring %p/share/aclocal being +w for build user
or having fink's aclocal present
Patch to place xrdb file in fink-standard location.
Some build-time tools (motif-util mxmkmf) moved %N-bin -> %N as of
1:0.95.0-1
ltversion doesn't exist, so nuke its manpage
make sure we only link against the freetype library provided by the
system's X11, and not the one provided by Fink (if present).
<<
DescUsage: <<
Clients which link both libXm and libXt from XFree86 >= 4.2 should
use the -force_flat_namespace linker flag (to avoid errors of the
form "Error: attempt to add non-widget child .. " upon launch).
<<
License: GPL/LGPL
Homepage: http://www.lesstif.org/
Maintainer: None
diff -Nurd -x'*~' lesstif-0.95.0.orig/clients/Motif-2.1/mwm/Makefile.in lesstif-0.95.0/clients/Motif-2.1/mwm/Makefile.in
--- lesstif-0.95.0.orig/clients/Motif-2.1/mwm/Makefile.in 2006-06-10 05:35:34.000000000 -0400
+++ lesstif-0.95.0/clients/Motif-2.1/mwm/Makefile.in 2008-06-08 03:35:38.000000000 -0400
@@ -300,7 +300,7 @@
LDADD = ../../../lib/Xm-2.1/libXm.la \
$(X_LIBS) $(XPLIB) -lXt $(X_PRE_LIBS) -lXext -lX11 $(X_EXTRA_LIBS)
-appdir = $(libdir)/X11/app-defaults
+appdir = $(prefix)/etc/app-defaults
mwmddir = $(libdir)/X11/mwm
mwmd_DATA = system.mwmrc alt.map README
AM_YFLAGS = -d
--- lesstif-0.95.2/configure.orig 2009-05-27 10:07:59.000000000 -0400
+++ lesstif-0.95.2/configure 2009-07-08 19:39:47.000000000 -0400
@@ -2837,7 +2837,7 @@
{ $as_echo "$as_me:$LINENO: checking where to store autoconf macro files" >&5
$as_echo_n "checking where to store autoconf macro files... " >&6; }
-ACLOCALDIR=`aclocal --print-ac-dir`
+ACLOCALDIR=@PREFIX@/share/aclocal
if test x$ACLOCALDIR != x ; then
@@ -20056,9 +20056,9 @@
esac
saved_LIBS="$LIBS"
-LIBS="$LIBS $freetype_lib"
+LIBS="$freetype_lib $LIBS"
saved_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
+CPPFLAGS="$FREETYPE_CFLAGS $CPPFLAGS"
for ac_header in freetype/freetype.h
do
--- lesstif2-0.94.4.orig/include/Motif-2.1/Xm/XmStrDefs.h
+++ lesstif2-0.94.4/include/Motif-2.1/Xm/XmStrDefs.h
@@ -28,6 +28,8 @@
#include
+#include
+
#ifdef __cplusplus
extern "C" {
#endif
--- lesstif2-0.95.0.orig/lib/Xm-2.1/RenderTable.c
+++ lesstif2-0.95.0/lib/Xm-2.1/RenderTable.c
@@ -465,7 +465,7 @@
DEBUGOUT(_LtDebug(__FILE__, w, "_XmRenderTableFinaliseTag(%s)\n", tag));
#if 1
/* Experimental start */
- if (r->dpy == 0)
+ if (r->dpy == 0 && w)
r->dpy = XtDisplay(w);
/* Experimental end */
#endif
--- lesstif-0.95.2/lib/Xm-2.1/CutPaste.c.org 2009-08-27 21:44:12.000000000 -0400
+++ lesstif-0.95.2/lib/Xm-2.1/CutPaste.c 2009-08-27 21:45:25.000000000 -0400
@@ -1028,9 +1028,11 @@
/* XChangeProperty expects a buffer of longs when receiving 32 bits
data, MEUHH */
if (sizeof(long) != 4)
+ {
convert_buf = XtMalloc(len * sizeof(long));
for (i = 0; i < len; i++)
convert_buf[i] = data[i];
+ }
break;
case 16:
--- lesstif-0.95.2/lib/Xm-2.1/XmString.c.org 2009-08-29 16:58:59.000000000 -0400
+++ lesstif-0.95.2/lib/Xm-2.1/XmString.c 2009-08-29 17:00:48.000000000 -0400
@@ -5481,7 +5481,7 @@
XtPointer *value)
{
_XmWarning(NULL, "XmStringGetNextTriple() is not implemented yet!\n");
- return (XmStringComponentType)NULL;
+ return (XmStringComponentType)(uintptr_t)NULL;
}
@@ -5517,7 +5517,7 @@
str->components[0]->type = XmSTRING_COMPONENT_DIRECTION;
str->components[0]->length = 0;
str->components[0]->data = XtMalloc(sizeof(int));
- str->components[0]->data[0] = (int)value;
+ str->components[0]->data[0] = (int)(uintptr_t)value;
r = _XmStringCreateExternal(NULL, str);
_XmStringFree(str);
return r;