diff options
author | grant <grant> | 2004-10-27 10:30:38 +0000 |
---|---|---|
committer | grant <grant> | 2004-10-27 10:30:38 +0000 |
commit | 0eaa1d1984a0f021992a4667bdd2127c06e897f4 (patch) | |
tree | 30e3dbdca0d936c531308e5402e16c9b33c7aae7 /graphics/Mesa | |
parent | 6d4650e70d4abba3a8cc111fbff0634faeff2094 (diff) | |
download | pkgsrc-0eaa1d1984a0f021992a4667bdd2127c06e897f4.tar.gz |
Mesa has optimisations for SunPro so use them when SPARC_TARGET_ARCH
is set appropriately (sparcv7, sparcv8, sparcv9).
Diffstat (limited to 'graphics/Mesa')
-rw-r--r-- | graphics/Mesa/Makefile.common | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/graphics/Mesa/Makefile.common b/graphics/Mesa/Makefile.common index 56d75439451..852ccd50e41 100644 --- a/graphics/Mesa/Makefile.common +++ b/graphics/Mesa/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.32 2004/10/26 13:55:17 adam Exp $ +# $NetBSD: Makefile.common,v 1.33 2004/10/27 10:30:38 grant Exp $ DISTNAME= MesaLib-${MESA_VERSION} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} @@ -13,7 +13,6 @@ MESA_VERSION= 6.2 MAINTAINER= tech-pkg@NetBSD.org HOMEPAGE= http://www.mesa3d.org/ -ALL_TARGET= pkgsrc USE_LIBTOOL= yes USE_X11= yes @@ -25,6 +24,26 @@ DISTINFO_FILE?= ${.CURDIR}/../MesaLib/distinfo INSTALLATION_DIRS+= lib +.include "../../mk/compiler.mk" +.include "../../mk/bsd.prefs.mk" + +# Mesa has proper support for Solaris and SunPro, use it. +.if ${OPSYS} == "SunOS" +. if !empty(CC_VERSION:MSun) +. if ${SPARC_TARGET_ARCH} == "sparcv7" +ALL_TARGET= sunos5 +. elif ${SPARC_TARGET_ARCH} == "sparcv8" +ALL_TARGET= sunos5-v8 +. elif ${SPARC_TARGET_ARCH} == "sparcv9" +ALL_TARGET= sunos5-v9 +. endif +. else +ALL_TARGET= sunos5-gcc +. endif +.else +ALL_TARGET= pkgsrc +.endif + pre-install: @if [ -n "${INSTLIBS}" ]; then \ ${ECHO_MSG} "Installing libraries."; \ |