diff options
| author | Jaeho Shin | 2012-02-08 00:08:40 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-15 20:42:06 -0700 |
| commit | be6ebb1ab754f3376d69f3ff7509f98833010818 (patch) | |
| tree | 519f20df980e77f7cb8145d82618276da8ae940e /Library | |
| parent | 04dcd0f846628d917d4b31bcc8b0bf2c5790ecf9 (diff) | |
| download | homebrew-be6ebb1ab754f3376d69f3ff7509f98833010818.tar.bz2 | |
miniupnpc: fix for non-/usr/local Homebrew
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>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/miniupnpc.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/miniupnpc.rb b/Library/Formula/miniupnpc.rb index b46fdd68e..ae7c00315 100644 --- a/Library/Formula/miniupnpc.rb +++ b/Library/Formula/miniupnpc.rb @@ -1,11 +1,14 @@ require 'formula' class Miniupnpc < Formula - url 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.6.20120125.tar.gz' homepage 'http://miniupnp.free.fr' + url 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.6.20120125.tar.gz' md5 '61f136f1302add9d89d329a6c1e338ca' def install - system "make INSTALLPREFIX=#{prefix} 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 |
