Mercurial > mxe-octave
annotate src/libpng.mk @ 2791:a4f31aa591e1
update package libpng
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Fri, 28 Sep 2012 00:51:14 +0200 |
parents | ca2d19df9e6e |
children | 47558e958113 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2329
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. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
409
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
4 PKG := libpng |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
445
diff
changeset
|
5 $(PKG)_IGNORE := |
2791 | 6 $(PKG)_CHECKSUM := a6c0fc33b2031e4a9154da03c7d4e7807bc039e7 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
7 $(PKG)_SUBDIR := libpng-$($(PKG)_VERSION) |
1556
8f4c31ee4441
package libpng: use recommended xz archive
Mark Brand <mabrand@mabrand.nl>
parents:
1554
diff
changeset
|
8 $(PKG)_FILE := libpng-$($(PKG)_VERSION).tar.xz |
1863
5fc669ab661a
update broken download links in stable branch
Tony Theodore <tonyt@logyst.com>
parents:
1763
diff
changeset
|
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)$(subst .,,$(call SHORT_PKG_VERSION,$(PKG)))/older-releases/$($(PKG)_VERSION)/$($(PKG)_FILE) |
1488
51315d3e9bf9
upgrade download URL of package libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
1189
diff
changeset
|
10 $(PKG)_URL_2 := ftp://ftp.simplesystems.org/pub/$(PKG)/png/src/$($(PKG)_FILE) |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
11 $(PKG)_DEPS := gcc zlib |
148
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
3a3fd9c5b5c1
translated package: libpng
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:
2366
diff
changeset
|
14 $(WGET) -q -O- 'http://libpng.git.sourceforge.net/git/gitweb.cgi?p=libpng/libpng;a=tags' | \ |
408
413750a629be
improved version recognition for sourceforge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
377
diff
changeset
|
15 grep '<a class="list name"' | \ |
840
77ecd36317c2
corrected version recognition regexes of many packages
Volker Grabsch <vog@notjusthosting.com>
parents:
820
diff
changeset
|
16 $(SED) -n 's,.*<a[^>]*>v\([0-9][^<]*\)<.*,\1,p' | \ |
563
f32c021ce94a
avoid alpha versions of package libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
538
diff
changeset
|
17 grep -v alpha | \ |
408
413750a629be
improved version recognition for sourceforge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
377
diff
changeset
|
18 grep -v beta | \ |
538
437dd08f4fa4
avoid rc (release candidate) versions of package libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
449
diff
changeset
|
19 grep -v rc | \ |
2310
19b2e94efa3a
package libpng: fix update macro
Tony Theodore <tonyt@logyst.com>
parents:
2248
diff
changeset
|
20 grep -v '^1\.[0-4]\.' | \ |
148
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 head -1 |
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 endef |
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 |
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 define $(PKG)_BUILD |
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 cd '$(1)' && ./configure \ |
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 --host='$(TARGET)' \ |
2658 | 27 --build="`config.guess`" \ |
148
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --disable-shared \ |
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --prefix='$(PREFIX)/$(TARGET)' |
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
2329
466e77a78672
Fix annoying whitespaces at EOL
Volker Grabsch <vog@notjusthosting.com>
parents:
2310
diff
changeset
|
31 |
1631
9a86031b8ee0
package libpng: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1613
diff
changeset
|
32 '$(TARGET)-gcc' \ |
9a86031b8ee0
package libpng: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1613
diff
changeset
|
33 -W -Wall -Werror -std=c99 -pedantic \ |
9a86031b8ee0
package libpng: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1613
diff
changeset
|
34 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libpng.exe' \ |
9a86031b8ee0
package libpng: add test program
Tony Theodore <tonyt@logyst.com>
parents:
1613
diff
changeset
|
35 `'$(PREFIX)/$(TARGET)/bin/libpng-config' --static --cflags --libs` |
148
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 endef |