Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple M1 support: Disable ncurses frontend in kconfig-frontends #80

Merged
merged 3 commits into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Formula/fastcdr.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
class Fastcdr < Formula
desc "OMG RTPS / DDS implementation"
homepage "http://www.eprosima.com/index.php/products-all/eprosima-fast-rtps"
url "https://github.com/eProsima/Fast-CDR/archive/v1.0.8.tar.gz"
version "1.6.0"
sha256 "d47d924b76bc2fc7821dcadda4f8d1cb0f56df8353aa57cdf1106c49a612507f"
url "https://github.com/eProsima/Fast-CDR/archive/v1.0.22.tar.gz"
sha256 "7ca7f09c633963622431bdb216eeb4145e378f81a2ce5113e341b9eee55e4f44"

depends_on "cmake" => :build

Expand Down
21 changes: 21 additions & 0 deletions Formula/fastdds.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
class Fastdds < Formula
desc "OMG RTPS / DDS implementation"
homepage "https://www.eprosima.com/index.php/products-all/eprosima-fast-dds"
url "https://github.com/eProsima/Fast-DDS/archive/refs/tags/v2.0.2.tar.gz"
sha256 "d8c87e84c41a5628cc41658476137b6a392f218b844a6f5e2ff5d8c359fd5b10"

depends_on "cmake" => :build
depends_on "asio"
depends_on "tinyxml2"
depends_on "fastcdr"
depends_on "foonathan-memory"


def install
Dir.mkdir("./build")
Dir.chdir("./build")
system "cmake", "-DCMAKE_INSTALL_PREFIX:PATH=#{prefix}", ".."
system "make"
system "make", "install"
end
end
17 changes: 17 additions & 0 deletions Formula/fastddsgen.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class Fastddsgen < Formula
desc "Fast-DDS IDL code generator tool "
homepage "https://www.eprosima.com/index.php/products-all/eprosima-fast-dds"
url "https://github.com/eProsima/Fast-DDS-Gen.git", tag: "v1.0.4"
sha256 "a75399160aab20490a64a4e936230f446441a2717c756e478bbd83822fcb97a2"
license "Apache-2.0"

depends_on "gradle" => :build
depends_on "fastdds"
depends_on "openjdk@11"

def install
system "./gradlew", "assemble"
system "./gradlew", "install", "--install_path=#{prefix}"
end

end
24 changes: 0 additions & 24 deletions Formula/fastrtps.rb

This file was deleted.

18 changes: 18 additions & 0 deletions Formula/foonathan-memory.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
class FoonathanMemory < Formula
desc "STL compatible C++ memory allocator library using a new RawAllocator concept that is similar to an Allocator but easier to use and write."
homepage "https://memory.foonathan.net"
url "https://github.com/foonathan/memory/archive/refs/tags/v0.7-1.tar.gz"
sha256 "19eb61c5cba6ccc40b8ee741350fd29402a46641ba752c30b7079528d87dbc79"
license "Zlib"

depends_on "cmake" => :build

def install
Dir.mkdir("./build")
Dir.chdir("./build")
system "cmake", "-DCMAKE_INSTALL_PREFIX:PATH=#{prefix}", ".."
system "make"
system "make", "install"
end

end
13 changes: 11 additions & 2 deletions Formula/kconfig-frontends.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,17 @@ class KconfigFrontends < Formula

def install
system "./bootstrap"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"

args = %W[
--prefix=#{prefix}
--disable-debug
--disable-dependency-tracking
]
if Hardware::CPU.arm?
args << "--disable-nconf"
end

system "./configure", *args
system "make", "install"
end

Expand Down
3 changes: 1 addition & 2 deletions Formula/px4-dev.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ class Px4Dev < Formula
depends_on "ccache"
depends_on "cmake"
depends_on "discoteq/discoteq/flock"
depends_on "fastcdr"
depends_on "fastrtps"
depends_on "fastdds"
depends_on "gcc-arm-none-eabi"
depends_on "genromfs"
depends_on "kconfig-frontends"
Expand Down