Mercurial > mxe-octave
comparison src/freeglut.mk @ 6191:dba78afaaad1
glut: Update to v3.2.1
* src/freeglut.mk: update version, checksum, build with cmake
* src/freeglut-1-fixes.patch: update patch
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 30 Apr 2022 08:03:45 -0400 |
parents | 13be64f9f16d |
children | f08da4fc56d6 |
comparison
equal
deleted
inserted
replaced
6189:4fcf129648a7 | 6191:dba78afaaad1 |
---|---|
1 # This file is part of MXE. | 1 # This file is part of MXE. |
2 # See index.html for further information. | 2 # See index.html for further information. |
3 | 3 |
4 PKG := freeglut | 4 PKG := freeglut |
5 $(PKG)_IGNORE := | 5 $(PKG)_IGNORE := |
6 $(PKG)_VERSION := 2.8.0 | 6 $(PKG)_VERSION := 3.2.1 |
7 $(PKG)_CHECKSUM := 4debbe559c6c9841ce1abaddc9d461d17c6083b1 | 7 $(PKG)_CHECKSUM := 7a62e0d2caad92ff745bc5037592b2753f0b2f20 |
8 $(PKG)_SUBDIR := freeglut-$(word 1,$(subst -, ,$($(PKG)_VERSION))) | 8 $(PKG)_SUBDIR := freeglut-$(word 1,$(subst -, ,$($(PKG)_VERSION))) |
9 $(PKG)_FILE := freeglut-$($(PKG)_VERSION).tar.gz | 9 $(PKG)_FILE := freeglut-$($(PKG)_VERSION).tar.gz |
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/freeglut/freeglut/$($(PKG)_VERSION)/$($(PKG)_FILE) | 10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/freeglut/freeglut/$($(PKG)_VERSION)/$($(PKG)_FILE) |
11 $(PKG)_DEPS := | 11 $(PKG)_DEPS := mesa |
12 | |
13 $(PKG)_CMAKE_FLAGS := | |
12 | 14 |
13 define $(PKG)_UPDATE | 15 define $(PKG)_UPDATE |
14 $(WGET) -q -O- 'http://sourceforge.net/projects/freeglut/files/freeglut/' | \ | 16 $(WGET) -q -O- 'http://sourceforge.net/projects/freeglut/files/freeglut/' | \ |
15 $(SED) -n 's,.*freeglut-\([0-9][^>]*\)\.tar.*,\1,p' | \ | 17 $(SED) -n 's,.*freeglut-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
16 head -1 | 18 head -1 |
17 endef | 19 endef |
18 | 20 |
19 define $(PKG)_BUILD | 21 define $(PKG)_BUILD |
20 cd '$(1)' && ./autogen.sh | 22 mkdir '$(1)/build' |
21 cd '$(1)' && ./configure \ | 23 cd '$(1)/build' && cmake \ |
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | 24 $($(PKG)_CMAKE_FLAGS) \ |
23 $(ENABLE_SHARED_OR_STATIC) \ | 25 $(CMAKE_CCACHE_FLAGS) \ |
24 --prefix='$(HOST_PREFIX)' \ | 26 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
25 --enable-replace-glut \ | 27 -DFREEGLUT_REPLACE_GLUT=ON \ |
26 --disable-debug \ | 28 -DFREEGLUT_BUILD_DEMOS=OFF \ |
27 --without-progs \ | 29 $(if $(filter $(BUILD_STATIC),no),-DFREEGLUT_BUILD_STATIC_LIBS=OFF) \ |
28 --without-x | 30 $(1) |
29 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= EXPORT_FLAGS='-DFREEGLUT_STATIC' | |
30 | 31 |
31 '$(MXE_CC)' \ | 32 cmake --build '$(1)/build' |
32 -W -Wall -Werror -ansi -pedantic \ | 33 DESTDIR='$(3)' cmake --install '$(1)/build' |
33 '$(2).c' -o '$(HOST_BINDIR)/test-freeglut.exe' \ | |
34 `'$(MXE_PKG_CONFIG)' glut --cflags --libs` | |
35 endef | 34 endef |