tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Endian-ness conditional dependencies?



On Fri, 8 Apr 2016, Taylor R Campbell wrote:

> Can't imagine xf86-video-intel making sense on any other architecture.
> (Maybe running X in a non-x86 syscall-emulated VM on an x86 host...but
> if you're doing that you'd better know what you're doing enough to
> work around it.)  I'd just do ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64.

That's fine for the package itself, but its inclusion in
"meta-pkgs/modular-xorg-drivers" will still cause it to break the build
of the meta-package on non-i386, non-x86_64 platforms.

So, the meta-package should have something like:

Index: meta-pkgs/modular-xorg-drivers/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/meta-pkgs/modular-xorg-drivers/Makefile,v
retrieving revision 1.34
diff -u -p -r1.34 Makefile
--- meta-pkgs/modular-xorg-drivers/Makefile	23 Nov 2015 12:48:15 -0000	1.34
+++ meta-pkgs/modular-xorg-drivers/Makefile	8 Apr 2016 03:19:55 -0000
@@ -48,7 +48,9 @@ DEPENDS+=	xf86-video-glint-[0-9]*:../../
 DEPENDS+=	xf86-input-hyperpen-[0-9]*:../../x11/xf86-input-hyperpen
 DEPENDS+=	xf86-video-i128-[0-9]*:../../x11/xf86-video-i128
 DEPENDS+=	xf86-video-i740-[0-9]*:../../x11/xf86-video-i740
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
 DEPENDS+=	xf86-video-intel-[0-9]*:../../x11/xf86-video-intel
+.endif
 .if ${OPSYS} != "SunOS"
 DEPENDS+=	xf86-input-joystick-[0-9]*:../../x11/xf86-input-joystick
 .endif

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index