Mercurial > mxe-octave
view src/libpng.mk @ 6299:b8d72e61d379 release
default-octave: Rename configure variable (bug #62715).
* src/default-octave.mk: The configure variable "ax_blas_integer_size" was
renamed to "ax_cv_blas_integer_size" in Octave's build system. Adapt rule for
that change.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 07 Jul 2022 20:52:36 +0200 |
parents | fe6e588f10ed |
children | 7bb715afe813 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := libpng $(PKG)_IGNORE := $(PKG)_VERSION := 1.6.37 $(PKG)_CHECKSUM := 3ab93fabbf4c27e1c4724371df408d9a1bd3f656 $(PKG)_SUBDIR := libpng-$($(PKG)_VERSION) $(PKG)_FILE := libpng-$($(PKG)_VERSION).tar.xz $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)$(subst .,,$(call SHORT_PKG_VERSION,$(PKG)))/$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_URL_2 := ftp://ftp.simplesystems.org/pub/$(PKG)/png/src/$(PKG)$(subst .,,$(call SHORT_PKG_VERSION,$(PKG)))/$($(PKG)_FILE) $(PKG)_DEPS := zlib # Configure script detection of memset and pow doesn't work on MSVC. ifeq ($(MXE_SYSTEM),msvc) $(PKG)_CONFIGURE_OPTIONS := ac_cv_func_memset=yes ac_cv_func_pow=yes endif define $(PKG)_UPDATE $(WGET) -q -O- 'http://sourceforge.net/p/libpng/code/ref/master/tags/' | \ $(SED) -n 's,.*<a[^>]*>v\([0-9][^<]*\)<.*,\1,p' | \ grep -v alpha | \ grep -v beta | \ grep -v rc | \ $(SORT) -V | \ tail -1 endef define $(PKG)_BUILD cd '$(1)' && ./configure \ $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ $($(PKG)_CONFIGURE_OPTIONS) \ --prefix='$(HOST_PREFIX)' && $(CONFIGURE_POST_HOOK) $(MAKE) -C '$(1)' -j '$(JOBS)' install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) DESTDIR='$(3)' if [ ! "x$(MXE_NATIVE_BUILD)" = "xyes" ]; then \ $(LN_SF) '$(HOST_BINDIR)/libpng-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)libpng-config'; \ fi endef