Created
March 6, 2010 02:38
-
-
Save skord/323447 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Library/Formula/libnids.rb b/Library/Formula/libnids.rb | |
| index b2c24c8..08b8d4e 100644 | |
| --- a/Library/Formula/libnids.rb | |
| +++ b/Library/Formula/libnids.rb | |
| @@ -9,41 +9,9 @@ class Libnids <Formula | |
| depends_on 'libnet' | |
| depends_on 'glib' | |
| - def patches | |
| - # configure expects libnet-config to be in root, this fixes it so it looks in bin. | |
| - DATA | |
| - end | |
| - | |
| def install | |
| ENV.gcc_4_2 | |
| - configure_args = [ | |
| - "--prefix=#{prefix}", | |
| - "--disable-debug", | |
| - "--disable-dependency-tracking", | |
| - "--disable-libglib", | |
| - "--with-libnet=#{HOMEBREW_PREFIX}" | |
| - ] | |
| - system "./configure", *configure_args | |
| - | |
| + system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--disable-libglib" | |
| system "make install" | |
| end | |
| end | |
| - | |
| -__END__ | |
| -diff --git a/configure b/configure | |
| -index 3417e77..d0d95ef 100755 | |
| ---- a/configure | |
| -+++ b/configure | |
| -@@ -4399,10 +4399,10 @@ echo "${ECHO_T}no" >&6 | |
| - *) | |
| - echo "$as_me:$LINENO: result: $withval" >&5 | |
| - echo "${ECHO_T}$withval" >&6 | |
| -- if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a -a -f $withval/libnet-config ; then | |
| -+ if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a -a -f $withval/bin/libnet-config ; then | |
| - owd=`pwd` | |
| - if cd $withval; then withval=`pwd`; cd $owd; fi | |
| -- LNET_CFLAGS="-I$withval/include `$withval/libnet-config --defines`" | |
| -+ LNET_CFLAGS="-I$withval/include `$withval/bin/libnet-config --defines`" | |
| - LNETLIB="-L$withval/lib -lnet" | |
| - elif test -f $withval/include/libnet.h -a -f $withval/src/libnet.a; then | |
| - owd=`pwd` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment