Mercurial > mxe-octave
view src/libpng.mk @ 2001:e15c3a6c2b5f
update packages libpng x264
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Fri, 23 Sep 2011 08:51:32 +0200 |
parents | c3c5c9864c0e |
children | 93ed337d4c17 7ce3f737a4e8 |
line wrap: on
line source
# This file is part of mingw-cross-env. # See doc/index.html for further information. # libpng PKG := libpng $(PKG)_IGNORE := $(PKG)_VERSION := 1.5.5 $(PKG)_CHECKSUM := 3583126fdd70a94f4c33c1b717f3ff4201d619af $(PKG)_SUBDIR := libpng-$($(PKG)_VERSION) $(PKG)_FILE := libpng-$($(PKG)_VERSION).tar.xz $(PKG)_WEBSITE := http://www.libpng.org/ $(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)_FILE) $(PKG)_DEPS := gcc zlib define $(PKG)_UPDATE wget -q -O- 'http://libpng.git.sourceforge.net/git/gitweb.cgi?p=libpng/libpng;a=tags' | \ grep '<a class="list name"' | \ $(SED) -n 's,.*<a[^>]*>v\([0-9][^<]*\)<.*,\1,p' | \ grep -v alpha | \ grep -v beta | \ grep -v rc | \ grep -v '^1\.[1-4]\.' | \ head -1 endef define $(PKG)_BUILD cd '$(1)' && ./configure \ --host='$(TARGET)' \ --disable-shared \ --prefix='$(PREFIX)/$(TARGET)' $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= '$(TARGET)-gcc' \ -W -Wall -Werror -std=c99 -pedantic \ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libpng.exe' \ `'$(PREFIX)/$(TARGET)/bin/libpng-config' --static --cflags --libs` endef