From a1cc148b3ca4e734055820cf83286b51caca48bc Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Sun, 7 Dec 2014 21:21:57 +0000 Subject: zlib & sqlite3: pkgconfig support native pkg-config support for zlib and sqlite to elimate the need to pass flags to configure or make stages in formulae. Closes #34765. Signed-off-by: Jack Nagel --- Library/Formula/aria2.rb | 8 +------- Library/Formula/mkvtoolnix.rb | 3 --- Library/Formula/pdf2htmlex.rb | 13 ------------- Library/Formula/spdylay.rb | 3 --- 4 files changed, 1 insertion(+), 26 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/aria2.rb b/Library/Formula/aria2.rb index 65a6e7fef..6890344fa 100644 --- a/Library/Formula/aria2.rb +++ b/Library/Formula/aria2.rb @@ -39,14 +39,8 @@ class Aria2 < Formula --without-libgcrypt ] - # system zlib and sqlite don't include .pc files - ENV["ZLIB_CFLAGS"] = "-I/usr/include" - ENV["ZLIB_LIBS"] = "-L/usr/lib -lz" - ENV["SQLITE3_CFLAGS"] = "-I/usr/include" - ENV["SQLITE3_LIBS"] = "-L/usr/lib -lsqlite3" - system "./configure", *args - system "make install" + system "make", "install" bash_completion.install "doc/bash_completion/aria2c" end diff --git a/Library/Formula/mkvtoolnix.rb b/Library/Formula/mkvtoolnix.rb index 27e03e80e..acbeb2d9f 100644 --- a/Library/Formula/mkvtoolnix.rb +++ b/Library/Formula/mkvtoolnix.rb @@ -73,9 +73,6 @@ class Mkvtoolnix < Formula def install ENV.cxx11 - ENV["ZLIB_CFLAGS"] = "-I/usr/include" - ENV["ZLIB_LIBS"] = "-L/usr/lib -lz" - boost = Formula["boost"] ogg = Formula["libogg"] vorbis = Formula["libvorbis"] diff --git a/Library/Formula/pdf2htmlex.rb b/Library/Formula/pdf2htmlex.rb index e5f67ef68..355f68687 100644 --- a/Library/Formula/pdf2htmlex.rb +++ b/Library/Formula/pdf2htmlex.rb @@ -54,27 +54,14 @@ class Pdf2htmlex < Formula # Fix linker error; see: http://trac.macports.org/ticket/25012 ENV.append "LDFLAGS", "-lintl" - # And fix the zlib hunting. - ENV.append "ZLIB_CFLAGS", "-I/usr/include" - ENV.append "ZLIB_LIBS", "-L/usr/lib -lz" - # Reset ARCHFLAGS to match how we build ENV["ARCHFLAGS"] = "-arch #{MacOS.preferred_arch}" system "./autogen.sh" system "./configure", *args - # Fix hard-coded install locations that don't respect the target bindir - inreplace "Makefile", "/Applications", "$(prefix)" - system "make" system "make", "install" - - # Fix breaking zlib pkg-config file issue. - inreplace "#{prefix}/fontforge/lib/pkgconfig/libfontforge.pc", "zlib", " " - - # Fix breaking zlib pkg-config file issue number 2. - inreplace "#{prefix}/fontforge/lib/pkgconfig/libfontforgeexe.pc", "zlib", " " end # Prepend the paths to always find this dep fontforge instead of another. diff --git a/Library/Formula/spdylay.rb b/Library/Formula/spdylay.rb index 824e10618..b28a90734 100644 --- a/Library/Formula/spdylay.rb +++ b/Library/Formula/spdylay.rb @@ -25,9 +25,6 @@ class Spdylay < Formula system "automake" system "autoconf" - ENV["ZLIB_CFLAGS"] = "-I/usr/include" - ENV["ZLIB_LIBS"] = "-L/usr/lib -lz" - system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make", "install" -- cgit v1.2.3