diff options
author | gahr <gahr@FreeBSD.org> | 2013-05-17 15:52:45 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2013-05-17 15:52:45 +0800 |
commit | c0708ec2fcc273cd25b76e29dd6baf6660410040 (patch) | |
tree | f4cbaccaf32fcc3fc905ad91432d0715d503a0a9 | |
parent | af9e691799dced8064536ac6008bbb23679e7015 (diff) | |
download | freebsd-ports-gnome-c0708ec2fcc273cd25b76e29dd6baf6660410040.tar.gz freebsd-ports-gnome-c0708ec2fcc273cd25b76e29dd6baf6660410040.tar.zst freebsd-ports-gnome-c0708ec2fcc273cd25b76e29dd6baf6660410040.zip |
- Update to 9.1.2
- Fix build on < 900014 by depending on gcc 4.6+ [1]
Obtained from: emulators/fceux (r315330) [1]
Reported by: awarecons <awarecons@gmail.com> [1]
-rw-r--r-- | graphics/libosmesa/Makefile | 19 | ||||
-rw-r--r-- | graphics/libosmesa/distinfo | 4 | ||||
-rw-r--r-- | graphics/libosmesa/files/patch-scons_gallium.py | 10 |
3 files changed, 24 insertions, 9 deletions
diff --git a/graphics/libosmesa/Makefile b/graphics/libosmesa/Makefile index 730c4443f0a0..1e7cc7b0459d 100644 --- a/graphics/libosmesa/Makefile +++ b/graphics/libosmesa/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= libosmesa -PORTVERSION= 9.0.2 +PORTVERSION= 9.1.2 CATEGORIES= graphics MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${PORTVERSION}/ DISTNAME= MesaLib-${PORTVERSION} @@ -26,7 +26,12 @@ USE_SCONS= yes SCONS_TARGET= osmesa SCONS_ARGS+= build=release \ verbose=yes -CCFLAGS+= -I${LOCALBASE}/include +SCONS_BUILDENV= CC="${CC}" \ + CXX="${CXX}" \ + CFLAGS="${CFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" \ + CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" MAKE_JOBS_UNSAFE= @@ -34,6 +39,16 @@ WRKSRC= ${WRKDIR}/Mesa-${PORTVERSION} .include <bsd.port.pre.mk> +.if (empty(CC:T:Mgcc4*) && empty(CC:T:Mclang*)) || (empty(CXX:T:Mg??4*) && empty(CXX:T:Mclang++*)) +.if (${OSVERSION} >= 900014) && (exists(/usr/bin/clang++) && exists(/usr/bin/clang)) +CC= /usr/bin/clang +CXX= /usr/bin/clang++ +CPP= /usr/bin/clang-cpp +.else +USE_GCC=4.6+ +.endif +.endif + .if ${ARCH} == "i386" SCONS_ARGS+= machine=x86 SCONS_BUILD_DIR=${WRKSRC}/build/freebsd-x86 diff --git a/graphics/libosmesa/distinfo b/graphics/libosmesa/distinfo index d5c6d91b20c1..50cf4df277ff 100644 --- a/graphics/libosmesa/distinfo +++ b/graphics/libosmesa/distinfo @@ -1,2 +1,2 @@ -SHA256 (MesaLib-9.0.2.tar.bz2) = 75bf31f26c6e7b5515e610c1005fd1be1f7eeb2c9e6859848dab879c355ad64e -SIZE (MesaLib-9.0.2.tar.bz2) = 6132857 +SHA256 (MesaLib-9.1.2.tar.bz2) = 0695115f7a900624db9ade4f5bd32f4b885d9273eed020fb12b7e29a953143db +SIZE (MesaLib-9.1.2.tar.bz2) = 6122642 diff --git a/graphics/libosmesa/files/patch-scons_gallium.py b/graphics/libosmesa/files/patch-scons_gallium.py index 6d9dc0003e66..2a17dae8634f 100644 --- a/graphics/libosmesa/files/patch-scons_gallium.py +++ b/graphics/libosmesa/files/patch-scons_gallium.py @@ -1,5 +1,5 @@ ---- scons/gallium.py.orig 2012-11-09 19:16:31.000000000 +0100 -+++ scons/gallium.py 2013-01-14 17:25:58.000000000 +0100 +--- scons/gallium.py.orig 2013-03-20 00:28:25.000000000 +0100 ++++ scons/gallium.py 2013-05-15 09:37:15.000000000 +0200 @@ -246,11 +246,11 @@ cppdefines += ['PROFILE'] if env['platform'] in ('posix', 'linux', 'freebsd', 'darwin'): @@ -17,7 +17,7 @@ 'HAVE_PTHREAD', 'HAVE_POSIX_MEMALIGN', ] -@@ -499,7 +499,9 @@ +@@ -501,7 +501,9 @@ # Default libs libs = [] if env['platform'] in ('darwin', 'freebsd', 'linux', 'posix', 'sunos'): @@ -25,6 +25,6 @@ + libs += ['m', 'pthread'] + if env['platform'] != 'freebsd': + libs += ['dl'] + if env['platform'] in ('linux',): + libs += ['rt'] env.Append(LIBS = libs) - - # OpenMP |