33 lines
1.4 KiB
Ruby
33 lines
1.4 KiB
Ruby
class SdlNet < Formula
|
|
desc "Sample cross-platform networking library"
|
|
homepage "https://www.libsdl.org/projects/SDL_net/release-1.2.html"
|
|
url "https://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz"
|
|
sha256 "5f4a7a8bb884f793c278ac3f3713be41980c5eedccecff0260411347714facb4"
|
|
|
|
livecheck do
|
|
url "https://www.libsdl.org/projects/SDL_net/release/"
|
|
regex(/href=.*?SDL_net[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "53bf15367d717f52383f6221a46c2103ed88beb591830f7d6269b9ae993521f7" => :big_sur
|
|
sha256 "4c4cf23a69b5bc903e23e919a87ab1c02ed2e65580b8071ea7fe4d40fdb6de55" => :catalina
|
|
sha256 "42ba6a6ea66082574335d2db119cdeedb53865f01344a8bab255094b09223bc7" => :mojave
|
|
sha256 "6ef784ef221c9eeea648834070ec1d20bac11cdc9754f5af2fe5dd6fa04e0f10" => :high_sierra
|
|
sha256 "65cc3ae3104620de06f03ca0d9b3a545d90f2a36955dcb528f5f42af6db11bcf" => :sierra
|
|
sha256 "036938975b4060fdc944c2258a8d1d5d73f536860a9c807116e6c4fb2aa65dc8" => :el_capitan
|
|
sha256 "fe6b8eda1d640db450ed12f79feb731d49a62263c4b83601d69659498d697538" => :yosemite
|
|
sha256 "99f9035f95e548ea81eb11ac9c06ae5eab8d2797ea9ca03ac074fe30bb357748" => :mavericks
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "sdl"
|
|
|
|
def install
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}", "--disable-sdltest"
|
|
system "make", "install"
|
|
end
|
|
end
|