2011-03-13 02:19:55 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Dzen2 < Formula
|
|
|
|
homepage 'http://sites.google.com/site/gotmor/dzen'
|
2013-01-27 22:59:48 +00:00
|
|
|
url 'http://sites.google.com/site/gotmor/dzen2-0.8.5.tar.gz'
|
2012-08-23 05:54:06 +00:00
|
|
|
sha1 '9216163e86e02b2a75de1dfec1954b1058a829e4'
|
2011-03-13 02:19:55 +00:00
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
|
|
|
|
2011-03-13 02:19:55 +00:00
|
|
|
def install
|
|
|
|
ENV.append 'LDFLAGS', '-lX11 -lXinerama -lXpm'
|
|
|
|
ENV.append_to_cflags '-DVERSION=\"${VERSION}\" -DDZEN_XINERAMA -DDZEN_XPM'
|
|
|
|
|
|
|
|
inreplace 'config.mk' do |s|
|
|
|
|
s.change_make_var! "PREFIX", prefix
|
|
|
|
s.change_make_var! "CC", ENV.cc
|
|
|
|
s.change_make_var! "CFLAGS", ENV.cflags
|
|
|
|
s.change_make_var! "LDFLAGS", ENV.ldflags
|
|
|
|
end
|
|
|
|
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|