Package: openmotif3 Version: 2.2.3 Revision: 11 Source: ftp://ftp.ics.com/pub/Products/Motif/om%v/src/openMotif-%v.tar.gz Source-MD5: 94c96a0f94ee0d5e41d3dba2188b263d PatchScript: << patch < %a/%n.patch perl -pi.bak -e 's,need_relink=yes,need_relink=no,g' ltmain.sh perl -pi.bak -e 's,-flat_namespace -undefined suppress,-undefined dynamic_lookup,g' configure perl -pi.bak -e "s;recipient's;recipients;" tools/wml/motif.wml << BuildDepends: x11-dev Depends: x11, %N-shlibs (= %v-%r) Conflicts: lesstif, lesstif-dev Replaces: lesstif, lesstif-dev BuildDependsOnly: True NoSetLDFLAGS: true NoSetCFLAGS: true NoSetCPPFLAGS: True NoSetMAKEFLAGS: true SetCFLAGS: -DXNO_MTSAFE_STRINGAPI -DXNO_MTSAFE_PWDAPI -DXNO_MTSAFE_TIMEAPI SetLIBS: -L/usr/X11R6/lib -lXt SetMAKEFLAGS: -j1 CompileScript: << #!/bin/sh -e export DYLD_LIBRARY_PATH="%b/lib/Xm/.libs/" #without the library path, wmldbcreate can't find %p/lib/libXm.3.dylib ./configure %c make << InstallScript: << make install DESTDIR=%d man1dir=%p/share/man/man1 man3dir=%p/share/man/man3 man4dir=%p/share/man/man4 man5dir=%p/share/man/man5 rm -rf "%i/man" << DocFiles: BUGREPORT COPYRIGHT.MOTIF LICENSE README RELEASE RELNOTES TODO SplitOff: << Package: %N-shlibs Depends: x11 # when lesstif is upgraded to lesstif3 (motif 2.2) this will conflict # Conflicts: lesstif3-shlibs Files: lib/libXm.*.dylib lib/libUil.*.dylib lib/libMrm.*.dylib DocFiles: COPYRIGHT.MOTIF LICENSE Shlibs: << %p/lib/libXm.3.dylib 4.0.0 %n (>= 2.2.2-3) %p/lib/libUil.3.dylib 4.0.0 %n (>= 2.2.2-3) %p/lib/libMrm.3.dylib 4.0.0 %n (>= 2.2.2-3) << << SplitOff2: << Package: %N-bin Depends: %N-shlibs (= %v-%r) Conflicts: lesstif-bin Replaces: lesstif-bin Files: bin share/man/man1 share/man/man4 lib/X11 DocFiles: COPYRIGHT.MOTIF LICENSE << PostInstScript: << update-alternatives --install %p/share/man/man3/Object.3 Object.3 %p/share/man/man3/Object.3.openmotif 65 << PreRmScript: << if [ $1 != "upgrade" ]; then update-alternatives --remove Object.3 %p/share/man/man3/Object.3.openmotif fi << # Description: Official Implementation of OSF/Motif DescDetail: << OpenMotif is a more "official" implementation of Motif. Some apps behave better with openmotif, but lesstif's license is less restrictive. OpenMotif 2.2.3 is considered a stable release. << DescUsage: << Source users must 'fink remove lesstif' before building this package. 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). << DescPackaging: << This package provides version 2.2 of the motif API. (libraries versioned "3") Thus, it will not conflict with lesstif-shlibs until lesstif is upgraded to v3 libs. man pages that conflict with other packages are managed with update-alternatives. Restrictive license only allows openmotif to be used with open-source operating systems. OSX is considered one of these, so binary distribution is allowed. Package rev 2: removed force_flat_namespace and added X11 CPP flag to prevent possible build failure. Version bumped due to namespace change. Package rev 3: Remove that X11 include directory as it causes problems in apps that link Xm. Binary distribution is OK, confirmed with message from openmotif. << License: Restrictive/Distributable Homepage: http://www.opengroup.org/openmotif/ Maintainer: Ben Hines