comparison src/s2tc.mk @ 4507:4c645e979279

s2tc: New package.
author John W. Eaton <jwe@octave.org>
date Thu, 12 Oct 2017 05:55:18 -0400
parents
children 859c456e1257
comparison
equal deleted inserted replaced
4506:f3d64fe692e6 4507:4c645e979279
1 # This file is part of MXE.
2 # See index.html for further information.
3
4 PKG := s2tc
5 $(PKG)_IGNORE :=
6 $(PKG)_VERSION := 1.0
7 $(PKG)_CHECKSUM := 08295ae27abe2718f7be01f490e7a08353060291
8 $(PKG)_SUBDIR := s2tc-$($(PKG)_VERSION)
9 $(PKG)_FILE := s2tc-$($(PKG)_VERSION).zip
10 $(PKG)_URL := https://github.com/divVerent/s2tc/archive/v$($(PKG)_VERSION).zip
11 $(PKG)_DEPS :=
12
13 ifeq ($(MXE_WINDOWS_BUILD),yes)
14 define $(PKG)_BUILD
15 endef
16 else
17 define $(PKG)_BUILD
18 cd '$(1)' && ./autogen.sh
19 mkdir '$(1)/.build'
20 cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \
21 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
23 --prefix='$(HOST_PREFIX)' \
24 && $(CONFIGURE_POST_HOOK)
25
26 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)'
27 endef
28 endif