Permalink
Browse files

CFLAGS

darcs-hash:20080229034543-28bda-9668b1feb18f3b53c189e00f5f9e0d3035e1ca0e.gz
  • Loading branch information...
1 parent 182410d commit effa199829bc7e3396d1404d5f45ed710ffe4e8f @fugalh committed Feb 29, 2008
Showing with 4 additions and 2 deletions.
  1. +3 −1 ext/sndfile/extconf.rb
  2. +1 −1 lib/audio/sndfile.rb
View
@@ -1,5 +1,7 @@
require 'mkmf'
-system 'swig -ruby -I/usr/include -I/usr/local/include sndfile.i'
+$CFLAGS = '-I/opt/local/include -I/usr/local/include'
+$LDFLAGS = '-L/opt/local/lib -L/usr/local/lib'
+system 'swig -ruby -I/usr/include -I/usr/local/include -I/opt/local/include sndfile.i'
unless find_library 'sndfile', 'sf_open'
error 'You need to install libsndfile'
exit
View
@@ -16,7 +16,7 @@ module Audio
# Refer to the libsndfile api[http://www.mega-nerd.com/libsndfile/api.html].
#
# Usage is quite straightforward: drop the +sf_+ prefix, omit the
- # <tt>SNDFILE*</tt> paramter, and use Sound or Numeric instead of
+ # <tt>SNDFILE*</tt> parameter, and use Sound or Numeric instead of
# (pointer, size) pairs. So, if you have a Soundfile object named +sf+, then
# sf_read_float(SNDFILE, float *ptr, sf_count_t items)
# becomes

0 comments on commit effa199

Please sign in to comment.