homebrew-core/Formula/efl.rb

110 lines
3.3 KiB
Ruby

class Efl < Formula
desc "Enlightenment Foundation Libraries"
homepage "https://www.enlightenment.org"
url "https://download.enlightenment.org/rel/libs/efl/efl-1.26.3.tar.xz"
sha256 "d9f83aa0fd9334f44deeb4e4952dc0e5144683afac786feebce6030951617d15"
license all_of: ["GPL-2.0-only", "LGPL-2.1-only", "BSD-2-Clause", "FTL", "zlib-acknowledgement"]
revision 1
livecheck do
url "https://download.enlightenment.org/rel/libs/efl/"
regex(/href=.*?efl[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 arm64_ventura: "72928d2e345f424d8d38ec5bd229dff659e2a9ca79a5e82c6d858984e17ae468"
sha256 arm64_monterey: "2701bd15c148b1955c9d9840924c35541c2875018be8678aeaa3e2fc4f292dc2"
sha256 arm64_big_sur: "51d287c2d9f0e3211696772e0e42f39de3446673898428afb8d524f4af44084a"
sha256 ventura: "543ec4c917ff7d425b35409afc1ce8406499cfb5642d29184cd4a39fc234c356"
sha256 monterey: "b10685f4f07726614b7dd10d559798f0d1c2b4d21561bb02f3a9b53009a1a909"
sha256 big_sur: "3c6e48157b7056a8585a953571fb3065c2484fb278ae333599ec1bde9ae3db68"
sha256 x86_64_linux: "f9b8410b94c37825054e2afa9273588c7123b5ead0fa47d3b5aa0519a9560714"
end
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "bullet"
depends_on "dbus"
depends_on "fontconfig"
depends_on "freetype"
depends_on "fribidi"
depends_on "gettext"
depends_on "giflib"
depends_on "glib"
depends_on "gst-plugins-good"
depends_on "gstreamer"
depends_on "jpeg-turbo"
depends_on "libpng"
depends_on "libraw"
depends_on "librsvg"
depends_on "libsndfile"
depends_on "libspectre"
depends_on "libtiff"
depends_on "luajit"
depends_on "lz4"
depends_on "openssl@1.1"
depends_on "poppler"
depends_on "pulseaudio"
depends_on "shared-mime-info"
depends_on "webp"
uses_from_macos "zlib"
# Remove LuaJIT 2.0 linker args -pagezero_size and -image_base
# to fix ARM build using LuaJIT 2.1+ via `luajit-openresty`
patch :DATA
def install
args = %w[
-Davahi=false
-Dbuild-examples=false
-Dbuild-tests=false
-Dembedded-lz4=false
-Deeze=false
-Dglib=true
-Dinput=false
-Dlibmount=false
-Dopengl=full
-Dphysics=true
-Dsystemd=false
-Dv4l2=false
-Dx11=false
]
args << "-Dcocoa=true" if OS.mac?
# Install in our Cellar - not dbus's
inreplace "dbus-services/meson.build", "dep.get_pkgconfig_variable('session_bus_services_dir')",
"'#{share}/dbus-1/services'"
system "meson", *std_meson_args, "build", *args
system "meson", "compile", "-C", "build", "-v"
system "meson", "install", "-C", "build"
end
def post_install
system Formula["shared-mime-info"].opt_bin/"update-mime-database", "#{HOMEBREW_PREFIX}/share/mime"
end
test do
system bin/"edje_cc", "-V"
system bin/"eet", "-V"
end
end
__END__
diff --git a/meson.build b/meson.build
index a1c5967b82..b10ca832db 100644
--- a/meson.build
+++ b/meson.build
@@ -32,9 +32,6 @@ endif
#prepare a special linker args flag for binaries on macos
bin_linker_args = []
-if host_machine.system() == 'darwin'
- bin_linker_args = ['-pagezero_size', '10000', '-image_base', '100000000']
-endif
windows = ['windows', 'cygwin']
#bsd for meson 0.46 and 0.47