freebsd-ports/graphics/libosmesa/Makefile
Koop Mast 89e3f88888 Mark libosmesa broken on 11-i386 for now. This should stop
the fallout mail. We have a fix for the build
issue but the fix depends on other changes to the mesa ports.
This mesa update will be commit after 8.4-R has gone EOL.
2015-06-04 11:04:27 +00:00

60 lines
1.8 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= libosmesa
PORTVERSION= 10.2.7
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${PORTVERSION}/
DISTNAME= MesaLib-${PORTVERSION}
MAINTAINER= x11@FreeBSD.org
COMMENT= Off-Screen Mesa implementation of the OpenGL API
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2 \
${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
USES= bison gmake pkgconfig tar:bzip2 libtool python:2
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= ac_cv_prog_YACC=${LOCALBASE}/bin/bison \
ac_cv_prog_LEX=${LOCALBASE}/bin/flex
CONFIGURE_ARGS+=--enable-osmesa \
--disable-driglx-direct \
--disable-gallium-llvm \
--disable-glx \
--disable-dri \
--disable-egl \
--with-gallium-drivers=swrast
CFLAGS+= -I${LOCALBASE}/include
WRKSRC= ${WRKDIR}/Mesa-${PORTVERSION}
MAKE_JOBS_UNSAFE=yes
INCLUDES= gl.h gl_mangle.h glext.h glx.h glx_mangle.h \
glxext.h osmesa.h wglext.h wmesa.h
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1100000 && ${ARCH} == i386
BROKEN= Doesn't build
.endif
post-patch:
${REINPLACE_CMD} \
-e '/^OSMESA_VERSION=/s|8|9|' \
-e 's|-fno-builtin-memcmp||g' \
${WRKSRC}/configure
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/Mesa/GL
.for inc in ${INCLUDES}
${INSTALL_DATA} ${WRKSRC}/include/GL/${inc} ${STAGEDIR}${PREFIX}/include/Mesa/GL/
.endfor
${INSTALL_LIB} ${WRKSRC}/src/mesa/drivers/osmesa/.libs/libOSMesa.so.9.0.0 ${STAGEDIR}${PREFIX}/lib
${LN} -s libOSMesa.so.9.0.0 ${STAGEDIR}${PREFIX}/lib/libOSMesa.so.9
${LN} -s libOSMesa.so.9.0.0 ${STAGEDIR}${PREFIX}/lib/libOSMesa.so
${INSTALL_DATA} ${WRKSRC}/src/mesa/drivers/osmesa/osmesa.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/osmesa.pc
.include <bsd.port.post.mk>