diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-12-27 17:26:18 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-12-27 17:26:18 +0000 |
commit | b7efe9439ad0d0f74f48849b133a9f5977bc8d98 (patch) | |
tree | f789340d9554a8086c8aca00793eae82f59b1a70 /x11/xorg-imake/Makefile | |
parent | 62a21550ca5e1aac446556431c6731e0332b060f (diff) | |
download | pkgsrc-b7efe9439ad0d0f74f48849b133a9f5977bc8d98.tar.gz |
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 <manuel.stuehn@student.uni-siegen.de> for
the email showing me the problems.
Diffstat (limited to 'x11/xorg-imake/Makefile')
-rw-r--r-- | x11/xorg-imake/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/x11/xorg-imake/Makefile b/x11/xorg-imake/Makefile index 90695ccea3c..f753f2203f4 100644 --- a/x11/xorg-imake/Makefile +++ b/x11/xorg-imake/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2004/11/01 23:41:58 xtraeme Exp $ +# $NetBSD: Makefile,v 1.11 2004/12/27 17:26:18 xtraeme Exp $ DISTNAME= ${DISTFILES} PKGNAME= xorg-imake-${XORG_VER} @@ -90,4 +90,19 @@ post-install: ${ECHO} "#endif"; \ ) >> ${X11ROOT}/lib/X11/config/host.def +.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 + .include "../../mk/bsd.pkg.mk" |