homebrew-core/Formula/libnatpmp.rb

21 lines
863 B
Ruby

class Libnatpmp < Formula
desc "NAT port mapping protocol library"
homepage "http://miniupnp.free.fr/libnatpmp.html"
url "http://miniupnp.free.fr/files/download.php?file=libnatpmp-20150609.tar.gz"
sha256 "e1aa9c4c4219bc06943d6b2130f664daee213fb262fcb94dd355815b8f4536b0"
bottle do
cellar :any
sha256 "04c286ebb17bf08728749e390dd9ccabf3fcc4b660ffe4b6f315dcf89012f15a" => :high_sierra
sha256 "d1aaa97c827918f7d35d121399cb8f59b4442b94c3283a51b7931f0e008ff934" => :sierra
sha256 "667fe1a26fdd6e1a36f6e7b263f2f8e3d01f884da9d9edeb182dbb40b08475ab" => :el_capitan
end
def install
# Reported upstream:
# https://miniupnp.tuxfamily.org/forum/viewtopic.php?t=978
inreplace "Makefile", "-Wl,-install_name,$(SONAME)", "-Wl,-install_name,$(INSTALLDIRLIB)/$(SONAME)"
system "make", "INSTALLPREFIX=#{prefix}", "install"
end
end