Mercurial > mxe-octave
view src/zlib.mk @ 2855:47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 15 Nov 2012 16:11:45 -0500 |
parents | 5879c1871a03 |
children | 5ebec6b3a79c |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := zlib $(PKG)_IGNORE := $(PKG)_CHECKSUM := 858818fe6d358ec682d54ac5e106a2dd62628e7f $(PKG)_SUBDIR := zlib-$($(PKG)_VERSION) $(PKG)_FILE := zlib-$($(PKG)_VERSION).tar.bz2 $(PKG)_URL := http://zlib.net/$($(PKG)_FILE) $(PKG)_URL_2 := http://$(SOURCEFORGE_MIRROR)/project/libpng/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := gcc ifneq ($(BUILD_SHARED),yes) $(PKG)_STATIC_FLAG := -static endif define $(PKG)_UPDATE $(WGET) -q -O- 'http://zlib.net/' | \ $(SED) -n 's,.*zlib-\([0-9][^>]*\)\.tar.*,\1,ip' | \ head -1 endef define $(PKG)_BUILD cd '$(1)' && CHOST='$(TARGET)' ./configure \ --prefix='$(PREFIX)/$(TARGET)' \ $($(PKG)_STATIC_FLAG) $(MAKE) -C '$(1)' -j '$(JOBS)' install endef