2010-07-01 18:59:12 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Boxes < Formula
|
2010-07-01 18:59:12 +00:00
|
|
|
homepage 'http://boxes.thomasjensen.com/'
|
2013-11-28 20:01:41 +00:00
|
|
|
url 'http://boxes.thomasjensen.com/download/boxes-1.1.1.src.tar.gz'
|
2014-11-18 20:10:47 +00:00
|
|
|
head 'https://github.com/ascii-boxes/boxes.git'
|
2013-11-28 20:01:41 +00:00
|
|
|
sha1 '9b09f8c59276a3978ecaf985029b8459aa69e9c1'
|
2010-07-01 18:59:12 +00:00
|
|
|
|
|
|
|
def install
|
2014-11-18 20:10:47 +00:00
|
|
|
ENV.m32
|
|
|
|
|
2010-07-01 18:59:12 +00:00
|
|
|
# distro uses /usr/share/boxes change to prefix
|
2014-11-18 20:10:47 +00:00
|
|
|
system "make",
|
|
|
|
"GLOBALCONF=#{share}/boxes-config",
|
|
|
|
"CC=#{ENV.cc}",
|
|
|
|
# Force 32 bit compile
|
|
|
|
# These flags are only (as of 1.1.1) supported on HEAD
|
|
|
|
"CFLAGS_ADDTL=-m32",
|
|
|
|
"LDFLAGS_ADDTL=-m32"
|
2010-07-01 18:59:12 +00:00
|
|
|
|
|
|
|
bin.install 'src/boxes'
|
|
|
|
man1.install 'doc/boxes.1'
|
|
|
|
share.install 'boxes-config'
|
|
|
|
end
|
|
|
|
end
|