Mercurial > mxe-octave
annotate src/libmng.mk @ 3296:8f0877237c55
[MSVC] Update to newer libmng.
* src/libmng.png: Remove MSVC-specific paths that disabled lcms1.
* src/msvc-libmng-1.patch: Add -no-undefined to libtool flags.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sat, 09 Nov 2013 23:28:04 -0500 |
parents | 4ffe93bd5b54 |
children | 13be64f9f16d |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2074
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
476 | 3 |
4 PKG := libmng | |
5 $(PKG)_IGNORE := | |
3265 | 6 $(PKG)_CHECKSUM := 7dd35369ff5916e1823cbacef984ab1b87714b69 |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1362
diff
changeset
|
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
3265 | 8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1362
diff
changeset
|
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)-devel/$($(PKG)_VERSION)/$($(PKG)_FILE) |
3265 | 10 $(PKG)_DEPS := zlib jpeg lcms |
476 | 11 |
12 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
13 $(WGET) -q -O- 'http://sourceforge.net/projects/libmng/files/libmng-devel/' | \ |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1362
diff
changeset
|
14 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ |
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1362
diff
changeset
|
15 head -1 |
476 | 16 endef |
17 | |
18 define $(PKG)_BUILD | |
2925
b17c700b7405
shared libraries for libmng
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
19 mkdir '$(1)/.build' |
3265 | 20 cd '$(1)' && autoreconf --install && ./configure \ |
2997 | 21 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
23 --prefix='$(HOST_PREFIX)' \ |
3128
9e26e3930422
libmng.mk: use ENABLE_SHARED_OR_STATIC, remove lcms deps for MSVC
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3107
diff
changeset
|
24 $(ENABLE_SHARED_OR_STATIC) \ |
9e26e3930422
libmng.mk: use ENABLE_SHARED_OR_STATIC, remove lcms deps for MSVC
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3107
diff
changeset
|
25 && $(CONFIGURE_POST_HOOK) |
3296
8f0877237c55
[MSVC] Update to newer libmng.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3265
diff
changeset
|
26 $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)' |
476 | 27 endef |