Commit 2338f0a4 authored by system_user's avatar system_user

adding cmake, libunwind, lldb, llvm and pkg-config to make dot.net CORE work

parent 594d11ea
require 'package'
class Cmake < Package
version '3.0.2'
source_url 'http://www.cmake.org/files/v3.0/cmake-3.0.2.tar.gz'
source_sha1 '379472e3578902a1d6f8b68a9987773151d6f21a'
version '3.6.1'
source_url 'https://cmake.org/files/v3.6/cmake-3.6.1.tar.gz'
source_sha1 'a37785b3f256a31ee21a047569bc74a8f57067bb'
depends_on 'buildessential'
depends_on 'openssl_devel'
def self.build
system "./configure --prefix=/usr/local"
system "./bootstrap"
system "make"
end
......
require 'package'
class Libunwind < Package
version '1.1'
source_url 'http://download.savannah.gnu.org/releases/libunwind/libunwind-1.1.tar.gz'
source_sha1 '7c93a6ae35afff4d0efd143b62a9fd235423964f'
depends_on 'buildessential'
depends_on 'openssl_devel'
def self.build
system "CC='gcc' ./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Lldb < Package
version '3.6'
binary_url ({
i686: "https://www.dropbox.com/s/bls4hv4z8m2ifsc/lldb-3.6-i386.tar.gz?dl=0",
x86_64: "https://www.dropbox.com/s/zi3rzdmz2awu8u8/lldb-3.6-64x.tar.gz?dl=0"
})
binary_sha1 ({
i686: "de6ca73c1bcc0d72db81d14cd4e31b8f479e12e8",
x86_64: "6265cacf22b191e22a439019b4a2eb0ef7df3813"
})
end
require 'package'
class Llvm < Package
version '3.8.1'
source_url 'http://llvm.org/releases/3.8.1/llvm-3.8.1.src.tar.xz'
source_sha1 'e0c48c4c182424b99999367d688cd8ce7876827b'
depends_on 'buildessential'
depends_on 'cmake'
def self.build
system "mkdir mybuilddir"
Dir.chdir CREW_BREW_DIR+"llvm-"+version+".src/mybuilddir" do
system "cmake .."
system "cmake --build ."
end
end
def self.install
Dir.chdir CREW_BREW_DIR+"llvm-"+version+".src/mybuilddir" do
system "cmake -DCMAKE_INSTALL_PREFIX=/usr/local -P cmake_install.cmake"
end
end
end
require 'package'
class Pkg-config < Package
version '29.1'
source_url 'https://pkg-config.freedesktop.org/releases/pkg-config-0.29.1.tar.gz'
source_sha1 '271ce928f6d673cc16cbced2bfd14a5f2e5d3d37'
depends_on 'buildessential'
def self.build
system "configure --prefix=/usr/local --with-internal-glib --disable-host-tool"
system "make"
end
def self.install
system "make install"
#remove the man pages we couldn't install
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