Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

jpeg 9 #91

Closed
wants to merge 1 commit into from

0 participants

Deleted user

Original homebrew-core PR: Homebrew/homebrew#17733

Deleted user ghost closed this
Stefan jpeg 9 cc50c89
Deleted user ghost reopened this
Deleted user

Ping @jacknagel this is ready.

Jack Nagel jacknagel closed this pull request from a commit
Stefan jpeg 9
Closes #91.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
8149442
Jack Nagel jacknagel closed this in 8149442
Elliot Saba staticfloat referenced this pull request from a commit in staticfloat/homebrew-versions
Alan Ivey apr-util 1.5.1
Closes #91.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
61e7e23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 19, 2013
  1. jpeg 9

    Stefan authored
This page is out of date. Refresh to see the latest.
Showing with 49 additions and 0 deletions.
  1. +49 −0 jpeg9.rb
49 jpeg9.rb
View
@@ -0,0 +1,49 @@
+require 'formula'
+
+class Jpeg9 < Formula
+ homepage 'http://www.ijg.org'
+ url 'http://www.ijg.org/files/jpegsrc.v9.tar.gz'
+ sha1 '724987e7690ca3d74d6ab7c1f1b6854e88ca204b'
+
+ option :universal
+
+ #http://trac.macports.org/ticket/37984
+ def patches
+ DATA
+ end
+
+ def install
+ ENV.universal_binary if build.universal?
+ # Builds static and shared libraries.
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make install"
+ end
+end
+
+__END__
+--- a/jmorecfg.h
++++ b/jmorecfg.h
+@@ -252,17 +252,16 @@ typedef void noreturn_t;
+ * Defining HAVE_BOOLEAN before including jpeglib.h should make it work.
+ */
+
+-#ifdef HAVE_BOOLEAN
++#ifndef HAVE_BOOLEAN
++typedef int boolean;
++#endif
++
+ #ifndef FALSE /* in case these macros already exist */
+ #define FALSE 0 /* values of boolean */
+ #endif
+ #ifndef TRUE
+ #define TRUE 1
+ #endif
+-#else
+-typedef enum { FALSE = 0, TRUE = 1 } boolean;
+-#endif
+-
+
+ /*
+ * The remaining options affect code selection within the JPEG library,
+
Something went wrong with that request. Please try again.