Mercurial > mxe-octave
view src/libmng.mk @ 3265:4ffe93bd5b54
new version of libmng
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 16 Oct 2013 22:57:02 -0400 |
parents | 9e26e3930422 |
children | 8f0877237c55 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := libmng $(PKG)_IGNORE := $(PKG)_CHECKSUM := 7dd35369ff5916e1823cbacef984ab1b87714b69 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)-devel/$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := zlib jpeg lcms ifneq ($(MXE_SYSTEM),msvc) $(PKG)_DEPS += lcms1 endif define $(PKG)_UPDATE $(WGET) -q -O- 'http://sourceforge.net/projects/libmng/files/libmng-devel/' | \ $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ head -1 endef define $(PKG)_BUILD mkdir '$(1)/.build' cd '$(1)' && autoreconf --install && ./configure \ $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ --prefix='$(HOST_PREFIX)' \ $(ENABLE_SHARED_OR_STATIC) \ && $(CONFIGURE_POST_HOOK) $(MAKE) -C '$(1)' -j '$(JOBS)' install if test x$(MXE_SYSTEM) = xmsvc; then \ $(SED) -i -e 's/lcms//' '$(1)/libmng.pc'; \ fi endef