Mercurial > mxe-octave
annotate src/osmesa.mk @ 3825:b6f31861c73e
osmesa:call autoreconf
* src/osmesa.mk: call autoreconf
author | John Donoghue |
---|---|
date | Tue, 03 Mar 2015 13:48:39 -0500 |
parents | f2776007d295 |
children | 6cb1bf4d1ab4 |
rev | line source |
---|---|
3785
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
1 # This file is part of MXE Octave. |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
2 # See index.html for further information. |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
3 |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
4 PKG := osmesa |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_VERSION := 10.2.2 |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
6 $(PKG)_CHECKSUM := 2cc7c5b80fd2ddbf540acf47dbaec68e8cab16a4 |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_SUBDIR := Mesa-$($(PKG)_VERSION) |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_FILE := MesaLib-$($(PKG)_VERSION).tar.bz2 |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
9 $(PKG)_URL := ftp://ftp.freedesktop.org/pub/mesa/current/$($(PKG)_FILE) |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
10 $(PKG)_DEPS := |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
11 |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
13 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
14 echo $($(PKG)_VERSION) |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
15 endef |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
16 |
3790
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
17 ifeq ($(MXE_WINDOWS_BUILD),yes) |
3803 | 18 ifeq ($(ENABLE_WINDOWS_64),yes) |
19 $(PKG)_MACHINE := x86_64 | |
20 else | |
21 $(PKG)_MACHINE := x86 | |
22 endif | |
3790
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
23 define $(PKG)_BUILD |
3803 | 24 cd '$(1)' && scons platform=windows toolchain=crossmingw machine=$($(PKG)_MACHINE) verbose=1 osmesa |
3790
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
25 |
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
26 ## Do the scons config files have useful install targets? |
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
27 $(INSTALL) -d '$(3)$(HOST_INCDIR)/GL'; |
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
28 for f in '$(1)/include/GL/*.h' ; do \ |
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
29 $(INSTALL) -m 644 $$f '$(3)$(HOST_INCDIR)/GL'; \ |
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
30 done |
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
31 $(INSTALL) -d '$(3)$(HOST_BINDIR)'; |
3803 | 32 $(INSTALL) -m 755 '$(1)/build/windows-$($(PKG)_MACHINE)-debug/mesa/drivers/osmesa/osmesa.dll' '$(3)$(HOST_BINDIR)/osmesa.dll'; |
3790
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
33 $(INSTALL) -d '$(3)$(HOST_LIBDIR)'; |
3803 | 34 $(INSTALL) -m 644 '$(1)/build/windows-$($(PKG)_MACHINE)-debug/mesa/drivers/osmesa/libosmesa.a' '$(3)$(HOST_LIBDIR)/libOSMesa.a'; |
3790
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
35 endef |
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
36 else |
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
37 define $(PKG)_BUILD |
3785
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
38 mkdir '$(1)/.build' |
3825 | 39 cd '$(1)' && autoreconf -fi -I m4 |
3788
f6d63f2a2de6
allow osmesa to build; remove it from octave deps for Windows systems
John W. Eaton <jwe@octave.org>
parents:
3787
diff
changeset
|
40 cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \ |
3785
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
41 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
42 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
43 --prefix='$(HOST_PREFIX)' \ |
3790
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
44 --enable-osmesa --disable-dri --disable-egl --disable-xvmc \ |
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
45 --disable-glx --disable-shared-glapi --disable-gallium-llvm \ |
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
46 --with-gallium-drivers="" --with-dri-drivers="" \ |
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
47 --with-egl-platforms="" --enable-texture-float \ |
3785
e1e69acf0bb2
osmesa: added for offscreen rendering with OpenGL toolkits
Andreas Weber <andy.weber.aw@gmail.com>
parents:
diff
changeset
|
48 && $(CONFIGURE_POST_HOOK) |
3787
282bc5054a7f
(incompletely) attempt to make osmesa actually build for Windows
John W. Eaton <jwe@octave.org>
parents:
3785
diff
changeset
|
49 |
282bc5054a7f
(incompletely) attempt to make osmesa actually build for Windows
John W. Eaton <jwe@octave.org>
parents:
3785
diff
changeset
|
50 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)' |
3790
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
51 endef |
a169ad26bac2
use scons to build osmesa on windows systems
John W. Eaton <jwe@octave.org>
parents:
3788
diff
changeset
|
52 endif |