aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRemko Tronçon2013-09-17 07:43:17 +0200
committerAdam Vandenberg2013-09-19 07:39:26 -0700
commit2356a1d40005dd17b2f5b7c4fcf0ffd3ce13c400 (patch)
treeb447560171e802ea6a514890849ac36bb282964e /Library/Formula
parent597253407f7cb2647c588017042d5e086d5055d1 (diff)
downloadhomebrew-2356a1d40005dd17b2f5b7c4fcf0ffd3ce13c400.tar.bz2
libnatpmp 20130911
Closes #22606. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libnatpmp.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/libnatpmp.rb b/Library/Formula/libnatpmp.rb
new file mode 100644
index 000000000..534f94c15
--- /dev/null
+++ b/Library/Formula/libnatpmp.rb
@@ -0,0 +1,14 @@
+require 'formula'
+
+class Libnatpmp < Formula
+ homepage 'http://miniupnp.free.fr/libnatpmp.html'
+ url 'http://miniupnp.free.fr/files/download.php?file=libnatpmp-20130911.tar.gz'
+ sha1 'f2ec1ed22ae9f07b2cacf702d291858f13ae8781'
+
+ 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