annotate src/libmng.mk @ 4128:253ac032547a

Fix more problems with libmng recipe (bug #47712). * src/libmng.mk: Remove unnecessary mkdir command in recipe. Call autoreconf with --force option because the libmng archive file ships with an out-of-date ltmain.sh which will not be replaced without --force.
author Rik <rik@octave.org>
date Wed, 20 Apr 2016 15:39:48 -0700
parents 132ee4f1871b
children dc3eb553f5e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := libmng
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
4018
565bc6a7bb99 libmng: update to v2.0.3
John Donoghue
parents: 3480
diff changeset
6 $(PKG)_VERSION := 2.0.3
565bc6a7bb99 libmng: update to v2.0.3
John Donoghue
parents: 3480
diff changeset
7 $(PKG)_CHECKSUM := 0f141482ffcef6f8cd4413f945a59310ac2e49af
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1362
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
3265
4ffe93bd5b54 new version of libmng
John W. Eaton <jwe@octave.org>
parents: 3128
diff changeset
9 $(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
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)-devel/$($(PKG)_VERSION)/$($(PKG)_FILE)
3265
4ffe93bd5b54 new version of libmng
John W. Eaton <jwe@octave.org>
parents: 3128
diff changeset
11 $(PKG)_DEPS := zlib jpeg lcms
476
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
14 $(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
15 $(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
16 head -1
476
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
4128
253ac032547a Fix more problems with libmng recipe (bug #47712).
Rik <rik@octave.org>
parents: 4127
diff changeset
20 cd '$(1)' && autoreconf --install --force
4127
132ee4f1871b Fix libmng compilation on fast computers with fast SSDs (bug #47712).
Rik <rik@octave.org>
parents: 4051
diff changeset
21 cd '$(1)' && ./configure \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2925
diff changeset
22 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
23 $(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
24 --prefix='$(HOST_PREFIX)' \
4127
132ee4f1871b Fix libmng compilation on fast computers with fast SSDs (bug #47712).
Rik <rik@octave.org>
parents: 4051
diff changeset
25 $(ENABLE_SHARED_OR_STATIC) \
3128
9e26e3930422 libmng.mk: use ENABLE_SHARED_OR_STATIC, remove lcms deps for MSVC
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3107
diff changeset
26 && $(CONFIGURE_POST_HOOK)
4127
132ee4f1871b Fix libmng compilation on fast computers with fast SSDs (bug #47712).
Rik <rik@octave.org>
parents: 4051
diff changeset
27 $(MAKE) -C '$(1)' -j 1
4051
10e6b2221c7f libmng: separate build from install
John D
parents: 4018
diff changeset
28 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)'
476
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 endef