summaryrefslogtreecommitdiffstats
path: root/src/libmng.mk
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2013-08-17 18:22:13 (GMT)
committerMark Brand <mabrand@mabrand.nl>2013-08-17 19:55:56 (GMT)
commit71370547139c1b385b472c24e073a00ead9890e5 (patch)
tree7334db32e8fa03ec801ed75fe8686a83ee3607fd /src/libmng.mk
parent153610f9ad0c29c09d987c4ddcff65c68b489992 (diff)
downloadmxe-71370547139c1b385b472c24e073a00ead9890e5.zip
mxe-71370547139c1b385b472c24e073a00ead9890e5.tar.gz
mxe-71370547139c1b385b472c24e073a00ead9890e5.tar.bz2
update package libmng
Diffstat (limited to 'src/libmng.mk')
-rw-r--r--src/libmng.mk28
1 files changed, 10 insertions, 18 deletions
diff --git a/src/libmng.mk b/src/libmng.mk
index 33a9151..6f08e09 100644
--- a/src/libmng.mk
+++ b/src/libmng.mk
@@ -3,12 +3,12 @@
PKG := libmng
$(PKG)_IGNORE :=
-$(PKG)_VERSION := 1.0.10
-$(PKG)_CHECKSUM := c21c84b614500ae1a41c6595d5f81c596e406ca2
+$(PKG)_VERSION := 2.0.2
+$(PKG)_CHECKSUM := 7dd35369ff5916e1823cbacef984ab1b87714b69
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
-$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)-devel/$($(PKG)_VERSION)/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc zlib jpeg lcms1
+$(PKG)_DEPS := gcc zlib jpeg lcms
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://sourceforge.net/projects/libmng/files/libmng-devel/' | \
@@ -17,18 +17,10 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
- $(MAKE) -C '$(1)' -j '$(JOBS)' \
- -f '$(1)'/makefiles/makefile.unix \
- CC=$(TARGET)-gcc CFLAGS='-DMNG_BUILD_SO -DMNG_FULL_CMS'
- $(TARGET)-ranlib '$(1)/libmng.a'
- $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
- $(INSTALL) -m644 '$(1)/libmng.a' '$(PREFIX)/$(TARGET)/lib/'
- $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
- $(INSTALL) -m644 '$(1)/libmng.h' '$(1)/libmng_conf.h' '$(1)/libmng_types.h' '$(PREFIX)/$(TARGET)/include/'
- $(SED) -e 's^@prefix@^$(PREFIX)/$(TARGET)^;' \
- -e 's^@VERSION@^$(libmng_VERSION)^;' \
- -e 's^@mng_libs_private@^-ljpeg^;' \
- -e 's^@mng_requires_private@^lcms zlib^;' \
- < '$(1)/libmng.pc.in' > '$(1)/libmng.pc'
- $(INSTALL) -m644 '$(1)/libmng.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig/'
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --build="`config.guess`" \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install
endef