Here are some patches to get xv to compile under MacOS. Used portage-2.0.51_pre20. Compiled clean using automake and autoconf provided, but when I updated to sys-devel/autoconf-2.59-r4 and sys-devel/automake-1.8.5-r1, I received a number of these type of errors: ld: warning multiple definitions of symbol _jpeg_finish_compress /usr/lib/libjpeg.a(jcapimin.o) definition of _jpeg_finish_compress in section (__TEXT,__text) /usr/lib/libtiff.dylib(jcapimin.o) definition of _jpeg_finish_compress ld: warning multiple definitions of symbol _jpeg_write_m_header /usr/lib/libjpeg.a(jcapimin.o) definition of _jpeg_write_m_header in section (__TEXT,__text) [...] With the macos supplied autoconf and automake, I received none. Tested both software setups above by creating a tiff, png, jpeg and loading them into xv. I manipulated each and saved each. I received one error, saving a tiff file as lzw then attempting to reload, gives me: "test.tif: 0: Invalid strip byte count, strip 0". Under both. Otherwise the package works fine.
Created attachment 38005 [details, diff] patch for ebuild
Created attachment 38006 [details, diff] patch for xv.h
Created attachment 38007 [details, diff] patch for vdcomp.c
Created attachment 38008 [details, diff] patch for Makefile
!!! Relying on the shell to locate gcc, this may break !!! DISTCC, installing gcc-config and setting your current gcc !!! profile will fix this Portage 2.0.51_pre20 (default-macos-10.3, gcc-3.3, libsystem-7.1-r0, 7.5.0 Power Macintosh powerpc) ================================================================= System uname: 7.5.0 Power Macintosh powerpc macos-20040726 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: Headers: Libtools: ACCEPT_KEYWORDS="macos" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -fforce-addr -falign-functions=4" CHOST="powerpc-apple-darwin" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe -fforce-addr -falign-functions=4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache collision-protect cvs" GENTOO_MIRRORS="http://gentoo.osuosl.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="macos gnome jpeg justify lzw-tiff ncurses png spell tiff truetype zlib"
Thanks for the excellent patchset. Sorry this one took so long to get into CVS.
Closing out bugs that've been resolved for a while now...