Change pkgconfig.rb to update 0.29.2 and strip binary

Change to add check routine also
parent d2661c66
require 'package'
class Pkgconfig < Package
version '0.29.1'
source_url 'http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.1.tar.gz'
source_sha1 '271ce928f6d673cc16cbced2bfd14a5f2e5d3d37'
version '0.29.2'
source_url 'http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz'
source_sha1 '76e501663b29cb7580245720edfb6106164fad2b'
# It is not possible to write buildessential here since it causes dependency loop.
# depends_on 'buildessential'
......@@ -14,11 +14,15 @@ class Pkgconfig < Package
def self.build
# check lib64 on any architectures since it is not a problem to not exist lib64 directory.
system "./configure --with-internal-glib --with-pc-path=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig CFLAGS=\" -fPIC\""
system "./configure", "--with-internal-glib", "--with-pc-path=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install-strip"
end
def self.check
system "make", "check"
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