lesstif stable port information

Package: lesstif
Version: 0.95.0
Epoch: 1
Revision: 1
Source: mirror:sourceforge:lesstif/%n-%v.tar.gz
Source-MD5: 9c9ff519bcaf5c2e013d7992fe5260cd
Source2: http://ftp.debian.org/debian/pool/main/l/lesstif2/lesstif2_0.95.0-2.1.diff.gz
Source2-MD5: 89e1e1823eb37a40a54330a834c68b6b
Depends: %N-shlibs (= %e:%v-%r)
PatchFile: %n.patch
PatchFile-MD5: 3f028612d5153c358cc56cc2e9122170
PatchScript: <<
sed -e 's|@PREFIX@|%p|' < %{PatchFile} | patch -p1
gzcat ../lesstif2_0.95.0-2.1.diff.gz | patch -p1
patch -p1 < ./debian/patches/020_bad_integer_cast.diff
patch -p1 < ./debian/patches/020_missing_xm_h.diff
patch -p1 < ./debian/patches/020_render_table_crash.diff
patch -p1 < ./debian/patches/020_unsigned_int.diff
patch -p1 < ./debian/patches/020_xpmpipethrough.diff
patch -p1 < ./debian/patches/021_xim_chained_list_crash.diff
<<
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
ConfigureParams: --disable-build-12 --disable-build-20 --enable-build-21 --enable-static --enable-production --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
mv %i/man %i/share
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.

Have temporarily added a patch to disable libtool's relinking, until this
problem can be addressed in a better way (DRM, in revision 6 of an old %v).
<<
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
<<
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

lesstif stable port .patch

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
diff -Nurd -x'*~' lesstif-0.95.0.orig/configure lesstif-0.95.0/configure
--- lesstif-0.95.0.orig/configure 2006-06-10 05:35:28.000000000 -0400
+++ lesstif-0.95.0/configure 2008-06-08 03:34:39.000000000 -0400
@@ -2150,7 +2150,7 @@

echo "$as_me:$LINENO: checking where to store autoconf macro files" >&5
echo $ECHO_N "checking where to store autoconf macro files... $ECHO_C" >&6
-ACLOCALDIR=`aclocal --print-ac-dir`
+ACLOCALDIR=@PREFIX@/share/aclocal


if test x$ACLOCALDIR != x ; then
diff -Nurd -x'*~' lesstif-0.95.0.orig/ltmain.sh lesstif-0.95.0/ltmain.sh
--- lesstif-0.95.0.orig/ltmain.sh 2005-08-12 09:54:36.000000000 -0400
+++ lesstif-0.95.0/ltmain.sh 2008-06-08 03:34:39.000000000 -0400
@@ -5362,10 +5362,10 @@

# Directory that this library needs to be installed in:
libdir='$install_libdir'"
- if test "$installed" = no && test "$need_relink" = yes; then
- $echo >> $output "\
-relink_command=\"$relink_command\""
- fi
+# if test "$installed" = no && test "$need_relink" = yes; then
+# $echo >> $output "\
+#relink_command=\"$relink_command\""
+# fi
done
fi

lesstif _unstable_ port information

Package: lesstif
Version: 0.95.0
Epoch: 1
Revision: 1
Source: mirror:sourceforge:lesstif/%n-%v.tar.gz
Source-MD5: 9c9ff519bcaf5c2e013d7992fe5260cd
Source2: http://ftp.debian.org/debian/pool/main/l/lesstif2/lesstif2_0.95.0-2.1.diff.gz
Source2-MD5: 89e1e1823eb37a40a54330a834c68b6b
Depends: %N-shlibs (= %e:%v-%r)
PatchFile: %n.patch
PatchFile-MD5: 3f028612d5153c358cc56cc2e9122170
PatchScript: <<
sed -e 's|@PREFIX@|%p|' < %{PatchFile} | patch -p1
gzcat ../lesstif2_0.95.0-2.1.diff.gz | patch -p1
patch -p1 < ./debian/patches/020_bad_integer_cast.diff
patch -p1 < ./debian/patches/020_missing_xm_h.diff
patch -p1 < ./debian/patches/020_render_table_crash.diff
patch -p1 < ./debian/patches/020_unsigned_int.diff
patch -p1 < ./debian/patches/020_xpmpipethrough.diff
patch -p1 < ./debian/patches/021_xim_chained_list_crash.diff
<<
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
ConfigureParams: --disable-build-12 --disable-build-20 --enable-build-21 --enable-static --enable-production --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
mv %i/man %i/share
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.

Have temporarily added a patch to disable libtool's relinking, until this
problem can be addressed in a better way (DRM, in revision 6 of an old %v).
<<
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
<<
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

lesstif _unstable_ port .patch

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
diff -Nurd -x'*~' lesstif-0.95.0.orig/configure lesstif-0.95.0/configure
--- lesstif-0.95.0.orig/configure 2006-06-10 05:35:28.000000000 -0400
+++ lesstif-0.95.0/configure 2008-06-08 03:34:39.000000000 -0400
@@ -2150,7 +2150,7 @@

echo "$as_me:$LINENO: checking where to store autoconf macro files" >&5
echo $ECHO_N "checking where to store autoconf macro files... $ECHO_C" >&6
-ACLOCALDIR=`aclocal --print-ac-dir`
+ACLOCALDIR=@PREFIX@/share/aclocal


if test x$ACLOCALDIR != x ; then
diff -Nurd -x'*~' lesstif-0.95.0.orig/ltmain.sh lesstif-0.95.0/ltmain.sh
--- lesstif-0.95.0.orig/ltmain.sh 2005-08-12 09:54:36.000000000 -0400
+++ lesstif-0.95.0/ltmain.sh 2008-06-08 03:34:39.000000000 -0400
@@ -5362,10 +5362,10 @@

# Directory that this library needs to be installed in:
libdir='$install_libdir'"
- if test "$installed" = no && test "$need_relink" = yes; then
- $echo >> $output "\
-relink_command=\"$relink_command\""
- fi
+# if test "$installed" = no && test "$need_relink" = yes; then
+# $echo >> $output "\
+#relink_command=\"$relink_command\""
+# fi
done
fi