mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 16:08:08 -05:00
Merge pull request #1316 from cstrouse/update-ffcall
Update ffcall from 1.10-1 to 2.0
This commit is contained in:
@@ -1,34 +1,23 @@
|
||||
require 'package'
|
||||
|
||||
class Ffcall < Package
|
||||
description 'Foreign function call is a collection of four libraries which can be used to build foreign function call interfaces in embedded interpreters.'
|
||||
homepage 'http://www.haible.de/bruno/packages-ffcall-README.html'
|
||||
version '1.10-1'
|
||||
source_url 'http://www.haible.de/bruno/gnu/ffcall-1.10.tar.gz'
|
||||
source_sha256 '6f1b5b8fc84b2c0051637fb1e4e4f8b975f5f98bff8fe053c1992347baa4983d'
|
||||
description 'GNU libffcall is a library which can be used to build foreign function call interfaces in embedded interpreters.'
|
||||
homepage 'https://www.gnu.org/software/libffcall/'
|
||||
version '2.0'
|
||||
source_url 'https://ftp.gnu.org/gnu/libffcall/libffcall-2.0.tar.gz'
|
||||
source_sha256 '41aad2b449d90a5308e72267829db006dc9f9cc8736807082e1f2daef680196c'
|
||||
|
||||
binary_url ({
|
||||
i686: 'https://dl.bintray.com/chromebrew/chromebrew/ffcall-1.10-1-chromeos-i686.tar.xz',
|
||||
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/ffcall-1.10-1-chromeos-x86_64.tar.xz',
|
||||
})
|
||||
binary_sha256 ({
|
||||
i686: '9d64fa08b420b2e0e04545d905fd3a06ee3c42c9fb6770d41f455395a4255344',
|
||||
x86_64: 'd7a2d2cb69fa4ce1a9e9da530a2fa3228b48a9d4c70195f73b96eea9237b543e',
|
||||
})
|
||||
|
||||
def self.build
|
||||
system "./configure --prefix=/usr/local CFLAGS=\" -fPIC\""
|
||||
|
||||
# force to compile in sequential since ffcall Makefile doesn't work in parallel
|
||||
system "make", "-j1"
|
||||
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} CFLAGS=\" -fPIC\""
|
||||
system 'make', '-j1' # doesn't support parallel builds
|
||||
end
|
||||
|
||||
def self.install
|
||||
system "make check"
|
||||
|
||||
# ffcall's `make install` doesn't create intermediate directory, so prepare for it here.
|
||||
system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local"
|
||||
|
||||
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
|
||||
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user