From b7efe9439ad0d0f74f48849b133a9f5977bc8d98 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Mon, 27 Dec 2004 17:26:18 +0000 Subject: Finish my previous commit and unbreak xorg-*: * Move the subst macros for threadlib.h from xorg-libs to xorg/Makefile.common. * SUBST_CLASSES should be appended. Thanks to Manuel Stuehn for the email showing me the problems. --- meta-pkgs/xorg/Makefile.common | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'meta-pkgs') diff --git a/meta-pkgs/xorg/Makefile.common b/meta-pkgs/xorg/Makefile.common index 6ee13cc967c..4f83d99ff45 100644 --- a/meta-pkgs/xorg/Makefile.common +++ b/meta-pkgs/xorg/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.13 2004/11/05 02:58:56 xtraeme Exp $ +# $NetBSD: Makefile.common,v 1.14 2004/12/27 17:26:19 xtraeme Exp $ # # XBUILD_DIRS is the group of directories under ${WRKSRC} that will # be built in. @@ -162,6 +162,21 @@ SYSTEMS= FreeBSD NetBSD OpenBSD linux DragonFly .if !defined(NO_XORG_TARGETS) +.if !empty(MACHINE_PLATFORM:MNetBSD-2.[0-9]*) +. if exists(/usr/include/threadlib.h) +SUBST_CLASSES+= thr +SUBST_STAGE.thr= post-patch +SUBST_FILES.thr= config/cf/NetBSD.cf.in +SUBST_SED.thr= -e 's|@@NETBSD_THREADLIB@@|-DUSE_NBSD_THREADLIB|' +SUBST_MESSAGE.thr= "Fixes for threadlib.h." +. else +SUBST_CLASSES+= nada +SUBST_STAGE.nada= post-patch +SUBST_FILES.nada= config/cf/NetBSD.cf.in +SUBST_SED.nada= -e 's|@@NETBSD_THREADLIB@@||' +. endif +.endif + USE_LANGUAGES= c c++ . if !target(post-extract) -- cgit v1.2.3