summaryrefslogtreecommitdiff
path: root/meta-pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'meta-pkgs')
-rw-r--r--meta-pkgs/xorg/Makefile.common17
1 files changed, 16 insertions, 1 deletions
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)