diff options
author | Boris Pek <tehnick-8@yandex.ru> | 2016-06-18 14:01:19 (GMT) |
---|---|---|
committer | Boris Pek <tehnick-8@yandex.ru> | 2016-06-29 21:26:21 (GMT) |
commit | 4f0f589becf9a0998acb9d78ee89adf58d286ce3 (patch) | |
tree | 2afe88779c60e566417bf7ba2365c5069ba43157 /src/freeglut.mk | |
parent | b924c6596e59266f24d210642f1667c81bd361be (diff) | |
download | mxe-4f0f589becf9a0998acb9d78ee89adf58d286ce3.zip mxe-4f0f589becf9a0998acb9d78ee89adf58d286ce3.tar.gz mxe-4f0f589becf9a0998acb9d78ee89adf58d286ce3.tar.bz2 |
freeglut: update from 2.8.1 to 3.0.0
Diffstat (limited to 'src/freeglut.mk')
-rw-r--r-- | src/freeglut.mk | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/freeglut.mk b/src/freeglut.mk index 78f3061..fbf835c 100644 --- a/src/freeglut.mk +++ b/src/freeglut.mk @@ -3,9 +3,9 @@ PKG := freeglut $(PKG)_IGNORE := -$(PKG)_VERSION := 2.8.1 -$(PKG)_CHECKSUM := dde46626a62a1cd9cf48a11951cdd592e7067c345cffe193a149dfd47aef999a -$(PKG)_SUBDIR := freeglut-$(word 1,$(subst -, ,$($(PKG)_VERSION))) +$(PKG)_VERSION := 3.0.0 +$(PKG)_CHECKSUM := 2a43be8515b01ea82bcfa17d29ae0d40bd128342f0930cd1f375f1ff999f76a2 +$(PKG)_SUBDIR := freeglut-$($(PKG)_VERSION) $(PKG)_FILE := freeglut-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/freeglut/freeglut/$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := gcc @@ -17,16 +17,18 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)' && ./autogen.sh - cd '$(1)' && ./configure \ - $(MXE_CONFIGURE_OPTS) \ - --enable-replace-glut \ - --disable-debug \ - --without-x - $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= $(if $(BUILD_STATIC),EXPORT_FLAGS='-DFREEGLUT_STATIC') + mkdir '$(1).build' + cd '$(1).build' && $(TARGET)-cmake '$(1)' \ + -DFREEGLUT_GLES=OFF \ + -DFREEGLUT_BUILD_DEMOS=OFF \ + -DFREEGLUT_REPLACE_GLUT=ON \ + -DFREEGLUT_BUILD_STATIC_LIBS=$(if $(BUILD_STATIC),true,false) \ + -DFREEGLUT_BUILD_SHARED_LIBS=$(if $(BUILD_STATIC),false,true) + $(MAKE) -C '$(1).build' -j '$(JOBS)' install '$(TARGET)-gcc' \ -W -Wall -Werror -ansi -pedantic \ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-freeglut.exe' \ - `'$(TARGET)-pkg-config' glut --cflags --libs` + $(if $(BUILD_STATIC),-DFREEGLUT_STATIC) \ + -L'$(PREFIX)/$(TARGET)/lib' -lglut -lglu32 -lopengl32 -lgdi32 -lwinmm endef |