92ea0d614b
an zeising, kwm, miwi, bapt, eadler production: Xorg 7.7 Starring: xserver 1.12.4 (new xorg only) Mesa 8.0.4, including libGL, libGLU and dri (new xorg only) libX11 1.5.0 libxcb 1.9 libdrm 2.4.42 (new xorg only) freeglut 2.8.1 Also starring: Updates to drivers and other libraries and utilities Additional notes: Change pkgconf to be a build dependency. Add a new USE_XORG, xcb, to depend on libxcb and update all ports to use this. Trim makefile headers. Take maintanership of x11/xcb-proto, ok'd by ashish. If you are running WITH_NEW_XORG=, you need to rebuild all installed drivers, see UPDATING for more information. Various fixes to make ports compile. PR: ports/177942 Exp-run by: miwi Approved by: portmgr (miwi) Thanks to all who helped testing!
109 lines
2.9 KiB
Makefile
109 lines
2.9 KiB
Makefile
#-*- mode: Fundamental; tab-width: 4; -*-
|
|
# ex:ts=4
|
|
#
|
|
# bsd.mesa.mk - an attempt to refactor MesaLib ports.
|
|
#
|
|
# Created by: Florent Thoumie <flz@FreeBSD.org>
|
|
#
|
|
# !!! Here be dragons !!! (they seem to be everywhere these days)
|
|
#
|
|
# Remember to upgrade the following ports everytime you bump MESAVERSION:
|
|
#
|
|
# - graphics/libGL
|
|
# - graphics/libGLU
|
|
# - graphics/dri
|
|
#
|
|
# $FreeBSD$
|
|
|
|
.MAKE.FreeBSD_UL= yes
|
|
|
|
MESAVERSION= ${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/}
|
|
MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/}
|
|
|
|
.if defined(WITH_NEW_XORG)
|
|
MESABASEVERSION= 8.0.5
|
|
# if there is a subversion, include the '-' between 7.11-rc2 for example.
|
|
MESASUBVERSION=
|
|
PLIST_SUB+= OLD="@comment " NEW=""
|
|
.else
|
|
MESABASEVERSION= 7.6.1
|
|
MESASUBVERSION=
|
|
PLIST_SUB+= OLD="" NEW="@comment "
|
|
.endif
|
|
|
|
MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${MESABASEVERSION}/
|
|
DISTFILES= MesaLib-${MESADISTVERSION}${EXTRACT_SUFX}
|
|
MAINTAINER?= x11@FreeBSD.org
|
|
|
|
BUILD_DEPENDS+= makedepend:${PORTSDIR}/devel/makedepend \
|
|
${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2
|
|
|
|
USES= bison
|
|
USE_PYTHON_BUILD=yes
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_ARGS+=--enable-gallium-llvm=no --without-gallium-drivers \
|
|
--disable-egl
|
|
|
|
.if defined(WITH_NEW_XORG)
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-configure \
|
|
${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
|
|
.else
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-configure-old \
|
|
${PATCHDIR}/extra-mach64_context.h-old \
|
|
${PATCHDIR}/extra-src__mesa__x86-64__glapi_x86-64.S \
|
|
${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
|
|
|
|
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
|
|
.endif
|
|
|
|
COMPONENT= ${PORTNAME:L:C/^lib//:C/mesa-//}
|
|
|
|
.if ${COMPONENT:Mglu} == ""
|
|
CONFIGURE_ARGS+= --disable-glu
|
|
.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|' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|[$$](INSTALL_LIB_DIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
|
|
${WRKSRC}/src/glu/Makefile \
|
|
${WRKSRC}/src/mesa/Makefile \
|
|
${WRKSRC}/src/mesa/drivers/dri/Makefile
|
|
|