Mercurial > mxe-octave
annotate src/opengl_switch.mk @ 7243:ae230ac322f7 default tip @
* src/sqlite.mk: update to v3460000
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 05 Jun 2024 10:26:58 -0400 |
parents | 6adeb47401d6 |
children |
rev | line source |
---|---|
6582 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := opengl_switch | |
5 $(PKG)_IGNORE := | |
6 $(PKG)_VERSION := 1.0.0 | |
7 $(PKG)_CHECKSUM := d3957e6f34f156e2c17498fbcc8dd6ddc8c1c9c7 | |
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) | |
9 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz | |
10 $(PKG)_URL := https://github.com/lostbard/$(PKG)/archive/v$($(PKG)_VERSION).tar.gz | |
11 | |
12 | |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
13 ifeq ($(ENABLE_QT),4) |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
14 $(PKG)_DEPS := qt |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
15 endif |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
16 ifeq ($(ENABLE_QT),5) |
6582 | 17 $(PKG)_DEPS := qt5 |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
18 endif |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
19 ifeq ($(ENABLE_QT),6) |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
20 $(PKG)_DEPS := qt6 |
6582 | 21 endif |
22 | |
23 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) | |
24 $(PKG)_INSTALL_ROOT := | |
25 else | |
26 $(PKG)_INSTALL_ROOT := $(3) | |
27 endif | |
28 | |
29 define $(PKG)_UPDATE | |
30 $(call GITHUB_PKG_UPDATE,lostbard,opengl_switch,v) | |
31 endef | |
32 | |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
33 $(PKG)_QMAKE_FLAGS := |
6582 | 34 ifneq ($(MXE_NATIVE_BUILD),yes) |
35 ifeq ($(MXE_SYSTEM),mingw) | |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
36 ifeq ($(ENABLE_QT),4) |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
37 $(PKG)_QMAKE_SPEC_OPTION := -spec '$(HOST_PREFIX)/mkspecs/win32-g++' |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
38 endif |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
39 ifeq ($(ENABLE_QT),5) |
6582 | 40 $(PKG)_QMAKE_SPEC_OPTION := -spec '$(BUILD_TOOLS_PREFIX)/mkspecs/win32-g++' |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
41 $(PKG)_QMAKE_FLAGS += QMAKE_CXXFLAGS='-std=c++11' |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
42 endif |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
43 ifeq ($(ENABLE_QT),6) |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
44 $(PKG)_QMAKE_SPEC_OPTION := -spec '$(HOST_PREFIX)/qt6/mkspecs/win32-g++' |
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
45 $(PKG)_QMAKE_FLAGS += QMAKE_CXXFLAGS='-std=c++17' |
6582 | 46 endif |
47 endif | |
48 ifeq ($(MXE_SYSTEM),msvc) | |
49 # FIXME: compute "2010" suffix dynamically | |
50 $(PKG)_QMAKE_SPEC_OPTION := -spec '$(HOST_LIBDIR)/qt4/mkspecs/win32-msvc2010' | |
51 endif | |
52 endif | |
53 | |
54 define $(PKG)_BUILD | |
55 cd '$(1)' && \ | |
56 '$(MXE_QMAKE)' -makefile \ | |
57 $($(PKG)_QMAKE_SPEC_OPTION) \ | |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
58 $($(PKG)_QMAKE_FLAGS) \ |
6582 | 59 QMAKE_UIC='$(MXE_UIC)' \ |
60 QMAKE_MOC='$(MXE_MOC)' \ | |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
61 QMAKE_LFLAGS=$(MXE_LDFLAGS) |
6582 | 62 |
63 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
64 $(MAKE) -C '$(1)' -j 1 install INSTALL_ROOT='$($(PKG)_INSTALL_ROOT)' | |
65 | |
66 if [ $(MXE_WINDOWS_BUILD) = yes ]; then \ | |
67 $(INSTALL) -d '$(HOST_BINDIR)'; \ | |
6837
6adeb47401d6
Add qt6 usage to mxe-octave
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
68 mv '$(HOST_PREFIX)/qt$(ENABLE_QT)/bin/opengl_switch.exe' '$(HOST_BINDIR)/opengl_switch.exe'; \ |
6582 | 69 fi |
70 endef |