diff options
Diffstat (limited to 'graphics/libGL/bsd.mesalib.mk')
-rw-r--r-- | graphics/libGL/bsd.mesalib.mk | 50 |
1 files changed, 18 insertions, 32 deletions
diff --git a/graphics/libGL/bsd.mesalib.mk b/graphics/libGL/bsd.mesalib.mk index d163e5a7dae7..6ccc9378f272 100644 --- a/graphics/libGL/bsd.mesalib.mk +++ b/graphics/libGL/bsd.mesalib.mk @@ -11,11 +11,9 @@ # # - graphics/libGL # - graphics/libGLU -# - graphics/libGLw # - graphics/dri # # $FreeBSD$ -# .MAKE.FreeBSD_UL= yes @@ -23,7 +21,7 @@ MESAVERSION= ${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/} MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/} .if defined(WITH_NEW_XORG) -MESABASEVERSION= 7.11.2 +MESABASEVERSION= 8.0.5 # if there is a subversion, include the '-' between 7.11-rc2 for example. MESASUBVERSION= PLIST_SUB+= OLD="@comment " NEW="" @@ -33,8 +31,8 @@ MESASUBVERSION= PLIST_SUB+= OLD="" NEW="@comment " .endif -MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${MESABASEVERSION}/:mesa,glut -DISTFILES= MesaLib-${MESADISTVERSION}${EXTRACT_SUFX}:mesa +MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${MESABASEVERSION}/ +DISTFILES= MesaLib-${MESADISTVERSION}${EXTRACT_SUFX} MAINTAINER?= x11@FreeBSD.org BUILD_DEPENDS+= makedepend:${PORTSDIR}/devel/makedepend \ @@ -46,22 +44,19 @@ USE_BZIP2= yes USE_GMAKE= yes USE_LDCONFIG= yes GNU_CONFIGURE= yes -MAKE_JOBS_UNSAFE= yes +MAKE_JOBS_SAFE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS+=--enable-gallium-llvm=no --without-gallium-drivers \ - --disable-egl --disable-glut + --disable-egl .if defined(WITH_NEW_XORG) EXTRA_PATCHES+= ${PATCHDIR}/extra-configure \ - ${PATCHDIR}/extra-mach64_context.h \ - ${PATCHDIR}/extra-sis_context.h \ ${PATCHDIR}/extra-src-glsl_ir_constant_expression.cpp \ ${PATCHDIR}/extra-src__gallium__include__pipe__p_config.h \ ${PATCHDIR}/extra-src__mesa__drivers__dri__nouveau__nouveau_array.c \ - ${PATCHDIR}/extra-src__mesa__drivers__dri__nouveau__nouveau_render_t.c \ - ${PATCHDIR}/extra-src__mesa__drivers__dri__radeon__radeon_span.c + ${PATCHDIR}/extra-src__mesa__drivers__dri__nouveau__nouveau_render_t.c .else EXTRA_PATCHES+= ${PATCHDIR}/extra-configure-old \ ${PATCHDIR}/extra-mach64_context.h-old \ @@ -69,12 +64,16 @@ EXTRA_PATCHES+= ${PATCHDIR}/extra-configure-old \ ${PATCHDIR}/extra-src__mesa__x86-64__xform4.S \ ${PATCHDIR}/extra-src__mesa__x86__glapi_x86.S \ ${PATCHDIR}/extra-src__mesa__x86__read_rgba_span_x86.S +CONFIGURE_ARGS+=--disable-glut --disable-glw .endif ALL_TARGET= default -PATCHDIR= ${.CURDIR}/../../graphics/libGL/files -WRKSRC= ${WRKDIR}/Mesa-${MESABASEVERSION}${MESASUBVERSION} +MASTERDIR= ${.CURDIR}/../../graphics/libGL +PATCHDIR= ${MASTERDIR}/files +DESCR= ${.CURDIR}/pkg-descr +PLIST= ${.CURDIR}/pkg-plist +WRKSRC= ${WRKDIR}/Mesa-${MESADISTVERSION} .if !defined(ARCH) ARCH!= uname -p @@ -86,38 +85,25 @@ COMPONENT= ${PORTNAME:L:C/^lib//:C/mesa-//} CONFIGURE_ARGS+= --disable-glu .endif -.if ${COMPONENT:Mglw} == "" -CONFIGURE_ARGS+= --disable-glw -.else -CONFIGURE_ARGS+= --enable-motif -.endif - .if ${COMPONENT:Mdri} == "" CONFIGURE_ARGS+= --with-dri-drivers=no +.else +CONFIGURE_ARGS+= --with-dri-drivers="i915,i965,r200,radeon,swrast" .endif +.if !defined(WITH_NEW_XORG) .if defined(WITHOUT_XCB) CONFIGURE_ARGS+= --disable-xcb .else CONFIGURE_ARGS+= --enable-xcb .endif +.endif post-patch: @${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \ - -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure + ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|[$$](INSTALL_LIB_DIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ ${WRKSRC}/src/glu/Makefile \ - ${WRKSRC}/src/glw/Makefile \ ${WRKSRC}/src/mesa/Makefile \ ${WRKSRC}/src/mesa/drivers/dri/Makefile -.if defined(WITH_NEW_XORG) -# replace hardlinks with patched radeon_span.c -.for i in r200 r300 r600 - @${CP} -fp ${WRKSRC}/src/mesa/drivers/dri/radeon/radeon_span.c \ - ${WRKSRC}/src/mesa/drivers/dri/${i}/ -.endfor -.endif -.if ${COMPONENT:Mglut} != "" - @${REINPLACE_CMD} -e 's|[$$](INSTALL_LIB_DIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ - ${WRKSRC}/src/glut/glx/Makefile -.endif + |