From: Steve Kenton <skenton@ou.edu>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] libpng: add libpng12
Date: Sun, 11 Jan 2015 12:49:25 -0600 [thread overview]
Message-ID: <54B2C5B5.4070703@ou.edu> (raw)
Some programs still link using the legacy -lpng12 version
of libpng for handling PNG (Portable Network Graphics)
images. It is still maintained for security fixes so
make it available.
http://www.libpng.org
Signed-off-by Stephen M. Kenton <skenton@ou.edu>
---
The png support in freetype uses libpng v1.2 instead of v1.6.
Currently freetype is configured without png support but another
package I am investigating wants it, so here is a patch to enable it.
I copied and modified the files from libpng and do not know if the
arm specific option is needed for v1.2 since I'm only using x86.
diff -pruN buildroot.ori/package/Config.in buildroot/package/Config.in
--- buildroot.ori/package/Config.in 2015-01-09 15:52:22.000000000 -0600
+++ buildroot/package/Config.in 2015-01-11 12:38:37.399803185 -0600
@@ -681,6 +681,7 @@ menu "Graphics"
source "package/libgtk2/Config.in"
source "package/libgtk3/Config.in"
source "package/libpng/Config.in"
+ source "package/libpng12/Config.in"
source "package/libqrencode/Config.in"
source "package/libraw/Config.in"
source "package/librsvg/Config.in"
diff -pruN buildroot.ori/package/libpng12/Config.in buildroot/package/libpng12/Config.in
--- buildroot.ori/package/libpng12/Config.in 1969-12-31 18:00:00.000000000 -0600
+++ buildroot/package/libpng12/Config.in 2015-01-11 12:28:26.115791459 -0600
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_LIBPNG12
+ bool "libpng12"
+ select BR2_PACKAGE_ZLIB
+ help
+ Some programs still link using the legacy -lpng12 version
+ of libpng for handling PNG (Portable Network Graphics)
+ images. It is still maintained for security fixes so
+ make it available, but do not select this unless you
+ have an application that explicitly needs the older
+ libpng12 functionality. Use libpng instead.
+
+ http://www.libpng.org/
diff -pruN buildroot.ori/package/libpng12/libpng.mk buildroot/package/libpng12/libpng.mk
--- buildroot.ori/package/libpng12/libpng.mk 1969-12-31 18:00:00.000000000 -0600
+++ buildroot/package/libpng12/libpng.mk 2015-01-11 12:33:28.495797259 -0600
@@ -0,0 +1,19 @@
+################################################################################
+#
+# libpng12
+#
+################################################################################
+
+LIBPNG12_VERSION = 1.2.52
+LIBPNG12_SERIES = 12
+LIBPNG12_SOURCE = libpng-$(LIBPNG12_VERSION).tar.xz
+LIBPNG12_SITE = http://downloads.sourceforge.net/project/libpng/libpng${LIBPNG12_SERIES}/$(LIBPNG12_VERSION)
+LIBPNG12_LICENSE = libpng license
+LIBPNG12_LICENSE_FILES = LICENSE
+LIBPNG12_INSTALL_STAGING = YES
+LIBPNG12_DEPENDENCIES = host-pkgconf zlib
+LIBPNG12_CONFIG_SCRIPTS = libpng$(LIBPNG12_SERIES)-config libpng-config
+LIBPNG12_CONF_OPTS = $(if $(BR2_ARM_CPU_HAS_NEON),--enable-arm-neon=yes,--enable-arm-neon=no)
+
+$(eval $(autotools-package))
+$(eval $(host-autotools-package))
next reply other threads:[~2015-01-11 18:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-11 18:49 Steve Kenton [this message]
2015-01-11 19:42 ` [Buildroot] [PATCH] libpng: add libpng12 Gustavo Zacarias
[not found] ` <54B2D5CC.3030006@ou.edu>
2015-01-11 22:11 ` Gustavo Zacarias
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54B2C5B5.4070703@ou.edu \
--to=skenton@ou.edu \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox