diff options
| author | Adam Vandenberg | 2012-08-26 12:17:37 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-26 16:59:13 -0700 |
| commit | 90a063b9e9b4aecf07cf367928d17d7b7e245acc (patch) | |
| tree | 21b54853e3ae385c5061207c1c20a984f5db2ebd /Library/Formula/ghostscript.rb | |
| parent | e3598aa8d01147634b702ecd4ae9f395a0beb635 (diff) | |
| download | homebrew-90a063b9e9b4aecf07cf367928d17d7b7e245acc.tar.bz2 | |
ghostscript: install libraries
Closes #12598.
Diffstat (limited to 'Library/Formula/ghostscript.rb')
| -rw-r--r-- | Library/Formula/ghostscript.rb | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/Library/Formula/ghostscript.rb b/Library/Formula/ghostscript.rb index bc22da399..33fde65dd 100644 --- a/Library/Formula/ghostscript.rb +++ b/Library/Formula/ghostscript.rb @@ -13,7 +13,7 @@ class Ghostscript < Formula head 'git://git.ghostscript.com/ghostpdl.git' - if ARGV.build_head? + if build.head? depends_on :automake depends_on :libtool end @@ -25,6 +25,11 @@ class Ghostscript < Formula depends_on 'little-cms2' depends_on :libpng + # Fix dylib names, per installation instructions + def patches + DATA + end + def move_included_source_copies # If the install version of any of these doesn't match # the version included in ghostscript, we get errors @@ -41,7 +46,7 @@ class Ghostscript < Formula # ghostscript configure ignores LDFLAGs apparently ENV['LIBS'] = "-L#{MacOS::X11.lib}" - src_dir = ARGV.build_head? ? "gs" : "." + src_dir = build.head? ? "gs" : "." cd src_dir do move_included_source_copies @@ -53,14 +58,18 @@ class Ghostscript < Formula --with-system-libtiff ] - if ARGV.build_head? + if build.head? system './autogen.sh', *args else system './configure', *args end + # versioned stuff in main tree is pointless for us inreplace 'Makefile', '/$(GS_DOT_VERSION)', '' + + # Install binaries and libraries system "make install" + system "make install-so" end GhostscriptFonts.new.brew do @@ -70,3 +79,25 @@ class Ghostscript < Formula (man+'de').rmtree end end + +__END__ +--- a/base/unix-dll.mak ++++ b/base/unix-dll.mak +@@ -59,12 +59,12 @@ + + + # MacOS X +-#GS_SOEXT=dylib +-#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) +-#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) +-#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) ++GS_SOEXT=dylib ++GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) ++GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) ++GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) + #LDFLAGS_SO=-dynamiclib -flat_namespace +-LDFLAGS_SO_MAC=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR) ++LDFLAGS_SO_MAC=-dynamiclib -install_name __PREFIX__/lib/$(GS_SONAME_MAJOR_MINOR) + #LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME) + + GS_SO=$(BINDIR)/$(GS_SONAME) |
