summaryrefslogtreecommitdiff
path: root/x11/libXt/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-08-01 16:52:48 +0000
committerjoerg <joerg@pkgsrc.org>2007-08-01 16:52:48 +0000
commita8ff984ca319e31db2edebce7a17f33efb8ac45f (patch)
treee68bbf017c4e655f0566099a87aba3103b16cdca /x11/libXt/Makefile
parent177c5b7de6ca1a4bd7d7d0f318fabcf4748d245c (diff)
downloadpkgsrc-a8ff984ca319e31db2edebce7a17f33efb8ac45f.tar.gz
Teach libXt about cross-compiliation:
- add an automake conditional to configure - use that to build xmakestr using manual build rules. X11_CFLAGS is honoured, but not CFLAGS as the latter is likely to contain platform specific flags. - use either makestr or xmakestr for building StringDefs.c, depending on whether we are cross-compiling or not. - pass down native compiler and flags for cross-compiliation Supported-by: Google SoC 2007
Diffstat (limited to 'x11/libXt/Makefile')
-rw-r--r--x11/libXt/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/x11/libXt/Makefile b/x11/libXt/Makefile
index 96a9f168f90..85de6dc5c90 100644
--- a/x11/libXt/Makefile
+++ b/x11/libXt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2007/07/03 13:35:49 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2007/08/01 16:52:48 joerg Exp $
#
DISTNAME= libXt-1.0.5
@@ -27,6 +27,10 @@ PKGCONFIG_OVERRIDE+= xt.pc.in
CONFIGURE_ARGS+= --disable-malloc0returnsnull
.endif
+.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
+MAKE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} CPPFLAGS_FOR_BUILD=-I${PREFIX}/include
+.endif
+
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/kbproto/buildlink3.mk"