Subject: pkg/4998: xanim package - all the world is not an i386
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/15/1998 17:09:47
>Number:         4998
>Category:       pkg
>Synopsis:       xanim package - all the world is not an i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 15 17:20:01 1998
>Originator:     David Brownlee
<a href="">Monochrome</a>
>Release:        1.3
System: NetBSD 1.3 NetBSD 1.3 (_LAPTON_) #0: Fri Jan 9 11:10:00 PST 1998 i386

	The xanim package's Makefile will download the cvid, iv32, and cyuv
	files for sparc and m68k, but the Imakefile will only link against
	the i386 version.

	Try to compile xanim on NetBSD/sparc.
	The following works on NetBSD/sparc and NetBSD/i386. 
	It disables the cvid, iv32, and cyuv code on non i386/sparc/m68k
	platforms so should also allow the removal of:

		ONLY_FOR_ARCHS= i386 m68k sparc

	from the package Makefile.

--- Imakefile.orig	Sun Feb 15 16:07:35 1998
+++ Imakefile	Sun Feb 15 16:14:45 1998
@@ -95,9 +95,23 @@
+.if (${MACHINE_ARCH} == "i386")
 XA_IV32_LIB = xa2.0_cvid_netbsd386.o
 XA_CVID_LIB = xa2.0_iv32_netbsd386.o
 XA_CYUV_LIB = xa1.0_cyuv_netbsd386.o
+.elif (${MACHINE_ARCH} == "m68k")
+XA_IV32_LIB = xa2.0_cvid_netbsd68k.o
+XA_CVID_LIB = xa2.0_iv32_netbsd68k.o
+XA_CYUV_LIB = xa1.0_cyuv_netbsd68k.o
+.elif (${MACHINE_ARCH} == "sparc")
+XA_IV32_LIB = xa2.0_cvid_sparcCOFF.o
+XA_CVID_LIB = xa2.0_iv32_sparcCOFF.o
+XA_CYUV_LIB = xa1.0_cyuv_sparcAOUT.o
+XA_IV32_DEF =
 XCOMM -- NOTE: SGI Machines only: if you see an error like
 XCOMM --               "merge_ext returns nil during relocation" or similiar