2011-07-15 17:24:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Miniupnpc < Formula
|
|
|
|
homepage 'http://miniupnp.free.fr'
|
2012-08-01 20:50:04 +00:00
|
|
|
url 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.7.20120714.tar.gz'
|
|
|
|
sha1 'b7f68de24e75c0c2538d9936e7418fc1ae4df72b'
|
2011-07-15 17:24:26 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-08 08:08:40 +00:00
|
|
|
# Reported upstream:
|
|
|
|
# http://miniupnp.tuxfamily.org/forum/viewtopic.php?t=978
|
|
|
|
inreplace 'Makefile', "-Wl,-install_name,$(SONAME)", "-Wl,-install_name,$(INSTALLDIRLIB)/$(SONAME)"
|
|
|
|
system "make", "INSTALLPREFIX=#{prefix}", "install"
|
2011-07-15 17:24:26 +00:00
|
|
|
end
|
|
|
|
end
|