1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# -*-makefile-*-
#
# Copyright (C) 2003 by Robert Schwebel <r.schwebel@pengutronix.de>
# Pengutronix <info@pengutronix.de>, Germany
# 2009, 2010 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_LIBPNG) += libpng
#
# Paths and names
#
LIBPNG_VERSION := 1.6.34
LIBPNG_MD5 := c05b6ca7190a5e387b78657dbe5536b2
LIBPNG := libpng-$(LIBPNG_VERSION)
LIBPNG_SUFFIX := tar.xz
LIBPNG_URL := $(call ptx/mirror, SF, libpng/$(LIBPNG).$(LIBPNG_SUFFIX))
LIBPNG_SOURCE := $(SRCDIR)/$(LIBPNG).$(LIBPNG_SUFFIX)
LIBPNG_DIR := $(BUILDDIR)/$(LIBPNG)
LIBPNG_LICENSE := Zlib
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
LIBPNG_WRAPPER_BLACKLIST := TARGET_DEBUG_FULL
LIBPNG_CONF_TOOL:= autoconf
LIBPNG_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
--enable-unversioned-links \
--enable-unversioned-libpng-pc \
--enable-unversioned-libpng-config \
--enable-arm-neon=$(call ptx/ifdef, PTXCONF_ARCH_ARM_NEON, check, no) \
--disable-mips-msa \
--$(call ptx/endis, PTXCONF_ARCH_X86)-intel-sse \
--disable-powerpc-vsx \
--with-binconfigs
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/libpng.targetinstall:
@$(call targetinfo)
@$(call install_init, libpng)
@$(call install_fixup, libpng,PRIORITY,optional)
@$(call install_fixup, libpng,SECTION,base)
@$(call install_fixup, libpng,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
@$(call install_fixup, libpng,DESCRIPTION,missing)
@$(call install_lib, libpng, 0, 0, 0644, libpng16)
@$(call install_finish, libpng)
@$(call touch)
# vim: syntax=make
|