annotate src/libmng.mk @ 3107:fcfbd9fe9d6d

Revert part of b8e2aa2141e5, restore lcms1 in .pc file for non-MSVC build
author Michael Goffioul <michael.goffioul@gmail.com>
date Fri, 28 Jun 2013 19:57:56 -0400
parents b8e2aa2141e5
children 9e26e3930422
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 :=
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_CHECKSUM := c21c84b614500ae1a41c6595d5f81c596e406ca2
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)
1499
9e587ca588dc remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents: 1466
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
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)
3106
b8e2aa2141e5 [MSVC] enable libmng compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
10 $(PKG)_DEPS := zlib jpeg
b8e2aa2141e5 [MSVC] enable libmng compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
11 ifneq ($(MXE_SYSTEM),msvc)
b8e2aa2141e5 [MSVC] enable libmng compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
12 $(PKG)_DEPS += lcms1
b8e2aa2141e5 [MSVC] enable libmng compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
13 endif
476
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
16 $(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
17 $(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
18 head -1
476
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 endef
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 define $(PKG)_BUILD
2925
b17c700b7405 shared libraries for libmng
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
22 cp '$(1)'/makefiles/Makefile.am '$(1)'
b17c700b7405 shared libraries for libmng
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
23 cp '$(1)'/makefiles/configure.in '$(1)/configure.in'
b17c700b7405 shared libraries for libmng
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
24 cd '$(1)' && autoreconf --install
b17c700b7405 shared libraries for libmng
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
25 mkdir '$(1)/.build'
b17c700b7405 shared libraries for libmng
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
26 cd '$(1)/.build' && '$(1)/configure' \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2925
diff changeset
27 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
28 $(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
29 --prefix='$(HOST_PREFIX)' \
3106
b8e2aa2141e5 [MSVC] enable libmng compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
30 --enable-shared && $(CONFIGURE_POST_HOOK)
2925
b17c700b7405 shared libraries for libmng
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
31 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
32 $(SED) -e 's^@prefix@^$(HOST_PREFIX)^;' \
2074
4ec1cdc3b4ca package libmng: add pkg-config support
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
33 -e 's^@VERSION@^$(libmng_VERSION)^;' \
4ec1cdc3b4ca package libmng: add pkg-config support
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
34 -e 's^@mng_libs_private@^-ljpeg^;' \
3107
fcfbd9fe9d6d Revert part of b8e2aa2141e5, restore lcms1 in .pc file for non-MSVC build
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3106
diff changeset
35 -e 's^@mng_requires_private@^lcms zlib^;' \
2074
4ec1cdc3b4ca package libmng: add pkg-config support
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
36 < '$(1)/libmng.pc.in' > '$(1)/libmng.pc'
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
37 $(INSTALL) -m644 '$(1)/libmng.pc' '$(HOST_LIBDIR)/pkgconfig/'
476
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 endef