Commit 92b6a4db authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #369 from jam7/fix-libgd

libgd requires libpng and `cd src`
parents 00023b89 a95b648e
...@@ -5,6 +5,8 @@ class Libgd < Package ...@@ -5,6 +5,8 @@ class Libgd < Package
source_url 'https://github.com/libgd/libgd/archive/GD_2_0_33.tar.gz' source_url 'https://github.com/libgd/libgd/archive/GD_2_0_33.tar.gz'
source_sha1 '489e25f18d3fc9d7f8b0e4889f98f5aa25363c3e' source_sha1 '489e25f18d3fc9d7f8b0e4889f98f5aa25363c3e'
depends_on 'libpng'
def self.build def self.build
FileUtils.cd('src') do FileUtils.cd('src') do
system "./configure --libdir=/usr/local/lib#{SHORTARCH}/ CC=\"gcc -m#{SHORTARCH}\" CFLAGS=\" -fPIC\"" system "./configure --libdir=/usr/local/lib#{SHORTARCH}/ CC=\"gcc -m#{SHORTARCH}\" CFLAGS=\" -fPIC\""
...@@ -13,6 +15,8 @@ class Libgd < Package ...@@ -13,6 +15,8 @@ class Libgd < Package
end end
def self.install def self.install
FileUtils.cd('src') do
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end end
end
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