Mercurial > mxe-octave
comparison src/s2tc.mk @ 4512:859c456e1257
s2tc: enable Windows build.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 18 Oct 2017 09:27:04 -0400 |
parents | 4c645e979279 |
children | e575e2afdae4 |
comparison
equal
deleted
inserted
replaced
4511:0117b5797a5c | 4512:859c456e1257 |
---|---|
8 $(PKG)_SUBDIR := s2tc-$($(PKG)_VERSION) | 8 $(PKG)_SUBDIR := s2tc-$($(PKG)_VERSION) |
9 $(PKG)_FILE := s2tc-$($(PKG)_VERSION).zip | 9 $(PKG)_FILE := s2tc-$($(PKG)_VERSION).zip |
10 $(PKG)_URL := https://github.com/divVerent/s2tc/archive/v$($(PKG)_VERSION).zip | 10 $(PKG)_URL := https://github.com/divVerent/s2tc/archive/v$($(PKG)_VERSION).zip |
11 $(PKG)_DEPS := | 11 $(PKG)_DEPS := |
12 | 12 |
13 ifeq ($(MXE_WINDOWS_BUILD),yes) | 13 define $(PKG)_BUILD |
14 define $(PKG)_BUILD | 14 cd '$(1)' && ./autogen.sh |
15 endef | 15 mkdir '$(1)/.build' |
16 else | 16 cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \ |
17 define $(PKG)_BUILD | 17 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
18 cd '$(1)' && ./autogen.sh | 18 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
19 mkdir '$(1)/.build' | 19 $(ENABLE_SHARED_OR_STATIC) \ |
20 cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \ | 20 --prefix='$(HOST_PREFIX)' \ |
21 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | 21 --disable-tools \ |
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | 22 && $(CONFIGURE_POST_HOOK) |
23 --prefix='$(HOST_PREFIX)' \ | |
24 && $(CONFIGURE_POST_HOOK) | |
25 | 23 |
26 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)' | 24 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)' |
27 endef | 25 |
28 endif | 26 ## Mesa attempts to dynamically load dxtn.dll on Windows systems. |
27 if [ $(MXE_WINDOWS_BUILD) = yes ]; then \ | |
28 mv '$(3)$(HOST_BINDIR)/libtxc_dxtn-0.dll' '$(3)$(HOST_BINDIR)/dxtn.dll'; \ | |
29 fi | |
30 endef |