pkgsrc/graphics/Mesa/Makefile.lib
wiz aa67e11089 Mark packages as not ready for python-3.x where applicable;
either because they themselves are not ready or because a
dependency isn't. This is annotated by
PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of x.y.z
or
PYTHON_VERSIONS_INCOMPATIBLE=  33 # py-foo, py-bar
respectively, please use the same style for other packages,
and check during updates.

Use versioned_dependencies.mk where applicable.
Use REPLACE_PYTHON instead of handcoded alternatives, where applicable.
Reorder Makefile sections into standard order, where applicable.

Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default
with the next commit.

Whitespace cleanups and other nits corrected, where necessary.
2014-01-25 10:29:56 +00:00

50 lines
1.4 KiB
Text

# $NetBSD: Makefile.lib,v 1.17 2014/01/25 10:30:09 wiz Exp $
#
# This Makefile fragment is included by all packages that build libraries
# from the Mesa sources.
#
# used by graphics/glu/Makefile
# used by graphics/glut/Makefile
# used by graphics/MesaDemos/Makefile
# used by graphics/MesaLib/Makefile
.include "../../graphics/Mesa/Makefile.common"
DISTFILES+= MesaLib-${MESA_VERSION}${EXTRACT_SUFX}
DISTFILES+= MesaGLUT-${MESA_VERSION}${EXTRACT_SUFX}
#DISTFILES+= MesaDemos-${MESA_VERSION}${EXTRACT_SUFX}
PKG_INSTALLATION_TYPES= overwrite pkgviews
GNU_CONFIGURE= yes
USE_LANGUAGES= c99 c++
USE_TOOLS+= automake bison flex gmake pkg-config makedepend
PYTHON_FOR_BUILD_ONLY= yes
PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of 7.11.2
.include "../../lang/python/tool.mk"
BUILDLINK_DEPMETHOD.libxml2?= build
.include "../../textproc/libxml2/buildlink3.mk"
PATCHDIR= ${.CURDIR}/../MesaLib/patches
DISTINFO_FILE= ${.CURDIR}/../MesaLib/distinfo
MAKE_ENV+= MAKE=${GMAKE:Q}
CONFIGURE_ARGS+= --with-gallium-drivers=""
CONFIGURE_ARGS+= --disable-gallium-llvm
CONFIGURE_ARGS+= --disable-egl
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mccc)
CFLAGS+= -D__FUNCTION__=__FILE__
.endif
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "MirBSD"
BUILDLINK_TRANSFORM+= rm:-fvisibility=hidden
.endif
pre-configure:
cd ${WRKSRC} && ${MAKE} configure