Subject: Re: Build problems for liboil on netbsd-macppc
To: None <pkgsrc-users@NetBSD.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: pkgsrc-users
Date: 09/03/2006 23:56:55
Am 03.09.2006 um 14:32 schrieb Marco Righele:

> It seems that while Altivec is detected by configure, it is not  
> enabled during building.
> So I added -maltivec to CFLAGS in /etc/mk.conf. With that, the port  
> builds and install without problems.
> Unfortunately, some other ports that depends on liboil won't work  
> correctly, for example some gstreamer plugins.
>
>

> Any idea on how to fix it ?


you might at least consider to ad a hacks.mk for the package in  
question which could contain something like


.if ${OPSYS} == Darwin && {PKGSRC_COMPILER} == gcc && exists(/usr/bin/ 
machine)
_CPUTYPE!=	/usr/bin/machine
. if "${_CPUTYPE}" == "ppc7400" || "${_CPUTYPE}" == "ppc970" # G4 or G5
PKG_HACKS+=	enable-altivec
CFLAGS+=	-maltivec
. endif
.endif

-- 
Georg Schwarz    http://home.pages.de/~schwarz/
georg.schwarz@freenet.de  +49 178 8545053