Mercurial > mxe-octave
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/s2tc.mk Thu Oct 12 05:55:18 2017 -0400 @@ -0,0 +1,28 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := s2tc +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.0 +$(PKG)_CHECKSUM := 08295ae27abe2718f7be01f490e7a08353060291 +$(PKG)_SUBDIR := s2tc-$($(PKG)_VERSION) +$(PKG)_FILE := s2tc-$($(PKG)_VERSION).zip +$(PKG)_URL := https://github.com/divVerent/s2tc/archive/v$($(PKG)_VERSION).zip +$(PKG)_DEPS := + +ifeq ($(MXE_WINDOWS_BUILD),yes) + define $(PKG)_BUILD + endef +else + define $(PKG)_BUILD + cd '$(1)' && ./autogen.sh + mkdir '$(1)/.build' + cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \ + $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ + $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ + --prefix='$(HOST_PREFIX)' \ + && $(CONFIGURE_POST_HOOK) + + $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)' + endef +endif