2012-04-04 10:31:13 +00:00
|
|
|
class Gbdfed < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Bitmap Font Editor"
|
2015-05-21 15:05:57 +00:00
|
|
|
homepage "http://sofia.nmsu.edu/~mleisher/Software/gbdfed/"
|
|
|
|
url "http://sofia.nmsu.edu/~mleisher/Software/gbdfed/gbdfed-1.6.tar.gz"
|
|
|
|
sha256 "8042575d23a55a3c38192e67fcb5eafd8f7aa8d723012c374acb2e0a36022943"
|
|
|
|
revision 1
|
2012-04-04 10:31:13 +00:00
|
|
|
|
2015-05-21 15:05:57 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "gtk+"
|
2012-04-04 10:31:13 +00:00
|
|
|
|
|
|
|
# Fixes compilation error with gtk+ per note on the project homepage.
|
2014-03-19 17:07:50 +00:00
|
|
|
patch :DATA
|
2012-04-04 10:31:13 +00:00
|
|
|
|
|
|
|
def install
|
2015-05-21 15:05:57 +00:00
|
|
|
# BDF_NO_X11 has to be defined to avoid X11 headers from being included
|
|
|
|
ENV["CPPFLAGS"] = "-DBDF_NO_X11"
|
2012-04-04 10:31:13 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2015-05-21 15:05:57 +00:00
|
|
|
"--prefix=#{prefix}", "--without-x"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert (bin/"gbdfed").exist?
|
|
|
|
assert (share/"man/man1/gbdfed.1").exist?
|
2012-04-04 10:31:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/Makefile.in b/Makefile.in
|
|
|
|
index b482958..10a528e 100644
|
|
|
|
--- a/Makefile.in
|
|
|
|
+++ b/Makefile.in
|
|
|
|
@@ -28,8 +28,7 @@ CC = @CC@
|
|
|
|
CFLAGS = @XX_CFLAGS@ @CFLAGS@
|
|
|
|
|
|
|
|
DEFINES = @DEFINES@ -DG_DISABLE_DEPRECATED \
|
|
|
|
- -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED \
|
|
|
|
- -DGTK_DISABLE_DEPRECATED
|
|
|
|
+ -DGDK_PIXBUF_DISABLE_DEPRECATED
|
|
|
|
|
|
|
|
SRCS = bdf.c \
|
|
|
|
bdfcons.c \
|