diff options
Diffstat (limited to 'graphics/libGL/Makefile')
-rw-r--r-- | graphics/libGL/Makefile | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/graphics/libGL/Makefile b/graphics/libGL/Makefile index 17df12b..eb3855e 100644 --- a/graphics/libGL/Makefile +++ b/graphics/libGL/Makefile @@ -1,5 +1,5 @@ # Created by: Eric Anholt <anholt@FreeBSD.org> -# $FreeBSD: head/graphics/libGL/Makefile 354307 2014-05-17 09:56:00Z kwm $ +# $FreeBSD: head/graphics/libGL/Makefile 347435 2014-03-08 00:08:21Z miwi $ PORTNAME= libGL PORTVERSION= ${MESAVERSION} @@ -9,39 +9,30 @@ CATEGORIES= graphics COMMENT= OpenGL library that renders using GLX or DRI LIB_DEPENDS+= libdrm.so:${PORTSDIR}/graphics/libdrm \ + libglapi.so:${PORTSDIR}/graphics/libglapi \ libexpat.so:${PORTSDIR}/textproc/expat2 -USES= pkgconfig -USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto:both +USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto:both \ + presentproto xshmfence SUB_FILES= pkg-install pkg-deinstall .include <bsd.port.options.mk> +.include "${.CURDIR}/bsd.mesalib.mk" -.if defined(WITH_NEW_XORG) -LIBGLREVISION= 1 -LIB_DEPENDS+= libglapi.so:${PORTSDIR}/graphics/libglapi +.if defined(WITH_NEW_MESA) +LIBGLREVISION= 0 .else -LIBGLREVISION= 4 +LIBGLREVISION= 3 .endif -.include "${.CURDIR}/bsd.mesalib.mk" - .if !(${ARCH} == "amd64" || ${ARCH} == "i386") CONFIGURE_ARGS+=--disable-gallium-intel .endif post-install: - ${RM} -f ${STAGEDIR}${PREFIX}/libdata/pkgconfig/dri.pc - ${RM} -rf ${STAGEDIR}${PREFIX}/include/GL/internal -.if defined(WITH_NEW_XORG) @${MKDIR} ${STAGEDIR}${PREFIX}/lib/.libGL @${MV} ${STAGEDIR}${PREFIX}/lib/libGL* \ ${STAGEDIR}${PREFIX}/lib/.libGL/ - ${RM} ${STAGEDIR}${PREFIX}/lib/libglapi* -.else - ${RM} ${STAGEDIR}${PREFIX}/include/GL/glu.h - ${RM} ${STAGEDIR}${PREFIX}/include/GL/glu_mangle.h -.endif .include <bsd.port.mk> |