58e8c234ca
The old formula would not generate Makefile correctly if the user configures the system to use Qt toolchains from Nokia. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
20 lines
531 B
Ruby
20 lines
531 B
Ruby
require 'formula'
|
|
|
|
class Qwt < Formula
|
|
url 'http://sourceforge.net/projects/qwt/files/qwt/6.0.1/qwt-6.0.1.tar.bz2'
|
|
homepage 'http://qwt.sourceforge.net/'
|
|
md5 'ace68558eab873e2da7e641179c4ef0c'
|
|
|
|
depends_on 'qt'
|
|
|
|
def install
|
|
inreplace 'qwtconfig.pri' do |s|
|
|
# change_make_var won't work because there are leading spaces
|
|
s.gsub! /^\s*QWT_INSTALL_PREFIX\s*=(.*)$/, "QWT_INSTALL_PREFIX=#{prefix}"
|
|
end
|
|
|
|
system "qmake -spec macx-g++ -config release"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|