annotate src/libmng.mk @ 3671:95454fa2df8b

suitesparse: fix native mingw build * src/suitesparse.mk: use PKG_DESTDIR for destination installation, use -lblas instead of PKG_BLAS_LIB
author John Donoghue
date Mon, 28 Jul 2014 15:41:31 -0400
parents 13be64f9f16d
children 565bc6a7bb99
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 :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3296
diff changeset
6 $(PKG)_VERSION := 2.0.2
3265
4ffe93bd5b54 new version of libmng
John W. Eaton <jwe@octave.org>
parents: 3128
diff changeset
7 $(PKG)_CHECKSUM := 7dd35369ff5916e1823cbacef984ab1b87714b69
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
2925
b17c700b7405 shared libraries for libmng
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
20 mkdir '$(1)/.build'
3265
4ffe93bd5b54 new version of libmng
John W. Eaton <jwe@octave.org>
parents: 3128
diff changeset
21 cd '$(1)' && autoreconf --install && ./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)' \
3128
9e26e3930422 libmng.mk: use ENABLE_SHARED_OR_STATIC, remove lcms deps for MSVC
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3107
diff changeset
25 $(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
26 && $(CONFIGURE_POST_HOOK)
3296
8f0877237c55 [MSVC] Update to newer libmng.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3265
diff changeset
27 $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)'
476
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 endef