homebrew-core/Formula/libnatpmp.rb
2019-10-14 22:30:45 +02:00

22 lines
1 KiB
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 "69bd0b362260f89b76113fbfec36235ec6265434c365d18790e8bb1a4988ae67" => :catalina
sha256 "1f0e89186c04cd7c7ce9ba88bee87ae31be9c6f5b0ebbcee46f38876d90bfb78" => :mojave
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