On Wed, Nov 15, 2000 at 12:30:53PM -0500, Adam C Powell IV wrote:
> Hello,
> 
> I have a package which depends on atlas-dev for non-PPC, and lapack-dev
> for PPC, (atlas doesn't build on PPC because of a compiler bug).
> 
> I noticed that freeamp has arches in Build-Depends, e.g. nasm [i386],
> but putting this in Depends: for a binary package results in an error.
> 
> Is there any way I can do this?

You'll probably need to generate the depends at build-time. Something like
this:

ifeq($(DEB_BUILD_ARCH),powerpc)
        dh_gencontrol -p<pkg> -- -DDepends="lapack-dev"
else
        dh_gencontrol -p<pkg> -- -DDepends="atlas-dev"
endif

Then just ommit this dep from the control file, and it will be added at
build-time.

Ben

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'

Reply via email to