homebrew-core/Formula/sdl_net.rb

43 lines
2.2 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"
bottle do
sha256 cellar: :any, arm64_monterey: "b6f4e4483d738b76aac5414a6cf7a91a3c60353cbaf6f84f4d514cf910e5a99b"
sha256 cellar: :any, arm64_big_sur: "99b9b5259989971316f1ab7d1c785949868b329abe2e73b0034bdfe5f447eeb8"
sha256 cellar: :any, monterey: "55a2d0f765c03d73e0025182177431598c717b5a34632b250e6311dda938eb38"
sha256 cellar: :any, big_sur: "53bf15367d717f52383f6221a46c2103ed88beb591830f7d6269b9ae993521f7"
sha256 cellar: :any, catalina: "4c4cf23a69b5bc903e23e919a87ab1c02ed2e65580b8071ea7fe4d40fdb6de55"
sha256 cellar: :any, mojave: "42ba6a6ea66082574335d2db119cdeedb53865f01344a8bab255094b09223bc7"
sha256 cellar: :any, high_sierra: "6ef784ef221c9eeea648834070ec1d20bac11cdc9754f5af2fe5dd6fa04e0f10"
sha256 cellar: :any, sierra: "65cc3ae3104620de06f03ca0d9b3a545d90f2a36955dcb528f5f42af6db11bcf"
sha256 cellar: :any, el_capitan: "036938975b4060fdc944c2258a8d1d5d73f536860a9c807116e6c4fb2aa65dc8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2ebc10f3cf5bb91fe6e4a336d6cb615b54436bd07e4a07d084d4a97c85a530f3"
end
head do
url "https://github.com/libsdl-org/SDL_net.git", branch: "SDL-1.2"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
# SDL 1.2 is deprecated, unsupported, and not recommended for new projects.
# Commented out while this formula still has dependents.
# deprecate! date: "2013-08-17", because: :deprecated_upstream
depends_on "pkg-config" => :build
depends_on "sdl"
def install
system "./autogen.sh" if build.head?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--disable-sdltest"
system "make", "install"
end
end