Skip to content

Instantly share code, notes, and snippets.

@mistydemeo
mistydemeo / libmikmod-patches
Created May 13, 2011 02:05
Patch for libmikmod - fixes broken audio on 64-bit, crashes
diff --git a/include/mikmod.h.in b/include/mikmod.h.in
index 9b98f43..c39f779 100644
--- a/include/mikmod.h.in
+++ b/include/mikmod.h.in
@@ -85,7 +85,7 @@ typedef char CHAR;
@DOES_NOT_HAVE_SIGNED@
-#if defined(__arch64__) || defined(__alpha)
+#if defined(__arch64__) || defined(__alpha) || defined(_LP64)
@mistydemeo
mistydemeo / gist:974905
Created May 16, 2011 17:25
Mplayer install error when cdparanoia is installed
==> Checking out svn://svn.mplayerhq.hu/mplayer/trunk
/usr/bin/svn up --force svn://svn.mplayerhq.hu/mplayer/trunk /Users/digitilization/Library/Caches/Homebrew/mplayer--svn
Skipped 'svn://svn.mplayerhq.hu/mplayer/trunk'
Fetching external item into '/Users/digitilization/Library/Caches/Homebrew/mplayer--svn/libdvdread4'
External at revision 1226.
Fetching external item into '/Users/digitilization/Library/Caches/Homebrew/mplayer--svn/libdvdnav'
External at revision 1226.
@mistydemeo
mistydemeo / smartptr.patch
Created September 4, 2011 17:27
SidPlay SmartPtr patch for GCC 3.4 compilation
--- sidplay-libs-2.1.1/libsidplay/include/sidplay/SmartPtr.h 2001/03/21 22:43:21 1.1
+++ sidplay-libs-2.1.1/libsidplay/include/sidplay/SmartPtr.h 2004/06/16 18:27:41 1.2
@@ -211,16 +211,16 @@
{
if ( bufferLen >= 1 )
{
- pBufCurrent = ( bufBegin = buffer );
- bufEnd = bufBegin + bufferLen;
- bufLen = bufferLen;
- status = true;
diff --git a/configure.in b/configure.in
index 0f5dcfb..c64934c 100644
--- a/configure.in
+++ b/configure.in
@@ -331,7 +331,6 @@ fi
if test $libmikmod_driver_esd = yes
then
libmikmod_driver_esd=no
- AM_PATH_ESD(0.2.6,libmikmod_driver_esd=yes)
# We also need to know if esd is compiled with alsa support
diff -Nurd -x'*~' leptonica-1.68.orig/src/pngio.c leptonica-1.68/src/pngio.c
--- leptonica-1.68.orig/src/pngio.c 2011-02-01 00:41:12.000000000 -0500
+++ leptonica-1.68/src/pngio.c 2011-07-09 09:17:17.000000000 -0400
@@ -108,6 +108,10 @@
#include "png.h"
+#ifdef HAVE_LIBZ
+#include "zlib.h"
+#endif
def install
pwd = Dir.pwd
cd ".." do
mv pwd, "src"
mkdir pwd
mkdir pwd + "/build"
mv "src", pwd
end
#We only build creative tools (krita and karbon)
require 'fileutils'
require 'tmpdir'
# FileUtils.mv
#
# Ruby 1.8.7's FileUtils.mv calls File.rename on the src. However, File.rename
# raises Errno::EXDEV when src and dst exist on separate devices. The fallback
# is to perform a copy instead of a rename.
#
# However, there is a bug in 1.8.7's implementation. If src is a symlink or a
@mistydemeo
mistydemeo / fits-ng.sh
Created October 25, 2012 22:38
Running FITs in nailgun
#!/bin/bash
FITS_HOME=`brew --prefix fits`
export FITS_HOME
JCPATH=${FITS_HOME}/libexec
# Add on extra jar files to APPCLASSPATH
for i in "$JCPATH"/*.jar; do
APPCLASSPATH="$APPCLASSPATH":"$i"
done
@mistydemeo
mistydemeo / publishers.txt
Created November 9, 2012 16:28
Washington publishers from the DPLA API
[Spokane, Wash.] : Manuscripts, Archives, and Special Collections, Washington State University Libraries
[Seattle (Wash.)] : University of Washington
[Athens, Ga. : Digital Library of Georgia]
Washington, D.C. : Library of Congress
[Seattle, Wash.] : Seattle Civil Rights and Labor History Project
[Spokane, Wash.] : Washington State University
[Washington, D.C.] : Library of Congress
[Athens, Ga.] : Digital Library of Georgia
[Atlanta, Ga.] : Emory University
Atlanta, Ga. : Kenan Research Center, Atlanta History Center
This file has been truncated, but you can view the full file.
[{"_id":"a6df14696ad83c6f6760d897325ee2ab","url":"http://kaga.wsulibs.wsu.edu/u?/5985,85"},{"_id":"e2af7c68ae213ed4957f568c46f455be","url":"http://kaga.wsulibs.wsu.edu/u?/5985,85"},{"_id":"a6df14696ad83c6f6760d89732618135","url":"http://kaga.wsulibs.wsu.edu/u?/5985,85"},{"_id":"23b0b054b28e68363e5f26d11ba00e86","url":"http://depts.washington.edu/civilr/"},{"_id":"23b0b054b28e68363e5f26d11ba07643","url":"http://depts.washington.edu/civilr/"},{"_id":"e2af7c68ae213ed4957f568c469858e6","url":"http://depts.washington.edu/civilr/"},{"_id":"a6df14696ad83c6f6760d897325f05d8","url":"http://content.wsulibs.wsu.edu/u?/5985,68"},{"_id":"c9ea3fdadb143bc25bda9ca56eef352e","url":"http://www.georgiaencyclopedia.org/nge/Multimedia.jsp?id=m-9930"},{"_id":"5fb8192ae885715572e6a05e65e3e4a4","url":"http://www.georgiaencyclopedia.org/nge/Multimedia.jsp?id=m-9930"},{"_id":"e2af7c68ae213ed4957f568c46f4924d","url":"http://content.wsulibs.wsu.edu/u?/5985,68"},{"_id":"a6df14696ad83c6f6760d8973261b968","url":"http://content.wsulibs.wsu.