annotate src/libmng.mk @ 2349:f48c5b085a38

Move $(PKG)_VERSION and $(PKG)_WEBSITE from src/*.mk into doc/index.html
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 29 Mar 2012 11:07:07 +0200
parents f653602a0500
children 99516e73b368
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.
714
29f1ba4559ae point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
2 # See doc/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 # libmng
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 PKG := libmng
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_CHECKSUM := c21c84b614500ae1a41c6595d5f81c596e406ca2
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)
1499
9e587ca588dc remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents: 1466
diff changeset
9 $(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
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)-devel/$($(PKG)_VERSION)/$($(PKG)_FILE)
1362
c294a0744e7d enabled lcms for package libmng
Mark Brand <mabrand@mabrand.nl>
parents: 1120
diff changeset
11 $(PKG)_DEPS := gcc zlib jpeg lcms1
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
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1362
diff changeset
14 wget -q -O- 'http://sourceforge.net/projects/libmng/files/libmng-devel/' | \
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
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 $(MAKE) -C '$(1)' -j '$(JOBS)' \
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 -f '$(1)'/makefiles/makefile.unix \
1362
c294a0744e7d enabled lcms for package libmng
Mark Brand <mabrand@mabrand.nl>
parents: 1120
diff changeset
22 CC=$(TARGET)-gcc CFLAGS='-DMNG_BUILD_SO -DMNG_FULL_CMS'
476
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 $(TARGET)-ranlib '$(1)/libmng.a'
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(INSTALL) -m644 '$(1)/libmng.a' '$(PREFIX)/$(TARGET)/lib/'
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 $(INSTALL) -m644 '$(1)/libmng.h' '$(1)/libmng_conf.h' '$(1)/libmng_types.h' '$(PREFIX)/$(TARGET)/include/'
2074
4ec1cdc3b4ca package libmng: add pkg-config support
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
28 $(SED) -e 's^@prefix@^$(PREFIX)/$(TARGET)^;' \
4ec1cdc3b4ca package libmng: add pkg-config support
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
29 -e 's^@VERSION@^$(libmng_VERSION)^;' \
4ec1cdc3b4ca package libmng: add pkg-config support
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
30 -e 's^@mng_libs_private@^-ljpeg^;' \
4ec1cdc3b4ca package libmng: add pkg-config support
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
31 -e 's^@mng_requires_private@^lcms zlib^;' \
4ec1cdc3b4ca package libmng: add pkg-config support
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
32 < '$(1)/libmng.pc.in' > '$(1)/libmng.pc'
4ec1cdc3b4ca package libmng: add pkg-config support
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
33 $(INSTALL) -m644 '$(1)/libmng.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig/'
476
46babf4b578a new package: libmng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 endef