pkgsrc/x11/libXt/Makefile
joerg 18d8a92000 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
2007-08-01 16:52:48 +00:00

39 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2007/08/01 16:52:48 joerg Exp $
#
DISTNAME= libXt-1.0.5
CATEGORIES= x11 devel
MASTER_SITES= http://xorg.freedesktop.org/releases/individual/lib/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= http://xorg.freedesktop.org/
COMMENT= X Toolkit Intrinsics library
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
CONFIGURE_ARGS+= --with-appdefaultdir=${PREFIX}/lib/X11/app-defaults
CONFIGURE_ENV+= APP_MAN_SUFFIX=1 LIB_MAN_SUFFIX=3
PKGCONFIG_OVERRIDE+= xt.pc.in
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
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"
.include "../../x11/xproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"