01fa1137a4
When installed from Homebrew that's not on /usr/local, dyld complains it can't find libminiupnpc.8.dylib. Fixed this by passing absolute path to -Wl,-install_name when linking. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
14 lines
481 B
Ruby
14 lines
481 B
Ruby
require 'formula'
|
|
|
|
class Miniupnpc < Formula
|
|
homepage 'http://miniupnp.free.fr'
|
|
url 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.6.20120125.tar.gz'
|
|
md5 '61f136f1302add9d89d329a6c1e338ca'
|
|
|
|
def install
|
|
# 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"
|
|
end
|
|
end
|