blob: aca4f1fbf77441dcf34a2d13a3c32a1b1e8d3fd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := libmng
$(PKG)_WEBSITE := http://www.libmng.com/
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.0.3
$(PKG)_CHECKSUM := 4a462fdd48d4bc82c1d7a21106c8a18b62f8cc0042454323058e6da0dbb57dd3
$(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 := gcc jpeg lcms zlib
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
echo 'Requires: zlib lcms2 jpeg' >> '$(1)/libmng.pc.in'
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(1)' -j '$(JOBS)' install LDFLAGS='-no-undefined'
endef
|