pkgsrc/graphics/Mesa/Makefile.common
markd 953402e436 Remove some sunos5 BUILD_TARGET's that don't exist (any more).
Also use the pkgsrc BUILD_TARGET for Solaris on x86 - it does a better job
Fixes PR pkg/30581, pkg/30894, pkg/30895, pkg/30684 and pkg/32553.
2006-07-06 12:18:35 +00:00

61 lines
1.5 KiB
Text

# $NetBSD: Makefile.common,v 1.50 2006/07/06 12:18:35 markd Exp $
DISTNAME= MesaLib-${MESA_VERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES+= ${DISTNAME:S/MesaLib/MesaGLUT/}${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
# When changing this version, please update distinfo in graphics/glx-utils
MESA_VERSION= 6.4.2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.mesa3d.org/
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= makedepend
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"
.include "../../mk/x11.buildlink3.mk"
# Mesa has proper support for Solaris and SunPro, use it.
.if ${OPSYS} == "SunOS"
. if ${MACHINE_ARCH} == "sparc"
. if !empty(PKGSRC_COMPILER:Msunpro)
BUILD_TARGET= sunos5
. else
BUILD_TARGET= sunos5-gcc
. endif
. else # i386
BUILD_TARGET= pkgsrc
. endif
.elif ${OPSYS} == "Interix"
BUILD_TARGET= interix3
.else
BUILD_TARGET= pkgsrc
.endif
pre-install:
@if [ -n "${INSTLIBS}" ]; then \
${ECHO_MSG} "Installing libraries."; \
${INSTALL_LIB_DIR} ${PREFIX}/lib; \
for lib in ${INSTLIBS}; do \
${LIBTOOL} --mode=install ${INSTALL_LIB} \
$${lib} ${PREFIX}/lib; \
done; \
fi