65 lines
2.0 KiB
Makefile
65 lines
2.0 KiB
Makefile
# $NetBSD: Makefile.lib,v 1.20 2015/02/14 06:54:14 riastradh 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}
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LANGUAGES= c99 c++
|
|
USE_TOOLS+= automake bison flex gmake pkg-config makedepend
|
|
|
|
PYTHON_FOR_BUILD_ONLY= tool
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # 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
|
|
|
|
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
|
|
# XXX This is not quite enough: we will need to patch the makefile
|
|
# because it bogusly tries to reuse objects for native tools and target
|
|
# libraries, and for cross-compiling the objects need to be built
|
|
# separately. Alternatively, we could just update Mesa to something
|
|
# less prehistoric...
|
|
SUBST_CLASSES+= nativecc
|
|
SUBST_STAGE.nativecc= pre-configure
|
|
SUBST_MESSAGE.nativecc= Fix makefiles to compile tools with native cc.
|
|
SUBST_FILES.nativecc+= src/glsl/Makefile
|
|
SUBST_SED.nativecc+= -e 's,$$(CC),$$(APP_CC),g'
|
|
SUBST_SED.nativecc+= -e 's,$$(CXX),$$(APP_CXX),g'
|
|
MAKE_FLAGS+= APP_CC=${NATIVE_CC:Q}
|
|
MAKE_FLAGS+= APP_CXX=${NATIVE_CXX:Q}
|
|
.endif
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && ${MAKE} configure
|