Mercurial > mxe-octave
annotate src/libpng.mk @ 6542:66dc175767da
* src/libpng.mk: update to v1.36.9
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 22 Nov 2022 07:34:57 -0500 |
parents | 7bb715afe813 |
children | d4a45e831e7d |
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 := |
6542
66dc175767da
* src/libpng.mk: update to v1.36.9
John Donoghue <john.donoghue@ieee.org>
parents:
6411
diff
changeset
|
6 $(PKG)_VERSION := 1.6.39 |
66dc175767da
* src/libpng.mk: update to v1.36.9
John Donoghue <john.donoghue@ieee.org>
parents:
6411
diff
changeset
|
7 $(PKG)_CHECKSUM := 3f2386d61eccae211ec4f57899e4ac2ca60d390b |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
8 $(PKG)_SUBDIR := libpng-$($(PKG)_VERSION) |
1556
8f4c31ee4441
package libpng: use recommended xz archive
Mark Brand <mabrand@mabrand.nl>
parents:
1554
diff
changeset
|
9 $(PKG)_FILE := libpng-$($(PKG)_VERSION).tar.xz |
3705 | 10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)$(subst .,,$(call SHORT_PKG_VERSION,$(PKG)))/$($(PKG)_VERSION)/$($(PKG)_FILE) |
11 $(PKG)_URL_2 := ftp://ftp.simplesystems.org/pub/$(PKG)/png/src/$(PKG)$(subst .,,$(call SHORT_PKG_VERSION,$(PKG)))/$($(PKG)_FILE) | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
12 $(PKG)_DEPS := zlib |
148
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 |
3093
58c12937d1ba
[MSVC] enable libpng compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
14 # Configure script detection of memset and pow doesn't work on MSVC. |
58c12937d1ba
[MSVC] enable libpng compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
15 ifeq ($(MXE_SYSTEM),msvc) |
58c12937d1ba
[MSVC] enable libpng compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
16 $(PKG)_CONFIGURE_OPTIONS := ac_cv_func_memset=yes ac_cv_func_pow=yes |
58c12937d1ba
[MSVC] enable libpng compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
17 endif |
58c12937d1ba
[MSVC] enable libpng compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
18 |
148
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 define $(PKG)_UPDATE |
3561
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3488
diff
changeset
|
20 $(WGET) -q -O- 'http://sourceforge.net/p/libpng/code/ref/master/tags/' | \ |
840
77ecd36317c2
corrected version recognition regexes of many packages
Volker Grabsch <vog@notjusthosting.com>
parents:
820
diff
changeset
|
21 $(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
|
22 grep -v alpha | \ |
408
413750a629be
improved version recognition for sourceforge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
377
diff
changeset
|
23 grep -v beta | \ |
538
437dd08f4fa4
avoid rc (release candidate) versions of package libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
449
diff
changeset
|
24 grep -v rc | \ |
3561
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3488
diff
changeset
|
25 $(SORT) -V | \ |
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3488
diff
changeset
|
26 tail -1 |
148
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 endef |
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 |
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 define $(PKG)_BUILD |
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 cd '$(1)' && ./configure \ |
2997 | 31 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
32 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2791
diff
changeset
|
33 $(ENABLE_SHARED_OR_STATIC) \ |
3093
58c12937d1ba
[MSVC] enable libpng compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
34 $($(PKG)_CONFIGURE_OPTIONS) \ |
58c12937d1ba
[MSVC] enable libpng compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
35 --prefix='$(HOST_PREFIX)' && $(CONFIGURE_POST_HOOK) |
4464
ff4447e86c50
libpng: update to v1.6.32, add target link to config
John D
parents:
4447
diff
changeset
|
36 $(MAKE) -C '$(1)' -j '$(JOBS)' install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) DESTDIR='$(3)' |
2329
466e77a78672
Fix annoying whitespaces at EOL
Volker Grabsch <vog@notjusthosting.com>
parents:
2310
diff
changeset
|
37 |
4464
ff4447e86c50
libpng: update to v1.6.32, add target link to config
John D
parents:
4447
diff
changeset
|
38 if [ ! "x$(MXE_NATIVE_BUILD)" = "xyes" ]; then \ |
ff4447e86c50
libpng: update to v1.6.32, add target link to config
John D
parents:
4447
diff
changeset
|
39 $(LN_SF) '$(HOST_BINDIR)/libpng-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)libpng-config'; \ |
ff4447e86c50
libpng: update to v1.6.32, add target link to config
John D
parents:
4447
diff
changeset
|
40 fi |
148
3a3fd9c5b5c1
translated package: libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
41 endef |