Commit ec2910de authored by Kriskras99's avatar Kriskras99 Committed by GitHub

Fix build problems on armv7l for optipng

The bundled version of libpng is outdated, and does not build on armv7l.
parent 3282ab3b
...@@ -4,11 +4,12 @@ class Optipng < Package ...@@ -4,11 +4,12 @@ class Optipng < Package
version '0.7.6' version '0.7.6'
source_url 'http://prdownloads.sourceforge.net/optipng/optipng-0.7.6.tar.gz' source_url 'http://prdownloads.sourceforge.net/optipng/optipng-0.7.6.tar.gz'
source_sha1 '3b3e31430e735589470c4af204354d38823f4989' source_sha1 '3b3e31430e735589470c4af204354d38823f4989'
# NOTE: uses libpng and zlib but uses its own versions of those libraries depends_on 'libpng'
depends_on 'zlibpkg'
def self.build def self.build
system "./configure --prefix=/usr/local" system "./configure --prefix=/usr/local --with-system-libpng" # Bundled libpng doesn't work on armv7l
system "make" system "make"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment