1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/graphics/libosmesa/Makefile
2014-01-22 14:20:41 +00:00

60 lines
1.7 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= libosmesa
PORTVERSION= 10.0.2
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${PORTVERSION}/
DISTNAME= MesaLib-${PORTVERSION}
MAINTAINER= gahr@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
USES+= gmake pkgconfig compiler:c11
USE_BZIP2= yes
USE_LDCONFIG= yes
USE_PYTHON= 2
USE_XORG= x11 xext
USE_AUTOTOOLS= autoconf automake libtool
GNU_CONFIGURE= yes
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
.include <bsd.port.pre.mk>
INCLUDES= gl.h gl_mangle.h glext.h glx.h glx_mangle.h \
glxext.h osmesa.h wglext.h wmesa.h
post-patch:
${REINPLACE_CMD} \
-e '/^OSMESA_VERSION=/s|8|9|' \
-e 's|-fno-builtin-memcmp||g' \
${WRKSRC}/configure.ac
pre-configure:
# following line is borrowed from graphics/libGL/bsd.mesalib.mk
cd ${WRKSRC} && ${SETENV} NOCONFIGURE=1 ${SH} autogen.sh
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_DATA} ${WRKSRC}/src/mesa/drivers/osmesa/.libs/libOSMesa.so.9 ${STAGEDIR}${PREFIX}/lib/
${LN} -s libOSMesa.so.9 ${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>