homebrew-core/Formula/gbdfed.rb

43 lines
1.2 KiB
Ruby
Raw Normal View History

class Gbdfed < Formula
desc "Bitmap Font Editor"
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
depends_on "pkg-config" => :build
depends_on "gtk+"
# Fixes compilation error with gtk+ per note on the project homepage.
2014-03-19 17:07:50 +00:00
patch :DATA
def install
# BDF_NO_X11 has to be defined to avoid X11 headers from being included
ENV["CPPFLAGS"] = "-DBDF_NO_X11"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--without-x"
system "make", "install"
end
test do
assert (bin/"gbdfed").exist?
assert (share/"man/man1/gbdfed.1").exist?
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 \