pkgsrc/graphics/Mesa/Makefile.common
grant c98b0f7011 Mesa has optimisations for SunPro so use them when SPARC_TARGET_ARCH
is set appropriately (sparcv7, sparcv8, sparcv9).
2004-10-27 10:30:38 +00:00

54 lines
1.3 KiB
Text

# $NetBSD: Makefile.common,v 1.33 2004/10/27 10:30:38 grant Exp $
DISTNAME= MesaLib-${MESA_VERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES+= ${DISTNAME:S/MesaLib/MesaDemos/}${EXTRACT_SUFX}
WRKSRC= ${WRKDIR}/${DISTNAME:S/Lib//}
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mesa3d/}
EXTRACT_SUFX= .tar.bz2
MESA_VERSION= 6.2
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.mesa3d.org/
USE_LIBTOOL= yes
USE_X11= yes
BUILDING_MESA= yes
NO_CONFIGURE= yes
DIST_SUBDIR= Mesa-${MESA_VERSION}
PATCHDIR?= ${.CURDIR}/../MesaLib/patches
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."; \
for lib in ${INSTLIBS}; do \
${LIBTOOL} --mode=install ${INSTALL_LIB} \
$${lib} ${PREFIX}/lib; \
done; \
fi