Navigation Menu

Skip to content

Commit

Permalink
CFLAGS
Browse files Browse the repository at this point in the history
darcs-hash:20080229034543-28bda-9668b1feb18f3b53c189e00f5f9e0d3035e1ca0e.gz
  • Loading branch information
fugalh committed Feb 29, 2008
1 parent 182410d commit effa199
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ext/sndfile/extconf.rb
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/audio/sndfile.rb
Expand Up @@ -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
Expand Down

0 comments on commit effa199

Please sign in to comment.