installation log - Mac OS X Tiger/Leopard/Snow Leopard (ppc|ppc64|i386|x86_64)

codename: ubagami

package list:

secure/abmail-20101012
secure/logdo-20101011
devel/bzr-2.2.1
archivers/lha-20081030
excludes/hostconfig-20101008
text/tops-20101010
science/cv/OpenCV-2.1.0
science/gap/gap4r4
av/libdc1394-2.1.2
av/libusb-1.0.8
libs/m17n/m17n-im-config-0.9.0
input/uim-1.6.0
input/scim-m17n-0.2.2
libs/m17n/m17n-lib-1.6.2
libs/m17n/m17n-db-1.6.2
libs/m17n/libotf-0.9.12
input/scim-anthy-1.2.7
input/scim-canna-1.0.0
net/emacs-w3m-20100930
net/w3m-0.5.2
img/imlib-1.9.15
science/boost/others/openmpi-1.4.2
science/octave/octave-3.2.4
img/GraphicsMagick-1.3.12
devel/misc/sed-4.2
science/octave/qhull-2010.1
devel/cmake-2.8.2
libs/fftw-3.2.2_quadruple
libs/fftw-3.2.2_single
science/octave/fort77-1.15
science/octave/libf2c2-20090411
science/octave/f2c-20090411
science/octave/glpk-4.44
libs/mp/mpc-0.8.2
libs/mp/mpfr-3.0.0
libs/mp/gmp-4.3.2
science/maxima/imaxima-imath-1.0
science/maxima/maxima-ub32-darwin
science/maxima/breqn097a
terms/rlwrap-0.37
libs/readline-6.1
science/maxima/maxima-5.22.1
science/maxima/sbcl-1.0.42-ub32-darwin
science/maxima/sbcl-1.0.42
libs/libsigsegv-2.6
terms/mlterm-3.0.1
libs/fribidi-0.19.2
input/scim-1.4.7
net/wget-1.12
text/ptetex3/replacecjkfonts-20060523
text/ptetex3/convert-ps-euc-j-20070119
text/ptetex3/ptetex3-20090610
img/inkscape/inkscape-0.48.0
libs/poppler/poppler-data-0.4.3
libs/poppler/poppler-0.14.2
libs/gtk+/gtkmm-2.21.5
libs/gtk+/atkmm-2.21.2
libs/pango/pangomm-2.26.2
libs/cairo/cairomm-1.8.4
libs/glibmm-2.25.3
libs/libsigc++-2.2.8
libs/gc-7.1
img/gimp/gimp-2.6.10
img/gegl/gegl-0.1.2
img/gegl/libopenraw-0.0.8
img/gegl/babl-0.1.2
libs/gtk+/gtk+-2.21.6
libs/glib-2.25.14
libs/gtk+/shared-mime-info-0.71
libs/gtk+/atk-1.30.0
libs/graphviz/graphviz-2.26.3
libs/librsvg/librsvg-2.31.0
libs/libcroco-0.6.2
libs/gdk-pixbuf-2.21.6
libs/gts-0.7.6
libs/pango/pango-1.28.1
libs/libxslt-1.1.26
libs/cairo/xsvg-0.2.1
libs/cairo/svg2pdf-0.1.3
libs/cairo/svg2png-0.1.3
libs/cairo/libsvg-cairo-0.1.6
libs/cairo/libsvg-0.1.4
libs/libxml2-2.7.7
libs/cairo/cairo-1.8.10
libs/cairo/glitz-0.5.6
libs/cairo/pixman-0.18.4
libs/fontconfig-2.8.0
libs/freetype-2.4.2/freetype-2.4.2
libs/expat-2.0.1
libs/t1lib-5.1.2
text/aspell6-en-6.0-0
text/aspell-0.60.6
secure/clamav-0.96.2
ebooks/E-books
ebooks/ebnetd-1.0
ebooks/eb-4.4.3
net/www/tokyopromenade-0.9.21
x11/drawer/tgif-QPL-4.2.2
libs/gd-2.0.35
img/ImageMagick-6.6.3-2
img/liblqr-1-0.4.1
libs/gettext-0.18.1.1
libs/iconv/libiconv-1.13.1
devel/autotools/libtool-2.2.10
devel/autotools/automake-1.11.1
devel/autotools/autoconf-2.67
libs/fftw-3.2.2
img/dcraw-9.04
img/lcms2-2.0a
img/lcms-1.19
img/tiff-3-20100803
img/jasper-1.900.1
lang/ps/ghostscript-7.07
archivers/xz-4.999.8beta
archivers/bzip2-1.0.5
av/players/mplayer/mplayer-export-2009-07-07
av/mjpegtools-1.9.0
av/gpac/gpac-0.4.5
img/OpenJPEG_v1_3
editors/emacs-23.2
img/giflib-4.1.6
img/libpng-1.2.44
img/jpeg-8b
science/gnuplot-4.4.0
science/boost/others/threadpool-0_2_5-src
libs/gsl/gsl-1.14
science/boost/boost_1_42_0
libs/db/qdbm-1.8.77
libs/db/tokyocabinet-1.4.39
libs/pcre-8.00
av/stream/flvstreamer-1.8k
misc/qemu/qemu-0.11.0-rc2
devel/git-1.6.4.2
net/curl-7.19.6
devel/autotools/make-3.81
science/boost/boost_1_39_0
science/boost/boost-jam-3.1.17
misc/gv-3.6.7
x11/libs/Xaw3d-1.5E
lang/ps/ghostscript-8.64
misc/du2ps-3.1
fonts/cid/oreilly-cid-2004
fonts/tt/macosx-u-ttf-2007
fonts/tt/macosx-c-ttf-2007
fonts/tt/VLGothic-20090710
fonts/tt/monafont-ttf-2.90
fonts/tt/opfc-ModuleHP-1.1.1_withIPAMonaFonts-1.0.8
fonts/tt/IPAfont00203
fonts/tt/sazanami-20040629
fonts/tt/baekmuk-2002
fonts/tt/arphic-1999
fonts/ot/IPAfont00301
fonts/ot/oreilly-otf-2004
fonts/ot/macosx-j-otf-2007
utils/findutils-4.4.2
text/nkf-20090708
pagers/lv451
pagers/less-382
media/cdrdao-1.2.2
media/cdrtools-2.01.01a61
av/libquicktime-1.1.2
av/libsamplerate-0.1.7
devel/pkg-config-0.23
av/twolame-0.3.12
av/libsndfile-1.0.20
db/sqlite-3.6.16
av/libdca-20090708
av/libdv-1.0.0
libs/popt-1.14
av/libdvdnav-4.1.3
av/dvdauthor-0.6.14
av/vobcopy-1.2.0
av/dvdbackup-0.4.1
av/libdvdread-0.9.7
av/libdvdcss-1.2.9
av/mpeg2/mpeg2dec-0.4.1
av/mpeg2/mpeg2vidcodec_v12
av/players/mplayer/ffmpeg-20090704
av/lame-398-2
av/x264-20090704
lang/asm/yasm-0.8.0
libs/libsdl/SDL-1.2.13
av/faac-1.28
av/faad2-2.7
av/a52dec-0.7.4
devel/asciidoc-8.4.5
devel/xmlto-0.0.22
devel/getopt-1.1.4
secure/gnupg-1.4.9
devel/intltool-0.40.6
input/anthy-9100h
editors/intlfonts-1.2.1
fonts/bm/monafont-2.90
fonts/bm/ayu-20050827
fonts/bm/Kappa20-0.396
fonts/bm/japanese+fonts-20050721
fonts/bm/shinonome-0.9.11
fonts/bm/mplus_bitmap_fonts-2.2.4
editors/site-lisp/mew-6.2.51
editors/site-lisp/tamago-20090601
editors/site-lisp/mule-ucs-20061127-1
wm/blackbox-0.70.1+themes
wm/blackbox-0.70.1
x11/input/mac/kinput2-v3.1
input/Canna37p3
input/FreeWnn-20090623
x11/terms/kterm-6.2.0
x11/misc/xdu-3.0
x11/text/mgdiff-1.0-debian-i18n
widgets/lesstif-0.95.2
x11/misc/x2x-1.27
x11/misc/xclip-0.08
x11/sys/xon-2005

secure/abmail-20101012

preparation
[ -f abmail-20101012.tar.bz2 ] || {
  [ -d abmail ] && (cd abmail && git pull;) ||
  git clone git://vcs.aihara.co.jp/abmail.git &&
  (cd abmail &&
  git archive -v --format=tar --prefix=abmail-20101012/ -- HEAD^{tree} | bzip2 > ../abmail-20101012.tar.bz2
  )
}
tar xvjf abmail-20101012.tar.bz2
(cd abmail-20101012 &&
patch -p0 -b -z.org < ../abmail-20101012-ubagami.patch
)
build
make 'CFLAGS=-DMYNETWORK=\"133.38.0.0\" -DMYNETMASK=\"16\" -DMYDOMAIN=\"saitama-u.ac.jp\" -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDLIBS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' PREFIX=/opt/local 
(cd tools &&
make MYDOMAIN="saitama-u.ac.jp" 'CFLAGS=-DMYNETWORK=\"133.38.0.0\" -DMYNETMASK=\"16\" -DMYDOMAIN=\"saitama-u.ac.jp\" -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDLIBS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' PREFIX=/opt/local
)
(cd libexec &&
make CFLAGS='-DMYNETWORK=\"133.38.0.0\" -DMYNETMASK=\"16\" -DMYDOMAIN=\"saitama-u.ac.jp\" -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDLIBS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' PREFIX=/opt/local
)
patch
--- ./ams_reliable.lst.org	2010-10-12 15:56:58.000000000 +0900
+++ ./ams_reliable.lst	2010-10-12 16:43:09.000000000 +0900
@@ -93,7 +93,7 @@
 133.15.0.0/16		tut.ac.jp		# cdhcp for d3-505.pse.tut.ac.jp
 133.20.0.0/16		dendai.ac.jp		# unknown?
 133.31.0.0/16		tus.ac.jp		# fqdn expired?
-133.38.0.0/16		saitama-u.ac.jp		# unknown
+#133.38.0.0/16		saitama-u.ac.jp		# unknown
 133.41.0.0/16		hiroshima-u.ac.jp	# cdhcp, unknown, fqdn
 133.82.0.0/16		chiba-u.ac.jp		# unknown for 133.82.180.177
 133.103.0.0/16		GENOMENET		# oldest unknown
--- ./ams_trusted.lst.org	2010-10-12 15:56:58.000000000 +0900
+++ ./ams_trusted.lst	2010-10-12 17:27:57.000000000 +0900
@@ -35,6 +35,7 @@
 210.136.245.0/24	nttpc.ne.jp		# replace with dracd.db
 210.139.0.0/17		nttpc.ne.jp		# replace with dracd.db
 #210.153.128.0/17	sphere.ad.jp		# replace with dracd.db expired?
+210.154.62.64/29	aihara.co.jp		# only for outside
 210.154.62.72/29	aihara.co.jp		# expired?
 210.154.160.0/19	ocn.ne.jp		# replace with dracd.db
 #210.157.16.0/20	interq.or.jp		# replace with dracd.db expired?
--- ./libexec/makefile.org	2010-10-12 15:56:58.000000000 +0900
+++ ./libexec/makefile	2010-10-12 16:18:08.000000000 +0900
@@ -65,6 +65,7 @@
 abmisc.o	\
 
 LIBRPC=libabaddr.a
+RANLIB=ranlib
 
 BINS=\
 abaddrc	\
@@ -75,6 +76,7 @@
 
 %.a:
 	$(AR) $(ARFLAGS) $@ $^
+	$(RANLIB) $@
 
 OUT_INCS=\
 abcidr.h	\
--- ./rhs_unreliable.lst.org	2010-10-12 15:56:58.000000000 +0900
+++ ./rhs_unreliable.lst	2010-10-12 16:49:59.000000000 +0900
@@ -18,8 +18,8 @@
 10(?:\.\d+){3}
 172\.(?:1[6-9]|2[0-9]|3[0-1])(?:\.\d+){2}
 192\.168(?:\.\d+){2}
-210\.154\.62\.(?:6[4-9]|7[0-1])
-.*aihara\.co\.jp
+#210\.154\.62\.(?:6[4-9]|7[0-1])
+#.*aihara\.co\.jp
 #133\.11(?:\.\d+){2}
 #.*sat\.t\.u-tokyo\.ac\.jp
 #133\.20(?:\.\d+){2}
@@ -29,8 +29,8 @@
 #.*dti\.ne\.jp
 #202\.225\.(?:8[8-9]|9[0-5])(?:\.\d+)
 #.*biglobe\.ne\.jp
-#133\.38(?:\.\d+){2}
-#.*\.saitama-u\.ac\.jp
+133\.38(?:\.\d+){2}
+.*\.saitama-u\.ac\.jp
 [^\.\s]{32,}.*
 [0-9a-f]{8,}
 .*\(.*				(<:		80.51.229.10
installation
make 'CFLAGS=-DMYNETWORK=\"133.38.0.0\" -DMYNETMASK=\"16\" -DMYDOMAIN=\"saitama-u.ac.jp\"' PREFIX=/opt/local install
(cd tools &&
make MYDOMAIN="saitama-u.ac.jp" 'CFLAGS=-DMYNETWORK=\"133.38.0.0\" -DMYNETMASK=\"16\" -DMYDOMAIN=\"saitama-u.ac.jp\"' PREFIX=/opt/local install
)
(cd libexec &&
make CFLAGS='-DMYNETWORK=\"133.38.0.0\" -DMYNETMASK=\"16\" -DMYDOMAIN=\"saitama-u.ac.jp\"' PREFIX=/opt/local install
)
installed
/opt/local/bin/abaddr
/opt/local/bin/abaddrc
/opt/local/bin/abcidr
/opt/local/bin/abmail
/opt/local/bin/abmail-cat
/opt/local/bin/abmail-echo
/opt/local/bin/abmail-mv
/opt/local/bin/abmail-rescue
/opt/local/bin/abmailc
/opt/local/bin/abmailcat
/opt/local/bin/abmailecho
/opt/local/bin/abmailmv
/opt/local/bin/abmailrescue
/opt/local/bin/abmails-cat
/opt/local/bin/abmails-cats
/opt/local/bin/abmails-echo
/opt/local/bin/abmails-echos
/opt/local/bin/abmails-rescue
/opt/local/bin/abmails-rescues
/opt/local/bin/abmailsreport
/opt/local/bin/abmailsreports
/opt/local/bin/abmailsview
/opt/local/bin/abmailsviews
/opt/local/bin/abmess
/opt/local/etc/abmail/ams_reliable.lst
/opt/local/etc/abmail/ams_unreliable.lst
/opt/local/etc/abmail/ras_reliable.lst
/opt/local/etc/abmail/rfs_reliable.lst
/opt/local/etc/abmail/rhs_unreliable.lst
/opt/local/etc/abmail/rns_reliable.lst
/opt/local/etc/abmail/rns_unreliable.lst
/opt/local/etc/abmail/rss_reliable.lst
/opt/local/include/abaddri.h
/opt/local/lib/libabaddr.a
/opt/local/sbin/abaddrd
/opt/local/var/abmail/abaddr.bdb
/opt/local/var/abmail/ams_reliable.lst.out.default
/opt/local/var/abmail/ams_trusted.lst.out.default
/opt/local/var/abmail/ams_unreliable.lst.out.default

secure/logdo-20101011

preparation
[ -f logdo-20101011.tar.bz2 ] || {
  [ -d logdo ] && (cd logdo && git pull;) ||
  git clone git://vcs.aihara.co.jp/logdo.git &&
  (cd logdo &&
  git archive -v --format=tar --prefix=logdo-20101011/ -- HEAD^{tree} | bzip2 > ../logdo-20101011.tar.bz2
  )
}
tar xvjf logdo-20101011.tar.bz2
build
make 'CXXFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDLIBS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' PREFIX=/opt/local 
installation
#make PREFIX=/opt/local install 
cp logdo /opt/local/bin/
cp doc/logdo.1 /opt/local/share/man/man1/
mkdir -p /opt/local/etc/logdo
cp examples/logdo-*.xml /opt/local/etc/logdo/
installed
/opt/local/bin/logdo
/opt/local/etc/logdo/logdo-darwin.xml
/opt/local/etc/logdo/logdo-solaris.xml
/opt/local/share/man/man1/logdo.1
host_configuration
[ ! -d /Library/StartupItems/LogDo ] && \
mkdir /Library/StartupItems/LogDo
if [ ! -f /Library/StartupItems/LogDo/LogDo ]; then
  cat <<EOF > /Library/StartupItems/LogDo/LogDo
#!/bin/sh

##
# LogDo Service
##

. /etc/rc.common

StartService ()
{
	sudo -b /opt/local/bin/logdo -c /opt/local/etc/logdo/logdo-darwin.xml
}

StopService ()
{
	killall -9 logdo
}

RestartService () { StopService; StartService; }

RunService "\$1"
EOF
  chmod +x /Library/StartupItems/LogDo/LogDo
fi
if [ ! -f /Library/StartupItems/LogDo/StartupParameters.plist ]; then
  cat <<EOF > /Library/StartupItems/LogDo/StartupParameters.plist
{
  Description     = "LogDo Service";
  Provides        = ("LogDo Service");
}
EOF
fi
#/Library/StartupItems/LogDo/LogDo start
host_unconfiguration
/Library/StartupItems/LogDo/LogDo stop &&
rm -rf /Library/StartupItems/LogDo

devel/bzr-2.2.1

preparation
verify_digest(){	# $0 method file string
  case "$1" in
  *)
    DIGEST=`echo "$1" | tr a-z A-Z`
    [ "$DIGEST($2)= $3" = "`openssl $1 $2`" ]
    ;;
  esac
}
verify_signature(){	# $0 url|id ... sig
  while [ "$1" != "" ]; do
    case "$1" in
    0x*)
      gpg --recv-keys "$1" || return $?
      ;;
    http:*|ftp:*)
      curl "$1" | gpg --import || return $?
      ;;
    *)
      gpg --verify "$1"
      return $?
    esac
    shift
  done
}
error_out(){	# $0 message ...
  echo "$@" 1>&2
  exit 1
}

curl -ROL -C - http://launchpad.net/bzr/2.2/2.2.1/+download/bzr-2.2.1.tar.gz
curl -ROL -C - http://launchpad.net/bzr/2.2/2.2.1/+download/bzr-2.2.1.tar.gz.sig

verify_signature 0xDEF6218F bzr-2.2.1.tar.gz.sig || error_out "$0: stopped at line $LINENO"

tar xvzf bzr-2.2.1.tar.gz
(cd bzr-2.2.1 &&
patch -p0 -b -z.org < ../bzr-2.2.1-ubagami.patch
)
build
python setup.py build 
perl -pi -e 's|^#!|#!/usr/bin/env PYTHONPATH=/opt/local/10.5/lib/python | if ($.==1)' build/scripts-2.5/bzr
patch
--- ./setup.py~	2010-09-18 09:37:55.000000000 +0900
+++ ./setup.py	2010-10-08 23:03:09.000000000 +0900
@@ -735,9 +735,9 @@
         # that's going to align with the hardcoded paths in apport.
         if os.geteuid() == 0:
             DATA_FILES += [
-                ('/usr/share/apport/package-hooks',
+                ('/opt/local/10.5/share/apport/package-hooks',
                     ['apport/source_bzr.py']),
-                ('/etc/apport/crashdb.conf.d/',
+                ('/opt/local/10.5/etc/apport/crashdb.conf.d/',
                     ['apport/bzr-crashdb.conf']),]
 
     # std setup
installation
python setup.py install --home /opt/local/10.5 
installed
/opt/local/10.5/lib/python/bzr-2.2.1-py2.5.egg-info
/opt/local/10.5/lib/python/bzrlib/__init__.pyc
/opt/local/10.5/lib/python/bzrlib/_annotator_py.pyc
/opt/local/10.5/lib/python/bzrlib/_btree_serializer_py.pyc
/opt/local/10.5/lib/python/bzrlib/_chk_map_py.pyc
/opt/local/10.5/lib/python/bzrlib/_chunks_to_lines_py.pyc
/opt/local/10.5/lib/python/bzrlib/_dirstate_helpers_py.pyc
/opt/local/10.5/lib/python/bzrlib/_groupcompress_py.pyc
/opt/local/10.5/lib/python/bzrlib/_knit_load_data_py.pyc
/opt/local/10.5/lib/python/bzrlib/_known_graph_py.pyc
/opt/local/10.5/lib/python/bzrlib/_patiencediff_py.pyc
/opt/local/10.5/lib/python/bzrlib/_readdir_py.pyc
/opt/local/10.5/lib/python/bzrlib/_rio_py.pyc
/opt/local/10.5/lib/python/bzrlib/_static_tuple_py.pyc
/opt/local/10.5/lib/python/bzrlib/add.pyc
/opt/local/10.5/lib/python/bzrlib/annotate.pyc
/opt/local/10.5/lib/python/bzrlib/api.pyc
/opt/local/10.5/lib/python/bzrlib/atomicfile.pyc
/opt/local/10.5/lib/python/bzrlib/bencode.pyc
/opt/local/10.5/lib/python/bzrlib/bisect_multi.pyc
/opt/local/10.5/lib/python/bzrlib/branch.pyc
/opt/local/10.5/lib/python/bzrlib/branchbuilder.pyc
/opt/local/10.5/lib/python/bzrlib/breakin.pyc
/opt/local/10.5/lib/python/bzrlib/btree_index.pyc
/opt/local/10.5/lib/python/bzrlib/bugtracker.pyc
/opt/local/10.5/lib/python/bzrlib/builtins.pyc
/opt/local/10.5/lib/python/bzrlib/bundle/__init__.pyc
/opt/local/10.5/lib/python/bzrlib/bundle/apply_bundle.pyc
/opt/local/10.5/lib/python/bzrlib/bundle/bundle_data.pyc
/opt/local/10.5/lib/python/bzrlib/bundle/commands.pyc
/opt/local/10.5/lib/python/bzrlib/bundle/serializer/__init__.pyc
/opt/local/10.5/lib/python/bzrlib/bundle/serializer/v08.pyc
/opt/local/10.5/lib/python/bzrlib/bundle/serializer/v09.pyc
/opt/local/10.5/lib/python/bzrlib/bundle/serializer/v4.pyc
/opt/local/10.5/lib/python/bzrlib/bzrdir.pyc
/opt/local/10.5/lib/python/bzrlib/cache_utf8.pyc
/opt/local/10.5/lib/python/bzrlib/check.pyc
/opt/local/10.5/lib/python/bzrlib/chk_map.pyc
/opt/local/10.5/lib/python/bzrlib/chk_serializer.pyc
/opt/local/10.5/lib/python/bzrlib/chunk_writer.pyc
/opt/local/10.5/lib/python/bzrlib/clean_tree.pyc
/opt/local/10.5/lib/python/bzrlib/cleanup.pyc
/opt/local/10.5/lib/python/bzrlib/cmd_version_info.pyc
/opt/local/10.5/lib/python/bzrlib/cmdline.pyc
/opt/local/10.5/lib/python/bzrlib/commands.pyc
/opt/local/10.5/lib/python/bzrlib/commit.pyc
/opt/local/10.5/lib/python/bzrlib/config.pyc
/opt/local/10.5/lib/python/bzrlib/conflicts.pyc
/opt/local/10.5/lib/python/bzrlib/counted_lock.pyc
/opt/local/10.5/lib/python/bzrlib/crash.pyc
/opt/local/10.5/lib/python/bzrlib/debug.pyc
/opt/local/10.5/lib/python/bzrlib/decorators.pyc
/opt/local/10.5/lib/python/bzrlib/delta.pyc
/opt/local/10.5/lib/python/bzrlib/deprecated_graph.pyc
/opt/local/10.5/lib/python/bzrlib/diff.pyc
/opt/local/10.5/lib/python/bzrlib/directory_service.pyc
/opt/local/10.5/lib/python/bzrlib/dirstate.pyc
/opt/local/10.5/lib/python/bzrlib/doc/__init__.pyc
/opt/local/10.5/lib/python/bzrlib/doc/api/__init__.pyc
/opt/local/10.5/lib/python/bzrlib/doc_generate/__init__.pyc
/opt/local/10.5/lib/python/bzrlib/doc_generate/autodoc_bash_completion.pyc
/opt/local/10.5/lib/python/bzrlib/doc_generate/autodoc_man.pyc
/opt/local/10.5/lib/python/bzrlib/doc_generate/autodoc_rstx.pyc
/opt/local/10.5/lib/python/bzrlib/doc_generate/sphinx_conf.pyc
	:
data_installed
/opt/local/10.5/bin/bzr
/opt/local/10.5/etc/apport/crashdb.conf.d/bzr-crashdb.conf
/opt/local/10.5/lib/python/bzrlib/__init__.py
/opt/local/10.5/lib/python/bzrlib/_annotator_py.py
/opt/local/10.5/lib/python/bzrlib/_annotator_pyx.so
/opt/local/10.5/lib/python/bzrlib/_bencode_pyx.so
/opt/local/10.5/lib/python/bzrlib/_btree_serializer_py.py
/opt/local/10.5/lib/python/bzrlib/_btree_serializer_pyx.so
/opt/local/10.5/lib/python/bzrlib/_chk_map_py.py
/opt/local/10.5/lib/python/bzrlib/_chk_map_pyx.so
/opt/local/10.5/lib/python/bzrlib/_chunks_to_lines_py.py
/opt/local/10.5/lib/python/bzrlib/_chunks_to_lines_pyx.so
/opt/local/10.5/lib/python/bzrlib/_dirstate_helpers_py.py
/opt/local/10.5/lib/python/bzrlib/_dirstate_helpers_pyx.so
/opt/local/10.5/lib/python/bzrlib/_groupcompress_py.py
/opt/local/10.5/lib/python/bzrlib/_groupcompress_pyx.so
/opt/local/10.5/lib/python/bzrlib/_knit_load_data_py.py
/opt/local/10.5/lib/python/bzrlib/_knit_load_data_pyx.so
/opt/local/10.5/lib/python/bzrlib/_known_graph_py.py
/opt/local/10.5/lib/python/bzrlib/_known_graph_pyx.so
/opt/local/10.5/lib/python/bzrlib/_patiencediff_c.so
/opt/local/10.5/lib/python/bzrlib/_patiencediff_py.py
/opt/local/10.5/lib/python/bzrlib/_readdir_py.py
/opt/local/10.5/lib/python/bzrlib/_readdir_pyx.so
/opt/local/10.5/lib/python/bzrlib/_rio_py.py
/opt/local/10.5/lib/python/bzrlib/_rio_pyx.so
/opt/local/10.5/lib/python/bzrlib/_simple_set_pyx.so
/opt/local/10.5/lib/python/bzrlib/_static_tuple_c.so
/opt/local/10.5/lib/python/bzrlib/_static_tuple_py.py
/opt/local/10.5/lib/python/bzrlib/add.py
/opt/local/10.5/lib/python/bzrlib/annotate.py
/opt/local/10.5/lib/python/bzrlib/api.py
/opt/local/10.5/lib/python/bzrlib/atomicfile.py
/opt/local/10.5/lib/python/bzrlib/bencode.py
/opt/local/10.5/lib/python/bzrlib/bisect_multi.py
/opt/local/10.5/lib/python/bzrlib/branch.py
/opt/local/10.5/lib/python/bzrlib/branchbuilder.py
/opt/local/10.5/lib/python/bzrlib/breakin.py
/opt/local/10.5/lib/python/bzrlib/btree_index.py
/opt/local/10.5/lib/python/bzrlib/bugtracker.py
/opt/local/10.5/lib/python/bzrlib/builtins.py
/opt/local/10.5/lib/python/bzrlib/bundle/__init__.py
/opt/local/10.5/lib/python/bzrlib/bundle/apply_bundle.py
/opt/local/10.5/lib/python/bzrlib/bundle/bundle_data.py
/opt/local/10.5/lib/python/bzrlib/bundle/commands.py
/opt/local/10.5/lib/python/bzrlib/bundle/serializer/__init__.py
/opt/local/10.5/lib/python/bzrlib/bundle/serializer/v08.py
/opt/local/10.5/lib/python/bzrlib/bundle/serializer/v09.py
/opt/local/10.5/lib/python/bzrlib/bundle/serializer/v4.py
/opt/local/10.5/lib/python/bzrlib/bzrdir.py
/opt/local/10.5/lib/python/bzrlib/cache_utf8.py
/opt/local/10.5/lib/python/bzrlib/check.py
/opt/local/10.5/lib/python/bzrlib/chk_map.py
/opt/local/10.5/lib/python/bzrlib/chk_serializer.py
/opt/local/10.5/lib/python/bzrlib/chunk_writer.py
/opt/local/10.5/lib/python/bzrlib/clean_tree.py
/opt/local/10.5/lib/python/bzrlib/cleanup.py
/opt/local/10.5/lib/python/bzrlib/cmd_version_info.py
/opt/local/10.5/lib/python/bzrlib/cmdline.py
/opt/local/10.5/lib/python/bzrlib/commands.py
/opt/local/10.5/lib/python/bzrlib/commit.py
/opt/local/10.5/lib/python/bzrlib/config.py
/opt/local/10.5/lib/python/bzrlib/conflicts.py
/opt/local/10.5/lib/python/bzrlib/counted_lock.py
	:

archivers/lha-20081030

preparation
[ -f lha-20081030.tar.bz2 ] && {
tar xvjf lha-20081030.tar.bz2
} || {
#git clone git://git.sourceforge.jp/gitroot/lha/lha.git &&
[ -d lha-20081030 ] || mkdir lha-20081030
(cd lha && tar cf - .) | (cd lha-20081030 && tar xvf -)
tar cvjf lha-20081030.tar.bz2 lha-20081030
}
(cd lha-20081030 &&
autoreconf -vfi
)
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/bin/lha
/opt/local/share/man/man1/lha.1

excludes/hostconfig-20101008

installed
/opt/local/etc/ebnetd.conf
/opt/local/etc/fonts/fonts.conf.org
/opt/local/etc/fonts/fonts.conf
/opt/local/share/themes/Raleigh/gtk-2.0/gtkrc.ja
/opt/local/ptetex3/share/texmf/web2c/texmf.cnf
/opt/local/ptetex3/share/texmf/ls-R

text/tops-20101010

preparation
curl -RO -C - http://www.aihara.co.jp/~taiji/tops/tops-20101010.tar.bz2
tar xvjf tops-20101010.tar.bz2
build
make PREFIX=/opt/local 
installation
make PREFIX=/opt/local install 
installed
/opt/local/bin/tops.sh
/opt/local/share/tops/ishow-b5-eten.ps
/opt/local/share/tops/ishow-big5.ps
/opt/local/share/tops/ishow-euc-china.ps
/opt/local/share/tops/ishow-euc-cn.ps
/opt/local/share/tops/ishow-euc-japan.ps
/opt/local/share/tops/ishow-euc-jp.ps
/opt/local/share/tops/ishow-euc-jp2.ps
/opt/local/share/tops/ishow-euc-korea.ps
/opt/local/share/tops/ishow-euc-kr.ps
/opt/local/share/tops/ishow-euc-tw.ps
/opt/local/share/tops/ishow-euccn.ps
/opt/local/share/tops/ishow-eucjp.ps
/opt/local/share/tops/ishow-euckr.ps
/opt/local/share/tops/ishow-gbk2k.ps
/opt/local/share/tops/ishow-hkscs.ps
/opt/local/share/tops/ishow-iso-2022-cjk.ps
/opt/local/share/tops/ishow-iso-2022-cn.ps
/opt/local/share/tops/ishow-iso-2022-jp.ps
/opt/local/share/tops/ishow-iso-2022-jp2.ps
/opt/local/share/tops/ishow-iso-2022-kr.ps
/opt/local/share/tops/ishow-iso-2022-m17n.ps
/opt/local/share/tops/ishow-iso-6429.ps
/opt/local/share/tops/ishow-iso-8859-1.ps
/opt/local/share/tops/ishow-iso-8859-10.ps
/opt/local/share/tops/ishow-iso-8859-13.ps
/opt/local/share/tops/ishow-iso-8859-14.ps
/opt/local/share/tops/ishow-iso-8859-15.ps
/opt/local/share/tops/ishow-iso-8859-2.ps
/opt/local/share/tops/ishow-iso-8859-3.ps
/opt/local/share/tops/ishow-iso-8859-4.ps
/opt/local/share/tops/ishow-iso-8859-5.ps
/opt/local/share/tops/ishow-iso-8859-7.ps
/opt/local/share/tops/ishow-iso-8859-9.ps
/opt/local/share/tops/ishow-koi8-r.ps
/opt/local/share/tops/ishow-mac-ce.ps
/opt/local/share/tops/ishow-mac-croatian.ps
/opt/local/share/tops/ishow-mac-cyrillic.ps
/opt/local/share/tops/ishow-mac-greek.ps
/opt/local/share/tops/ishow-mac-icelandic.ps
/opt/local/share/tops/ishow-mac-roman.ps
/opt/local/share/tops/ishow-mac-turkish.ps
/opt/local/share/tops/ishow-ms-cp1250.ps
/opt/local/share/tops/ishow-ms-cp1251.ps
/opt/local/share/tops/ishow-ms-cp1252.ps
/opt/local/share/tops/ishow-ms-cp1253.ps
/opt/local/share/tops/ishow-ms-cp1254.ps
/opt/local/share/tops/ishow-ms-cp1257.ps
/opt/local/share/tops/ishow-ms-cp1258.ps
/opt/local/share/tops/ishow-shift_jis.ps
/opt/local/share/tops/ishow-sjis.ps
/opt/local/share/tops/ishow-uhc.ps
/opt/local/share/tops/ishow-utf16-cn.ps
/opt/local/share/tops/ishow-utf16-jp.ps
/opt/local/share/tops/ishow-utf16-kr.ps
/opt/local/share/tops/ishow-utf16-tw.ps
/opt/local/share/tops/ishow-utf8-cn.ps
/opt/local/share/tops/ishow-utf8-jp.ps
/opt/local/share/tops/ishow-utf8-kr.ps
/opt/local/share/tops/ishow-utf8-tw.ps

science/cv/OpenCV-2.1.0

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.1/OpenCV-2.1.0.tar.bz2
tar xvjf OpenCV-2.1.0.tar.bz2
(cd OpenCV-2.1.0 &&
patch -p0 -b -z.org < ../OpenCV-2.1.0-ubagami.patch
)
build
cmake . -DCMAKE_INSTALL_PREFIX:STRING=/opt/local -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-4.0 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-4.0 -DBUILD_EXAMPLES:BOOL=ON -DBUILD_NEW_PYTHON_SUPPORT:BOOL=OFF -DBUILD_OCTAVE_SUPPORT:BOOL=ON -DBZIP2_LIBRARIES:FILEPATH=/opt/local/lib/libbz2.dylib -DCMAKE_OSX_ARCHITECTURES:STRING='ppc;i386;' -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.4 -DCMAKE_OSX_SYSROOT:PATH=/Developer/SDKs/MacOSX10.4u.sdk -DENABLE_SSE:BOOL=OFF -DENABLE_SSE2:BOOL=OFF -DINSTALL_C_EXAMPLES:BOOL=ON -DINSTALL_OCTAVE_EXAMPLES:BOOL=ON -DINSTALL_PYTHON_EXAMPLES:BOOL=ON -DWITH_CARBON:BOOL=ON -DWITH_QUICKTIME:BOOL=ON 
make VERBOSE=:
patch
--- ./CMakeLists.txt.org	2010-04-06 10:24:37.000000000 +0900
+++ ./CMakeLists.txt	2010-10-08 19:02:19.000000000 +0900
@@ -195,7 +195,7 @@
     set(OPENCV_BUILD_3RDPARTY_LIBS FALSE CACHE BOOL "Build 3rd party libraries")
 endif()
 
-include(OpenCVPCHSupport.cmake REQUIRED)
+#include(OpenCVPCHSupport.cmake REQUIRED)
 
 if(UNIX)
     include(OpenCVFindPkgConfig.cmake OPTIONAL)
--- ./src/highgui/window_cocoa.mm.org	2010-04-06 10:24:45.000000000 +0900
+++ ./src/highgui/window_cocoa.mm	2010-10-08 19:02:56.000000000 +0900
@@ -379,8 +379,8 @@
 CV_IMPL int cvWaitKey (int maxWait)
 {
     int returnCode = -1;
-	double start = [[NSDate date] timeIntervalSince1970];
     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+	double start = [[NSDate date] timeIntervalSince1970];
 
 	while(true) {
 		if(([[NSDate date] timeIntervalSince1970] - start) * 1000 >= maxWait && maxWait>0)
installed
/opt/local/bin/opencv_createsamples
/opt/local/bin/opencv_haartraining
/opt/local/bin/opencv_performance
/opt/local/bin/opencv_traincascade
/opt/local/lib/libcv.2.1.0.dylib
/opt/local/lib/libcv.2.1.dylib
/opt/local/lib/libcv.dylib
/opt/local/lib/libcvaux.2.1.0.dylib
/opt/local/lib/libcvaux.2.1.dylib
/opt/local/lib/libcvaux.dylib
/opt/local/lib/libcxcore.2.1.0.dylib
/opt/local/lib/libcxcore.2.1.dylib
/opt/local/lib/libcxcore.dylib
/opt/local/lib/libhighgui.2.1.0.dylib
/opt/local/lib/libhighgui.2.1.dylib
/opt/local/lib/libhighgui.dylib
/opt/local/lib/libml.2.1.0.dylib
/opt/local/lib/libml.2.1.dylib
/opt/local/lib/libml.dylib
data_installed
/opt/local/include/opencv/cv.h
/opt/local/include/opencv/cv.hpp
/opt/local/include/opencv/cvaux.h
/opt/local/include/opencv/cvaux.hpp
/opt/local/include/opencv/cvcompat.h
/opt/local/include/opencv/cvinternal.h
/opt/local/include/opencv/cvtypes.h
/opt/local/include/opencv/cvver.h
/opt/local/include/opencv/cvvidsurv.hpp
/opt/local/include/opencv/cvwimage.h
/opt/local/include/opencv/cxcore.h
/opt/local/include/opencv/cxcore.hpp
/opt/local/include/opencv/cxerror.h
/opt/local/include/opencv/cxflann.h
/opt/local/include/opencv/cxmat.hpp
/opt/local/include/opencv/cxmisc.h
/opt/local/include/opencv/cxoperations.hpp
/opt/local/include/opencv/cxtypes.h
/opt/local/include/opencv/highgui.h
/opt/local/include/opencv/highgui.hpp
/opt/local/include/opencv/ml.h
/opt/local/lib/pkgconfig/opencv.pc
/opt/local/share/opencv/doc/ChangeLog.htm
/opt/local/share/opencv/doc/CMakeLists.txt
/opt/local/share/opencv/doc/haartraining.htm
/opt/local/share/opencv/doc/index.htm
/opt/local/share/opencv/doc/license.txt
/opt/local/share/opencv/doc/opencv-logo.png
/opt/local/share/opencv/doc/opencv-logo2.png
/opt/local/share/opencv/doc/opencv.jpg
/opt/local/share/opencv/doc/opencv.pdf
/opt/local/share/opencv/doc/packaging.txt
/opt/local/share/opencv/doc/papers/algo_tracking.pdf
/opt/local/share/opencv/doc/papers/avbpa99.ps
/opt/local/share/opencv/doc/papers/camshift.pdf
/opt/local/share/opencv/doc/pattern.pdf
/opt/local/share/opencv/doc/README.txt
/opt/local/share/opencv/doc/vidsurv/Blob_Tracking_Modules.doc
/opt/local/share/opencv/doc/vidsurv/Blob_Tracking_Tests.doc
/opt/local/share/opencv/doc/vidsurv/TestSeq.doc
/opt/local/share/opencv/haarcascades/haarcascade_eye.xml
/opt/local/share/opencv/haarcascades/haarcascade_eye_tree_eyeglasses.xml
/opt/local/share/opencv/haarcascades/haarcascade_frontalface_alt.xml
/opt/local/share/opencv/haarcascades/haarcascade_frontalface_alt2.xml
/opt/local/share/opencv/haarcascades/haarcascade_frontalface_alt_tree.xml
/opt/local/share/opencv/haarcascades/haarcascade_frontalface_default.xml
/opt/local/share/opencv/haarcascades/haarcascade_fullbody.xml
/opt/local/share/opencv/haarcascades/haarcascade_lefteye_2splits.xml
/opt/local/share/opencv/haarcascades/haarcascade_lowerbody.xml
/opt/local/share/opencv/haarcascades/haarcascade_mcs_eyepair_big.xml
/opt/local/share/opencv/haarcascades/haarcascade_mcs_eyepair_small.xml
/opt/local/share/opencv/haarcascades/haarcascade_mcs_lefteye.xml
/opt/local/share/opencv/haarcascades/haarcascade_mcs_mouth.xml
/opt/local/share/opencv/haarcascades/haarcascade_mcs_nose.xml
/opt/local/share/opencv/haarcascades/haarcascade_mcs_righteye.xml
/opt/local/share/opencv/haarcascades/haarcascade_mcs_upperbody.xml
/opt/local/share/opencv/haarcascades/haarcascade_profileface.xml
/opt/local/share/opencv/haarcascades/haarcascade_righteye_2splits.xml
/opt/local/share/opencv/haarcascades/haarcascade_upperbody.xml
/opt/local/share/opencv/lbpcascades/lbpcascade_frontalface.xml
/opt/local/share/opencv/OpenCVConfig.cmake
/opt/local/share/opencv/samples/c/adaptiveskindetector.cpp
/opt/local/share/opencv/samples/c/agaricus-lepiota.data
/opt/local/share/opencv/samples/c/airplane.jpg
	:

science/gap/gap4r4

preparation
curl -RO -C - ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/gap4r4p12.tar.bz2
curl -RO -C - ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages-2010_10_01-07_38_UTC.tar.bz2
curl -RO -C - ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/xtom1r1p4.tar.bz2
curl -RO -C - ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/tools4r4p12.tar.bz2
tar xvjf gap4r4p12.tar.bz2
tar xvjf xtom1r1p4.tar.bz2
(cd gap4r4 &&
patch -p0 -b -z.org < ../gap4r4-ubagami.patch
)
build
echo "do nothing"
patch
--- ./Makefile.in~	2008-11-13 01:51:06.000000000 +0900
+++ ./Makefile.in	2010-10-07 16:33:12.000000000 +0900
@@ -67,14 +67,14 @@
 	cp cnf/configure.out bin/@target@-@BASECC@/configure
 
 bin/@target@-@BASECC@/Makefile: bin/@target@-@BASECC@/configure cnf/config.hin cnf/gac.in
-	( cd bin/@target@-@BASECC@ ; CC='$(CC)' ./configure --target=@target@ @gp_configure_options@ )
+	( cd bin/@target@-@BASECC@ ; CC='$(CC)' COPTS='$(COPTS)' LOPTS='$(LOPTS)' ./configure --target=@target@ @gp_configure_options@ )
 
 compile: config
-	( cd bin/@target@-@BASECC@ ; $(MAKE) CC='$(CC)' )
+	( cd bin/@target@-@BASECC@ ; $(MAKE) CC='$(CC)' COPTS='$(COPTS)' LOPTS='$(LOPTS)' )
 	chmod +x bin/gap.sh
 
 static: config
-	( cd bin/@target@-@BASECC@ ; $(MAKE) static CC='$(CC)' )
+	( cd bin/@target@-@BASECC@ ; $(MAKE) static CC='$(CC)' COPTS='$(COPTS)' LOPTS='$(LOPTS)' )
 	chmod +x bin/gap.sh
 	( cd bin/@target@-@BASECC@ ; strip gap@EXEEXT@)
 
@@ -200,7 +200,7 @@
 	( rm doc/test/wsp.g )
 
 compilecygwindll:	config
-	( cd bin/@target@-@BASECC@ ; $(MAKE) CC='$(CC)' ; \
+	( cd bin/@target@-@BASECC@ ; $(MAKE) CC='$(CC)' COPTS='$(COPTS)' LOPTS='$(LOPTS)' ; \
 	  ./gac -o gapw95 -p "-DIOSTATIC -DEDIVSTATIC -DNCURSESSTATIC" \
 	        -P "-lpanel -lncurses" ../../pkg/io/src/io.c \
 	        ../../pkg/edim/src/ediv.c ../../pkg/Browse/src/ncurses.c ; \
@@ -215,9 +215,9 @@
 	  cp gapw95p.exe gap.dll .. ; \
 	  cp /bin/cygncurses-8.dll /bin/cygpanel-8.dll /bin/cygwin1.dll \
 	     /bin/libW11.dll /usr/bin/rxvt.exe /usr/bin/regtool.exe .. )
-	( cd pkg/io ; ./configure ; $(MAKE) CC='$(CC)' )
-	( cd pkg/edim ; ./configure ; $(MAKE) CC='$(CC)' )
-	( cd pkg/Browse ; ./configure ; $(MAKE) CC='$(CC)' )
+	( cd pkg/io ; ./configure ; $(MAKE) CC='$(CC)' COPTS='$(COPTS)' LOPTS='$(LOPTS)' )
+	( cd pkg/edim ; ./configure ; $(MAKE) CC='$(CC)' COPTS='$(COPTS)' LOPTS='$(LOPTS)' )
+	( cd pkg/Browse ; ./configure ; $(MAKE) CC='$(CC)' COPTS='$(COPTS)' LOPTS='$(LOPTS)' )
 	( rm -rf terminfo )
 	( mkdir terminfo ; mkdir terminfo/c ; mkdir terminfo/r ; \
 	  mkdir terminfo/x )
installation
[ -d /opt/local/gap4 ] || mkdir -p /opt/local/gap4
tar cf - . | (cd /opt/local/gap4 && tar xvf -)
chown -R root:admin /opt/local/gap4 &&
(cd /opt/local/gap4 &&
export COPTS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LOPTS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4'
./configure --prefix=/opt/local/gap4 &&
make
)
installed
/opt/local/gap4/bin/gap.sh
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/ariths.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/blister.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/bool.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/c_filt1.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/c_meths1.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/c_oper1.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/c_random.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/c_type1.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/calls.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/code.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/compiler.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/compstat.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/config.h
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/config.log
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/config.status
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/configure
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/costab.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/cyclotom.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/dt.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/dteval.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/exprs.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/finfield.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/float.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/funcs.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/gac
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/gap
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/gap.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/gasman.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/gvars.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/integer.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/intrprtr.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/iostream.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/listfunc.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/listoper.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/lists.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/Makefile
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/objccoll.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/objcftl.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/objects.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/objfgelm.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/objpcgel.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/objscoll.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/opers.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/permutat.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/plist.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/precord.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/range.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/rational.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/read.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/records.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/saveload.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/scanner.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/sctable.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/set.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/stats.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/streams.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/string.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/sysfiles.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/system.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/tietze.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/vars.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/vec8bit.o
/opt/local/gap4/bin/i686-apple-darwin9.7.0-gcc/vecffe.o
	:
data_installed
/opt/local/gap4/bin/cygncurses-8.dll
/opt/local/gap4/bin/cygpanel-8.dll
/opt/local/gap4/bin/cygwin1.dll
/opt/local/gap4/bin/gap.bat
/opt/local/gap4/bin/gap.dll
/opt/local/gap4/bin/gap.pif
/opt/local/gap4/bin/gapicon.bmp
/opt/local/gap4/bin/gapp.bat
/opt/local/gap4/bin/gapp.pif
/opt/local/gap4/bin/gaprxvt.bat
/opt/local/gap4/bin/gapw95.exe
/opt/local/gap4/bin/gapw95p.exe
/opt/local/gap4/bin/i686-pc-cygwin-gcc/config.h
/opt/local/gap4/bin/i686-pc-cygwin-gcc/gac
/opt/local/gap4/bin/i686-pc-cygwin-gcc/gap.dll
/opt/local/gap4/bin/libW11.dll
/opt/local/gap4/bin/regtool.exe
/opt/local/gap4/bin/rxvt.exe
/opt/local/gap4/bin/usemem.bat
/opt/local/gap4/cnf/aclocal.m4
/opt/local/gap4/cnf/config.guess
/opt/local/gap4/cnf/config.hin
/opt/local/gap4/cnf/config.sub
/opt/local/gap4/cnf/configure.in
/opt/local/gap4/cnf/configure.out
/opt/local/gap4/cnf/gac.in
/opt/local/gap4/cnf/install-sh
/opt/local/gap4/cnf/Makefile
/opt/local/gap4/cnf/Makegap.bottom
/opt/local/gap4/cnf/Makegap.in
/opt/local/gap4/cnf/Makegap.top
/opt/local/gap4/cnf/README
/opt/local/gap4/configure
/opt/local/gap4/description4r4p10
/opt/local/gap4/description4r4p11
/opt/local/gap4/description4r4p12
/opt/local/gap4/description4r4p5
/opt/local/gap4/description4r4p6
/opt/local/gap4/description4r4p7
/opt/local/gap4/description4r4p8
/opt/local/gap4/description4r4p9
/opt/local/gap4/doc/ext/about.tex
/opt/local/gap4/doc/ext/document.tex
/opt/local/gap4/doc/ext/foa.tex
/opt/local/gap4/doc/ext/gappkg.tex
/opt/local/gap4/doc/ext/helpintf.tex
/opt/local/gap4/doc/ext/libform.tex
/opt/local/gap4/doc/ext/manual.dvi
/opt/local/gap4/doc/ext/manual.ind
/opt/local/gap4/doc/ext/manual.lab
/opt/local/gap4/doc/ext/manual.mst
/opt/local/gap4/doc/ext/manual.pdf
/opt/local/gap4/doc/ext/manual.six
/opt/local/gap4/doc/ext/manual.tex
/opt/local/gap4/doc/ext/manual.toc
/opt/local/gap4/doc/ext/stbchain.tex
/opt/local/gap4/doc/ext/weakptr.tex
/opt/local/gap4/doc/fullindex.dvi
/opt/local/gap4/doc/fullindex.pdf
/opt/local/gap4/doc/fullindex.tex
/opt/local/gap4/doc/gapmacro.tex
/opt/local/gap4/doc/htm/ext/biblio.htm
/opt/local/gap4/doc/htm/ext/CHAP001.htm
/opt/local/gap4/doc/htm/ext/CHAP002.htm
	:

av/libdc1394-2.1.2

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/libdc1394/libdc1394-2/2.1.2/libdc1394-2.1.2.tar.gz
tar xvzf libdc1394-2.1.2.tar.gz
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/bin/dc1394_reset_bus
/opt/local/include/dc1394/camera.h
/opt/local/include/dc1394/capture.h
/opt/local/include/dc1394/control.h
/opt/local/include/dc1394/conversions.h
/opt/local/include/dc1394/dc1394.h
/opt/local/include/dc1394/format7.h
/opt/local/include/dc1394/iso.h
/opt/local/include/dc1394/juju
/opt/local/include/dc1394/linux
/opt/local/include/dc1394/log.h
/opt/local/include/dc1394/macosx/capture.h
/opt/local/include/dc1394/register.h
/opt/local/include/dc1394/types.h
/opt/local/include/dc1394/usb
/opt/local/include/dc1394/utils.h
/opt/local/include/dc1394/vendor/avt.h
/opt/local/include/dc1394/vendor/basler.h
/opt/local/include/dc1394/vendor/basler_sff.h
/opt/local/include/dc1394/vendor/pixelink.h
/opt/local/include/dc1394/video.h
/opt/local/lib/libdc1394.22.1.4.dylib
/opt/local/lib/libdc1394.22.dylib
/opt/local/lib/libdc1394.a
/opt/local/lib/libdc1394.dylib
/opt/local/lib/libdc1394.la
/opt/local/lib/pkgconfig/libdc1394-2.pc
/opt/local/share/man/man1/dc1394_multiview.1
/opt/local/share/man/man1/dc1394_reset_bus.1
/opt/local/share/man/man1/dc1394_vloopback.1
/opt/local/share/man/man1/grab_color_image.1
/opt/local/share/man/man1/grab_gray_image.1
/opt/local/share/man/man1/grab_partial_image.1

av/libusb-1.0.8

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.8/libusb-1.0.8.tar.bz2
tar xvjf libusb-1.0.8.tar.bz2
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/include/libusb-1.0/libusb.h
/opt/local/lib/libusb-1.0.0.dylib
/opt/local/lib/libusb-1.0.a
/opt/local/lib/libusb-1.0.dylib
/opt/local/lib/libusb-1.0.la
/opt/local/lib/pkgconfig/libusb-1.0.pc

libs/m17n/m17n-im-config-0.9.0

preparation
curl -RO -C - http://www.m17n.org/m17n-lib-download/m17n-im-config-0.9.0.tar.gz
tar xvzf m17n-im-config-0.9.0.tar.gz
build
./configure PKG_CONFIG_PATH=/opt/local/devel/share/pkgconfig:/opt/local/devel/lib/pkgconfig:/opt/local/lib/pkgconfig --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -O3' 'CXXFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -O3' 'LDFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/bin/m17n-im-config
/opt/local/include/m17n-im-config.h
/opt/local/lib/libm17n-im-config.0.0.0.dylib
/opt/local/lib/libm17n-im-config.0.dylib
/opt/local/lib/libm17n-im-config.a
/opt/local/lib/libm17n-im-config.dylib
/opt/local/lib/libm17n-im-config.la
/opt/local/lib/pkgconfig/m17n-im-config.pc
/opt/local/share/locale/fr/LC_MESSAGES/m17n-im-config.mo
/opt/local/share/locale/ja/LC_MESSAGES/m17n-im-config.mo

input/uim-1.6.0

preparation
curl -RO -C - http://uim.googlecode.com/files/uim-1.6.0.tar.bz2
tar xvjf uim-1.6.0.tar.bz2
build
./configure\
	PKG_CONFIG_PATH=/opt/local/devel/lib/pkgconfig:/opt/local/lib/pkgconfig\
	CC='gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPP=cpp\
	CXX='g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CXXCPP='g++ -E'\
	CPPFLAGS='-I/opt/local/include'\
	LDFLAGS='-L/opt/local/lib'\
	--x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include\
	--x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib\
	--prefix=/opt/local\
	--enable-dict\
	--with-m17nlib\
	--with-scim\
	--with-anthy\
	--without-anthy-utf8\
	--with-canna\
	--with-wnn\
	--with-wnn-libraries=/opt/local/lib\
	--with-wnn-includes=/opt/local/include/wnn\
	--without-sj3\
	--without-mana\
	--without-prime\
	--with-x\
	--with-xft\
	--with-gtk2\
	--enable-gnome-applet\
	--without-qt\
	--without-qt-immodule\
	--without-qt4-immodule\
&&
make
installed
/opt/local/bin/uim-dict-gtk
/opt/local/bin/uim-el-agent
/opt/local/bin/uim-el-helper-agent
/opt/local/bin/uim-fep
/opt/local/bin/uim-fep-tick
/opt/local/bin/uim-help
/opt/local/bin/uim-im-switcher-gtk
/opt/local/bin/uim-input-pad-ja
/opt/local/bin/uim-m17nlib-relink-icons
/opt/local/bin/uim-module-manager
/opt/local/bin/uim-pref-gtk
/opt/local/bin/uim-sh
/opt/local/bin/uim-toolbar-gtk
/opt/local/bin/uim-toolbar-gtk-systray
/opt/local/bin/uim-xim
/opt/local/etc/gtk-2.0/gtk.immodules
/opt/local/include/gcroots.h
/opt/local/include/uim/dynlib.h
/opt/local/include/uim/uim-custom.h
/opt/local/include/uim/uim-helper.h
/opt/local/include/uim/uim-im-switcher.h
/opt/local/include/uim/uim-notify.h
/opt/local/include/uim/uim-posix.h
/opt/local/include/uim/uim-scm-abbrev.h
/opt/local/include/uim/uim-scm.h
/opt/local/include/uim/uim-util.h
/opt/local/include/uim/uim.h
/opt/local/lib/gtk-2.0/2.10.0/immodules/im-uim.la
/opt/local/lib/gtk-2.0/2.10.0/immodules/im-uim.so
/opt/local/lib/libgcroots.0.dylib
/opt/local/lib/libgcroots.a
/opt/local/lib/libgcroots.dylib
/opt/local/lib/libgcroots.la
/opt/local/lib/libuim-custom.2.dylib
/opt/local/lib/libuim-custom.dylib
/opt/local/lib/libuim-custom.la
/opt/local/lib/libuim-scm.0.dylib
/opt/local/lib/libuim-scm.dylib
/opt/local/lib/libuim-scm.la
/opt/local/lib/libuim.7.dylib
/opt/local/lib/libuim.dylib
/opt/local/lib/libuim.la
/opt/local/lib/locale/fr/LC_MESSAGES/uim.mo
/opt/local/lib/locale/ja/LC_MESSAGES/uim.mo
/opt/local/lib/locale/ko/LC_MESSAGES/uim.mo
/opt/local/lib/pkgconfig/gcroots.pc
/opt/local/lib/pkgconfig/uim.pc
/opt/local/lib/uim/plugin/libuim-anthy.la
/opt/local/lib/uim/plugin/libuim-anthy.so
/opt/local/lib/uim/plugin/libuim-custom-enabler.la
/opt/local/lib/uim/plugin/libuim-custom-enabler.so
/opt/local/lib/uim/plugin/libuim-editline.la
/opt/local/lib/uim/plugin/libuim-editline.so
/opt/local/lib/uim/plugin/libuim-fileio.la
/opt/local/lib/uim/plugin/libuim-fileio.so
/opt/local/lib/uim/plugin/libuim-lolevel.la
/opt/local/lib/uim/plugin/libuim-lolevel.so
/opt/local/lib/uim/plugin/libuim-look.la
/opt/local/lib/uim/plugin/libuim-look.so
/opt/local/lib/uim/plugin/libuim-m17nlib.la
/opt/local/lib/uim/plugin/libuim-m17nlib.so
/opt/local/lib/uim/plugin/libuim-process.la
/opt/local/lib/uim/plugin/libuim-process.so
/opt/local/lib/uim/plugin/libuim-scim.la
	:

input/scim-m17n-0.2.2

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/scim/scim-m17n/0.2.2/scim-m17n-0.2.2.tar.gz
tar xvzf scim-m17n-0.2.2.tar.gz
(cd scim-m17n-0.2.2 &&
patch -p0 -b -z.org < ../scim-m17n-0.2.2-ubagami.patch
)
build
./configure PKG_CONFIG_PATH=/opt/local/devel/lib/pkgconfig:/opt/local/lib/pkgconfig --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -O3' 'CXXFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -O3' 'LDFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
patch
--- ./src/scim_m17n_imengine.cpp~	2006-12-01 17:45:12.000000000 +0900
+++ ./src/scim_m17n_imengine.cpp	2010-10-07 11:43:33.000000000 +0900
@@ -28,6 +28,7 @@
 #define Uses_SCIM_LOOKUP_TABLE
 #define Uses_SCIM_CONFIG_BASE
 #define Uses_STL_MAP
+#define Uses_C_STRING
 
 #ifdef HAVE_CONFIG_H
   #include <config.h>
@@ -205,7 +206,7 @@
 WideString
 M17NFactory::get_help () const
 {
-#if M17N_VERSION >= 10300
+#if M17NLIB_MAJOR_VERSION > 1 || (M17NLIB_MAJOR_VERSION == 1 && M17NLIB_MINOR_VERSION >=3) /*M17N_VERSION >= 10300*/
     MText *desc = minput_get_description (msymbol (m_lang.c_str ()), msymbol (m_name.c_str ()));
     if (desc) {
         int bufsize = mtext_len (desc) * 6;  // long enough
@@ -230,7 +231,7 @@
 String
 M17NFactory::get_icon_file () const
 {
-#if M17N_VERSION >= 10300
+#if M17NLIB_MAJOR_VERSION > 1 || (M17NLIB_MAJOR_VERSION == 1 && M17NLIB_MINOR_VERSION >=3) /*M17N_VERSION >= 10300*/
     MPlist *l = minput_get_title_icon (msymbol (m_lang.c_str ()), msymbol (m_name.c_str ()));
     if (l) {
         char buf [256] = SCIM_M17N_ICON_FILE;
@@ -434,7 +435,7 @@
 
     register_properties (props);
 
-#if M17N_VERSION >= 10300
+#if M17NLIB_MAJOR_VERSION > 1 || (M17NLIB_MAJOR_VERSION == 1 && M17NLIB_MINOR_VERSION >=3) /*M17N_VERSION >= 10300*/
     m17n_process_key (Minput_focus_in);
 #else
     preedit_draw_cb (m_ic, Minput_preedit_draw);
@@ -450,7 +451,7 @@
 {
     SCIM_DEBUG_IMENGINE(2) << "focus_out.\n";
 
-#if M17N_VERSION >= 10300
+#if M17NLIB_MAJOR_VERSION > 1 || (M17NLIB_MAJOR_VERSION == 1 && M17NLIB_MINOR_VERSION >=3) /*M17N_VERSION >= 10300*/
     m17n_process_key (Minput_focus_out);
 #else
     reset ();
@@ -497,7 +498,7 @@
     mplist_put(callback_list, Minput_candidates_draw,  (void*)candidates_draw_cb);
     mplist_put(callback_list, Minput_candidates_done,  (void*)candidates_done_cb);
 
-#if M17N_VERSION >= 10300
+#if M17NLIB_MAJOR_VERSION > 1 || (M17NLIB_MAJOR_VERSION == 1 && M17NLIB_MINOR_VERSION >=3) /*M17N_VERSION >= 10300*/
     mplist_put(callback_list, Minput_get_surrounding_text,  (void*)get_surrounding_text_cb);
     mplist_put(callback_list, Minput_delete_surrounding_text,  (void*)delete_surrounding_text_cb);
 #endif
@@ -753,7 +754,7 @@
     }
 }
 
-#if M17N_VERSION >= 10300
+#if M17NLIB_MAJOR_VERSION > 1 || (M17NLIB_MAJOR_VERSION == 1 && M17NLIB_MINOR_VERSION >=3) /*M17N_VERSION >= 10300*/
 void
 M17NInstance::get_surrounding_text_cb (MInputContext *ic, MSymbol command)
 {
installed
/opt/local/lib/scim-1.0/1.4.0/IMEngine/m17n.a
/opt/local/lib/scim-1.0/1.4.0/IMEngine/m17n.la
/opt/local/lib/scim-1.0/1.4.0/IMEngine/m17n.so
/opt/local/share/scim/icons/scim-m17n.png

libs/m17n/m17n-lib-1.6.2

preparation
curl -RO -C - http://www.m17n.org/m17n-lib-download/m17n-lib-1.6.2.tar.gz
tar xvzf m17n-lib-1.6.2.tar.gz
(cd m17n-lib-1.6.2 &&
patch -p0 -b -z.org < ../m17n-lib-1.6.2-ubagami.patch
)
(cd m17n-lib-1.6.2 &&
autoreconf -vfi
)
build
./configure --disable-dependency-tracking CC=gcc-4.2 'CFLAGS=-arch ppc -arch i386 -isystem /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -O3' 'CPPFLAGS=-I/opt/local/devel/include -I/opt/local/include' 'LDFLAGS=-L/opt/local/devel/lib -L/opt/local/lib -arch ppc -arch i386 -isystem /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local/devel --disable-nls 
make 
patch
--- ./configure.ac.org	2010-10-04 22:10:50.000000000 +0900
+++ ./configure.ac	2010-10-06 14:16:09.000000000 +0900
@@ -440,12 +440,7 @@
 dnl	      [  --enable-xom            build and install XOM library.],
 dnl	      XOM="$enableval")
 
-SHLIB_EXT=".so"
-case $host_os in
-darwin* | rhapsody*)
-  SHLIB_EXT=".dylib";;
-esac
-AC_DEFINE_UNQUOTED(DLOPEN_SHLIB_EXT, "$SHLIB_EXT",
+AC_DEFINE_UNQUOTED(DLOPEN_SHLIB_EXT, ".so",
 		   [Define to loadable module extention])
 
 AC_CONFIG_FILES([Makefile intl/Makefile po/Makefile.in
--- ./configure.org	2010-10-05 09:19:51.000000000 +0900
+++ ./configure	2010-10-06 14:17:23.000000000 +0900
@@ -19587,14 +19587,8 @@
 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
 
 
-SHLIB_EXT=".so"
-case $host_os in
-darwin* | rhapsody*)
-  SHLIB_EXT=".dylib";;
-esac
-
 cat >>confdefs.h <<_ACEOF
-#define DLOPEN_SHLIB_EXT "$SHLIB_EXT"
+#define DLOPEN_SHLIB_EXT ".so"
 _ACEOF
 
 
installed
/opt/local/devel/bin/m17n-config
/opt/local/devel/bin/m17n-conv
/opt/local/devel/bin/m17n-date
/opt/local/devel/bin/m17n-dump
/opt/local/devel/bin/m17n-edit
/opt/local/devel/bin/m17n-view
/opt/local/devel/include/m17n-core.h
/opt/local/devel/include/m17n-flt.h
/opt/local/devel/include/m17n-gui.h
/opt/local/devel/include/m17n-misc.h
/opt/local/devel/include/m17n-X.h
/opt/local/devel/include/m17n.h
/opt/local/devel/lib/libm17n-core.0.dylib
/opt/local/devel/lib/libm17n-core.a
/opt/local/devel/lib/libm17n-core.dylib
/opt/local/devel/lib/libm17n-core.la
/opt/local/devel/lib/libm17n-flt.0.dylib
/opt/local/devel/lib/libm17n-flt.a
/opt/local/devel/lib/libm17n-flt.dylib
/opt/local/devel/lib/libm17n-flt.la
/opt/local/devel/lib/libm17n-gui.0.dylib
/opt/local/devel/lib/libm17n-gui.a
/opt/local/devel/lib/libm17n-gui.dylib
/opt/local/devel/lib/libm17n-gui.la
/opt/local/devel/lib/libm17n.0.dylib
/opt/local/devel/lib/libm17n.a
/opt/local/devel/lib/libm17n.dylib
/opt/local/devel/lib/libm17n.la
/opt/local/devel/lib/m17n/1.0/libm17n-gd.a
/opt/local/devel/lib/m17n/1.0/libm17n-gd.la
/opt/local/devel/lib/m17n/1.0/libm17n-gd.so
/opt/local/devel/lib/m17n/1.0/libm17n-X.a
/opt/local/devel/lib/m17n/1.0/libm17n-X.la
/opt/local/devel/lib/m17n/1.0/libm17n-X.so
/opt/local/devel/lib/m17n/1.0/libmimx-anthy.a
/opt/local/devel/lib/m17n/1.0/libmimx-anthy.la
/opt/local/devel/lib/m17n/1.0/libmimx-anthy.so
/opt/local/devel/lib/m17n/1.0/libmimx-ispell.a
/opt/local/devel/lib/m17n/1.0/libmimx-ispell.la
/opt/local/devel/lib/m17n/1.0/libmimx-ispell.so
/opt/local/devel/lib/pkgconfig/m17n-core.pc
/opt/local/devel/lib/pkgconfig/m17n-flt.pc
/opt/local/devel/lib/pkgconfig/m17n-gui.pc
/opt/local/devel/lib/pkgconfig/m17n-shell.pc

libs/m17n/m17n-db-1.6.2

preparation
curl -RO -C - http://www.m17n.org/m17n-lib-download/m17n-db-1.6.2.tar.gz
curl -RO -C - http://ftp.gnu.org/gnu/glibc/glibc-2.12.1.tar.bz2
tar xvzf m17n-db-1.6.2.tar.gz
(cd m17n-db-1.6.2 &&
tar xjf ../glibc-2.12.1.tar.bz2 glibc-2.12.1/localedata/charmaps
)
build
./configure --prefix=/opt/local/devel --with-charmaps=glibc-2.12.1/localedata/charmaps 
make 
installed
/opt/local/devel/bin/m17n-db
/opt/local/devel/share/m17n/8859-10.map
/opt/local/devel/share/m17n/8859-11.map
/opt/local/devel/share/m17n/8859-13.map
/opt/local/devel/share/m17n/8859-14.map
/opt/local/devel/share/m17n/8859-15.map
/opt/local/devel/share/m17n/8859-16.map
/opt/local/devel/share/m17n/8859-2.map
/opt/local/devel/share/m17n/8859-3.map
/opt/local/devel/share/m17n/8859-4.map
/opt/local/devel/share/m17n/8859-5.map
/opt/local/devel/share/m17n/8859-6.map
/opt/local/devel/share/m17n/8859-7.map
/opt/local/devel/share/m17n/8859-8.map
/opt/local/devel/share/m17n/8859-9.map
/opt/local/devel/share/m17n/aa.lnm
/opt/local/devel/share/m17n/af.lnm
/opt/local/devel/share/m17n/am-sera.mim
/opt/local/devel/share/m17n/am.lnm
/opt/local/devel/share/m17n/ar-kbd.mim
/opt/local/devel/share/m17n/ar.lnm
/opt/local/devel/share/m17n/ARAB-OTF-NO-GPOS.flt
/opt/local/devel/share/m17n/ARAB-OTF.flt
/opt/local/devel/share/m17n/ARAB.flt
/opt/local/devel/share/m17n/as-itrans.mim
/opt/local/devel/share/m17n/as.lnm
/opt/local/devel/share/m17n/az.lnm
/opt/local/devel/share/m17n/az_Cyrl.lnm
/opt/local/devel/share/m17n/az_Latn.lnm
/opt/local/devel/share/m17n/be.lnm
/opt/local/devel/share/m17n/BENG-OTF.flt
/opt/local/devel/share/m17n/bg.lnm
/opt/local/devel/share/m17n/BIDI.tab
/opt/local/devel/share/m17n/BIG5-HKSCS.map
/opt/local/devel/share/m17n/BIG5.map
/opt/local/devel/share/m17n/BLOCK.tab
/opt/local/devel/share/m17n/bn-itrans.mim
/opt/local/devel/share/m17n/bn-unijoy.mim
/opt/local/devel/share/m17n/bn.lnm
/opt/local/devel/share/m17n/BNG2-OTF.flt
/opt/local/devel/share/m17n/bo-ewts.mim
/opt/local/devel/share/m17n/bo-tcrc.mim
/opt/local/devel/share/m17n/bo-wylie.mim
/opt/local/devel/share/m17n/bs.lnm
/opt/local/devel/share/m17n/byn.lnm
/opt/local/devel/share/m17n/ca.lnm
/opt/local/devel/share/m17n/CASE-C.tab
/opt/local/devel/share/m17n/CASE-MAPPING.tab
/opt/local/devel/share/m17n/CASE-S.tab
/opt/local/devel/share/m17n/CASED.tab
/opt/local/devel/share/m17n/CATEGORY.tab
/opt/local/devel/share/m17n/CHAM-GENERIC.flt
/opt/local/devel/share/m17n/CHARSET.tbl
/opt/local/devel/share/m17n/cjk-util.mim
/opt/local/devel/share/m17n/cmc-kbd.mim
/opt/local/devel/share/m17n/CNS-1.map
/opt/local/devel/share/m17n/CNS-2.map
/opt/local/devel/share/m17n/CNS-3.map
/opt/local/devel/share/m17n/CNS-4.map
/opt/local/devel/share/m17n/CNS-5.map
/opt/local/devel/share/m17n/CNS-6.map
/opt/local/devel/share/m17n/CNS-7.map
/opt/local/devel/share/m17n/CNS-F.map
/opt/local/devel/share/m17n/CODING.tbl
	:

libs/m17n/libotf-0.9.12

preparation
curl -RO -C - http://www.m17n.org/libotf/libotf-0.9.12.tar.gz
tar xvzf libotf-0.9.12.tar.gz
(cd libotf-0.9.12 &&
 autoreconf -vfi
)
build
./configure --disable-dependency-tracking CC=gcc-4.2 'CFLAGS=-arch ppc -arch i386 -isystem /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -O3' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isystem /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local/devel 
make 
installed
/opt/local/devel/bin/libotf-config
/opt/local/devel/bin/otfdump
/opt/local/devel/bin/otflist
/opt/local/devel/bin/otftobdf
/opt/local/devel/bin/otfview
/opt/local/devel/include/otf.h
/opt/local/devel/lib/libotf.0.dylib
/opt/local/devel/lib/libotf.a
/opt/local/devel/lib/libotf.dylib
/opt/local/devel/lib/libotf.la
/opt/local/devel/lib/pkgconfig/libotf.pc

input/scim-anthy-1.2.7

preparation
curl -RO -C - http://ftp.de.debian.org/debian/pool/main/s/scim-anthy/scim-anthy_1.2.7.orig.tar.gz
tar xvzf scim-anthy_1.2.7.orig.tar.gz
(cd scim-anthy-1.2.7 &&
autoreconf -vfi
)
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -O3' 'CXXFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -O3' 'LDFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/lib/scim-1.0/1.4.0/Helper/anthy-imengine-helper.a
/opt/local/lib/scim-1.0/1.4.0/Helper/anthy-imengine-helper.la
/opt/local/lib/scim-1.0/1.4.0/Helper/anthy-imengine-helper.so
/opt/local/lib/scim-1.0/1.4.0/IMEngine/anthy.a
/opt/local/lib/scim-1.0/1.4.0/IMEngine/anthy.la
/opt/local/lib/scim-1.0/1.4.0/IMEngine/anthy.so
/opt/local/lib/scim-1.0/1.4.0/SetupUI/anthy-imengine-setup.a
/opt/local/lib/scim-1.0/1.4.0/SetupUI/anthy-imengine-setup.la
/opt/local/lib/scim-1.0/1.4.0/SetupUI/anthy-imengine-setup.so
/opt/local/share/locale/de/LC_MESSAGES/scim-anthy.mo
/opt/local/share/locale/ja/LC_MESSAGES/scim-anthy.mo
/opt/local/share/scim/Anthy/style/101kana.sty
/opt/local/share/scim/Anthy/style/atok.sty
/opt/local/share/scim/Anthy/style/azik.sty
/opt/local/share/scim/Anthy/style/canna.sty
/opt/local/share/scim/Anthy/style/msime.sty
/opt/local/share/scim/Anthy/style/nicola-a.sty
/opt/local/share/scim/Anthy/style/nicola-f.sty
/opt/local/share/scim/Anthy/style/nicola-j.sty
/opt/local/share/scim/Anthy/style/oasys100j.sty
/opt/local/share/scim/Anthy/style/tron-dvorak.sty
/opt/local/share/scim/Anthy/style/tron-qwerty-jp.sty
/opt/local/share/scim/Anthy/style/tsuki-2-203-101.sty
/opt/local/share/scim/Anthy/style/tsuki-2-203-106.sty
/opt/local/share/scim/Anthy/style/vje-delta.sty
/opt/local/share/scim/Anthy/style/wnn.sty
/opt/local/share/scim/icons/scim-anthy-dict.png
/opt/local/share/scim/icons/scim-anthy-swap-colors.png
/opt/local/share/scim/icons/scim-anthy.png

input/scim-canna-1.0.0

preparation
curl -RO -C - http://ftp.de.debian.org/debian/pool/main/s/scim-canna/scim-canna_1.0.0.orig.tar.gz
tar xvzf scim-canna_1.0.0.orig.tar.gz
(cd scim-canna-1.0.0 &&
autoreconf -vfi
)
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/canna/include 'LDFLAGS=-L/opt/local/canna/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/lib/scim-1.0/1.4.0/IMEngine/canna.a
/opt/local/lib/scim-1.0/1.4.0/IMEngine/canna.la
/opt/local/lib/scim-1.0/1.4.0/IMEngine/canna.so
/opt/local/lib/scim-1.0/1.4.0/SetupUI/canna-imengine-setup.a
/opt/local/lib/scim-1.0/1.4.0/SetupUI/canna-imengine-setup.la
/opt/local/lib/scim-1.0/1.4.0/SetupUI/canna-imengine-setup.so
/opt/local/share/locale/ja/LC_MESSAGES/scim-canna.mo
/opt/local/share/scim/icons/scim-canna.png

net/emacs-w3m-20100930

preparation
[ -f emacs-w3m-20100930.tar.bz2 ] && {
tar xvjf emacs-w3m-20100930.tar.bz2
} || {
curl -RO -C - http://emacs-w3m.namazu.org/emacs-w3m-1.4.4.tar.gz
tar xvzf emacs-w3m-1.4.4.tar.gz
mv emacs-w3m-1.4.4 emacs-w3m-20100930
cvs -d:pserver:anonymous@cvs.namazu.org:/storage/cvsroot login
cvs -d:pserver:anonymous@cvs.namazu.org:/storage/cvsroot -z6 co emacs-w3m
(cd emacs-w3m && tar cf - .) | (cd emacs-w3m-20100930 && tar xvf -)
tar cvjf emacs-w3m-20100930.tar.bz2 emacs-w3m-20100930
}
(cd emacs-w3m-20100930 &&
patch -p0 -b -z.org < ../emacs-w3m-20100930-ubagami.patch
)
build
autoreconf -vfi
env PATH=/opt/local/bin:/usr/X11R6/bin:/bin:/sbin:/usr/bin:/usr/sbin ./configure --prefix=/opt/local --with-emacs=emacs --without-attic 
make
patch
--- ./w3m.el~	2010-09-22 16:54:54.000000000 +0900
+++ ./w3m.el	2010-10-04 20:18:50.000000000 +0900
@@ -306,10 +306,10 @@
   :type 'boolean)
 
 (defcustom w3m-language
-  (if (and (boundp 'current-language-environment)
+  (if (and (< emacs-major-version 23) (and (boundp 'current-language-environment)
 	   ;; In XEmacs 21.5 it may be the one like "Japanese (UTF-8)".
 	   (string-match "\\`Japanese"
-			 (symbol-value 'current-language-environment)))
+			 (symbol-value 'current-language-environment))))
       "Japanese")
   "*Your preferred language used in emacs-w3m sessions."
   :group 'w3m
installation
env PATH=/opt/local/bin:/usr/X11R6/bin:/bin:/sbin:/usr/bin:/usr/sbin make install install-icons30 
installed
/opt/local/share/emacs/23.2/etc/images/w3m/antenna-up.png
/opt/local/share/emacs/23.2/etc/images/w3m/antenna-up.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/back-disabled.png
/opt/local/share/emacs/23.2/etc/images/w3m/back-disabled.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/back-up.png
/opt/local/share/emacs/23.2/etc/images/w3m/back-up.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/copy-up.png
/opt/local/share/emacs/23.2/etc/images/w3m/copy-up.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/db-history-up.png
/opt/local/share/emacs/23.2/etc/images/w3m/db-history-up.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/forward-disabled.png
/opt/local/share/emacs/23.2/etc/images/w3m/forward-disabled.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/forward-up.png
/opt/local/share/emacs/23.2/etc/images/w3m/forward-up.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/history-up.png
/opt/local/share/emacs/23.2/etc/images/w3m/history-up.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/home-up.png
/opt/local/share/emacs/23.2/etc/images/w3m/home-up.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/image-up.png
/opt/local/share/emacs/23.2/etc/images/w3m/image-up.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/open-up.png
/opt/local/share/emacs/23.2/etc/images/w3m/open-up.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/parent-disabled.png
/opt/local/share/emacs/23.2/etc/images/w3m/parent-disabled.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/parent-up.png
/opt/local/share/emacs/23.2/etc/images/w3m/parent-up.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/reload-up.png
/opt/local/share/emacs/23.2/etc/images/w3m/reload-up.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/search-up.png
/opt/local/share/emacs/23.2/etc/images/w3m/search-up.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/spinner.gif
/opt/local/share/emacs/23.2/etc/images/w3m/state-00.png
/opt/local/share/emacs/23.2/etc/images/w3m/state-00.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/state-01.png
/opt/local/share/emacs/23.2/etc/images/w3m/state-01.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/state-10.png
/opt/local/share/emacs/23.2/etc/images/w3m/state-10.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/state-11.png
/opt/local/share/emacs/23.2/etc/images/w3m/state-11.xpm
/opt/local/share/emacs/23.2/etc/images/w3m/weather-up.png
/opt/local/share/emacs/23.2/etc/images/w3m/weather-up.xpm
/opt/local/share/emacs/site-lisp/w3m/ChangeLog
/opt/local/share/emacs/site-lisp/w3m/ChangeLog.1
/opt/local/share/emacs/site-lisp/w3m/mew-w3m.el
/opt/local/share/emacs/site-lisp/w3m/mew-w3m.elc
/opt/local/share/emacs/site-lisp/w3m/mime-w3m.el
/opt/local/share/emacs/site-lisp/w3m/octet.el
/opt/local/share/emacs/site-lisp/w3m/w3m-antenna.el
/opt/local/share/emacs/site-lisp/w3m/w3m-antenna.elc
/opt/local/share/emacs/site-lisp/w3m/w3m-bitmap.el
/opt/local/share/emacs/site-lisp/w3m/w3m-bookmark.el
/opt/local/share/emacs/site-lisp/w3m/w3m-bookmark.elc
/opt/local/share/emacs/site-lisp/w3m/w3m-bug.el
/opt/local/share/emacs/site-lisp/w3m/w3m-bug.elc
/opt/local/share/emacs/site-lisp/w3m/w3m-ccl.el
/opt/local/share/emacs/site-lisp/w3m/w3m-ccl.elc
/opt/local/share/emacs/site-lisp/w3m/w3m-cookie.el
/opt/local/share/emacs/site-lisp/w3m/w3m-cookie.elc
/opt/local/share/emacs/site-lisp/w3m/w3m-dtree.el
/opt/local/share/emacs/site-lisp/w3m/w3m-dtree.elc
/opt/local/share/emacs/site-lisp/w3m/w3m-e19.el
/opt/local/share/emacs/site-lisp/w3m/w3m-e20.el
/opt/local/share/emacs/site-lisp/w3m/w3m-e20.elc
/opt/local/share/emacs/site-lisp/w3m/w3m-e21.el
	:

net/w3m-0.5.2

preparation
curl -L -RO -C - http://downloads.sourceforge.net/w3m/w3m-0.5.2.tar.gz
tar xvzf w3m-0.5.2.tar.gz
build
./configure \
  'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk'\
  CPPFLAGS=-I/opt/local/include\
  'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk'\
  --prefix=/opt/local\
  --enable-image=x11\
  --enable-xface\
  --enable-keymap=w3m\
  --enable-dict\
  --enable-w3mmailer\
  --with-libintl-prefix=/opt/local\
  --with-imagelib=imlib\
  --without-migemo\
  --with-gc=/opt/local\
  --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib\
  &&
make
installed
/opt/local/bin/w3m
/opt/local/bin/w3mman
/opt/local/libexec/w3m/cgi-bin/dirlist.cgi
/opt/local/libexec/w3m/cgi-bin/multipart.cgi
/opt/local/libexec/w3m/cgi-bin/w3mbookmark
/opt/local/libexec/w3m/cgi-bin/w3mhelp.cgi
/opt/local/libexec/w3m/cgi-bin/w3mhelperpanel
/opt/local/libexec/w3m/cgi-bin/w3mmail.cgi
/opt/local/libexec/w3m/cgi-bin/w3mman2html.cgi
/opt/local/libexec/w3m/inflate
/opt/local/libexec/w3m/w3mimgdisplay
/opt/local/libexec/w3m/xface2xpm
/opt/local/share/locale/ja/LC_MESSAGES/w3m.mo
/opt/local/share/man/ja/man1/w3m.1
/opt/local/share/man/man1/w3m.1
/opt/local/share/man/man1/w3mman.1
/opt/local/share/w3m/w3mhelp-funcdesc.en.pl
/opt/local/share/w3m/w3mhelp-funcdesc.ja.pl
/opt/local/share/w3m/w3mhelp-funcname.pl
/opt/local/share/w3m/w3mhelp.html

img/imlib-1.9.15

preparation
curl -RO -C - http://ftp.gnome.org/pub/GNOME/sources/imlib/1.9/imlib-1.9.15.tar.bz2
tar xvjf imlib-1.9.15.tar.bz2
build
./configure --disable-dependency-tracking 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CPP=gcc -E' 'CXX=g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXCPP=g++ -E' CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --with-x --prefix=/opt/local 
make 
installed
/opt/local/bin/imlib-config
/opt/local/etc/im_palette-small.pal
/opt/local/etc/im_palette-tiny.pal
/opt/local/etc/im_palette.pal
/opt/local/etc/imrc
/opt/local/include/Imlib.h
/opt/local/include/Imlib_private.h
/opt/local/include/Imlib_types.h
/opt/local/lib/libImlib.1.9.15.dylib
/opt/local/lib/libImlib.1.dylib
/opt/local/lib/libImlib.a
/opt/local/lib/libImlib.dylib
/opt/local/lib/libImlib.la
/opt/local/lib/pkgconfig/imlib.pc
/opt/local/lib/pkgconfig/imlibgdk.pc
/opt/local/man/man1/imlib-config.1
/opt/local/share/aclocal/imlib.m4

science/boost/others/openmpi-1.4.2

preparation
curl -RO -C - http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.2.tar.bz2
tar xvjf openmpi-1.4.2.tar.bz2
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *"Mach-O"*" bundle"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean &&
./configure 'CC=gcc-4.0 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP='gcc-4.0 -E' 'CXX=g++-4.0 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++-4.0 -E' --host=x86_64-apple-darwin --build=`sh config/config.guess` --prefix=/opt/local --disable-dlopen --disable-mpi-f77 --disable-mpi-f90 --enable-mpi-threads &&
make &&
{ make check || true; } &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  listup_binaries > .arch_x86_64/.binaries.lst && tar --files-from=.arch_x86_64/.binaries.lst -cf - | (cd .arch_x86_64 && tar xf -) &&
  listup_headers > .arch_x86_64/.headers.lst && tar --files-from=.arch_x86_64/.headers.lst -cf - | (cd .arch_x86_64 && tar xf -)
} &&
make clean &&
./configure 'CC=gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP='gcc-4.0 -E' 'CXX=g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++-4.0 -E' --host=i386-apple-darwin --build=`sh config/config.guess` --prefix=/opt/local --disable-dlopen --disable-mpi-f77 --disable-mpi-f90 --enable-mpi-threads &&
make &&
{ make check || true; } &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean &&
./configure 'CC=gcc-4.0 -arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP='gcc-4.0 -E' 'CXX=g++-4.0 -arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++-4.0 -E' --host=ppc64-apple-darwin --build=`sh config/config.guess` --prefix=/opt/local --disable-dlopen --disable-mpi-f77 --disable-mpi-f90 --enable-mpi-threads &&
make &&
{ make check || true; } &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  listup_binaries > .arch_ppc64/.binaries.lst && tar --files-from=.arch_ppc64/.binaries.lst -cf - | (cd .arch_ppc64 && tar xf -) &&
  listup_headers > .arch_ppc64/.headers.lst && tar --files-from=.arch_ppc64/.headers.lst -cf - | (cd .arch_ppc64 && tar xf -)
} &&
make clean &&
./configure 'CC=gcc-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP='gcc-4.0 -E' 'CXX=g++-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++-4.0 -E' --host=ppc-apple-darwin --build=`sh config/config.guess` --prefix=/opt/local --disable-dlopen --disable-mpi-f77 --disable-mpi-f90 --enable-mpi-threads &&
make &&
{ make check || true; } &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_ppc64/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_x86_64/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__)

`cat .arch_ppc/"$h"`

#elif defined(__ppc64__)

`cat .arch_ppc64/"$h"`

#elif defined(__i386__)

`cat .arch_i386/"$h"`

#elif defined(__x86_64__)

`cat .arch_x86_64/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/bin/mpic++
/opt/local/bin/mpic++-vt
/opt/local/bin/mpicc
/opt/local/bin/mpicc-vt
/opt/local/bin/mpicxx
/opt/local/bin/mpicxx-vt
/opt/local/bin/mpiexec
/opt/local/bin/mpif77
/opt/local/bin/mpif77-vt
/opt/local/bin/mpif90
/opt/local/bin/mpif90-vt
/opt/local/bin/mpirun
/opt/local/bin/ompi-clean
/opt/local/bin/ompi-iof
/opt/local/bin/ompi-ps
/opt/local/bin/ompi-server
/opt/local/bin/ompi_info
/opt/local/bin/opal_wrapper
/opt/local/bin/opari
/opt/local/bin/orte-clean
/opt/local/bin/orte-iof
/opt/local/bin/orte-ps
/opt/local/bin/orted
/opt/local/bin/orterun
/opt/local/bin/otfaux
/opt/local/bin/otfcompress
/opt/local/bin/otfconfig
/opt/local/bin/otfdecompress
/opt/local/bin/otfdump
/opt/local/bin/otfinfo
/opt/local/bin/otfmerge
/opt/local/bin/vtcc
/opt/local/bin/vtcxx
/opt/local/bin/vtf77
/opt/local/bin/vtf90
/opt/local/bin/vtfilter
/opt/local/bin/vtunify
/opt/local/etc/openmpi-default-hostfile
/opt/local/etc/openmpi-mca-params.conf
/opt/local/etc/openmpi-totalview.tcl
/opt/local/include/mpi.h
/opt/local/include/openmpi/ompi/mpi/cxx/comm.h
/opt/local/include/openmpi/ompi/mpi/cxx/comm_inln.h
/opt/local/include/openmpi/ompi/mpi/cxx/constants.h
/opt/local/include/openmpi/ompi/mpi/cxx/datatype.h
/opt/local/include/openmpi/ompi/mpi/cxx/datatype_inln.h
/opt/local/include/openmpi/ompi/mpi/cxx/errhandler.h
/opt/local/include/openmpi/ompi/mpi/cxx/errhandler_inln.h
/opt/local/include/openmpi/ompi/mpi/cxx/exception.h
/opt/local/include/openmpi/ompi/mpi/cxx/file.h
/opt/local/include/openmpi/ompi/mpi/cxx/file_inln.h
/opt/local/include/openmpi/ompi/mpi/cxx/functions.h
/opt/local/include/openmpi/ompi/mpi/cxx/functions_inln.h
/opt/local/include/openmpi/ompi/mpi/cxx/group.h
/opt/local/include/openmpi/ompi/mpi/cxx/group_inln.h
/opt/local/include/openmpi/ompi/mpi/cxx/info.h
/opt/local/include/openmpi/ompi/mpi/cxx/info_inln.h
/opt/local/include/openmpi/ompi/mpi/cxx/intercomm.h
/opt/local/include/openmpi/ompi/mpi/cxx/intercomm_inln.h
/opt/local/include/openmpi/ompi/mpi/cxx/intracomm.h
/opt/local/include/openmpi/ompi/mpi/cxx/intracomm_inln.h
/opt/local/include/openmpi/ompi/mpi/cxx/mpicxx.h
/opt/local/include/openmpi/ompi/mpi/cxx/op.h
/opt/local/include/openmpi/ompi/mpi/cxx/op_inln.h
	:

science/octave/octave-3.2.4

preparation
curl -RO -C - ftp://ftp.octave.org/pub/octave/octave-3.2.4.tar.bz2
tar xvjf octave-3.2.4.tar.bz2
(cd octave-3.2.4 &&
patch -p0 -b -z.org < ../octave-3.2.4-ubagami.patch
)
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_*/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *"Mach-O"*" bundle"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_*/*) continue	;;
    *.h|*.hpp|*.hh|*.inc)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean distclean &&
./configure --enable-static CC=gcc-4.0 'CFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CXX=g++-4.0 'CXXFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'FFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'LDFLAGS=-L/opt/local/lib -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'FLIBS=-L/opt/local/lib -lf2c' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local &&
make &&
make DESTDIR=`pwd` install &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean distclean &&
./configure --enable-static CC=gcc-4.0 'CFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CXX=g++-4.0 'CXXFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'FFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'LDFLAGS=-L/opt/local/lib -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'FLIBS=-L/opt/local/lib -lf2c' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local &&
make &&
make DESTDIR=`pwd` install &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__) || defined(__ppc64__)

`cat .arch_ppc/"$h"`

#elif defined(__i386__) || defined(__x86_64__)

`cat .arch_i386/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
patch
--- ./configure.org	2010-01-19 21:47:17.000000000 +0900
+++ ./configure	2010-10-01 18:56:30.000000000 +0900
@@ -6848,7 +6848,7 @@
 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
 fi
 
-if test "$have_x"; then
+if test "$have_x" == yes; then
 
 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
 
--- ./liboctave/lo-specfun.cc.org	2009-05-25 15:04:59.000000000 +0900
+++ ./liboctave/lo-specfun.cc	2010-10-01 20:27:31.000000000 +0900
@@ -25,6 +25,12 @@
 #include <config.h>
 #endif
 
+#if !defined(_REENTRANT)
+#define _REENTRANT
+#endif
+#include <cmath>
+#undef _REENTRANT
+
 #include "Range.h"
 #include "CColVector.h"
 #include "CMatrix.h"
--- ./Makeconf.in.org	2010-01-19 20:13:14.000000000 +0900
+++ ./Makeconf.in	2010-10-01 18:51:10.000000000 +0900
@@ -153,7 +153,7 @@
 
 MAGICK_CONFIG = @MAGICK_CONFIG@
 MAGICK_INCFLAGS = $(shell $(MAGICK_CONFIG) --cppflags)
-MAGICK_LIBS = $(shell $(MAGICK_CONFIG) --libs)
+MAGICK_LIBS = $(shell $(MAGICK_CONFIG) --libs | sed 's|-lXext|-L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -lXext|')
 
 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
 PTHREAD_LIBS = @PTHREAD_LIBS@
--- ./scripts/plot/gnuplot_drawnow.m.org	2009-11-24 16:02:08.000000000 +0900
+++ ./scripts/plot/gnuplot_drawnow.m	2010-10-01 18:46:41.000000000 +0900
@@ -350,9 +350,10 @@
   term = getenv ("GNUTERM");
   ## If not specified, guess the terminal type.
   if (isempty (term))
-    if (ismac ())
-      term = "aqua";
-    elseif (! isunix ())
+    #if (ismac ())
+    #  term = "aqua";
+    #elseif (! isunix ())
+    if (! isunix ())
       term = "windows";
     elseif (! isempty (getenv ("DISPLAY")))
       term = "x11";
installation
chown -R root:admin opt/local/
find opt/local/ \( ! -type d -o \( -type d \( -empty -o ! -perm u+w,a+rx \) \) \) ! -regex '.*/info/dir$' ! -name charset.alias ! -name locale.alias > .installed.lst
touch `cat .installed.lst`
tar --no-recursion --files-from=.installed.lst -cf - | tar -C / --no-recursion -xf -
install-info --info-dir=/opt/local/share/info /opt/local/share/info/octave.info
installed
/opt/local/bin/mkoctfile
/opt/local/bin/mkoctfile-3.2.4
/opt/local/bin/octave
/opt/local/bin/octave-3.2.4
/opt/local/bin/octave-bug
/opt/local/bin/octave-bug-3.2.4
/opt/local/bin/octave-config
/opt/local/bin/octave-config-3.2.4
/opt/local/include/octave-3.2.4/octave/Array-util.h
/opt/local/include/octave-3.2.4/octave/Array.cc
/opt/local/include/octave-3.2.4/octave/Array.h
/opt/local/include/octave-3.2.4/octave/Array2.h
/opt/local/include/octave-3.2.4/octave/Array3.h
/opt/local/include/octave-3.2.4/octave/ArrayN.cc
/opt/local/include/octave-3.2.4/octave/ArrayN.h
/opt/local/include/octave-3.2.4/octave/base-aepbal.h
/opt/local/include/octave-3.2.4/octave/base-dae.h
/opt/local/include/octave-3.2.4/octave/base-de.h
/opt/local/include/octave-3.2.4/octave/base-list.h
/opt/local/include/octave-3.2.4/octave/base-lu.cc
/opt/local/include/octave-3.2.4/octave/base-lu.h
/opt/local/include/octave-3.2.4/octave/base-min.h
/opt/local/include/octave-3.2.4/octave/boolMatrix.h
/opt/local/include/octave-3.2.4/octave/boolNDArray.h
/opt/local/include/octave-3.2.4/octave/boolSparse.h
/opt/local/include/octave-3.2.4/octave/builtins.h
/opt/local/include/octave-3.2.4/octave/byte-swap.h
/opt/local/include/octave-3.2.4/octave/c-file-ptr-stream.h
/opt/local/include/octave-3.2.4/octave/CColVector.h
/opt/local/include/octave-3.2.4/octave/CDiagMatrix.h
/opt/local/include/octave-3.2.4/octave/Cell.h
/opt/local/include/octave-3.2.4/octave/chMatrix.h
/opt/local/include/octave-3.2.4/octave/chNDArray.h
/opt/local/include/octave-3.2.4/octave/CMatrix.h
/opt/local/include/octave-3.2.4/octave/cmd-edit.h
/opt/local/include/octave-3.2.4/octave/cmd-hist.h
/opt/local/include/octave-3.2.4/octave/CmplxAEPBAL.h
/opt/local/include/octave-3.2.4/octave/CmplxCHOL.h
/opt/local/include/octave-3.2.4/octave/CmplxGEPBAL.h
/opt/local/include/octave-3.2.4/octave/CmplxHESS.h
/opt/local/include/octave-3.2.4/octave/CmplxLU.h
/opt/local/include/octave-3.2.4/octave/CmplxQR.h
/opt/local/include/octave-3.2.4/octave/CmplxQRP.h
/opt/local/include/octave-3.2.4/octave/CmplxSCHUR.h
/opt/local/include/octave-3.2.4/octave/CmplxSVD.h
/opt/local/include/octave-3.2.4/octave/CNDArray.h
/opt/local/include/octave-3.2.4/octave/CollocWt.h
/opt/local/include/octave-3.2.4/octave/comment-list.h
/opt/local/include/octave-3.2.4/octave/config.h
/opt/local/include/octave-3.2.4/octave/CRowVector.h
/opt/local/include/octave-3.2.4/octave/CSparse.h
/opt/local/include/octave-3.2.4/octave/DAE.h
/opt/local/include/octave-3.2.4/octave/DAEFunc.h
/opt/local/include/octave-3.2.4/octave/DAERT.h
/opt/local/include/octave-3.2.4/octave/DAERTFunc.h
/opt/local/include/octave-3.2.4/octave/DASPK-opts.h
/opt/local/include/octave-3.2.4/octave/DASPK.h
/opt/local/include/octave-3.2.4/octave/DASRT-opts.h
/opt/local/include/octave-3.2.4/octave/DASRT.h
/opt/local/include/octave-3.2.4/octave/DASSL-opts.h
/opt/local/include/octave-3.2.4/octave/DASSL.h
/opt/local/include/octave-3.2.4/octave/data-conv.h
/opt/local/include/octave-3.2.4/octave/dbleAEPBAL.h
/opt/local/include/octave-3.2.4/octave/dbleCHOL.h
	:

img/GraphicsMagick-1.3.12

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.12/GraphicsMagick-1.3.12.tar.bz2
tar xvjf GraphicsMagick-1.3.12.tar.bz2
build
./configure --disable-dependency-tracking --enable-shared 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local --without-dps --with-gs-font-dir=/opt/local/gs7.07/share/ghostscript/fonts --with-windows-font-dir=/opt/local/X11R6/lib/X11/fonts/truetype 
make 
installed
/opt/local/bin/gm
/opt/local/bin/GraphicsMagick++-config
/opt/local/bin/GraphicsMagick-config
/opt/local/bin/GraphicsMagickWand-config
/opt/local/include/GraphicsMagick/magick/analyze.h
/opt/local/include/GraphicsMagick/magick/api.h
/opt/local/include/GraphicsMagick/magick/attribute.h
/opt/local/include/GraphicsMagick/magick/average.h
/opt/local/include/GraphicsMagick/magick/blob.h
/opt/local/include/GraphicsMagick/magick/cdl.h
/opt/local/include/GraphicsMagick/magick/channel.h
/opt/local/include/GraphicsMagick/magick/color.h
/opt/local/include/GraphicsMagick/magick/color_lookup.h
/opt/local/include/GraphicsMagick/magick/colormap.h
/opt/local/include/GraphicsMagick/magick/colorspace.h
/opt/local/include/GraphicsMagick/magick/command.h
/opt/local/include/GraphicsMagick/magick/common.h
/opt/local/include/GraphicsMagick/magick/compare.h
/opt/local/include/GraphicsMagick/magick/composite.h
/opt/local/include/GraphicsMagick/magick/compress.h
/opt/local/include/GraphicsMagick/magick/confirm_access.h
/opt/local/include/GraphicsMagick/magick/constitute.h
/opt/local/include/GraphicsMagick/magick/decorate.h
/opt/local/include/GraphicsMagick/magick/delegate.h
/opt/local/include/GraphicsMagick/magick/deprecate.h
/opt/local/include/GraphicsMagick/magick/describe.h
/opt/local/include/GraphicsMagick/magick/draw.h
/opt/local/include/GraphicsMagick/magick/effect.h
/opt/local/include/GraphicsMagick/magick/enhance.h
/opt/local/include/GraphicsMagick/magick/error.h
/opt/local/include/GraphicsMagick/magick/forward.h
/opt/local/include/GraphicsMagick/magick/fx.h
/opt/local/include/GraphicsMagick/magick/gem.h
/opt/local/include/GraphicsMagick/magick/gradient.h
/opt/local/include/GraphicsMagick/magick/hclut.h
/opt/local/include/GraphicsMagick/magick/image.h
/opt/local/include/GraphicsMagick/magick/list.h
/opt/local/include/GraphicsMagick/magick/log.h
/opt/local/include/GraphicsMagick/magick/magic.h
/opt/local/include/GraphicsMagick/magick/magick.h
/opt/local/include/GraphicsMagick/magick/magick_config.h
/opt/local/include/GraphicsMagick/magick/magick_types.h
/opt/local/include/GraphicsMagick/magick/memory.h
/opt/local/include/GraphicsMagick/magick/module.h
/opt/local/include/GraphicsMagick/magick/monitor.h
/opt/local/include/GraphicsMagick/magick/montage.h
/opt/local/include/GraphicsMagick/magick/operator.h
/opt/local/include/GraphicsMagick/magick/paint.h
/opt/local/include/GraphicsMagick/magick/pixel_cache.h
/opt/local/include/GraphicsMagick/magick/pixel_iterator.h
/opt/local/include/GraphicsMagick/magick/plasma.h
/opt/local/include/GraphicsMagick/magick/profile.h
/opt/local/include/GraphicsMagick/magick/quantize.h
/opt/local/include/GraphicsMagick/magick/random.h
/opt/local/include/GraphicsMagick/magick/registry.h
/opt/local/include/GraphicsMagick/magick/render.h
/opt/local/include/GraphicsMagick/magick/resize.h
/opt/local/include/GraphicsMagick/magick/resource.h
/opt/local/include/GraphicsMagick/magick/shear.h
/opt/local/include/GraphicsMagick/magick/signature.h
/opt/local/include/GraphicsMagick/magick/statistics.h
/opt/local/include/GraphicsMagick/magick/symbols.h
/opt/local/include/GraphicsMagick/magick/texture.h
/opt/local/include/GraphicsMagick/magick/timer.h
	:

devel/misc/sed-4.2

preparation
curl -RO -C - http://ftp.gnu.org/gnu/sed/sed-4.2.tar.bz2
tar xvjf sed-4.2.tar.bz2
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/bin/sed
/opt/local/share/info/sed.info
/opt/local/share/locale/af/LC_MESSAGES/sed.mo
/opt/local/share/locale/ca/LC_MESSAGES/sed.mo
/opt/local/share/locale/cs/LC_MESSAGES/sed.mo
/opt/local/share/locale/da/LC_MESSAGES/sed.mo
/opt/local/share/locale/de/LC_MESSAGES/sed.mo
/opt/local/share/locale/el/LC_MESSAGES/sed.mo
/opt/local/share/locale/eo/LC_MESSAGES/sed.mo
/opt/local/share/locale/es/LC_MESSAGES/sed.mo
/opt/local/share/locale/et/LC_MESSAGES/sed.mo
/opt/local/share/locale/eu/LC_MESSAGES/sed.mo
/opt/local/share/locale/fi/LC_MESSAGES/sed.mo
/opt/local/share/locale/fr/LC_MESSAGES/sed.mo
/opt/local/share/locale/ga/LC_MESSAGES/sed.mo
/opt/local/share/locale/gl/LC_MESSAGES/sed.mo
/opt/local/share/locale/he/LC_MESSAGES/sed.mo
/opt/local/share/locale/hr/LC_MESSAGES/sed.mo
/opt/local/share/locale/hu/LC_MESSAGES/sed.mo
/opt/local/share/locale/id/LC_MESSAGES/sed.mo
/opt/local/share/locale/it/LC_MESSAGES/sed.mo
/opt/local/share/locale/ja/LC_MESSAGES/sed.mo
/opt/local/share/locale/ko/LC_MESSAGES/sed.mo
/opt/local/share/locale/nl/LC_MESSAGES/sed.mo
/opt/local/share/locale/pl/LC_MESSAGES/sed.mo
/opt/local/share/locale/pt/LC_MESSAGES/sed.mo
/opt/local/share/locale/pt_BR/LC_MESSAGES/sed.mo
/opt/local/share/locale/ro/LC_MESSAGES/sed.mo
/opt/local/share/locale/ru/LC_MESSAGES/sed.mo
/opt/local/share/locale/sk/LC_MESSAGES/sed.mo
/opt/local/share/locale/sl/LC_MESSAGES/sed.mo
/opt/local/share/locale/sr/LC_MESSAGES/sed.mo
/opt/local/share/locale/sv/LC_MESSAGES/sed.mo
/opt/local/share/locale/tr/LC_MESSAGES/sed.mo
/opt/local/share/locale/uk/LC_MESSAGES/sed.mo
/opt/local/share/locale/vi/LC_MESSAGES/sed.mo
/opt/local/share/locale/zh_CN/LC_MESSAGES/sed.mo
/opt/local/share/locale/zh_TW/LC_MESSAGES/sed.mo
/opt/local/share/man/man1/sed.1

science/octave/qhull-2010.1

preparation
curl -RO -C - http://www.qhull.org/download/qhull-2010.1-src.tgz
tar xvzf qhull-2010.1-src.tgz
(cd qhull-2010.1 &&
patch -p0 -b -z.org < ../qhull-2010.1-ubagami.patch
)
build
cmake . -DCMAKE_INSTALL_PREFIX:STRING=/opt/local '-DCMAKE_C_FLAGS:STRING=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' '-DCMAKE_CXX_FLAGS:STRING=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' '-DCMAKE_EXE_LINKER_FLAGS:STRING=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' '-DCMAKE_MODULE_LINKER_FLAGS:STRING=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' '-DCMAKE_SHARED_LINKER_FLAGS:STRING=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 
make VERBOSE=:
patch
--- ./CMakeLists.txt.org	2010-01-10 09:07:32.000000000 +0900
+++ ./CMakeLists.txt	2010-09-29 21:55:09.000000000 +0900
@@ -6,3 +6,6 @@
 
 add_subdirectory(src)
 
+install(DIRECTORY html DESTINATION share/doc/qhull)
+install(FILES html/qhull.man DESTINATION share/man/man1 RENAME qhull.1)
+install(FILES html/rbox.man DESTINATION share/man/man1 RENAME rbox.1)
--- ./src/CMakeLists.txt.org	2010-01-10 09:07:32.000000000 +0900
+++ ./src/CMakeLists.txt	2010-09-29 21:55:45.000000000 +0900
@@ -1,5 +1,10 @@
 project(qhull_lib)
 
+# Change before each release whenever there has been an API change of any
+# kind.
+set(qhull_SOVERSION 5)
+set(qhull_VERSION ${qhull_SOVERSION}.0.0)
+
 # Order object files by frequency of execution.  Small files at end.
 set(
     qhull_src
@@ -23,8 +28,23 @@
 
 file(GLOB qhull_hdr *.h)
 
-add_library(qhull ${qhull_src})
+add_library(qhull SHARED ${qhull_src})
 target_link_libraries(qhull m)
+set_target_properties(qhull PROPERTIES 
+	SOVERSION ${qhull_SOVERSION} VERSION ${qhull_VERSION})
+if(UNIX)
+	if(APPLE)
+		set_target_properties(qhull PROPERTIES 
+			INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
+	else(APPLE)
+		set_target_properties(qhull PROPERTIES 
+			INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib"
+			INSTALL_RPATH_USE_LINK_PATH TRUE
+			BUILD_WITH_INSTALL_RPATH FALSE)
+	endif(APPLE)
+endif(UNIX)
+add_library(qhullstatic STATIC ${qhull_src})
+set_property(TARGET qhullstatic PROPERTY OUTPUT_NAME "qhull")
 
 set(qhullcmd_SOURCES  unix.c)
 set(rbox_SOURCES  rbox.c)
@@ -33,22 +53,16 @@
 set(qvoronoi_SOURCES  qvoronoi.c)
 set(qhalf_SOURCES  qhalf.c)
 
-
-add_executable(qhullcmd ${qhullcmd_SOURCES})
-target_link_libraries(qhullcmd qhull)
-
-add_executable(rbox ${rbox_SOURCES})
-target_link_libraries(rbox qhull)
-
-add_executable(qconvex ${qconvex_SOURCES})
-target_link_libraries(qconvex qhull)
-
-add_executable(qdelaunay ${qdelaunay_SOURCES})
-target_link_libraries(qdelaunay qhull)
-
-add_executable(qvoronoi ${qvoronoi_SOURCES})
-target_link_libraries(qvoronoi qhull)
-
-add_executable(qhalf ${qhalf_SOURCES})
-target_link_libraries(qhalf qhull)
-
+set(PROGS qhullcmd rbox qconvex qdelaunay qvoronoi qhalf)
+foreach(PROG ${PROGS})
+	add_executable(${PROG} ${${PROG}_SOURCES})
+	target_link_libraries(${PROG} qhull)
+endforeach(PROG ${PROGS})
+
+set_property(TARGET qhullcmd PROPERTY OUTPUT_NAME "qhull")
+
+install(TARGETS qhull qhullstatic ${PROGS}
+	RUNTIME DESTINATION bin
+	LIBRARY DESTINATION lib
+	ARCHIVE DESTINATION lib)
+install(FILES ${qhull_hdr} DESTINATION include/qhull)
installation
make install 
installed
/opt/local/bin/qconvex
/opt/local/bin/qdelaunay
/opt/local/bin/qhalf
/opt/local/bin/qhull
/opt/local/bin/qvoronoi
/opt/local/bin/rbox
/opt/local/lib/libqhull.5.0.0.dylib
/opt/local/lib/libqhull.5.dylib
/opt/local/lib/libqhull.a
/opt/local/lib/libqhull.dylib
data_installed
/opt/local/include/qhull/geom.h
/opt/local/include/qhull/io.h
/opt/local/include/qhull/libqhull.h
/opt/local/include/qhull/mem.h
/opt/local/include/qhull/merge.h
/opt/local/include/qhull/poly.h
/opt/local/include/qhull/qhull.h
/opt/local/include/qhull/qhull_a.h
/opt/local/include/qhull/qset.h
/opt/local/include/qhull/random.h
/opt/local/include/qhull/stat.h
/opt/local/include/qhull/user.h
/opt/local/share/doc/qhull/html/index.htm
/opt/local/share/doc/qhull/html/normal_voronoi_knauss_oesterle.jpg
/opt/local/share/doc/qhull/html/qconvex.htm
/opt/local/share/doc/qhull/html/qdelau_f.htm
/opt/local/share/doc/qhull/html/qdelaun.htm
/opt/local/share/doc/qhull/html/qh--4d.gif
/opt/local/share/doc/qhull/html/qh--cone.gif
/opt/local/share/doc/qhull/html/qh--dt.gif
/opt/local/share/doc/qhull/html/qh--geom.gif
/opt/local/share/doc/qhull/html/qh--half.gif
/opt/local/share/doc/qhull/html/qh--rand.gif
/opt/local/share/doc/qhull/html/qh-code.htm
/opt/local/share/doc/qhull/html/qh-eg.htm
/opt/local/share/doc/qhull/html/qh-faq.htm
/opt/local/share/doc/qhull/html/qh-get.htm
/opt/local/share/doc/qhull/html/qh-impre.htm
/opt/local/share/doc/qhull/html/qh-optc.htm
/opt/local/share/doc/qhull/html/qh-optf.htm
/opt/local/share/doc/qhull/html/qh-optg.htm
/opt/local/share/doc/qhull/html/qh-opto.htm
/opt/local/share/doc/qhull/html/qh-optp.htm
/opt/local/share/doc/qhull/html/qh-optq.htm
/opt/local/share/doc/qhull/html/qh-optt.htm
/opt/local/share/doc/qhull/html/qh-quick.htm
/opt/local/share/doc/qhull/html/qhalf.htm
/opt/local/share/doc/qhull/html/qhull-cpp.xml
/opt/local/share/doc/qhull/html/qhull.htm
/opt/local/share/doc/qhull/html/qhull.man
/opt/local/share/doc/qhull/html/qhull.txt
/opt/local/share/doc/qhull/html/qvoron_f.htm
/opt/local/share/doc/qhull/html/qvoronoi.htm
/opt/local/share/doc/qhull/html/rbox.htm
/opt/local/share/doc/qhull/html/rbox.man
/opt/local/share/doc/qhull/html/rbox.txt
/opt/local/share/man/man1/qhull.1
/opt/local/share/man/man1/rbox.1

devel/cmake-2.8.2

preparation
curl -RO -C - http://www.cmake.org/files/v2.8/cmake-2.8.2.tar.gz
tar xvzf cmake-2.8.2.tar.gz
build
env CFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4" CXXFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4" LDFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4" ./configure --prefix=/opt/local --verbose &&
patch -p0 <<'EOF' &&
--- ./CMakeCache.txt.org	2010-09-29 16:28:29.000000000 +0900
+++ ./CMakeCache.txt	2010-09-29 20:00:38.000000000 +0900
@@ -56,7 +56,7 @@
 CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++
 
 //Flags used by the compiler during all build types.
-CMAKE_CXX_FLAGS:STRING='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 '
+CMAKE_CXX_FLAGS:STRING=
 
 //Flags used by the compiler during debug builds.
 CMAKE_CXX_FLAGS_DEBUG:STRING=-g
@@ -76,7 +76,7 @@
 CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc
 
 //Flags used by the compiler during all build types.
-CMAKE_C_FLAGS:STRING='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 '
+CMAKE_C_FLAGS:STRING=
 
 //Flags used by the compiler during debug builds.
 CMAKE_C_FLAGS_DEBUG:STRING=-g
@@ -99,7 +99,7 @@
 CMAKE_DOC_DIR:PATH=/doc/cmake-2.8
 
 //Flags used by the linker.
-CMAKE_EXE_LINKER_FLAGS:STRING=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
+CMAKE_EXE_LINKER_FLAGS:STRING=
 
 //Flags used by the linker during debug builds.
 CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
@@ -120,7 +120,7 @@
 CMAKE_FORM_SOURCE_DIR:STATIC=/Users/taiji/import/local/devel/cmake-2.8.2/Source/CursesDialog/form
 
 //Fortran compiler
-CMAKE_Fortran_COMPILER:FILEPATH=/opt/local/bin/fort77
+CMAKE_Fortran_COMPILER:FILEPATH=
 
 //Fortran flags
 CMAKE_Fortran_FLAGS:STRING=
@@ -144,7 +144,7 @@
 CMAKE_MAN_DIR:PATH=/man
 
 //Flags used by the linker during the creation of modules.
-CMAKE_MODULE_LINKER_FLAGS:STRING=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
+CMAKE_MODULE_LINKER_FLAGS:STRING=
 
 //Flags used by the linker during debug builds.
 CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
@@ -168,15 +168,15 @@
 CMAKE_OBJDUMP:FILEPATH=CMAKE_OBJDUMP-NOTFOUND
 
 //Build architectures for OSX
-CMAKE_OSX_ARCHITECTURES:STRING=
+CMAKE_OSX_ARCHITECTURES:STRING=ppc;i386;
 
 //Minimum OS X version to target for deployment (at runtime); newer
 // APIs weak linked. Set to empty string for default value.
-CMAKE_OSX_DEPLOYMENT_TARGET:STRING=
+CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.4
 
 //The product will be built against the headers and libraries located
 // inside the indicated SDK.
-CMAKE_OSX_SYSROOT:PATH=/Developer/SDKs/MacOSX10.5.sdk
+CMAKE_OSX_SYSROOT:PATH=/Developer/SDKs/MacOSX10.4u.sdk
 
 //Value Computed by CMake
 CMAKE_PROJECT_NAME:STATIC=CMake
@@ -191,7 +191,7 @@
 CMAKE_RUN_LONG_TESTS:BOOL=ON
 
 //Flags used by the linker during the creation of dll's.
-CMAKE_SHARED_LINKER_FLAGS:STRING=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
+CMAKE_SHARED_LINKER_FLAGS:STRING=
 
 //Flags used by the linker during debug builds.
 CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
@@ -457,13 +457,13 @@
 LIBCURL_SOURCE_DIR:STATIC=/Users/taiji/import/local/devel/cmake-2.8.2/Utilities/cmcurl
 
 //Path to a file.
-LIBXML2_INCLUDE_DIR:PATH=/opt/local/include/libxml2
+LIBXML2_INCLUDE_DIR:PATH=/usr/include/libxml2
 
 //Path to a library.
-LIBXML2_LIBRARIES:FILEPATH=/opt/local/lib/libxml2.dylib
+LIBXML2_LIBRARIES:FILEPATH=/usr/lib/libxml2.dylib
 
 //Path to a program.
-LIBXML2_XMLLINT_EXECUTABLE:FILEPATH=/opt/local/bin/xmllint
+LIBXML2_XMLLINT_EXECUTABLE:FILEPATH=/usr/bin/xmllint
 
 //Command to build the project
 MAKECOMMAND:STRING=/opt/local/bin/make -i
@@ -1562,31 +1562,31 @@
 OPENSSL_ROOT_DIR-ADVANCED:INTERNAL=1
 //ADVANCED property for variable: OPENSSL_SSL_LIBRARIES
 OPENSSL_SSL_LIBRARIES-ADVANCED:INTERNAL=1
-PC_LIBXML_CFLAGS:INTERNAL=-I/opt/local/include/libxml2
+PC_LIBXML_CFLAGS:INTERNAL=-I/usr/include/libxml2
 PC_LIBXML_CFLAGS_I:INTERNAL=
 PC_LIBXML_CFLAGS_OTHER:INTERNAL=
 PC_LIBXML_FOUND:INTERNAL=1
-PC_LIBXML_INCLUDEDIR:INTERNAL=/opt/local/include
-PC_LIBXML_INCLUDE_DIRS:INTERNAL=/opt/local/include/libxml2
-PC_LIBXML_LDFLAGS:INTERNAL=-L/opt/local/lib;-lxml2
+PC_LIBXML_INCLUDEDIR:INTERNAL=/usr/include
+PC_LIBXML_INCLUDE_DIRS:INTERNAL=/usr/include/libxml2
+PC_LIBXML_LDFLAGS:INTERNAL=-L/usr/lib;-lxml2
 PC_LIBXML_LDFLAGS_OTHER:INTERNAL=
-PC_LIBXML_LIBDIR:INTERNAL=/opt/local/lib
+PC_LIBXML_LIBDIR:INTERNAL=/usr/lib
 PC_LIBXML_LIBRARIES:INTERNAL=xml2
-PC_LIBXML_LIBRARY_DIRS:INTERNAL=/opt/local/lib
+PC_LIBXML_LIBRARY_DIRS:INTERNAL=/usr/lib
 PC_LIBXML_LIBS:INTERNAL=
 PC_LIBXML_LIBS_L:INTERNAL=
 PC_LIBXML_LIBS_OTHER:INTERNAL=
 PC_LIBXML_LIBS_PATHS:INTERNAL=
-PC_LIBXML_PREFIX:INTERNAL=/opt/local
-PC_LIBXML_STATIC_CFLAGS:INTERNAL=-I/opt/local/include/libxml2
+PC_LIBXML_PREFIX:INTERNAL=/usr
+PC_LIBXML_STATIC_CFLAGS:INTERNAL=-I/usr/include/libxml2
 PC_LIBXML_STATIC_CFLAGS_I:INTERNAL=
 PC_LIBXML_STATIC_CFLAGS_OTHER:INTERNAL=
-PC_LIBXML_STATIC_INCLUDE_DIRS:INTERNAL=/opt/local/include/libxml2
-PC_LIBXML_STATIC_LDFLAGS:INTERNAL=-L/opt/local/lib;-lxml2;-lpthread;-lz;-liconv;-lm
+PC_LIBXML_STATIC_INCLUDE_DIRS:INTERNAL=/usr/include/libxml2
+PC_LIBXML_STATIC_LDFLAGS:INTERNAL=-L/usr/lib;-lxml2;-lpthread;-lz;-liconv;-lm
 PC_LIBXML_STATIC_LDFLAGS_OTHER:INTERNAL=
 PC_LIBXML_STATIC_LIBDIR:INTERNAL=
 PC_LIBXML_STATIC_LIBRARIES:INTERNAL=xml2;pthread;z;iconv;m
-PC_LIBXML_STATIC_LIBRARY_DIRS:INTERNAL=/opt/local/lib
+PC_LIBXML_STATIC_LIBRARY_DIRS:INTERNAL=/usr/lib
 PC_LIBXML_STATIC_LIBS:INTERNAL=
 PC_LIBXML_STATIC_LIBS_L:INTERNAL=
 PC_LIBXML_STATIC_LIBS_OTHER:INTERNAL=
EOF
make VERBOSE=:
installation
make install 
installed
data_installed
/opt/local/bin/ccmake
/opt/local/bin/cmake
/opt/local/bin/cmakexbuild
/opt/local/bin/cpack
/opt/local/bin/ctest
/opt/local/doc/cmake-2.8/ccmake.docbook
/opt/local/doc/cmake-2.8/ccmake.html
/opt/local/doc/cmake-2.8/ccmake.txt
/opt/local/doc/cmake-2.8/cmake-commands.html
/opt/local/doc/cmake-2.8/cmake-commands.txt
/opt/local/doc/cmake-2.8/cmake-compatcommands.html
/opt/local/doc/cmake-2.8/cmake-compatcommands.txt
/opt/local/doc/cmake-2.8/cmake-modules.html
/opt/local/doc/cmake-2.8/cmake-modules.txt
/opt/local/doc/cmake-2.8/cmake-policies.html
/opt/local/doc/cmake-2.8/cmake-policies.txt
/opt/local/doc/cmake-2.8/cmake-properties.html
/opt/local/doc/cmake-2.8/cmake-properties.txt
/opt/local/doc/cmake-2.8/cmake-variables.html
/opt/local/doc/cmake-2.8/cmake-variables.txt
/opt/local/doc/cmake-2.8/cmake.docbook
/opt/local/doc/cmake-2.8/cmake.html
/opt/local/doc/cmake-2.8/cmake.txt
/opt/local/doc/cmake-2.8/cmcompress/Copyright.txt
/opt/local/doc/cmake-2.8/cmcurl/COPYING
/opt/local/doc/cmake-2.8/cmexpat/COPYING
/opt/local/doc/cmake-2.8/cmsys/Copyright.txt
/opt/local/doc/cmake-2.8/cmzlib/Copyright.txt
/opt/local/doc/cmake-2.8/Copyright.txt
/opt/local/doc/cmake-2.8/cpack.docbook
/opt/local/doc/cmake-2.8/cpack.html
/opt/local/doc/cmake-2.8/cpack.txt
/opt/local/doc/cmake-2.8/ctest.docbook
/opt/local/doc/cmake-2.8/ctest.html
/opt/local/doc/cmake-2.8/ctest.txt
/opt/local/man/man1/ccmake.1
/opt/local/man/man1/cmake.1
/opt/local/man/man1/cmakecommands.1
/opt/local/man/man1/cmakecompat.1
/opt/local/man/man1/cmakemodules.1
/opt/local/man/man1/cmakepolicies.1
/opt/local/man/man1/cmakeprops.1
/opt/local/man/man1/cmakevars.1
/opt/local/man/man1/cpack.1
/opt/local/man/man1/ctest.1
/opt/local/share/cmake-2.8/include/cmCPluginAPI.h
/opt/local/share/cmake-2.8/Modules/.NoDartCoverage
/opt/local/share/cmake-2.8/Modules/AddFileDependencies.cmake
/opt/local/share/cmake-2.8/Modules/BundleUtilities.cmake
/opt/local/share/cmake-2.8/Modules/CheckCCompilerFlag.cmake
/opt/local/share/cmake-2.8/Modules/CheckCSourceCompiles.cmake
/opt/local/share/cmake-2.8/Modules/CheckCSourceRuns.cmake
/opt/local/share/cmake-2.8/Modules/CheckCXXCompilerFlag.cmake
/opt/local/share/cmake-2.8/Modules/CheckCXXSourceCompiles.cmake
/opt/local/share/cmake-2.8/Modules/CheckCXXSourceRuns.cmake
/opt/local/share/cmake-2.8/Modules/CheckForPthreads.c
/opt/local/share/cmake-2.8/Modules/CheckFortranFunctionExists.cmake
/opt/local/share/cmake-2.8/Modules/CheckFunctionExists.c
/opt/local/share/cmake-2.8/Modules/CheckFunctionExists.cmake
/opt/local/share/cmake-2.8/Modules/CheckIncludeFile.c.in
/opt/local/share/cmake-2.8/Modules/CheckIncludeFile.cmake
/opt/local/share/cmake-2.8/Modules/CheckIncludeFile.cxx.in
/opt/local/share/cmake-2.8/Modules/CheckIncludeFileCXX.cmake
/opt/local/share/cmake-2.8/Modules/CheckIncludeFiles.cmake
	:

libs/fftw-3.2.2_quadruple

preparation
curl -RO -C - http://www.fftw.org/fftw-3.2.2.tar.gz
tar xvzf fftw-3.2.2.tar.gz
mv fftw-3.2.2 fftw-3.2.2_quadruple
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean distclean &&
./configure CFLAGS='-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --enable-fma --disable-sse2 --disable-fortran --host=x86_64-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local --enable-shared --enable-threads --enable-long-double &&
make &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  listup_binaries > .arch_x86_64/.binaries.lst && tar --files-from=.arch_x86_64/.binaries.lst -cf - | (cd .arch_x86_64 && tar xf -) &&
  listup_headers > .arch_x86_64/.headers.lst && tar --files-from=.arch_x86_64/.headers.lst -cf - | (cd .arch_x86_64 && tar xf -)
} &&
make clean distclean &&
./configure CFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --enable-fma --disable-sse2 --disable-fortran --host=i686-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local --enable-shared --enable-threads --enable-long-double &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean distclean &&
./configure CFLAGS='-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --enable-fma --disable-altivec --disable-fortran --host=ppc64-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local --enable-shared --enable-threads --enable-long-double &&
make &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  listup_binaries > .arch_ppc64/.binaries.lst && tar --files-from=.arch_ppc64/.binaries.lst -cf - | (cd .arch_ppc64 && tar xf -) &&
  listup_headers > .arch_ppc64/.headers.lst && tar --files-from=.arch_ppc64/.headers.lst -cf - | (cd .arch_ppc64 && tar xf -)
} &&
make clean distclean &&
./configure CFLAGS='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --enable-fma --disable-altivec --disable-fortran --host=ppc-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local --enable-shared --enable-threads --enable-long-double &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_ppc64/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_x86_64/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__)

`cat .arch_ppc/"$h"`

#elif defined(__ppc64__)

`cat .arch_ppc64/"$h"`

#elif defined(__i386__)

`cat .arch_i386/"$h"`

#elif defined(__x86_64__)

`cat .arch_x86_64/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installation
make install-libLTLIBRARIES 
installed
/opt/local/lib/libfftw3l.3.dylib
/opt/local/lib/libfftw3l.a
/opt/local/lib/libfftw3l.dylib
/opt/local/lib/libfftw3l.la

libs/fftw-3.2.2_single

preparation
curl -RO -C - http://www.fftw.org/fftw-3.2.2.tar.gz
tar xvzf fftw-3.2.2.tar.gz
mv fftw-3.2.2 fftw-3.2.2_single
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean distclean &&
./configure CFLAGS='-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --disable-fma --enable-sse --disable-fortran --host=x86_64-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local --enable-shared --enable-threads --enable-float &&
make &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  listup_binaries > .arch_x86_64/.binaries.lst && tar --files-from=.arch_x86_64/.binaries.lst -cf - | (cd .arch_x86_64 && tar xf -) &&
  listup_headers > .arch_x86_64/.headers.lst && tar --files-from=.arch_x86_64/.headers.lst -cf - | (cd .arch_x86_64 && tar xf -)
} &&
make clean distclean &&
./configure CFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --disable-fma --enable-sse --disable-fortran --host=i686-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local --enable-shared --enable-threads --enable-float &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean distclean &&
./configure CFLAGS='-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --enable-fma --disable-altivec --disable-fortran --host=ppc64-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local --enable-shared --enable-threads --enable-float &&
make &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  listup_binaries > .arch_ppc64/.binaries.lst && tar --files-from=.arch_ppc64/.binaries.lst -cf - | (cd .arch_ppc64 && tar xf -) &&
  listup_headers > .arch_ppc64/.headers.lst && tar --files-from=.arch_ppc64/.headers.lst -cf - | (cd .arch_ppc64 && tar xf -)
} &&
make clean distclean &&
./configure CFLAGS='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --enable-fma --disable-altivec --disable-fortran --host=ppc-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local --enable-shared --enable-threads --enable-float &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_ppc64/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_x86_64/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__)

`cat .arch_ppc/"$h"`

#elif defined(__ppc64__)

`cat .arch_ppc64/"$h"`

#elif defined(__i386__)

`cat .arch_i386/"$h"`

#elif defined(__x86_64__)

`cat .arch_x86_64/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installation
make install-libLTLIBRARIES 
installed
/opt/local/lib/libfftw3f.3.dylib
/opt/local/lib/libfftw3f.a
/opt/local/lib/libfftw3f.dylib
/opt/local/lib/libfftw3f.la

science/octave/fort77-1.15

preparation
curl -RO -C - http://ftp.de.debian.org/debian/pool/main/f/fort77/fort77_1.15.orig.tar.gz
curl -RO -C - http://ftp.de.debian.org/debian/pool/main/f/fort77/fort77_1.15-8.diff.gz
tar xvzf fort77_1.15.orig.tar.gz
mv fort77-1.15.orig fort77-1.15
(cd fort77-1.15 &&
gzcat ../fort77_1.15-8.diff.gz | patch -p1
)
(cd fort77-1.15 &&
patch -p0 -b -z.org < ../fort77-1.15-ubagami.patch
)
build
./configure --prefix=/opt/local 
make 
patch
--- ./configure.org	1997-07-14 22:26:48.000000000 +0900
+++ ./configure	2010-09-28 12:06:46.000000000 +0900
@@ -9,7 +9,7 @@
 
 # Defaults:
 ac_help=
-ac_default_prefix=/usr/local
+ac_default_prefix=/opt/local
 # Any additions from configure.in:
 
 # Initialize some variables set by options.
--- ./fort77.1.org	2010-09-28 11:56:06.000000000 +0900
+++ ./fort77.1	2010-09-28 12:03:10.000000000 +0900
@@ -40,7 +40,7 @@
 are passed through to f2c, and files ending with
 .B .F
 are passed to the C preprocessor (invoked as
-.RB """" "/lib/cpp -traditional" """")
+.RB """" "/usr/bin/cpp -traditional" """")
 first.  Any switches passed via
 .B -D
 will be passed to the preprocessor.
--- ./fort77.in.org	2010-09-28 11:56:06.000000000 +0900
+++ ./fort77.in	2010-09-28 13:56:23.000000000 +0900
@@ -12,7 +12,7 @@
 $debug = 0;
 $debugcmd = "";
 
-$cppcmd = "/lib/cpp -traditional";
+$cppcmd = "/usr/bin/cpp -traditional";
 
 # Loop over all options; pull all options from @ARGV and put all
 # arguments into @argv.	 This is needed because, apparently, UNIX
@@ -97,6 +97,10 @@
     elsif (/^-f$/) {
 	push(@fopts, $_);
     }
+    elsif (/^-mmacosx-version-min=.*$/) {
+	push(@copts, $_);
+	push(@lopts, $_);
+    }
     elsif (/^-[fWUAm]/ || /^-[Ex]$/ || /^-pipe$/ ) {
 	push(@copts, $_);
     }
@@ -141,6 +145,11 @@
 	push(@copts, $_);
 	push(@lopts, $_);
     }
+    elsif (/^-arch$/ || /^-isysroot$/ || /^-iwithsysroot$/ || /^-isystem$/) {
+	push(@copts, $_, $ARGV[0]);
+	push(@lopts, $_, $ARGV[0]);
+	shift;
+    }
 
 # Linker only options
 
@@ -287,7 +296,7 @@
 # C compilation step.
 
     if ($cfile) {
-	@command = ("@CC@",@cppopts,@copts);
+	@command = ("@CC@","-I/opt/local/include",@cppopts,@copts);
 	if ($compile_only && $output) {
 	    push(@command,'-o',$output,$compile_only);
 	}
@@ -323,7 +332,8 @@
 
 push (@output, "-o", $output) if $output;
 
-$retcode = &mysystem("@CC@", @output, @lfiles, @lopts, "-lf2c", "-lm" );
+#$retcode = &mysystem("@CC@", @output, @lfiles, @lopts, "-L/opt/local/lib", "-lf2c", "-lm" );
+$retcode = &mysystem("@CC@", @output, @lfiles, @lopts, "/opt/local/lib/libf2c.a", "-lm" );
 if (@gener_lfiles) {
     print STDERR "$0: unlinking ",join(',',@gener_lfiles),"\n" if $verbose;
     unlink (@gener_lfiles);
--- ./tests/test.pl.org	2010-09-28 11:56:06.000000000 +0900
+++ ./tests/test.pl	2010-09-28 12:25:01.000000000 +0900
@@ -70,6 +70,7 @@
     }
 
     print STDERR "$cmd ..." if $verbose > 0;
+    $cmd = "$cmd -v" if $verbose;
     $cmd = "( $cmd ) >/dev/null 2>&1" if $verbose <= 1;
 
     system($cmd);
installation
make PREFIX=/opt/local install 
installed
/opt/local/bin/fort77
/opt/local/share/man/man1/fort77.1

science/octave/libf2c2-20090411

preparation
curl -RO -C - http://ftp.de.debian.org/debian/pool/main/libf/libf2c2/libf2c2_20090411.orig.tar.gz
curl -RO -C - http://ftp.de.debian.org/debian/pool/main/libf/libf2c2/libf2c2_20090411-2.diff.gz
tar xvzf libf2c2_20090411.orig.tar.gz
mv libf2c2-20090411.orig libf2c2-20090411
(cd libf2c2-20090411 &&
gzcat ../libf2c2_20090411-2.diff.gz | patch -p1
)
(cd libf2c2-20090411 &&
patch -p0 -b -z.org < ../libf2c2-20090411-ubagami.patch
)
build
make CC='gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LD='ld -arch ppc -arch ppc64 -arch i386 -arch x86_64' -f makefile.u hadd all libf2c.a libf2c.2.1.dylib
patch
--- ./f2c.h0.org	2010-09-27 22:35:30.000000000 +0900
+++ ./f2c.h0	2010-09-27 22:54:22.000000000 +0900
@@ -7,7 +7,7 @@
 #ifndef F2C_INCLUDE
 #define F2C_INCLUDE
 
-#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
+#if defined(__alpha__) || defined(__ppc64__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
 typedef int integer;
 typedef unsigned int uinteger;
 #else
@@ -20,7 +20,7 @@
 typedef double doublereal;
 typedef struct { real r, i; } complex;
 typedef struct { doublereal r, i; } doublecomplex;
-#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
+#if defined(__alpha__) || defined(__ppc64__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
 typedef int logical;
 #else
 typedef long int logical;
@@ -29,12 +29,12 @@
 typedef char logical1;
 typedef char integer1;
 #ifdef INTEGER_STAR_8	/* Adjust for integer*8. */
-#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
+#if defined(__alpha__) || defined(__ppc64__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
 typedef long longint;		/* system-dependent */
 typedef unsigned long ulongint;	/* system-dependent */
 #else
-typedef long long longint;              /* system-dependent - oh yeah*/
-typedef unsigned long long ulongint;    /* system-dependent - oh yeah*/
+typedef long long longint;		/* system-dependent */
+typedef unsigned long long ulongint;	/* system-dependent */
 #endif
 #define qbit_clear(a,b)	((a) & ~((ulongint)1 << (b)))
 #define qbit_set(a,b)	((a) |  ((ulongint)1 << (b)))
@@ -56,7 +56,7 @@
 typedef short ftnlen;
 typedef short ftnint;
 #else
-#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
+#if defined(__alpha__) || defined(__ppc64__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
 typedef int flag;
 typedef int ftnlen;
 typedef int ftnint;
--- ./f2ch.add.org	2009-08-06 06:37:25.000000000 +0900
+++ ./f2ch.add	2010-09-27 22:54:35.000000000 +0900
@@ -158,5 +158,5 @@
 extern void z_log(doublecomplex *, doublecomplex *);
 extern void z_sin(doublecomplex *, doublecomplex *);
 extern void z_sqrt(doublecomplex *, doublecomplex *);
-	}
+}
 #endif
--- ./makefile.u.org	2010-09-27 22:35:30.000000000 +0900
+++ ./makefile.u	2010-09-28 12:58:28.000000000 +0900
@@ -14,14 +14,15 @@
 
 .SUFFIXES: .c .o
 CC = cc
+LD = ld
 SHELL = /bin/sh
 CFLAGS = -O
 
 # compile, then strip unnecessary symbols
 .c.o:
 	$(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c
-	ld -r -x -o $*.xxx $*.o
-	mv $*.xxx $*.o
+#	$(LD) -r -x -o $*.xxx $*.o
+#	mv $*.xxx $*.o
 ## Under Solaris (and other systems that do not understand ld -x),
 ## omit -x in the ld line above.
 ## If your system does not have the ld command, comment out
@@ -88,6 +89,9 @@
 libf2c.so: $(OFILES)
 	$(CC) -shared -o libf2c.so $(OFILES)
 
+libf2c.2.1.dylib: $(OFILES)
+	$(CC) -dynamiclib -flat_namespace -undefined suppress -o $@ $(OFILES) -install_name /opt/local/lib/libf2c.dylib -Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.1
+
 ### If your system lacks ranlib, you don't need it; see README.
 
 f77vers.o: f77vers.c
@@ -127,6 +131,7 @@
 
 clean:
 	rm -f *.o arith.h signal1.h sysdep1.h
+	rm -f *.a *.so *.dylib
 
 backspac.o:	fio.h
 close.o:	fio.h
installation
cp libf2c.a libf2c.2.1.dylib /opt/local/lib/
ranlib /opt/local/lib/libf2c.a
(cd /opt/local/lib/ &&
[ ! -f libf2c.dylib ] || rm -f libf2c.dylib
ln -s libf2c.2.1.dylib libf2c.dylib
)
#cp f2c.h /opt/local/include/
installed
/opt/local/lib/libf2c.2.1.dylib
/opt/local/lib/libf2c.a
/opt/local/lib/libf2c.dylib

science/octave/f2c-20090411

preparation
curl -RO -C - http://ftp.de.debian.org/debian/pool/main/f/f2c/f2c_20090411.orig.tar.gz
curl -RO -C - http://ftp.de.debian.org/debian/pool/main/f/f2c/f2c_20090411-1.diff.gz
tar xvzf f2c_20090411.orig.tar.gz
mv f2c-20090411.orig f2c-20090411
(cd f2c-20090411 &&
gzcat ../f2c_20090411-1.diff.gz | patch -p1
)
(cd f2c-20090411 &&
patch -p0 -b -z.org < ../f2c-20090411-ubagami.patch
)
build
make CC='gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' -C src -f makefile.u &&
sed 's|^PATH=|#PATH=|;s|/usr/bin/f2c|/opt/local/bin/f2c|' fc > src/fc &&
chmod +x src/fc &&
sed 's|/usr/bin/fc|fc|' fc.1 > src/fc.1
patch
--- ./src/f2c.h.org	2009-08-06 05:24:57.000000000 +0900
+++ ./src/f2c.h	2010-09-27 22:50:37.000000000 +0900
@@ -7,21 +7,35 @@
 #ifndef F2C_INCLUDE
 #define F2C_INCLUDE
 
+#if defined(__alpha__) || defined(__ppc64__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
+typedef int integer;
+typedef unsigned int uinteger;
+#else
 typedef long int integer;
 typedef unsigned long int uinteger;
+#endif
 typedef char *address;
 typedef short int shortint;
 typedef float real;
 typedef double doublereal;
 typedef struct { real r, i; } complex;
 typedef struct { doublereal r, i; } doublecomplex;
+#if defined(__alpha__) || defined(__ppc64__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
+typedef int logical;
+#else
 typedef long int logical;
+#endif
 typedef short int shortlogical;
 typedef char logical1;
 typedef char integer1;
 #ifdef INTEGER_STAR_8	/* Adjust for integer*8. */
+#if defined(__alpha__) || defined(__ppc64__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
+typedef long longint;		/* system-dependent */
+typedef unsigned long ulongint;	/* system-dependent */
+#else
 typedef long long longint;		/* system-dependent */
 typedef unsigned long long ulongint;	/* system-dependent */
+#endif
 #define qbit_clear(a,b)	((a) & ~((ulongint)1 << (b)))
 #define qbit_set(a,b)	((a) |  ((ulongint)1 << (b)))
 #endif
@@ -42,10 +56,16 @@
 typedef short ftnlen;
 typedef short ftnint;
 #else
+#if defined(__alpha__) || defined(__ppc64__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
+typedef int flag;
+typedef int ftnlen;
+typedef int ftnint;
+#else
 typedef long int flag;
 typedef long int ftnlen;
 typedef long int ftnint;
 #endif
+#endif
 
 /*external read, write*/
 typedef struct
@@ -221,3 +241,165 @@
 #undef vax
 #endif
 #endif
+/* If you are using a C++ compiler, append the following to f2c.h
+   for compiling libF77 and libI77. */
+
+#ifdef __cplusplus
+extern "C" {
+extern int abort_(void);
+extern double c_abs(complex *);
+extern void c_cos(complex *, complex *);
+extern void c_div(complex *, complex *, complex *);
+extern void c_exp(complex *, complex *);
+extern void c_log(complex *, complex *);
+extern void c_sin(complex *, complex *);
+extern void c_sqrt(complex *, complex *);
+extern double d_abs(double *);
+extern double d_acos(double *);
+extern double d_asin(double *);
+extern double d_atan(double *);
+extern double d_atn2(double *, double *);
+extern void d_cnjg(doublecomplex *, doublecomplex *);
+extern double d_cos(double *);
+extern double d_cosh(double *);
+extern double d_dim(double *, double *);
+extern double d_exp(double *);
+extern double d_imag(doublecomplex *);
+extern double d_int(double *);
+extern double d_lg10(double *);
+extern double d_log(double *);
+extern double d_mod(double *, double *);
+extern double d_nint(double *);
+extern double d_prod(float *, float *);
+extern double d_sign(double *, double *);
+extern double d_sin(double *);
+extern double d_sinh(double *);
+extern double d_sqrt(double *);
+extern double d_tan(double *);
+extern double d_tanh(double *);
+extern double derf_(double *);
+extern double derfc_(double *);
+extern integer do_fio(ftnint *, char *, ftnlen);
+extern integer do_lio(ftnint *, ftnint *, char *, ftnlen);
+extern integer do_uio(ftnint *, char *, ftnlen);
+extern integer e_rdfe(void);
+extern integer e_rdue(void);
+extern integer e_rsfe(void);
+extern integer e_rsfi(void);
+extern integer e_rsle(void);
+extern integer e_rsli(void);
+extern integer e_rsue(void);
+extern integer e_wdfe(void);
+extern integer e_wdue(void);
+extern integer e_wsfe(void);
+extern integer e_wsfi(void);
+extern integer e_wsle(void);
+extern integer e_wsli(void);
+extern integer e_wsue(void);
+extern int ef1asc_(ftnint *, ftnlen *, ftnint *, ftnlen *);
+extern integer ef1cmc_(ftnint *, ftnlen *, ftnint *, ftnlen *);
+extern double erf(double);
+extern double erf_(float *);
+extern double erfc(double);
+extern double erfc_(float *);
+extern integer f_back(alist *);
+extern integer f_clos(cllist *);
+extern integer f_end(alist *);
+extern void f_exit(void);
+extern integer f_inqu(inlist *);
+extern integer f_open(olist *);
+extern integer f_rew(alist *);
+extern int flush_(void);
+extern void getarg_(integer *, char *, ftnlen);
+extern void getenv_(char *, char *, ftnlen, ftnlen);
+extern short h_abs(short *);
+extern short h_dim(short *, short *);
+extern short h_dnnt(double *);
+extern short h_indx(char *, char *, ftnlen, ftnlen);
+extern short h_len(char *, ftnlen);
+extern short h_mod(short *, short *);
+extern short h_nint(float *);
+extern short h_sign(short *, short *);
+extern short hl_ge(char *, char *, ftnlen, ftnlen);
+extern short hl_gt(char *, char *, ftnlen, ftnlen);
+extern short hl_le(char *, char *, ftnlen, ftnlen);
+extern short hl_lt(char *, char *, ftnlen, ftnlen);
+extern integer i_abs(integer *);
+extern integer i_dim(integer *, integer *);
+extern integer i_dnnt(double *);
+extern integer i_indx(char *, char *, ftnlen, ftnlen);
+extern integer i_len(char *, ftnlen);
+extern integer i_mod(integer *, integer *);
+extern integer i_nint(float *);
+extern integer i_sign(integer *, integer *);
+extern integer iargc_(void);
+extern ftnlen l_ge(char *, char *, ftnlen, ftnlen);
+extern ftnlen l_gt(char *, char *, ftnlen, ftnlen);
+extern ftnlen l_le(char *, char *, ftnlen, ftnlen);
+extern ftnlen l_lt(char *, char *, ftnlen, ftnlen);
+extern void pow_ci(complex *, complex *, integer *);
+extern double pow_dd(double *, double *);
+extern double pow_di(double *, integer *);
+extern short pow_hh(short *, shortint *);
+extern integer pow_ii(integer *, integer *);
+extern double pow_ri(float *, integer *);
+extern void pow_zi(doublecomplex *, doublecomplex *, integer *);
+extern void pow_zz(doublecomplex *, doublecomplex *, doublecomplex *);
+extern double r_abs(float *);
+extern double r_acos(float *);
+extern double r_asin(float *);
+extern double r_atan(float *);
+extern double r_atn2(float *, float *);
+extern void r_cnjg(complex *, complex *);
+extern double r_cos(float *);
+extern double r_cosh(float *);
+extern double r_dim(float *, float *);
+extern double r_exp(float *);
+extern double r_imag(complex *);
+extern double r_int(float *);
+extern double r_lg10(float *);
+extern double r_log(float *);
+extern double r_mod(float *, float *);
+extern double r_nint(float *);
+extern double r_sign(float *, float *);
+extern double r_sin(float *);
+extern double r_sinh(float *);
+extern double r_sqrt(float *);
+extern double r_tan(float *);
+extern double r_tanh(float *);
+extern void s_cat(char *, char **, integer *, integer *, ftnlen);
+extern integer s_cmp(char *, char *, ftnlen, ftnlen);
+extern void s_copy(char *, char *, ftnlen, ftnlen);
+extern int s_paus(char *, ftnlen);
+extern integer s_rdfe(cilist *);
+extern integer s_rdue(cilist *);
+extern integer s_rnge(char *, integer, char *, integer);
+extern integer s_rsfe(cilist *);
+extern integer s_rsfi(icilist *);
+extern integer s_rsle(cilist *);
+extern integer s_rsli(icilist *);
+extern integer s_rsne(cilist *);
+extern integer s_rsni(icilist *);
+extern integer s_rsue(cilist *);
+extern int s_stop(char *, ftnlen);
+extern integer s_wdfe(cilist *);
+extern integer s_wdue(cilist *);
+extern integer s_wsfe(cilist *);
+extern integer s_wsfi(icilist *);
+extern integer s_wsle(cilist *);
+extern integer s_wsli(icilist *);
+extern integer s_wsne(cilist *);
+extern integer s_wsni(icilist *);
+extern integer s_wsue(cilist *);
+extern void sig_die(char *, int);
+extern integer signal_(integer *, void (*)(int));
+extern integer system_(char *, ftnlen);
+extern double z_abs(doublecomplex *);
+extern void z_cos(doublecomplex *, doublecomplex *);
+extern void z_div(doublecomplex *, doublecomplex *, doublecomplex *);
+extern void z_exp(doublecomplex *, doublecomplex *);
+extern void z_log(doublecomplex *, doublecomplex *);
+extern void z_sin(doublecomplex *, doublecomplex *);
+extern void z_sqrt(doublecomplex *, doublecomplex *);
+}
+#endif
installation
cp src/f2c src/fc /opt/local/bin/
cp src/f2c.h /opt/local/include/
cp src/f2c.1t /opt/local/man/man1/f2c.1
cp src/fc.1 /opt/local/man/man1/fc.1
installed
/opt/local/bin/f2c
/opt/local/bin/fc
/opt/local/include/f2c.h
/opt/local/man/man1/f2c.1
/opt/local/man/man1/fc.1

science/octave/glpk-4.44

preparation
curl -RO -C - http://ftp.gnu.org/gnu/glpk/glpk-4.44.tar.gz
tar xvzf glpk-4.44.tar.gz
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local --with-gmp 
make 
installed
/opt/local/bin/glpsol
/opt/local/include/glpk.h
/opt/local/lib/libglpk.0.dylib
/opt/local/lib/libglpk.a
/opt/local/lib/libglpk.dylib
/opt/local/lib/libglpk.la

libs/mp/mpc-0.8.2

preparation
curl -RO -C - http://www.multiprecision.org/mpc/download/mpc-0.8.2.tar.gz
tar xvzf mpc-0.8.2.tar.gz
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *"Mach-O"*" bundle"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean distclean &&
./configure 'CFLAGS=-arch x86_64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch x86_64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=x86_64-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{ make check || true; } &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  listup_binaries > .arch_x86_64/.binaries.lst && tar --files-from=.arch_x86_64/.binaries.lst -cf - | (cd .arch_x86_64 && tar xf -) &&
  listup_headers > .arch_x86_64/.headers.lst && tar --files-from=.arch_x86_64/.headers.lst -cf - | (cd .arch_x86_64 && tar xf -)
} &&
make clean distclean &&
./configure 'CFLAGS=-arch i386 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch i386 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=i386-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{ make check || true; } &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean distclean &&
./configure 'CFLAGS=-arch ppc64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=ppc64-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{ make check || true; } &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  listup_binaries > .arch_ppc64/.binaries.lst && tar --files-from=.arch_ppc64/.binaries.lst -cf - | (cd .arch_ppc64 && tar xf -) &&
  listup_headers > .arch_ppc64/.headers.lst && tar --files-from=.arch_ppc64/.headers.lst -cf - | (cd .arch_ppc64 && tar xf -)
} &&
make clean distclean &&
./configure 'CFLAGS=-arch ppc -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=ppc-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{ make check || true; } &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_ppc64/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_x86_64/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__)

`cat .arch_ppc/"$h"`

#elif defined(__ppc64__)

`cat .arch_ppc64/"$h"`

#elif defined(__i386__)

`cat .arch_i386/"$h"`

#elif defined(__x86_64__)

`cat .arch_x86_64/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/include/mpc.h
/opt/local/lib/libmpc.2.dylib
/opt/local/lib/libmpc.a
/opt/local/lib/libmpc.dylib
/opt/local/lib/libmpc.la
/opt/local/share/info/mpc.info

libs/mp/mpfr-3.0.0

preparation
curl -RO -C - http://www.mpfr.org/mpfr-current/mpfr-3.0.0.tar.bz2
tar xvjf mpfr-3.0.0.tar.bz2
(cd mpfr-3.0.0 &&
curl http://www.mpfr.org/mpfr-current/allpatches | patch -p1
)
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *"Mach-O"*" bundle"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean distclean &&
./configure 'CFLAGS=-arch x86_64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch x86_64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=x86_64-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{ make check || true; } &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  listup_binaries > .arch_x86_64/.binaries.lst && tar --files-from=.arch_x86_64/.binaries.lst -cf - | (cd .arch_x86_64 && tar xf -) &&
  listup_headers > .arch_x86_64/.headers.lst && tar --files-from=.arch_x86_64/.headers.lst -cf - | (cd .arch_x86_64 && tar xf -)
} &&
make clean distclean &&
./configure 'CFLAGS=-arch i386 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch i386 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=i386-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{ make check || true; } &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean distclean &&
./configure 'CFLAGS=-arch ppc64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=ppc64-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{ make check || true; } &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  listup_binaries > .arch_ppc64/.binaries.lst && tar --files-from=.arch_ppc64/.binaries.lst -cf - | (cd .arch_ppc64 && tar xf -) &&
  listup_headers > .arch_ppc64/.headers.lst && tar --files-from=.arch_ppc64/.headers.lst -cf - | (cd .arch_ppc64 && tar xf -)
} &&
make clean distclean &&
./configure 'CFLAGS=-arch ppc -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=ppc-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{ make check || true; } &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_ppc64/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_x86_64/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__)

`cat .arch_ppc/"$h"`

#elif defined(__ppc64__)

`cat .arch_ppc64/"$h"`

#elif defined(__i386__)

`cat .arch_i386/"$h"`

#elif defined(__x86_64__)

`cat .arch_x86_64/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/include/mpf2mpfr.h
/opt/local/include/mpfr.h
/opt/local/lib/libmpfr.4.dylib
/opt/local/lib/libmpfr.a
/opt/local/lib/libmpfr.dylib
/opt/local/lib/libmpfr.la
/opt/local/share/doc/mpfr/AUTHORS
/opt/local/share/doc/mpfr/BUGS
/opt/local/share/doc/mpfr/COPYING
/opt/local/share/doc/mpfr/COPYING.LESSER
/opt/local/share/doc/mpfr/examples/divworst.c
/opt/local/share/doc/mpfr/examples/ReadMe
/opt/local/share/doc/mpfr/examples/rndo-add.c
/opt/local/share/doc/mpfr/examples/sample.c
/opt/local/share/doc/mpfr/examples/version.c
/opt/local/share/doc/mpfr/FAQ.html
/opt/local/share/doc/mpfr/NEWS
/opt/local/share/doc/mpfr/TODO
/opt/local/share/info/mpfr.info

libs/mp/gmp-4.3.2

preparation
curl -RO -C - ftp://ftp.gmplib.org/pub/gmp-4.3.2/gmp-4.3.2.tar.bz2
tar xvjf gmp-4.3.2.tar.bz2
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *"Mach-O"*" bundle"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean distclean &&
./configure ABI=64 'CFLAGS=-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=x86_64-apple-darwin --build=`sh config.guess` --prefix=/opt/local --enable-cxx --enable-mpbsd &&
make &&
{ make check || true; } &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  listup_binaries > .arch_x86_64/.binaries.lst && tar --files-from=.arch_x86_64/.binaries.lst -cf - | (cd .arch_x86_64 && tar xf -) &&
  listup_headers > .arch_x86_64/.headers.lst && tar --files-from=.arch_x86_64/.headers.lst -cf - | (cd .arch_x86_64 && tar xf -)
} &&
make clean distclean &&
./configure ABI=32 'CFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=i386-apple-darwin --build=`sh config.guess` --prefix=/opt/local --enable-cxx --enable-mpbsd &&
make &&
{ make check || true; } &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean distclean &&
./configure ABI=mode64 'CFLAGS=-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=ppc64-apple-darwin --build=`sh config.guess` --prefix=/opt/local --enable-cxx --enable-mpbsd &&
make &&
{ make check || true; } &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  listup_binaries > .arch_ppc64/.binaries.lst && tar --files-from=.arch_ppc64/.binaries.lst -cf - | (cd .arch_ppc64 && tar xf -) &&
  listup_headers > .arch_ppc64/.headers.lst && tar --files-from=.arch_ppc64/.headers.lst -cf - | (cd .arch_ppc64 && tar xf -)
} &&
make clean distclean &&
./configure ABI=32 'CFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=ppc-apple-darwin --build=`sh config.guess` --prefix=/opt/local --enable-cxx --enable-mpbsd &&
make &&
{ make check || true; } &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_ppc64/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_x86_64/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__)

`cat .arch_ppc/"$h"`

#elif defined(__ppc64__)

`cat .arch_ppc64/"$h"`

#elif defined(__i386__)

`cat .arch_i386/"$h"`

#elif defined(__x86_64__)

`cat .arch_x86_64/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/include/gmp.h
/opt/local/include/gmpxx.h
/opt/local/include/mp.h
/opt/local/lib/libgmp.3.5.2.dylib
/opt/local/lib/libgmp.3.dylib
/opt/local/lib/libgmp.a
/opt/local/lib/libgmp.dylib
/opt/local/lib/libgmp.la
/opt/local/lib/libgmpxx.4.1.2.dylib
/opt/local/lib/libgmpxx.4.dylib
/opt/local/lib/libgmpxx.a
/opt/local/lib/libgmpxx.dylib
/opt/local/lib/libgmpxx.la
/opt/local/lib/libmp.3.1.16.dylib
/opt/local/lib/libmp.3.dylib
/opt/local/lib/libmp.a
/opt/local/lib/libmp.dylib
/opt/local/lib/libmp.la
/opt/local/share/info/gmp.info
/opt/local/share/info/gmp.info-1
/opt/local/share/info/gmp.info-2

science/maxima/imaxima-imath-1.0

preparation
curl -ROL -C - http://sites.google.com/site/imaximaimath/download-and-install/imaxima-imath-1.0.tar.gz
tar xvzf imaxima-imath-1.0.tar.gz
(cd imaxima-imath-1.0 &&
patch -p0 -b -z.org < ../imaxima-imath-1.0-ubagami.patch
)
build
./configure --prefix=/opt/local 
make 
patch
--- ./imaxima.lisp~	2009-02-15 01:55:01.000000000 +0900
+++ ./imaxima.lisp	2010-09-24 18:39:20.000000000 +0900
@@ -142,7 +142,7 @@
     (declare (special *mread-prompt* ))
     (and (consp at) (set-env at))
     (cond ((null at)
-	   ($frame 0 nil)))
+	   (break-frame 0 nil)))
     (catch 'step-continue
       (catch *quit-tag*
 	(unwind-protect
installed
/opt/local/share/emacs/site-lisp/imath.el
/opt/local/share/emacs/site-lisp/imath.elc
/opt/local/share/emacs/site-lisp/imaxima-autoconf-variables.el
/opt/local/share/emacs/site-lisp/imaxima-autoconf-variables.elc
/opt/local/share/emacs/site-lisp/imaxima.el
/opt/local/share/emacs/site-lisp/imaxima.elc
/opt/local/share/emacs/site-lisp/imaxima.lisp
/opt/local/share/emacs/site-lisp/setup-imaxima-imath.el
/opt/local/share/emacs/site-lisp/setup-imaxima-imath.elc
/opt/local/share/info/imaxima.info

science/maxima/maxima-ub32-darwin

preparation
[ -d maxima-ub32-darwin ] || mkdir maxima-ub32-darwin
(cd maxima-ub32-darwin &&
case "`uname -p`" in
powerpc)
  cp -p /opt/local/ppc/bin/maxima .
  ;;
i386|*)
  cp -p /opt/local/x86/bin/maxima .
  ;;
esac
case "`uname -p`" in
powerpc)
  cp -p /opt/local/ppc/bin/rmaxima .
  ;;
i386|*)
  cp -p /opt/local/x86/bin/rmaxima .
  ;;
esac
cat <<'EOF' > xmaxima
#!/bin/sh
case "`uname -p`" in
powerpc)
  XMAXIMA_MAXIMA=/opt/local/ppc/bin/maxima; export XMAXIMA_MAXIMA
  exec /opt/local/ppc/bin/xmaxima
  ;;
i386|*)
  XMAXIMA_MAXIMA=/opt/local/x86/bin/maxima; export XMAXIMA_MAXIMA
  exec /opt/local/x86/bin/xmaxima
  ;;
esac
EOF
)
(cd maxima-ub32-darwin &&
patch -p0 -b -z.org < ../maxima-ub32-darwin-ubagami.patch
)
build
chmod +x maxima rmaxima xmaxima 
patch
--- ./maxima~	2010-09-17 17:22:01.000000000 +0900
+++ ./maxima	2010-09-24 18:24:12.000000000 +0900
@@ -9,7 +9,14 @@
   if [ -z "$MAXIMA_VERSION" ]; then
     MAXIMA_VERSION=5.22.1
   fi
-  prefix=`unixize "/opt/local/x86"`
+  case "`uname -p`" in
+  powerpc)
+    prefix=`unixize "/opt/local/ppc"`
+    ;;
+  i386|*)
+    prefix=`unixize "/opt/local/x86"`
+    ;;
+  esac
   exec_prefix=`unixize "${prefix}"`
   PACKAGE=maxima
   top_srcdir=`unixize "/Users/taiji/import/local/science/maxima/maxima-5.22.1"`
--- ./rmaxima~	2010-09-17 17:22:01.000000000 +0900
+++ ./rmaxima	2010-09-24 18:26:36.000000000 +0900
@@ -11,7 +11,14 @@
 
 
 if [ "true" = "true" ]; then
-  MAXIMA_SHAREDIR=/opt/local/x86/share/maxima/5.22.1/share
+  case "`uname -p`" in
+  powerpc)
+    MAXIMA_SHAREDIR=/opt/local/ppc/share/maxima/5.22.1/share
+    ;;
+  i386|*)
+    MAXIMA_SHAREDIR=/opt/local/x86/share/maxima/5.22.1/share
+    ;;
+  esac
 else
   MAXIMA_SHAREDIR=/Users/taiji/import/local/science/maxima/maxima-5.22.1/share
 fi
installation
cp maxima rmaxima xmaxima /opt/local/bin/ 
installed
/opt/local/bin/maxima
/opt/local/bin/rmaxima
/opt/local/bin/xmaxima

science/maxima/breqn097a

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/maxima/Maxima-source/5.22.1-source/maxima-5.22.1.tar.gz
tar xvzf maxima-5.22.1.tar.gz maxima-5.22.1/interfaces/emacs/imaxima/breqn097a
mv maxima-5.22.1/interfaces/emacs/imaxima/breqn097a .
build
for dtx in *.dtx; do
  drv="`basename \"$dtx\" .dtx`.drv"
  dvi="`basename \"$drv\" .drv`.dvi"
  echo tex "$dtx" &&
  tex "$dtx" &&
  echo latex "$drv" '&&' latex "$drv" &&
  latex "$drv" && latex "$drv" &&
  echo dvipdfmx "$dvi" &&
  dvipdfmx "$dvi"
done &&
rm -f *.aux *.tmp
installation
install -m 0755 -d /opt/local/ptetex3/share/texmf/tex/latex/breqn
install -m 0644 * /opt/local/ptetex3/share/texmf/tex/latex/breqn
installed
/opt/local/ptetex3/share/texmf/tex/latex/breqn/breqn.drv
/opt/local/ptetex3/share/texmf/tex/latex/breqn/breqn.dtx
/opt/local/ptetex3/share/texmf/tex/latex/breqn/breqn.dvi
/opt/local/ptetex3/share/texmf/tex/latex/breqn/breqn.idx
/opt/local/ptetex3/share/texmf/tex/latex/breqn/breqn.ins
/opt/local/ptetex3/share/texmf/tex/latex/breqn/breqn.log
/opt/local/ptetex3/share/texmf/tex/latex/breqn/breqn.pdf
/opt/local/ptetex3/share/texmf/tex/latex/breqn/breqn.sty
/opt/local/ptetex3/share/texmf/tex/latex/breqn/cmbase.sym
/opt/local/ptetex3/share/texmf/tex/latex/breqn/flexisym.drv
/opt/local/ptetex3/share/texmf/tex/latex/breqn/flexisym.dtx
/opt/local/ptetex3/share/texmf/tex/latex/breqn/flexisym.dvi
/opt/local/ptetex3/share/texmf/tex/latex/breqn/flexisym.idx
/opt/local/ptetex3/share/texmf/tex/latex/breqn/flexisym.ins
/opt/local/ptetex3/share/texmf/tex/latex/breqn/flexisym.log
/opt/local/ptetex3/share/texmf/tex/latex/breqn/flexisym.pdf
/opt/local/ptetex3/share/texmf/tex/latex/breqn/flexisym.sty
/opt/local/ptetex3/share/texmf/tex/latex/breqn/mathpazo.sym
/opt/local/ptetex3/share/texmf/tex/latex/breqn/mathptmx.sym
/opt/local/ptetex3/share/texmf/tex/latex/breqn/mathstyle.drv
/opt/local/ptetex3/share/texmf/tex/latex/breqn/mathstyle.dtx
/opt/local/ptetex3/share/texmf/tex/latex/breqn/mathstyle.dvi
/opt/local/ptetex3/share/texmf/tex/latex/breqn/mathstyle.idx
/opt/local/ptetex3/share/texmf/tex/latex/breqn/mathstyle.ins
/opt/local/ptetex3/share/texmf/tex/latex/breqn/mathstyle.log
/opt/local/ptetex3/share/texmf/tex/latex/breqn/mathstyle.pdf
/opt/local/ptetex3/share/texmf/tex/latex/breqn/mathstyle.sty
/opt/local/ptetex3/share/texmf/tex/latex/breqn/msabm.sym
host_configuration
mktexlsr /opt/local/ptetex3/share/texmf

terms/rlwrap-0.37

preparation
curl -RO -C - http://utopia.knoware.nl/~hlub/rlwrap/rlwrap-0.37.tar.gz
tar xvzf rlwrap-0.37.tar.gz
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/bin/rlwrap
/opt/local/share/man/man1/rlwrap.1
/opt/local/share/man/man3/RlwrapFilter.3pm
/opt/local/share/rlwrap/completions/coqtop
/opt/local/share/rlwrap/completions/testclient
/opt/local/share/rlwrap/filters/censor_passwords
/opt/local/share/rlwrap/filters/count_in_prompt
/opt/local/share/rlwrap/filters/ftp_filter
/opt/local/share/rlwrap/filters/history_format
/opt/local/share/rlwrap/filters/listing
/opt/local/share/rlwrap/filters/logger
/opt/local/share/rlwrap/filters/null
/opt/local/share/rlwrap/filters/paint_prompt
/opt/local/share/rlwrap/filters/pipeline
/opt/local/share/rlwrap/filters/pipeto
/opt/local/share/rlwrap/filters/README
/opt/local/share/rlwrap/filters/RlwrapFilter.3pm
/opt/local/share/rlwrap/filters/RlwrapFilter.pm
/opt/local/share/rlwrap/filters/scrub_prompt
/opt/local/share/rlwrap/filters/simple_macro
/opt/local/share/rlwrap/filters/template
/opt/local/share/rlwrap/filters/unbackspace

libs/readline-6.1

preparation
curl -RO -C - ftp://ftp.cwru.edu/pub/bash/readline-6.1.tar.gz
tar xvzf readline-6.1.tar.gz
build
./configure 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/include/readline/chardefs.h
/opt/local/include/readline/history.h
/opt/local/include/readline/keymaps.h
/opt/local/include/readline/readline.h
/opt/local/include/readline/rlconf.h
/opt/local/include/readline/rlstdc.h
/opt/local/include/readline/rltypedefs.h
/opt/local/include/readline/tilde.h
/opt/local/lib/libhistory.6.1.dylib
/opt/local/lib/libhistory.6.dylib
/opt/local/lib/libhistory.a
/opt/local/lib/libhistory.dylib
/opt/local/lib/libreadline.6.1.dylib
/opt/local/lib/libreadline.6.dylib
/opt/local/lib/libreadline.a
/opt/local/lib/libreadline.dylib
/opt/local/share/info/history.info
/opt/local/share/info/readline.info
/opt/local/share/info/rluserman.info
/opt/local/share/man/man3/history.3
/opt/local/share/man/man3/readline.3
/opt/local/share/readline/excallback.c
/opt/local/share/readline/fileman.c
/opt/local/share/readline/histexamp.c
/opt/local/share/readline/manexamp.c
/opt/local/share/readline/rl-fgets.c
/opt/local/share/readline/rl.c
/opt/local/share/readline/rlcat.c
/opt/local/share/readline/rlevent.c
/opt/local/share/readline/rlptytest.c
/opt/local/share/readline/rltest.c
/opt/local/share/readline/rlversion.c

science/maxima/maxima-5.22.1

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/maxima/Maxima-source/5.22.1-source/maxima-5.22.1.tar.gz
tar xvzf maxima-5.22.1.tar.gz
build
./configure --prefix=/opt/local/x86 --enable-sbcl 
make 
installed
/opt/local/x86/bin/maxima
/opt/local/x86/bin/rmaxima
/opt/local/x86/bin/xmaxima
/opt/local/x86/info/imaxima.info
/opt/local/x86/info/maxima-index.lisp
/opt/local/x86/info/maxima.info
/opt/local/x86/info/maxima.info-1
/opt/local/x86/info/maxima.info-2
/opt/local/x86/info/maxima.info-3
/opt/local/x86/info/xmaxima.info
/opt/local/x86/lib/maxima/5.22.1/binary-sbcl/maxima.core
/opt/local/x86/libexec/maxima/5.22.1/mgnuplot
/opt/local/x86/man/man1/maxima.1
/opt/local/x86/share/maxima/5.22.1/demo/array.dem
/opt/local/x86/share/maxima/5.22.1/demo/cf.dem
/opt/local/x86/share/maxima/5.22.1/demo/demo.dem
/opt/local/x86/share/maxima/5.22.1/demo/eaton1.dem
/opt/local/x86/share/maxima/5.22.1/demo/eaton2.dem
/opt/local/x86/share/maxima/5.22.1/demo/ezgcd.dem
/opt/local/x86/share/maxima/5.22.1/demo/hypgeo.dem
/opt/local/x86/share/maxima/5.22.1/demo/macex.dem
/opt/local/x86/share/maxima/5.22.1/demo/macro.dem
/opt/local/x86/share/maxima/5.22.1/demo/manual.demo
/opt/local/x86/share/maxima/5.22.1/demo/newfac.dem
/opt/local/x86/share/maxima/5.22.1/demo/plots.mac
/opt/local/x86/share/maxima/5.22.1/demo/romberg.dem
/opt/local/x86/share/maxima/5.22.1/demo/subscr.dem
/opt/local/x86/share/maxima/5.22.1/demo/sumcon.dem
/opt/local/x86/share/maxima/5.22.1/demo/trgsmp.dem
/opt/local/x86/share/maxima/5.22.1/doc/contributors
/opt/local/x86/share/maxima/5.22.1/doc/EMaximaIntro.ps
/opt/local/x86/share/maxima/5.22.1/doc/html/contents.hhc
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/contour1.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/contour2.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/contour3.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/dynamics1.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/dynamics10.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/dynamics2.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/dynamics3.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/dynamics4.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/dynamics5.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/dynamics6.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/dynamics7.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/dynamics8.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/dynamics9.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs01.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs02.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs03.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs04.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs05.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs06.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs07.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs08.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs09.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs10.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs11.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs12.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs13.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs14.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/graphs15.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/implicit_plot.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/orthopoly1.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/plotdf1.gif
/opt/local/x86/share/maxima/5.22.1/doc/html/figures/plotdf2.gif
	:

science/maxima/sbcl-1.0.42-ub32-darwin

preparation
mkdir sbcl-1.0.42-ub32-darwin
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *"Mach-O"*" bundle"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  (cd ../sbcl-1.0.42-ubagami-build && listup_binaries) > .arch_i386/.binaries.lst && tar -C ../sbcl-1.0.42-ubagami-build --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xvf -) &&
  (cd ../sbcl-1.0.42-ubagami-build && listup_headers) > .arch_i386/.headers.lst && tar -C ../sbcl-1.0.42-ubagami-build --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xvf -)
} &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  (cd ../sbcl-1.0.42-mitsuha-build && listup_binaries) > .arch_ppc/.binaries.lst && tar -C ../sbcl-1.0.42-mitsuha-build --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xvf -) &&
  (cd ../sbcl-1.0.42-mitsuha-build && listup_headers) > .arch_ppc/.headers.lst && tar -C ../sbcl-1.0.42-mitsuha-build --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xvf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__) || defined(__ppc64__)

`cat .arch_ppc/"$h"`

#elif defined(__i386__) || defined(__x86_64__)

`cat .arch_i386/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  (cd .arch_ppc && listup_binaries) | while read o; do
    [ -d "`dirname \"$o\"`" ] || mkdir -p "`dirname \"$o\"`" &&
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installation
cp src/runtime/sbcl /opt/local/bin/
installed
/opt/local/bin/sbcl

science/maxima/sbcl-1.0.42

preparation
#curl -ROL -C - http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.22/sbcl-1.0.22-powerpc-darwin-binary.tar.bz2
#tar xvjf sbcl-1.0.22-powerpc-darwin-binary.tar.bz2

curl -ROL -C - http://sourceforge.net/projects/sbcl/files/sbcl/1.0.2/sbcl-1.0.2-powerpc-darwin-binary.tar.bz2
tar xvjf sbcl-1.0.2-powerpc-darwin-binary.tar.bz2

#curl -ROL -C - http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.29/sbcl-1.0.29-x86-darwin-binary-r2.tar.bz2
#tar xvjf sbcl-1.0.29-x86-darwin-binary-r2.tar.bz2

curl -ROL -C - http://sourceforge.net/projects/sbcl/files/sbcl/1.0.2/sbcl-1.0.2-x86-darwin-binary.tar.bz2
tar xvjf sbcl-1.0.2-x86-darwin-binary.tar.bz2

curl -ROL -C - http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.42/sbcl-1.0.42-source.tar.bz2
tar xvjf sbcl-1.0.42-source.tar.bz2
(cd sbcl-1.0.42 &&
patch -p0 -b -z.org < ../sbcl-1.0.42-ubagami.patch
)
build
[ `arch` = i386 ] &&
sh make.sh --prefix=/opt/local/x86 --xc-host='../sbcl-1.0.2-x86-darwin/src/runtime/sbcl --core ../sbcl-1.0.2-x86-darwin/output/sbcl.core --lose-on-corruption --disable-debugger --no-sysinit --no-userinit'
[ `arch` = ppc ] &&
sh make.sh --prefix=/opt/local/ppc --xc-host='../sbcl-1.0.2-powerpc-darwin/src/runtime/sbcl --core ../sbcl-1.0.2-powerpc-darwin/output/sbcl.core --lose-on-corruption --disable-debugger --no-sysinit --no-userinit'
patch
--- ./base-target-features.lisp-expr.org	2010-08-10 19:26:29.000000000 +0900
+++ ./base-target-features.lisp-expr	2010-09-17 12:45:20.000000000 +0900
@@ -219,7 +219,7 @@
  ;; As of SBCL 1.0.33.26, threads are part of the default build on
  ;; x86oid Linux. Other platforms that support them include
  ;; x86oid Darwin, FreeBSD, and Solaris.
- ; :sb-thread
+;:sb-thread
 
  ;; lutex support
  ;;
@@ -229,7 +229,7 @@
  ;; allows for sb-thread support on x86 OS X, Solaris and
  ;; FreeBSD.
  ;;
- ; :sb-lutex
+;:sb-lutex
 
  ;; On some operating systems the FS segment register (used for SBCL's
  ;; thread local storage) is not reliably preserved in signal
@@ -415,4 +415,5 @@
  ;; (No others are supported by SBCL as of 1.0.8, but :hpux or :irix
  ;; support could be ported from CMU CL if anyone is sufficiently
  ;; motivated to do so.)
+:darwin
  )
--- ./contrib/sb-posix/posix-tests.lisp.org	2010-08-24 23:10:15.000000000 +0900
+++ ./contrib/sb-posix/posix-tests.lisp	2010-09-17 12:45:20.000000000 +0900
@@ -103,6 +103,7 @@
       (sb-posix:syscall-errno c)))
   #.sb-posix::eexist)
 
+#-darwin
 (deftest mkdir.error.2
   (handler-case
       (sb-posix:mkdir #-win32 "/" #+win32 "C:/" 0)
@@ -164,6 +165,7 @@
   #+win32
   #.sb-posix::einval)
 
+#-darwin
 (deftest rmdir.error.3
   (handler-case
       (sb-posix:rmdir #-win32 "/" #+win32 "C:/")
@@ -331,6 +333,7 @@
             (,mode (sb-posix::stat-mode ,stat)))
        ,@body)))
 
+#-darwin
 (deftest stat-mode.1
   (with-stat-mode (mode *test-directory*)
     (sb-posix:s-isreg mode))
@@ -346,11 +349,13 @@
     (sb-posix:s-ischr mode))
   nil)
 
+#-darwin
 (deftest stat-mode.4
   (with-stat-mode (mode *test-directory*)
     (sb-posix:s-isblk mode))
   nil)
 
+#-darwin
 (deftest stat-mode.5
   (with-stat-mode (mode *test-directory*)
     (sb-posix:s-isfifo mode))
@@ -509,6 +514,7 @@
         (sb-posix:closedir dir))))
   nil)
 
+#-darwin
 (deftest readdir.1
   (let ((dir (sb-posix:opendir "/")))
     (unwind-protect
@@ -665,6 +671,7 @@
     #.(concatenate 'string "/" (make-string 255 :initial-element #\a)))
 
   ;; The error tests are in the order of exposition from SUSv3.
+  #-darwin
   (deftest readlink.error.1
       (let* ((subdir-pathname (merge-pathnames
                                (make-pathname
--- ./make-config.sh~	2010-08-10 19:26:29.000000000 +0900
+++ ./make-config.sh	2010-09-17 12:56:31.000000000 +0900
@@ -130,7 +130,7 @@
 
 # Under Darwin, uname -m returns "i386" even if CPU is x86_64.
 if [ "$sbcl_os" = "darwin" ] && [ "`/usr/sbin/sysctl -n hw.optional.x86_64`" = "1" ]; then
-    guessed_sbcl_arch=x86-64
+    echo guessed_sbcl_arch=x86-64
 fi
 
 echo //setting up CPU-architecture-dependent information
--- ./src/runtime/Config.x86-64-darwin.org	2010-06-28 22:51:18.000000000 +0900
+++ ./src/runtime/Config.x86-64-darwin	2010-09-17 12:45:20.000000000 +0900
@@ -10,13 +10,13 @@
 # files for more information.
 
 CFLAGS = -g -Wall -O2 -fdollars-in-identifiers
-ifdef LISP_FEATURE_DARWIN9_OR_BETTER
-CFLAGS += -mmacosx-version-min=10.5
-LINKFLAGS += -mmacosx-version-min=10.5
-else
+#ifdef LISP_FEATURE_DARWIN9_OR_BETTER
+#CFLAGS += -mmacosx-version-min=10.5
+#LINKFLAGS += -mmacosx-version-min=10.5
+#else
 CFLAGS += -mmacosx-version-min=10.4
 LINKFLAGS += -mmacosx-version-min=10.4
-endif
+#endif
 ifdef LISP_FEATURE_INODE64
 CFLAGS += -D_DARWIN_USE_64_BIT_INODE
 endif
--- ./src/runtime/Config.x86-darwin.org	2010-06-28 22:51:18.000000000 +0900
+++ ./src/runtime/Config.x86-darwin	2010-09-17 12:45:20.000000000 +0900
@@ -11,13 +11,13 @@
 
 CFLAGS = -arch i386 -g -Wall -O2 -fdollars-in-identifiers
 LINKFLAGS += -arch i386
-ifdef LISP_FEATURE_DARWIN9_OR_BETTER
-CFLAGS += -mmacosx-version-min=10.5
-LINKFLAGS += -mmacosx-version-min=10.5
-else
+#ifdef LISP_FEATURE_DARWIN9_OR_BETTER
+#CFLAGS += -mmacosx-version-min=10.5
+#LINKFLAGS += -mmacosx-version-min=10.5
+#else
 CFLAGS += -mmacosx-version-min=10.4
 LINKFLAGS += -mmacosx-version-min=10.4
-endif
+#endif
 
 OS_SRC = bsd-os.c x86-bsd-os.c darwin-os.c x86-darwin-os.c
 
installation
env INSTALL_ROOT=/opt/local/x86 sh install.sh
installed
/opt/local/x86/bin/sbcl
/opt/local/x86/lib/sbcl/asdf/asdf.fasl
/opt/local/x86/lib/sbcl/sb-executable/sb-executable.fasl
/opt/local/x86/lib/sbcl/sb-sprof/sb-sprof.fasl
/opt/local/x86/lib/sbcl/sbcl.core
/opt/local/x86/lib/sbcl/site-systems
/opt/local/x86/share/doc/sbcl/BUGS
/opt/local/x86/share/doc/sbcl/COPYING
/opt/local/x86/share/doc/sbcl/CREDITS
/opt/local/x86/share/doc/sbcl/html
/opt/local/x86/share/doc/sbcl/NEWS
/opt/local/x86/share/info
/opt/local/x86/share/man/man1/sbcl.1
data_installed
/opt/local/x86/lib/sbcl/asdf-install/.cvsignore
/opt/local/x86/lib/sbcl/asdf-install/asdf-install.asd
/opt/local/x86/lib/sbcl/asdf-install/asdf-install.fasl
/opt/local/x86/lib/sbcl/asdf-install/defpackage.fasl
/opt/local/x86/lib/sbcl/asdf-install/defpackage.lisp
/opt/local/x86/lib/sbcl/asdf-install/installer.fasl
/opt/local/x86/lib/sbcl/asdf-install/installer.lisp
/opt/local/x86/lib/sbcl/asdf-install/Makefile
/opt/local/x86/lib/sbcl/asdf-install/README
/opt/local/x86/lib/sbcl/asdf-install/test-passed
/opt/local/x86/lib/sbcl/sb-aclrepl/.cvsignore
/opt/local/x86/lib/sbcl/sb-aclrepl/debug.fasl
/opt/local/x86/lib/sbcl/sb-aclrepl/debug.lisp
/opt/local/x86/lib/sbcl/sb-aclrepl/inspect.fasl
/opt/local/x86/lib/sbcl/sb-aclrepl/inspect.lisp
/opt/local/x86/lib/sbcl/sb-aclrepl/Makefile
/opt/local/x86/lib/sbcl/sb-aclrepl/README
/opt/local/x86/lib/sbcl/sb-aclrepl/repl.fasl
/opt/local/x86/lib/sbcl/sb-aclrepl/repl.lisp
/opt/local/x86/lib/sbcl/sb-aclrepl/sb-aclrepl.asd
/opt/local/x86/lib/sbcl/sb-aclrepl/sb-aclrepl.fasl
/opt/local/x86/lib/sbcl/sb-aclrepl/sb-aclrepl.texinfo
/opt/local/x86/lib/sbcl/sb-aclrepl/test-passed
/opt/local/x86/lib/sbcl/sb-aclrepl/tests.fasl
/opt/local/x86/lib/sbcl/sb-aclrepl/tests.lisp
/opt/local/x86/lib/sbcl/sb-aclrepl/toplevel.fasl
/opt/local/x86/lib/sbcl/sb-aclrepl/toplevel.lisp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/.cvsignore
/opt/local/x86/lib/sbcl/sb-bsd-sockets/a.out
/opt/local/x86/lib/sbcl/sb-bsd-sockets/constants.fasl
/opt/local/x86/lib/sbcl/sb-bsd-sockets/constants.lisp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/constants.lisp-temp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/defpackage.fasl
/opt/local/x86/lib/sbcl/sb-bsd-sockets/defpackage.lisp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/FAQ
/opt/local/x86/lib/sbcl/sb-bsd-sockets/foo.c
/opt/local/x86/lib/sbcl/sb-bsd-sockets/inet.fasl
/opt/local/x86/lib/sbcl/sb-bsd-sockets/inet.lisp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/local.fasl
/opt/local/x86/lib/sbcl/sb-bsd-sockets/local.lisp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/Makefile
/opt/local/x86/lib/sbcl/sb-bsd-sockets/misc.fasl
/opt/local/x86/lib/sbcl/sb-bsd-sockets/misc.lisp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/name-service.fasl
/opt/local/x86/lib/sbcl/sb-bsd-sockets/name-service.lisp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/NEWS
/opt/local/x86/lib/sbcl/sb-bsd-sockets/sb-bsd-sockets.asd
/opt/local/x86/lib/sbcl/sb-bsd-sockets/sb-bsd-sockets.fasl
/opt/local/x86/lib/sbcl/sb-bsd-sockets/sb-bsd-sockets.texinfo
/opt/local/x86/lib/sbcl/sb-bsd-sockets/sockets.fasl
/opt/local/x86/lib/sbcl/sb-bsd-sockets/sockets.lisp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/sockopt.fasl
/opt/local/x86/lib/sbcl/sb-bsd-sockets/sockopt.lisp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/split.fasl
/opt/local/x86/lib/sbcl/sb-bsd-sockets/split.lisp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/test-passed
/opt/local/x86/lib/sbcl/sb-bsd-sockets/tests.fasl
/opt/local/x86/lib/sbcl/sb-bsd-sockets/tests.lisp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/TODO
/opt/local/x86/lib/sbcl/sb-bsd-sockets/win32-constants.lisp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/win32-lib.lisp
/opt/local/x86/lib/sbcl/sb-bsd-sockets/win32-sockets.lisp
/opt/local/x86/lib/sbcl/sb-cltl2/.cvsignore
/opt/local/x86/lib/sbcl/sb-cltl2/compiler-let.fasl
	:

libs/libsigsegv-2.6

preparation
curl -RO -C - http://ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.6.tar.gz
tar xvzf libsigsegv-2.6.tar.gz
(cd libsigsegv-2.6 &&
patch -p0 -b -z.org < ../libsigsegv-2.6-ubagami.patch
)
build
./configure --disable-shared 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
(cd src &&
patch -p0 <<EOF
--- sigsegv.h~	2010-09-13 23:28:00.000000000 +0900
+++ sigsegv.h	2010-09-14 13:43:13.000000000 +0900
@@ -24,8 +24,7 @@
 #define sigsegv_thread_state_t ppc_thread_state64_t
 #elif defined __ppc__
 #define sigsegv_thread_state_t ppc_thread_state_t
-#endif
-#if defined __x86_64__
+#elif defined __x86_64__
 #define sigsegv_thread_state_t x86_thread_state64_t
 #elif defined __i386__
 #if defined x86_THREAD_STATE32
EOF
) &&
make
patch
--- ./src/stackvma-mach.c~	2006-05-15 21:02:59.000000000 +0900
+++ ./src/stackvma-mach.c	2010-09-13 22:44:48.000000000 +0900
@@ -52,6 +52,9 @@
 
   for (address = VM_MIN_ADDRESS; more; address += size)
     {
+#if defined(__ppc64__) || defined(__x86_64__)
+#define vm_region vm_region_64
+#endif
 #ifdef VM_REGION_BASIC_INFO
       more = (vm_region (task, &address, &size, VM_REGION_BASIC_INFO,
                          (vm_region_info_t)&info, &info_count, &object_name)
installed
/opt/local/include/sigsegv.h
/opt/local/lib/libsigsegv.a
/opt/local/lib/libsigsegv.la

terms/mlterm-3.0.1

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/mlterm/01release/mlterm-3.0.1/mlterm-3.0.1.tar.gz
tar xvzf mlterm-3.0.1.tar.gz
build
./configure\
	CC='gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPP='gcc -E'\
	CXX='g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CXXCPP='g++ -E'\
	CPPFLAGS='-I/opt/local/include'\
	LDFLAGS='-L/opt/local/lib'\
	XFT_CFLAGS='-I/opt/local/include/freetype2 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include'\
	XFT_LIBS='-L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -lXft -lX11 -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices -L/opt/local/lib -lfreetype -lfontconfig -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -lXrender -lX11'\
	--host=ppc-apple-darwin --build=`sh script/config.guess`\
	--x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include\
	--x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib\
	--prefix=/opt/local\
	--enable-fribidi\
	--disable-ind\
	--enable-uim\
	--disable-iiimf\
	--disable-m17nlib\
	--enable-scim\
	--with-x\
	--with-imagelib=gdk-pixbuf\
	--with-type-engines=xft\
&&
make
installed
/opt/local/bin/mlcc
/opt/local/bin/mlclient
/opt/local/bin/mlclientx
/opt/local/bin/mlterm
/opt/local/etc/mlterm/aafont
/opt/local/etc/mlterm/color
/opt/local/etc/mlterm/font
/opt/local/etc/mlterm/key
/opt/local/etc/mlterm/main
/opt/local/etc/mlterm/menu
/opt/local/etc/mlterm/taafont
/opt/local/etc/mlterm/termcap
/opt/local/etc/mlterm/tfont
/opt/local/etc/mlterm/vaafont
/opt/local/etc/mlterm/vfont
/opt/local/etc/mlterm/xim
/opt/local/lib/libkik.11.0.0.dylib
/opt/local/lib/libkik.11.dylib
/opt/local/lib/libkik.a
/opt/local/lib/libkik.dylib
/opt/local/lib/libkik.la
/opt/local/lib/libmkf.14.0.0.dylib
/opt/local/lib/libmkf.14.dylib
/opt/local/lib/libmkf.a
/opt/local/lib/libmkf.dylib
/opt/local/lib/libmkf.la
/opt/local/lib/mkf/libmkf_8bits.a
/opt/local/lib/mkf/libmkf_8bits.la
/opt/local/lib/mkf/libmkf_8bits.so
/opt/local/lib/mkf/libmkf_jajp.a
/opt/local/lib/mkf/libmkf_jajp.la
/opt/local/lib/mkf/libmkf_jajp.so
/opt/local/lib/mkf/libmkf_kokr.a
/opt/local/lib/mkf/libmkf_kokr.la
/opt/local/lib/mkf/libmkf_kokr.so
/opt/local/lib/mkf/libmkf_zh.a
/opt/local/lib/mkf/libmkf_zh.la
/opt/local/lib/mkf/libmkf_zh.so
/opt/local/lib/mlterm/libathena.a
/opt/local/lib/mlterm/libathena.la
/opt/local/lib/mlterm/libathena.so
/opt/local/lib/mlterm/libim-kbd.a
/opt/local/lib/mlterm/libim-kbd.la
/opt/local/lib/mlterm/libim-kbd.so
/opt/local/lib/mlterm/libim-scim.a
/opt/local/lib/mlterm/libim-scim.la
/opt/local/lib/mlterm/libim-scim.so
/opt/local/lib/mlterm/libim-uim.a
/opt/local/lib/mlterm/libim-uim.la
/opt/local/lib/mlterm/libim-uim.so
/opt/local/lib/mlterm/libmotif.a
/opt/local/lib/mlterm/libmotif.la
/opt/local/lib/mlterm/libmotif.so
/opt/local/lib/mlterm/libmozmodern.a
/opt/local/lib/mlterm/libmozmodern.la
/opt/local/lib/mlterm/libmozmodern.so
/opt/local/lib/mlterm/libnext.a
/opt/local/lib/mlterm/libnext.la
/opt/local/lib/mlterm/libnext.so
/opt/local/lib/mlterm/libsample.a
/opt/local/lib/mlterm/libsample.la
/opt/local/lib/mlterm/libsample.so
/opt/local/lib/mlterm/libsample2.a
/opt/local/lib/mlterm/libsample2.la
	:

libs/fribidi-0.19.2

preparation
curl -RO -C - http://fribidi.org/download/fribidi-0.19.2.tar.gz
tar xvzf fribidi-0.19.2.tar.gz
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local --without-glib
make 
installed
/opt/local/bin/fribidi
/opt/local/include/fribidi/fribidi-arabic.h
/opt/local/include/fribidi/fribidi-begindecls.h
/opt/local/include/fribidi/fribidi-bidi-types-list.h
/opt/local/include/fribidi/fribidi-bidi-types.h
/opt/local/include/fribidi/fribidi-bidi.h
/opt/local/include/fribidi/fribidi-char-sets-list.h
/opt/local/include/fribidi/fribidi-char-sets.h
/opt/local/include/fribidi/fribidi-common.h
/opt/local/include/fribidi/fribidi-config.h
/opt/local/include/fribidi/fribidi-deprecated.h
/opt/local/include/fribidi/fribidi-enddecls.h
/opt/local/include/fribidi/fribidi-flags.h
/opt/local/include/fribidi/fribidi-joining-types-list.h
/opt/local/include/fribidi/fribidi-joining-types.h
/opt/local/include/fribidi/fribidi-joining.h
/opt/local/include/fribidi/fribidi-mirroring.h
/opt/local/include/fribidi/fribidi-shape.h
/opt/local/include/fribidi/fribidi-types.h
/opt/local/include/fribidi/fribidi-unicode-version.h
/opt/local/include/fribidi/fribidi-unicode.h
/opt/local/include/fribidi/fribidi.h
/opt/local/lib/libfribidi.0.dylib
/opt/local/lib/libfribidi.a
/opt/local/lib/libfribidi.dylib
/opt/local/lib/libfribidi.la
/opt/local/lib/pkgconfig/fribidi.pc
/opt/local/share/man/man3/fribidi_charset_to_unicode.3
/opt/local/share/man/man3/fribidi_debug_status.3
/opt/local/share/man/man3/fribidi_get_bidi_type.3
/opt/local/share/man/man3/fribidi_get_bidi_type_name.3
/opt/local/share/man/man3/fribidi_get_bidi_types.3
/opt/local/share/man/man3/fribidi_get_joining_type.3
/opt/local/share/man/man3/fribidi_get_joining_type_name.3
/opt/local/share/man/man3/fribidi_get_joining_types.3
/opt/local/share/man/man3/fribidi_get_mirror_char.3
/opt/local/share/man/man3/fribidi_get_par_direction.3
/opt/local/share/man/man3/fribidi_get_par_embedding_levels.3
/opt/local/share/man/man3/fribidi_get_type.3
/opt/local/share/man/man3/fribidi_get_type_internal.3
/opt/local/share/man/man3/fribidi_join_arabic.3
/opt/local/share/man/man3/fribidi_log2vis.3
/opt/local/share/man/man3/fribidi_log2vis_get_embedding_levels.3
/opt/local/share/man/man3/fribidi_mirroring_status.3
/opt/local/share/man/man3/fribidi_parse_charset.3
/opt/local/share/man/man3/fribidi_remove_bidi_marks.3
/opt/local/share/man/man3/fribidi_reorder_line.3
/opt/local/share/man/man3/fribidi_reorder_nsm_status.3
/opt/local/share/man/man3/fribidi_set_debug.3
/opt/local/share/man/man3/fribidi_set_mirroring.3
/opt/local/share/man/man3/fribidi_set_reorder_nsm.3
/opt/local/share/man/man3/fribidi_shape.3
/opt/local/share/man/man3/fribidi_shape_mirroring.3
/opt/local/share/man/man3/fribidi_unicode_to_charset.3
/opt/local/share/man/man3/fribidi_unicode_version.3
/opt/local/share/man/man3/fribidi_version_info.3

input/scim-1.4.7

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/scim/scim/1.4.7/scim-1.4.7.tar.gz
tar xvzf scim-1.4.7.tar.gz
(cd scim-1.4.7 &&
patch -p0 -b -z.org < ../scim-1.4.7-ubagami.patch
)
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386' 'CXXFLAGS=-arch ppc -arch i386' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local 
make 
patch
--- ./src/scim_chartraits.cpp~	2007-06-26 23:31:38.000000000 +0900
+++ ./src/scim_chartraits.cpp	2010-09-09 19:28:35.000000000 +0900
@@ -34,7 +34,7 @@
                     + __GNUC_MINOR__ * 100 \
                     + __GNUC_PATCHLEVEL__)
 
-#if !defined(__STDC_ISO_10646__) && GCC_VERSION >= 30200
+#if !defined(__STDC_ISO_10646__) && GCC_VERSION >= 30200 && !defined(__APPLE__)
 
 namespace std
 {
installed
/opt/local/bin/scim
/opt/local/bin/scim-config-agent
/opt/local/bin/scim-setup
/opt/local/etc/scim/config
/opt/local/etc/scim/global
/opt/local/include/scim-1.0/gtk/scimkeyselection.h
/opt/local/include/scim-1.0/gtk/scimstringview.h
/opt/local/include/scim-1.0/gtk/scimtrayicon.h
/opt/local/include/scim-1.0/scim.h
/opt/local/include/scim-1.0/scim_attribute.h
/opt/local/include/scim-1.0/scim_backend.h
/opt/local/include/scim-1.0/scim_bind.h
/opt/local/include/scim-1.0/scim_compose_key.h
/opt/local/include/scim-1.0/scim_config_base.h
/opt/local/include/scim-1.0/scim_config_module.h
/opt/local/include/scim-1.0/scim_config_path.h
/opt/local/include/scim-1.0/scim_connection.h
/opt/local/include/scim-1.0/scim_debug.h
/opt/local/include/scim-1.0/scim_event.h
/opt/local/include/scim-1.0/scim_exception.h
/opt/local/include/scim-1.0/scim_filter.h
/opt/local/include/scim-1.0/scim_filter_manager.h
/opt/local/include/scim-1.0/scim_filter_module.h
/opt/local/include/scim-1.0/scim_frontend.h
/opt/local/include/scim-1.0/scim_frontend_module.h
/opt/local/include/scim-1.0/scim_global_config.h
/opt/local/include/scim-1.0/scim_helper.h
/opt/local/include/scim-1.0/scim_helper_manager.h
/opt/local/include/scim-1.0/scim_helper_module.h
/opt/local/include/scim-1.0/scim_hotkey.h
/opt/local/include/scim-1.0/scim_iconv.h
/opt/local/include/scim-1.0/scim_imengine.h
/opt/local/include/scim-1.0/scim_imengine_module.h
/opt/local/include/scim-1.0/scim_lookup_table.h
/opt/local/include/scim-1.0/scim_module.h
/opt/local/include/scim-1.0/scim_object.h
/opt/local/include/scim-1.0/scim_panel_agent.h
/opt/local/include/scim-1.0/scim_panel_client.h
/opt/local/include/scim-1.0/scim_panel_common.h
/opt/local/include/scim-1.0/scim_pointer.h
/opt/local/include/scim-1.0/scim_property.h
/opt/local/include/scim-1.0/scim_signals.h
/opt/local/include/scim-1.0/scim_slot.h
/opt/local/include/scim-1.0/scim_socket.h
/opt/local/include/scim-1.0/scim_trans_commands.h
/opt/local/include/scim-1.0/scim_transaction.h
/opt/local/include/scim-1.0/scim_types.h
/opt/local/include/scim-1.0/scim_utility.h
/opt/local/include/scim-1.0/x11/scim_x11_utils.h
/opt/local/lib/gtk-2.0/immodules/im-scim.a
/opt/local/lib/gtk-2.0/immodules/im-scim.la
/opt/local/lib/gtk-2.0/immodules/im-scim.so
/opt/local/lib/libscim-1.0.8.2.3.dylib
/opt/local/lib/libscim-1.0.8.dylib
/opt/local/lib/libscim-1.0.a
/opt/local/lib/libscim-1.0.dylib
/opt/local/lib/libscim-1.0.la
/opt/local/lib/libscim-gtkutils-1.0.8.2.3.dylib
/opt/local/lib/libscim-gtkutils-1.0.8.dylib
/opt/local/lib/libscim-gtkutils-1.0.a
/opt/local/lib/libscim-gtkutils-1.0.dylib
/opt/local/lib/libscim-gtkutils-1.0.la
/opt/local/lib/libscim-x11utils-1.0.8.2.3.dylib
/opt/local/lib/libscim-x11utils-1.0.8.dylib
	:

net/wget-1.12

preparation
curl -RO -C - http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2
tar xvjf wget-1.12.tar.bz2
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/bin/wget
/opt/local/etc/wgetrc
/opt/local/share/info/wget.info
/opt/local/share/locale/be/LC_MESSAGES/wget.mo
/opt/local/share/locale/bg/LC_MESSAGES/wget.mo
/opt/local/share/locale/ca/LC_MESSAGES/wget.mo
/opt/local/share/locale/cs/LC_MESSAGES/wget.mo
/opt/local/share/locale/da/LC_MESSAGES/wget.mo
/opt/local/share/locale/de/LC_MESSAGES/wget.mo
/opt/local/share/locale/el/LC_MESSAGES/wget.mo
/opt/local/share/locale/en@boldquot/LC_MESSAGES/wget.mo
/opt/local/share/locale/en@quot/LC_MESSAGES/wget.mo
/opt/local/share/locale/en_GB/LC_MESSAGES/wget.mo
/opt/local/share/locale/en_US/LC_MESSAGES/wget.mo
/opt/local/share/locale/eo/LC_MESSAGES/wget.mo
/opt/local/share/locale/es/LC_MESSAGES/wget.mo
/opt/local/share/locale/et/LC_MESSAGES/wget.mo
/opt/local/share/locale/eu/LC_MESSAGES/wget.mo
/opt/local/share/locale/fi/LC_MESSAGES/wget.mo
/opt/local/share/locale/fr/LC_MESSAGES/wget.mo
/opt/local/share/locale/ga/LC_MESSAGES/wget.mo
/opt/local/share/locale/gl/LC_MESSAGES/wget.mo
/opt/local/share/locale/he/LC_MESSAGES/wget.mo
/opt/local/share/locale/hr/LC_MESSAGES/wget.mo
/opt/local/share/locale/hu/LC_MESSAGES/wget.mo
/opt/local/share/locale/id/LC_MESSAGES/wget.mo
/opt/local/share/locale/it/LC_MESSAGES/wget.mo
/opt/local/share/locale/ja/LC_MESSAGES/wget.mo
/opt/local/share/locale/lt/LC_MESSAGES/wget.mo
/opt/local/share/locale/nb/LC_MESSAGES/wget.mo
/opt/local/share/locale/nl/LC_MESSAGES/wget.mo
/opt/local/share/locale/pl/LC_MESSAGES/wget.mo
/opt/local/share/locale/pt/LC_MESSAGES/wget.mo
/opt/local/share/locale/pt_BR/LC_MESSAGES/wget.mo
/opt/local/share/locale/ro/LC_MESSAGES/wget.mo
/opt/local/share/locale/ru/LC_MESSAGES/wget.mo
/opt/local/share/locale/sk/LC_MESSAGES/wget.mo
/opt/local/share/locale/sl/LC_MESSAGES/wget.mo
/opt/local/share/locale/sr/LC_MESSAGES/wget.mo
/opt/local/share/locale/sv/LC_MESSAGES/wget.mo
/opt/local/share/locale/tr/LC_MESSAGES/wget.mo
/opt/local/share/locale/uk/LC_MESSAGES/wget.mo
/opt/local/share/locale/vi/LC_MESSAGES/wget.mo
/opt/local/share/locale/zh_CN/LC_MESSAGES/wget.mo
/opt/local/share/locale/zh_TW/LC_MESSAGES/wget.mo
/opt/local/share/man/man1/wget.1

text/ptetex3/replacecjkfonts-20060523

preparation
if [ ! -f replacecjkfonts-20060523.tar.bz2 ]; then
[ ! -d replacecjkfonts-20060523 ] && mkdir replacecjkfonts-20060523
(cd replacecjkfonts-20060523
curl -RO -C - http://www.eaflux.com/replacecjkfonts/sources/replacecjkfonts.pl
curl -RO -C - http://www.eaflux.com/replacecjkfonts/sources/cjkps2pdf.pl
)
tar cvjf replacecjkfonts-20060523.tar.bz2 replacecjkfonts-20060523
else
tar xvjf replacecjkfonts-20060523.tar.bz2
fi
build
chmod +x *.pl
installation
cp *.pl /opt/local/bin 
installed
/opt/local/bin/cjkps2pdf.pl
/opt/local/bin/replacecjkfonts.pl

text/ptetex3/convert-ps-euc-j-20070119

preparation
if [ ! -f convert-ps-euc-j-20070119.tar.bz2 ]; then
[ ! -d convert-ps-euc-j-20070119 ] && mkdir convert-ps-euc-j-20070119
(cd convert-ps-euc-j-20070119
curl -RO -C - http://www.rmatsumoto.org/tex-ps-pdf/convert-euc.txt
)
tar cvjf convert-ps-euc-j-20070119.tar.bz2 convert-ps-euc-j-20070119
else
tar xvjf convert-ps-euc-j-20070119.tar.bz2
fi
build
sed '1s|/usr/local|/usr|;1s/perl5/perl/' < convert-euc.txt > convert-ps-euc-j.pl
chmod +x convert-ps-euc-j.pl
installation
cp convert-ps-euc-j.pl /opt/local/bin 
installed
/opt/local/bin/convert-ps-euc-j.pl

text/ptetex3/ptetex3-20090610

preparation
curl -RO -C - http://www.ring.gr.jp/pub/text/CTAN/obsolete/systems/unix/teTeX/3.0/distrib/tetex-src-3.0.tar.gz
curl -RO -C - http://www.ring.gr.jp/pub/text/CTAN/obsolete/systems/unix/teTeX/3.0/distrib/tetex-texmf-3.0po.tar.gz
curl -RO -C - http://tutimura.ath.cx/~nob/tex/ptetex/ptetex3/ptetex3-20090610.tar.gz
curl -RO -C - http://tutimura.ath.cx/~nob/tex/ptetex/ptetex-cmap/ptetex-cmap-20090506.tar.gz
curl -RO -C - http://project.ktug.or.kr/dvipdfmx/snapshot/latest/dvipdfmx-20100328.tar.gz
curl -RO -C - http://oku.edu.mie-u.ac.jp/~okumura/jsclasses/jsclasses-100314.zip
tar xvzf ptetex3-20090610.tar.gz
tar xvzf ptetex-cmap-20090506.tar.gz
(cd ptetex3-20090610/archive &&
cp -p ../../dvipdfmx-20100328.tar.gz .
cat <<'EOF' > ptetex3-ubagami.patch
--- ./share/texmf/tex/latex/base/latex.ltx.org	2010-08-31 22:22:32.000000000 +0900
+++ ./share/texmf/tex/latex/base/latex.ltx	2010-08-31 23:53:00.000000000 +0900
@@ -527,17 +527,11 @@
 \expandafter\reserved@a\fmtversion\@nil
 \ifnum\count@>77
   \typeout{^^J%
-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J%
-!  You are attempting to make a LaTeX format from a source file^^J%
-!  That is more than five years old.^^J%
-!^^J%
-!  If you enter <return> to scroll past this message then the format^^J%
-!  will be built, but please consider obtaining newer source files^^J%
-!  before continuing to build LaTeX.^^J%
-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J%
+   You are attempting to make a LaTeX format from a source file^^J%
+   That is more than six years old.^^J%
 }
-   \errhelp{To avoid this error message, obtain new LaTeX sources.}
-   \errmessage{LaTeX source files more than 5 years old!}
+  %\errhelp{To avoid this error message, obtain new LaTeX sources.}
+  %\errmessage{LaTeX source files more than 5 years old!}
 \fi
 \let\reserved@a\relax
 \fi
--- ./tetex-src-3.0/texk/dvipdfm/pngimage.c.org	2002-12-26 02:51:16.000000000 +0900
+++ ./tetex-src-3.0/texk/dvipdfm/pngimage.c	2010-09-01 01:21:45.000000000 +0900
@@ -42,7 +42,7 @@
   rewind (png_file);
   if (fread (sigbytes, 1, sizeof(sigbytes), png_file) !=
       sizeof(sigbytes) ||
-      (!png_check_sig (sigbytes, sizeof(sigbytes))))
+      (!(png_sig_cmp (sigbytes, 0, sizeof(sigbytes)) == 0)))
     return 0;
   else
     return 1;
--- ./tetex-src-3.0/texk/dvipdfm/thumbnail.c.org	2002-12-26 02:51:16.000000000 +0900
+++ ./tetex-src-3.0/texk/dvipdfm/thumbnail.c	2010-09-01 01:21:45.000000000 +0900
@@ -79,7 +79,7 @@
   }
   if (fread (sigbytes, 1, sizeof(sigbytes), thumb_file) !=
       sizeof(sigbytes) ||
-      (!png_check_sig (sigbytes, sizeof(sigbytes)))) {
+      (!(png_sig_cmp (sigbytes, 0, sizeof(sigbytes)) == 0))) {
     fprintf (stderr, "\nThumbnail not a png file! Skipping\n");
     return NULL;
   }
--- ./tetex-src-3.0/texk/dvipsk/dospecial.c.org	2010-09-01 01:08:29.000000000 +0900
+++ ./tetex-src-3.0/texk/dvipsk/dospecial.c	2010-09-01 01:43:27.000000000 +0900
@@ -412,6 +412,12 @@
    static int omega_specials = 0;
 
    if (nextstring + numbytes > maxstring) {
+      if (numbytes < 0
+	  || (numbytes > 0 && 2 > INT_MAX / numbytes)
+	  || 2 * numbytes > 1000 + 2 * numbytes) {
+         error("! Integer overflow in predospecial");
+         exit(1);
+      }
       p = nextstring = mymalloc(1000 + 2 * numbytes) ;
       maxstring = nextstring + 2 * numbytes + 700 ;
    }
--- ./tetex-src-3.0/texk/dvipsk/virtualfont.c.org	2010-09-01 01:08:29.000000000 +0900
+++ ./tetex-src-3.0/texk/dvipsk/virtualfont.c	2010-09-01 01:43:41.000000000 +0900
@@ -5,6 +5,7 @@
 #include "dvips.h" /* The copyright notice in that file is included too! */
 #ifdef KPATHSEA
 #include <kpathsea/c-pathmx.h>
+#include <kpathsea/concatn.h>
 #endif
 /*
  *   These are the external routines we use.
@@ -36,12 +37,12 @@
  *   Subroutine vfbyte returns the next byte.
  */
 static FILE *vffile ;
-static char name[50] ;
+static char name[500] ;
 void
 badvf P1C(char *, s)
 {
-   (void)sprintf(errbuf,"! Bad VF file %s: %s",name,s) ;
-   error(errbuf);
+   char *msg = concatn("! Bad VF file ", name, ":", s);
+   error(msg);
 }
 
 shalfword
@@ -93,6 +94,10 @@
    if (*d==0)
       d = vfpath ;
 #endif
+   if (strlen(n) + 5 >= sizeof (name)) {
+     /* 5 for vf() + null */
+     error("! VF file name too long in vfopen") ;
+   }
 #ifdef MVSXA   /* IBM: MVS/XA */
    (void)sprintf(name, "vf(%s)", n) ;
 #else
@@ -223,8 +228,8 @@
    k = (integer)(alpha * (real)vfquad()) ;
    if ((id != 9 && id != 11) &&
        (k > curfnt->designsize + 2 || k < curfnt->designsize - 2)) {
-      (void)sprintf(errbuf,"Design size mismatch in font %s", name) ;
-      error(errbuf) ;
+      char *msg = concat("Design size mismatch in font ", name);
+      error(msg);
    }
 /*
  * Now we look for font definitions.
--- ./tetex-src-3.0/texk/web2c/bibtex.ch.org	2004-07-15 02:32:51.000000000 +0900
+++ ./tetex-src-3.0/texk/web2c/bibtex.ch	2010-09-01 01:43:14.000000000 +0900
@@ -1077,6 +1077,15 @@
 @y
 @z
 
+% Forgot to check for pool overflow here.  Triggered by test case linked
+% from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520920.
+@x
+while (sp_ptr < sp_end) do                      {shift the substring}
+@y
+str_room(sp_end - sp_ptr);
+while (sp_ptr < sp_end) do                      {shift the substring}
+@z
+
 % [459] Eliminate unreferenced statement label, because `undefined' is
 % now a constant expression that is not evaluated at the Web level. If
 % this label were ever required, it could be replaced by the constant
--- ./tetex-src-3.0/texk/web2c/ptex/jbibtex.ch.org	2010-09-01 01:08:28.000000000 +0900
+++ ./tetex-src-3.0/texk/web2c/ptex/jbibtex.ch	2010-09-01 01:43:56.000000000 +0900
@@ -1381,6 +1381,10 @@
     else decr(sp_end);
 end;
 
+{ Forgot to check for pool overflow here.  Triggered by test case linked
+  from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520920.}
+
+str_room(sp_end - sp_ptr);
 while (sp_ptr < sp_end) do                      {shift the substring}
     begin
     if str_pool[sp_ptr] >127 then begin
--- ./tetex-src-3.0/texk/web2c/ptex/ptex-base.ch.org	2010-09-01 01:08:28.000000000 +0900
+++ ./tetex-src-3.0/texk/web2c/ptex/ptex-base.ch	2010-09-01 01:37:04.000000000 +0900
@@ -3524,6 +3524,14 @@
 new_noad:=p;
 @z
 
+@x [34.687] accent with japanese char
+@d accent_noad_size=5 {number of |mem| words in an accent noad}
+@d accent_chr(#)==#+4 {the |accent_chr| field of an accent noad}
+@y
+@d accent_noad_size=6 {number of |mem| words in an accent noad}
+@d accent_chr(#)==#+5 {the |accent_chr| field of an accent noad}
+@z
+
 @x [34.691] l.14236 - pTeX: print_fam_and_char
 procedure print_fam_and_char(@!p:pointer); {prints family and character}
 begin print_esc("fam"); print_int(fam(p)); print_char(" ");
@@ -3803,7 +3811,7 @@
 var a:integer; {address of lig/kern instruction}
 @!gp,@!gq,@!p,@!r:pointer; {temporary registers for list manipulation}
 @!rr:halfword;
-begin r:=min_halfword; restart:@t@>@;@/
+begin restart:@t@>@;@/
 if (math_type(subscr(q))=empty)and(math_type(supscr(q))=empty)and@|
 ((math_type(nucleus(q))=math_char)or(math_type(nucleus(q))=math_jchar)) then
   begin p:=link(q);
@@ -3843,7 +3851,7 @@
          if op_byte(cur_i)<kern_flag then
            begin gp:=font_glue[cur_f]; rr:=rem_byte(cur_i);
            if gp<>null then begin
-             while((type(gp)<>r)and(link(gp)<>null)) do begin gp:=link(gp);
+             while((type(gp)<>rr)and(link(gp)<>null)) do begin gp:=link(gp);
                end;
              gq:=glue_ptr(gp);
              end
@@ -3851,7 +3859,7 @@
              font_glue[cur_f]:=gp; gq:=null;
              end;
            if gq=null then
-             begin type(gp):=r; gq:=new_spec(zero_glue); glue_ptr(gp):=gq;
+             begin type(gp):=rr; gq:=new_spec(zero_glue); glue_ptr(gp):=gq;
              a:=exten_base[cur_f]+qi((qo(rr))*3); width(gq):=font_info[a].sc;
              stretch(gq):=font_info[a+1].sc; shrink(gq):=font_info[a+2].sc;
              add_glue_ref(gq); link(gp):=get_node(small_node_size);
@@ -4487,8 +4495,9 @@
       ("\box register that now have a different direction.")@/
       ("Proceed, and I'll discard its present contents.");
     box_error(n)
-    end;
-  height(r):=height(box(n))+depth(box(n));
+    end
+  else
+    height(r):=height(box(n))+depth(box(n));
   end;
 @z
 
@@ -4917,6 +4926,7 @@
 @!d:pointer; {last |disp_node|}
 @!disp,@!pdisp:scaled; {displacement}
 @!pp,pnode:pointer;
+@!f:boolean; {will |d| free?}
 @z
 
 @x [47.1080] l.21636 - pTeX: disp_node, check head=tail
@@ -4925,7 +4935,7 @@
       @<Remove the last box, unless it's part of a discretionary@>;
   end;
 @y
-else  begin
+else  begin f:=false; 
   if (not is_char_node(tail))and(type(tail)=disp_node) then
     begin d:=tail; tail:=prev_node;
     end
@@ -4933,13 +4943,15 @@
   if (not is_char_node(tail))and(head<>tail) then
     if (type(tail)=hlist_node)or(type(tail)=vlist_node)
           or(type(tail)=dir_node) then
-      @<Remove the last box, unless it's part of a discretionary@>;
+      begin f:=true;
+      @<Remove the last box, unless it's part of a discretionary@>; end;
   if d<>null then
     if (not is_char_node(tail))and(type(tail)=disp_node) then
       begin prev_node:=pnode; prev_disp:=pdisp;
-      if prev_disp=disp_dimen(d) then free_node(tail,small_node_size)
+      if prev_disp=disp_dimen(d) then {|free_node(tail,small_node_size)|}
       else disp_dimen(tail):=disp_dimen(d);
-      free_node(d,small_node_size);
+      if f then free_node(d,small_node_size)
+      else begin prev_node:=tail; tail_append(d); end;
       end
     else tail_append(d);
   end;
@@ -4964,7 +4976,10 @@
 repeat p:=q;
 if not is_char_node(q) then
   if type(q)=disc_node then
-    begin for m:=1 to replace_count(q) do p:=link(p);
+    begin for m:=1 to replace_count(q) do begin
+      if is_char_node(p) then
+        if font_dir[font(p)]<>dir_default then p:=link(p);
+      p:=link(p); end;
     if p=tail then goto done;
     end
   else if type(q)=disp_node then
@@ -5182,6 +5197,7 @@
 @!d:pointer; {last |disp_node|}
 @!disp,@!pdisp:scaled; {displacement}
 @!pp,pnode:pointer;
+@!f:boolean;  {whether remove disp node d }
 @z
 
 @x [47.1105] l.21937 - pTeX: delete_last: disp_node
@@ -5201,7 +5217,7 @@
 @y
 else  begin
   if (not is_char_node(tail))and(type(tail)=disp_node) then
-    begin d:=tail; tail:=prev_node; link(tail):=null;
+    begin f:=true; d:=tail; tail:=prev_node; link(tail):=null;
     end
   else d:=null;
   if not is_char_node(tail) then if type(tail)=cur_chr then
@@ -5209,11 +5225,15 @@
     repeat p:=q;
     if not is_char_node(q) then
       if type(q)=disc_node then
-        begin for m:=1 to replace_count(q) do p:=link(p);
+        begin for m:=1 to replace_count(q) do begin 
+          if is_char_node(p) then
+            if font_dir[font(p)]<>dir_default then p:=link(p);
+           p:=link(p); end;
         if p=tail then
           begin if d<>null then tail_append(d);
           return;
           end
+        else if link(p)=tail then f:=false;
         end
       else  if type(q)=disp_node then
         begin pnode:=pp; pdisp:=disp; disp:=disp_dimen(q);
@@ -5226,9 +5246,10 @@
     if d<>null then
       if (not is_char_node(tail))and(type(tail)=disp_node) then
         begin if prev_disp=disp_dimen(d) then
-          free_node(tail,small_node_size)
+          {|free_node(tail,small_node_size)|}
           else disp_dimen(tail):=disp_dimen(d);
-        free_node(d,small_node_size)
+        if f then free_node(d,small_node_size) 
+          else begin prev_node:=tail; prev_disp:=disp; tail_append(d) end
         end
       else
         begin prev_node:=tail; prev_disp:=disp; tail_append(d)
@@ -5357,6 +5378,15 @@
   end;
 @z
 
+@x [47.1121] pTeX: discretionary with 2byte-char
+if n>0 then tail:=q;
+@y
+if n>0 then begin tail:=q;
+  if is_char_node(q) then
+    if font_dir[font(q)]<>dir_default then tail:=link(tail);
+  end;
+@z
+
 @x [47.1120] l.22119 - pTeX: discretionary with disp_node
 decr(save_ptr); return;
 @y
@@ -5381,6 +5411,15 @@
         begin print_err("Improper discretionary list");
 @z
 
+
+@x [47.1121] pTeX: discretionary with 2byte-char
+  q:=p; p:=link(q); incr(n);
+@y
+  q:=p; p:=link(q); incr(n);
+  if is_char_node(q) then
+    if font_dir[font(q)]<>dir_default then p:=link(p);
+@z
+
 @x [47.1123] l.22160 - pTeX: make_accent, Kanji, insert disp_node
 var s,@!t: real; {amount of slant}
 @y
@@ -5397,8 +5436,10 @@
   begin KANJI(cx):=cur_val;
   if direction=dir_tate then f:=cur_tfont else f:=cur_jfont;
   p:=new_character(f,get_jfm_pos(KANJI(cx),f));
-  {DEBUG if p<>null then ...}
-  link(p):=get_avail; info(link(p)):=KANJI(cx);
+  if p<>null then
+    begin
+      link(p):=get_avail; info(link(p)):=KANJI(cx);
+    end;
   end
 else begin f:=cur_font; p:=new_character(f,cur_val);
   end;
@@ -5593,7 +5634,7 @@
     p:=nucleus(info(p)); q:=kcode_noad_nucleus(p);
     end;
   math_type(p):=math_jchar; fam(p):=cur_jfam; character(p):=qi(0);
-  info(q):=KANJI(cx);
+  math_kcode(p-1):=KANJI(cx);
   if font_dir[fam_fnt(fam(p)+cur_size)]=dir_default then
     begin print_err("Not two-byte family");
     help1("IGNORE.");@/
@@ -5713,7 +5754,8 @@
 space_factor:=1000; unsave;
 end
 @y
-begin if direction=dir_tate then disp:=axis_height(text_size) else disp:=0;
+begin if direction=dir_tate then disp:=t_baseline_shift
+      else disp:=y_baseline_shift;
 @<Append |disp_node| at begin of displace area@>;
 tail_append(new_math(math_surround,before));
 cur_mlist:=p; cur_style:=text_style; mlist_penalties:=(mode>0); mlist_to_hlist;
@@ -7196,6 +7238,15 @@
     mark_node,adjust_node,ins_node,whatsit_node:
       {These nodes are vanished when typeset is done}
       do_nothing;
+    disc_node: begin insert_skip:=no_skip; i:=replace_count(p);
+      for i:=i downto 1 do begin 
+        if is_char_node(p) then
+          if font_dir[font(p)]<>dir_default then begin
+            insert_skip:=after_wchar; p:=link(p); end
+          else insert_skip:=after_schar
+        else insert_skip:=no_skip; 
+        p:=link(p); end;
+      end;
     othercases insert_skip:=no_skip;
     endcases;
     q:=p; p:=link(p);
@@ -7386,6 +7437,12 @@
   penalty_node,mark_node,adjust_node,whatsit_node,
   glue_node,kern_node,math_node,disp_node:
     do_nothing;
+  disc_node: begin i:=replace_count(p); 
+    for i:=i downto 1 do begin
+      if is_char_node(p) then
+        if font_dir[font(p)]<>dir_default then p:=link(p);
+      p:=link(p); end; 
+    q:=p; s:=null; end;
   othercases begin q:=p; s:=null; end;
   endcases;
   end;
@@ -7544,7 +7601,7 @@
     {@<Append |disp_node| at begin of displace area@>;}
     ins_kp:=false; goto main_loop;
   end else begin { Kanji -> cs }
-    {@<Append |disp_node| at begin of displace area@>;}
+    { <Append |disp_node| at begin of displace area>;}
     goto reswitch;
   end;
 
--- ./tetex-src-3.0/texk/xdvik/gui/xm_prefs_page.c.org	2010-09-01 01:08:27.000000000 +0900
+++ ./tetex-src-3.0/texk/xdvik/gui/xm_prefs_page.c	2010-09-01 01:20:13.000000000 +0900
@@ -95,9 +95,14 @@
     { "A3",		"a3",		"297x420mm",	"420x297mm"	},
     { "A4",		"a4",		"210x297mm",	"297x210mm"	},
     { "A5",		"a5",		"148x210mm",	"210x148mm"	},
+    { "B4",		"b4",		"250x353mm",	"353x250mm"	},
     { "B5",		"b5",		"176x250mm",	"250x176mm"	},
     { "B6",		"b6",		"125x176mm",	"176x125mm"	},
     { "B7",		"b7",		"88x125mm",	"125x88mm"	},
+    { "JIS B4",		"jisb4",	"257x364mm",	"364x257mm"	},
+    { "JIS B5",		"jisb5",	"182x257mm",	"257x182mm"	},
+    { "JIS B6",		"jisb6",	"128x182mm",	"182x128mm"	},
+    { "JIS B7",		"jisb7",	"91x128mm",	"128x91mm"	},
     { NULL,		NULL,		NULL,		NULL		} /* terminate */
 };
 
--- ./tetex-src-3.0/texk/xdvik/xdvi.c.org	2010-09-01 01:08:27.000000000 +0900
+++ ./tetex-src-3.0/texk/xdvik/xdvi.c	2010-09-01 01:20:13.000000000 +0900
@@ -1002,6 +1002,34 @@
     "b10r","44x31mm",
     "", "0",
 
+    /* JIS `B' formats, Portrait */
+    "jisb0", "1030x1456mm",
+    "jisb1", "728x1030mm",
+    "jisb2", "515x728mm",
+    "jisb3", "364x515mm",
+    "jisb4", "257x364mm",
+    "jisb5", "182x257mm",
+    "jisb6", "128x182mm",
+    "jisb7", "91x128mm",
+    "jisb8", "64x91mm",
+    "jisb9", "45x64mm",
+    "jisb10","32x45mm",
+    "", "0",
+
+    /* JIS `B' formats, Landscape */
+    "jisb0r", "1456x1030mm",
+    "jisb1r", "1030x728mm",
+    "jisb2r", "728x515mm",
+    "jisb3r", "515x364mm",
+    "jisb4r", "364x257mm",
+    "jisb5r", "257x182mm",
+    "jisb6r", "182x128mm",
+    "jisb7r", "128x91mm",
+    "jisb8r", "91x64mm",
+    "jisb9r", "64x45mm",
+    "jisb10r","45x32mm",
+    "", "0",
+
     /* ISO `C' formats, Portrait */
     "c0", "917x1297mm",
     "c1", "648x917mm",
EOF
)
(cd ptetex3-20090610/macro &&
cp -p ../../jsclasses-100314.zip .
)
(cd ptetex3-20090610 &&
cp -p my_option.sample my_option &&
patch -p0 -b -z.org < ../ptetex3-20090610-ubagami.patch
)
build
make all0 otf babel fonty test 
patch
--- ./1check-archive.sh~	2009-06-07 16:58:27.000000000 +0900
+++ ./1check-archive.sh	2010-09-01 13:37:23.000000000 +0900
@@ -104,6 +104,7 @@
 md5check <<EOF || exit
 92579eca220d2279787ddb98b5b1e439  archive/config.ps
 dba57b9893f5632662c7d741874f7159  archive/dvipdfmx-20090506.tar.gz
+3486bd11730bedec2b8b31f1d83bd797  archive/dvipdfmx-20100328.tar.gz
 92f5fcdf523381c6e30288d0e2c487ab  archive/dvipdfmx-contrib-latex.tar.gz
 1f659d779459e62873fc0bb149b59b37  archive/dvipsk-5.97-p1.7b.tar.gz
 a7aefa88799df081ca981ce6aa32ec90  archive/freetype-2.3.5.tar.gz
@@ -149,6 +150,7 @@
 40f757c7c16bce50915893170ed9b916  macro/eclepsf.sty
 601835d441df357d28f93c4d4534dbe0  macro/epsbox.sty
 eab726afd7249145578df56daa3d805f  macro/jsclasses-090222.zip
+d8a31910c27ffae3106b47e8e94c97bf  macro/jsclasses-100314.zip
 4c6224bbdc50345999714c32958eb186  macro/otfstable-speedup.patch
 0fd496d0e9b365457e161d18da9dfffb  macro/otfstable.zip
 50382fd31d95532cbc3d6803bc882578  macro/powerdot.tar.gz
--- ./2extract-src.sh~	2009-06-07 17:00:07.000000000 +0900
+++ ./2extract-src.sh	2010-08-31 20:06:38.000000000 +0900
@@ -134,7 +134,7 @@
 cpatch $PTEXENC/makejvf-1.1a-ptexenc.patch 1 $SRC/texk/makejvf
 
 ## for dvipdfmx
-tarx archive/dvipdfmx-20090506.tar.gz $SRC/texk
+tarx archive/dvipdfmx-20100328.tar.gz $SRC/texk
 mv $SRC/texk/dvipdfmx-* $SRC/texk/dvipdfmx || exit
 perlprint "s/ cid-x.map\$/ kanjix.map/g;
 	s|^(D  \"ps2pdf .*) (%i .*\")|\1 $GSNOEMBED1 \2|" \
--- ./3extract-texmf.sh~	2009-06-10 17:10:51.000000000 +0900
+++ ./3extract-texmf.sh	2010-09-01 13:24:12.000000000 +0900
@@ -175,7 +175,10 @@
 
 
 ## check
-cat md5sum/texmf | (cd $TEXMF; md5check) && exit
+cat md5sum/texmf | (cd $TEXMF; md5check) && {
+  cpatch archive/ptetex3-ubagami.patch "0 -b -z.org" $TMP_PREFIX
+  exit
+}
 cat <<EOF
 
 $0: Some processes were performed improperly.
--- ./4make-install.sh~	2009-05-05 01:35:49.000000000 +0900
+++ ./4make-install.sh	2010-09-01 00:22:00.000000000 +0900
@@ -28,7 +28,7 @@
 if test "$SYSTEM_FREETYPE2" = "no"; then
     echo "[--freetype--] configure"
     cd $SRC/freetype || exit
-    GNUMAKE=$MAKE ./configure || exit
+    GNUMAKE=$MAKE ./configure --prefix=$PREFIX || exit
     echo "[--freetype--] make"
     $MAKE || exit
 
--- ./5macro.sh~	2008-04-17 14:30:43.000000000 +0900
+++ ./5macro.sh	2010-09-01 13:40:13.000000000 +0900
@@ -30,8 +30,8 @@
 $MKDIR $PACKAGE
 
 ## jsclasses
-$MKDIR                     $PACKAGE/jsclasses
-tarx macro/jsclasses-*.zip $PACKAGE/jsclasses
+$MKDIR                          $PACKAGE/jsclasses
+tarx macro/jsclasses-100314.zip $PACKAGE/jsclasses
 lndir $PACKAGE2/jsclasses $TEXMF/ptex/platex jsclasses
 
 ## prosper
--- ./7font-search.sh~	2008-06-16 13:06:07.000000000 +0900
+++ ./7font-search.sh	2010-08-30 20:28:13.000000000 +0900
@@ -115,7 +115,7 @@
 Acrobat5    /usr{,/local,/sfw}{,/lib}/Acrobat5/Resource/Font
 Acrobat7    /usr{,/local,/sfw}{,/lib}{,/Adobe}/Acrobat7.0/Resource/CMap
 Acrobat8    /usr{,/local,/sfw}{,/lib}{,/Adobe}/Acrobat8.0/Resource/CMap
-ghostscript /usr{,/local,/sfw}/{share,lib}/ghostscript{,/*}/Resource/CMap
+ghostscript {/usr,/opt}{,/local,/sfw}{,gs7.07}/{share,lib}/ghostscript{,/*}/Resource/CMap
 openwinja   /usr/openwin/lib/locale/ja/X11/Resource/CMap
 openwinko   /usr/openwin/lib/locale/ko/X11/Resource/CMap
 openwinzh   /usr/openwin/lib/locale/zh/X11/Resource/CMap
@@ -126,7 +126,7 @@
 ### リンク名  検索ディレクトリ/ファイル
 x11       /usr{,/local,/X11R6,/pkg}/lib/X11/fonts/truetype
 X11       /usr{,/local,/X11R6,/pkg}/lib/X11/fonts/TrueType
-X11TTF    /usr{,/local,/X11R6,/pkg}/lib/X11/fonts/TTF
+X11TTF    /opt/local/X11R6/lib/X11/fonts/truetype
 truetype  /usr{,/local}/share/fonts/truetype
 TrueType  /usr{,/local}/share/fonts/TrueType
 TTF	  /usr{,/local}/share/fonts/TTF
@@ -143,17 +143,25 @@
 # for test (contains white space)
 hoge "/tmp/hoge hoge"
 QtPalmtop /opt/QtPalmtop/lib/X11/fonts/opentype
+X11OTF    /opt/local/X11R6/lib/X11/fonts/opentype
 EOF
 
 if test -d /System/Library/Fonts; then # Mac OS X
 LC_ALL=ja_JP.UTF-8
 cat <<EOF | /usr/bin/iconv -f EUC-JP -t UTF-8-MAC | mksymlink $OPENTYPE
-HiraMinPro-W3.otf  {,/System}"/Library/Fonts/ヒラギノ明朝 Pro W3.otf"
-HiraMinPro-W6.otf  {,/System}"/Library/Fonts/ヒラギノ明朝 Pro W6.otf"
-HiraKakuPro-W3.otf {,/System}"/Library/Fonts/ヒラギノ角ゴ Pro W3.otf"
-HiraKakuPro-W6.otf {,/System}"/Library/Fonts/ヒラギノ角ゴ Pro W6.otf"
-HiraKakuStd-W8.otf {,/System}"/Library/Fonts/ヒラギノ角ゴ Std W8.otf"
-HiraMaruPro-W4.otf {,/System}"/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf"
+HiraMinPro-W3.otf  {/opt/local/X11R6/lib/X11/fonts/opentype/HiraMinPro-W3.otf,{,/System}"/Library/Fonts/ヒラギノ明朝 Pro W3.otf"}
+HiraMinPro-W6.otf  {/opt/local/X11R6/lib/X11/fonts/opentype/HiraMinPro-W6.otf,{,/System}"/Library/Fonts/ヒラギノ明朝 Pro W6.otf"}
+HiraKakuPro-W3.otf {/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuPro-W3.otf,{,/System}"/Library/Fonts/ヒラギノ角ゴ Pro W3.otf"}
+HiraKakuPro-W6.otf {/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuPro-W6.otf,{,/System}"/Library/Fonts/ヒラギノ角ゴ Pro W6.otf"}
+HiraKakuStd-W8.otf {/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuStd-W8.otf,{,/System}"/Library/Fonts/ヒラギノ角ゴ Std W8.otf"}
+HiraMaruPro-W4.otf {/opt/local/X11R6/lib/X11/fonts/opentype/HiraMaruPro-W4.otf,{,/System}"/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf"}
+#
+HiraMinProN-W3.otf  {/opt/local/X11R6/lib/X11/fonts/opentype/HiraMinProN-W3.otf,{,/System}"/Library/Fonts/ヒラギノ明朝 ProN W3.otf"}
+HiraMinProN-W6.otf  {/opt/local/X11R6/lib/X11/fonts/opentype/HiraMinProN-W6.otf,{,/System}"/Library/Fonts/ヒラギノ明朝 ProN W6.otf"}
+HiraKakuProN-W3.otf {/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuProN-W3.otf,{,/System}"/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"}
+HiraKakuProN-W6.otf {/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuProN-W6.otf,{,/System}"/Library/Fonts/ヒラギノ角ゴ ProN W6.otf"}
+HiraKakuStdN-W8.otf {/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuStdN-W8.otf,{,/System}"/Library/Fonts/ヒラギノ角ゴ StdN W8.otf"}
+HiraMaruProN-W4.otf {/opt/local/X11R6/lib/X11/fonts/opentype/HiraMaruProN-W4.otf,{,/System}"/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf"}
 EOF
 fi
 
--- ./md5sum/texsrc.traditional~	2009-06-07 17:03:08.000000000 +0900
+++ ./md5sum/texsrc.traditional	2010-08-31 20:13:07.000000000 +0900
@@ -72,8 +72,8 @@
 aa8bcb252fdfab1e6164e338b6a791ce  ./texk/dvipdfm/ebb.c
 c98e0303e74020945a281afd04b09182  ./texk/dvipdfm/pdfdoc.c
 31b2da812b271b30405acafb8af18e6b  ./texk/dvipdfm/psimage.c
-3abe611cc8205c4ba0b555c8ef04a7fb  ./texk/dvipdfmx/data/Makefile.in
-010b7ce08e6e76ccad86eab443587bfd  ./texk/dvipdfmx/data/dvipdfmx.cfg
+1a8769fad6ce0666388e3f7c06f3c3bf  ./texk/dvipdfmx/data/Makefile.in
+25ed505be962a69fdee4ec0c500a4eba  ./texk/dvipdfmx/data/dvipdfmx.cfg
 df9d869cd778ef524a6d110d3f1185ec  ./texk/dvipsk/ChangeLog
 41cc28b4d96cfd35965c873e8ab23fd7  ./texk/dvipsk/Makefile.in
 d4a5ee5e44a3fe87edf713fa860cca77  ./texk/dvipsk/afm2tfm.c
--- ./my_option~	2008-06-30 02:44:40.000000000 +0900
+++ ./my_option	2010-08-31 23:56:49.000000000 +0900
@@ -75,12 +75,21 @@
 
 ### Mac OS X Leopard の不具合への対処
 # export CFLAGS=-O2
+export CC='gcc -O2 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk'
+export CPP='gcc -E'
+export CXX='g++ -O2 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk'
+export CXXCPP='g++ -E'
 
 ### ライブラリの場所を明示的に指定する
 # CPPFLAGS="-I/usr/local/include -I/usr/sfw/include -I/opt/sfw/include -I/usr/openwin/include"
+CPPFLAGS="-I/opt/local/include -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include"
 # LDFLAGS="-L/usr/local/lib -L/usr/sfw/lib -L/opt/sfw/lib -L/usr/openwin/lib"
+LDFLAGS="-L/opt/local/lib -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib"
 # LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/sfw/lib:/opt/sfw/lib:/usr/openwin/lib
 # export LDFLAGS CPPFLAGS LD_LIBRARY_PATH
+export CPPFLAGS LDFLAGS
+conf_option --disable-dependency-tracking
+conf_option '--x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib'
 
 ### スクリプトのデバッグ
 # set -x
@@ -109,6 +118,7 @@
 
 ### nkf がある場合[自動判別]
 # NKFJIS="nkf -jd"
+NKFJIS="nkf -jd"
 
 ### qkc がある場合
 # NKFJIS="qkc -bj -u"
@@ -122,6 +132,7 @@
 
 ### freetype-2.1.10 以降があれば[自動判別]
 # SYSTEM_FREETYPE2=yes
+SYSTEM_FREETYPE2=no
 
 
 ### 一時的にインストールする(作業用)ディレクトリを指定
@@ -130,6 +141,7 @@
 ### 最終的にインストールするディレクトリを指定
 # PREFIX=%{_prefix}
 # DATADIR=%{_datadir}
+PREFIX=/opt/local/ptetex3
 
 ### teTeX-{src,texmf}-*.tar.gz の場所を指定(RPM に有用)
 # SRC_DIR=%{_sourcedir}
installation
(cd /var/tmp/ptetex3 &&
find bin include info lib man share ! -type l -exec touch {} \;
)
make install
perl -pi -e 's|^VARTEXFONTS = \$SELFAUTOPARENT/|VARTEXFONTS = /var/tmp/|' /opt/local/ptetex3/share/texmf/web2c/texmf.cnf
installed
/opt/local/ptetex3/bin/a2ping
/opt/local/ptetex3/bin/afm2tfm
/opt/local/ptetex3/bin/aleph
/opt/local/ptetex3/bin/allcm
/opt/local/ptetex3/bin/allec
/opt/local/ptetex3/bin/allneeded
/opt/local/ptetex3/bin/bibtex
/opt/local/ptetex3/bin/ctangle
/opt/local/ptetex3/bin/ctie
/opt/local/ptetex3/bin/cweave
/opt/local/ptetex3/bin/dmp
/opt/local/ptetex3/bin/dvi2fax
/opt/local/ptetex3/bin/dvicopy
/opt/local/ptetex3/bin/dvigif
/opt/local/ptetex3/bin/dvipdfm
/opt/local/ptetex3/bin/dvipdfmx
/opt/local/ptetex3/bin/dvipdft
/opt/local/ptetex3/bin/dvipng
/opt/local/ptetex3/bin/dvips
/opt/local/ptetex3/bin/dvired
/opt/local/ptetex3/bin/dvitomp
/opt/local/ptetex3/bin/dvitype
/opt/local/ptetex3/bin/e2pall
/opt/local/ptetex3/bin/ebb
/opt/local/ptetex3/bin/epstopdf
/opt/local/ptetex3/bin/etex
/opt/local/ptetex3/bin/extractbb
/opt/local/ptetex3/bin/fdf2tan
/opt/local/ptetex3/bin/fdf2tex
/opt/local/ptetex3/bin/fmtutil
/opt/local/ptetex3/bin/fmtutil-sys
/opt/local/ptetex3/bin/fontinst
/opt/local/ptetex3/bin/gftodvi
/opt/local/ptetex3/bin/gftopk
/opt/local/ptetex3/bin/gftype
/opt/local/ptetex3/bin/gsftopk
/opt/local/ptetex3/bin/jbibtex
/opt/local/ptetex3/bin/jmpost
/opt/local/ptetex3/bin/kpseaccess
/opt/local/ptetex3/bin/kpsepath
/opt/local/ptetex3/bin/kpsereadlink
/opt/local/ptetex3/bin/kpsestat
/opt/local/ptetex3/bin/kpsetool
/opt/local/ptetex3/bin/kpsewhere
/opt/local/ptetex3/bin/kpsewhich
/opt/local/ptetex3/bin/kpsexpand
/opt/local/ptetex3/bin/lambda
/opt/local/ptetex3/bin/lamed
/opt/local/ptetex3/bin/latex
/opt/local/ptetex3/bin/mag
/opt/local/ptetex3/bin/makeindex
/opt/local/ptetex3/bin/makejvf
/opt/local/ptetex3/bin/makempx
/opt/local/ptetex3/bin/makempy
/opt/local/ptetex3/bin/mendex
/opt/local/ptetex3/bin/mf
/opt/local/ptetex3/bin/mf-nowin
/opt/local/ptetex3/bin/mft
/opt/local/ptetex3/bin/mkindex
/opt/local/ptetex3/bin/mkocp
/opt/local/ptetex3/bin/mkofm
/opt/local/ptetex3/bin/mktexfmt
/opt/local/ptetex3/bin/mktexlsr
/opt/local/ptetex3/bin/mktexmf
	:

img/inkscape/inkscape-0.48.0

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/inkscape/inkscape/0.48/inkscape-0.48.0.tar.bz2
tar xvjf inkscape-0.48.0.tar.bz2
build
./configure --disable-dependency-tracking --enable-static CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CXXFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' --prefix=/opt/local --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib &&
make 
installed
/opt/local/bin/inkscape
/opt/local/bin/inkview
/opt/local/share/applications/inkscape.desktop
/opt/local/share/icons/hicolor/16x16/apps/inkscape.png
/opt/local/share/icons/hicolor/22x22/apps/inkscape.png
/opt/local/share/icons/hicolor/24x24/apps/inkscape.png
/opt/local/share/icons/hicolor/256x256/apps/inkscape.png
/opt/local/share/icons/hicolor/32x32/apps/inkscape.png
/opt/local/share/icons/hicolor/48x48/apps/inkscape.png
/opt/local/share/icons/hicolor/icon-theme.cache
/opt/local/share/inkscape/clipart/draw-freely.ru.svg
/opt/local/share/inkscape/clipart/draw-freely.svg
/opt/local/share/inkscape/clipart/inkscape.logo.svg
/opt/local/share/inkscape/clipart/orav.svg
/opt/local/share/inkscape/clipart/README
/opt/local/share/inkscape/clipart/tux.svg
/opt/local/share/inkscape/examples/animated-clock.svg
/opt/local/share/inkscape/examples/art-nouveau-P3.svg
/opt/local/share/inkscape/examples/blend_modes.svg
/opt/local/share/inkscape/examples/car.svgz
/opt/local/share/inkscape/examples/data_uri.svg
/opt/local/share/inkscape/examples/eastern-motive-P4G.svg
/opt/local/share/inkscape/examples/filters.svg
/opt/local/share/inkscape/examples/flow-go.svg
/opt/local/share/inkscape/examples/flowsample.svg
/opt/local/share/inkscape/examples/gallardo.svgz
/opt/local/share/inkscape/examples/glass.svg
/opt/local/share/inkscape/examples/gradient-mesh-experimental.svgz
/opt/local/share/inkscape/examples/gradient.svg
/opt/local/share/inkscape/examples/i18n.svg
/opt/local/share/inkscape/examples/istest.pov
/opt/local/share/inkscape/examples/l-systems.svgz
/opt/local/share/inkscape/examples/lighting_filters.svg
/opt/local/share/inkscape/examples/live-path-effects-curvestitch.svg
/opt/local/share/inkscape/examples/live-path-effects-gears.svg
/opt/local/share/inkscape/examples/live-path-effects-pathalongpath.svg
/opt/local/share/inkscape/examples/markers.svg
/opt/local/share/inkscape/examples/README
/opt/local/share/inkscape/examples/replace-hue.svg
/opt/local/share/inkscape/examples/rope-3D.svg
/opt/local/share/inkscape/examples/stars.svgz
/opt/local/share/inkscape/examples/svgfont.svg
/opt/local/share/inkscape/examples/tesselation-P3.svg
/opt/local/share/inkscape/examples/text-on-path.svg
/opt/local/share/inkscape/examples/tiger.svgz
/opt/local/share/inkscape/examples/tref.svg
/opt/local/share/inkscape/examples/turbulence_filters.svg
/opt/local/share/inkscape/extensions/addnodes.inx
/opt/local/share/inkscape/extensions/addnodes.py
/opt/local/share/inkscape/extensions/ai_input.inx
/opt/local/share/inkscape/extensions/aisvg.inx
/opt/local/share/inkscape/extensions/aisvg.xslt
/opt/local/share/inkscape/extensions/alphabet_soup/2.svg
/opt/local/share/inkscape/extensions/alphabet_soup/3.svg
/opt/local/share/inkscape/extensions/alphabet_soup/6.svg
/opt/local/share/inkscape/extensions/alphabet_soup/7.svg
/opt/local/share/inkscape/extensions/alphabet_soup/a.svg
/opt/local/share/inkscape/extensions/alphabet_soup/abase.svg
/opt/local/share/inkscape/extensions/alphabet_soup/acap.svg
/opt/local/share/inkscape/extensions/alphabet_soup/b.svg
/opt/local/share/inkscape/extensions/alphabet_soup/bar.svg
/opt/local/share/inkscape/extensions/alphabet_soup/bar2.svg
/opt/local/share/inkscape/extensions/alphabet_soup/barcap.svg
/opt/local/share/inkscape/extensions/alphabet_soup/c.svg
	:

libs/poppler/poppler-data-0.4.3

preparation
curl -RO -C - http://poppler.freedesktop.org/poppler-data-0.4.3.tar.gz
tar xvzf poppler-data-0.4.3.tar.gz
installation
make prefix=/opt/local install
installed
/opt/local/share/poppler/cidToUnicode/Adobe-CNS1
/opt/local/share/poppler/cidToUnicode/Adobe-GB1
/opt/local/share/poppler/cidToUnicode/Adobe-Japan1
/opt/local/share/poppler/cidToUnicode/Adobe-Korea1
/opt/local/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-0
/opt/local/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-1
/opt/local/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-2
/opt/local/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-3
/opt/local/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-4
/opt/local/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-5
/opt/local/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-6
/opt/local/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-B5pc
/opt/local/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-ETen-B5
/opt/local/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-H-CID
/opt/local/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-H-Host
/opt/local/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-H-Mac
/opt/local/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-UCS2
/opt/local/share/poppler/cMap/Adobe-CNS1/B5-H
/opt/local/share/poppler/cMap/Adobe-CNS1/B5-V
/opt/local/share/poppler/cMap/Adobe-CNS1/B5pc-H
/opt/local/share/poppler/cMap/Adobe-CNS1/B5pc-UCS2
/opt/local/share/poppler/cMap/Adobe-CNS1/B5pc-UCS2C
/opt/local/share/poppler/cMap/Adobe-CNS1/B5pc-V
/opt/local/share/poppler/cMap/Adobe-CNS1/CNS-EUC-H
/opt/local/share/poppler/cMap/Adobe-CNS1/CNS-EUC-V
/opt/local/share/poppler/cMap/Adobe-CNS1/CNS1-H
/opt/local/share/poppler/cMap/Adobe-CNS1/CNS1-V
/opt/local/share/poppler/cMap/Adobe-CNS1/CNS2-H
/opt/local/share/poppler/cMap/Adobe-CNS1/CNS2-V
/opt/local/share/poppler/cMap/Adobe-CNS1/ETen-B5-H
/opt/local/share/poppler/cMap/Adobe-CNS1/ETen-B5-UCS2
/opt/local/share/poppler/cMap/Adobe-CNS1/ETen-B5-V
/opt/local/share/poppler/cMap/Adobe-CNS1/ETenms-B5-H
/opt/local/share/poppler/cMap/Adobe-CNS1/ETenms-B5-V
/opt/local/share/poppler/cMap/Adobe-CNS1/ETHK-B5-H
/opt/local/share/poppler/cMap/Adobe-CNS1/ETHK-B5-V
/opt/local/share/poppler/cMap/Adobe-CNS1/HKdla-B5-H
/opt/local/share/poppler/cMap/Adobe-CNS1/HKdla-B5-V
/opt/local/share/poppler/cMap/Adobe-CNS1/HKdlb-B5-H
/opt/local/share/poppler/cMap/Adobe-CNS1/HKdlb-B5-V
/opt/local/share/poppler/cMap/Adobe-CNS1/HKgccs-B5-H
/opt/local/share/poppler/cMap/Adobe-CNS1/HKgccs-B5-V
/opt/local/share/poppler/cMap/Adobe-CNS1/HKm314-B5-H
/opt/local/share/poppler/cMap/Adobe-CNS1/HKm314-B5-V
/opt/local/share/poppler/cMap/Adobe-CNS1/HKm471-B5-H
/opt/local/share/poppler/cMap/Adobe-CNS1/HKm471-B5-V
/opt/local/share/poppler/cMap/Adobe-CNS1/HKscs-B5-H
/opt/local/share/poppler/cMap/Adobe-CNS1/HKscs-B5-V
/opt/local/share/poppler/cMap/Adobe-CNS1/UCS2-B5pc
/opt/local/share/poppler/cMap/Adobe-CNS1/UCS2-ETen-B5
/opt/local/share/poppler/cMap/Adobe-CNS1/UniCNS-UCS2-H
/opt/local/share/poppler/cMap/Adobe-CNS1/UniCNS-UCS2-V
/opt/local/share/poppler/cMap/Adobe-CNS1/UniCNS-UTF16-H
/opt/local/share/poppler/cMap/Adobe-CNS1/UniCNS-UTF16-V
/opt/local/share/poppler/cMap/Adobe-CNS1/UniCNS-UTF32-H
/opt/local/share/poppler/cMap/Adobe-CNS1/UniCNS-UTF32-V
/opt/local/share/poppler/cMap/Adobe-CNS1/UniCNS-UTF8-H
/opt/local/share/poppler/cMap/Adobe-CNS1/UniCNS-UTF8-V
/opt/local/share/poppler/cMap/Adobe-GB1/Adobe-GB1-0
/opt/local/share/poppler/cMap/Adobe-GB1/Adobe-GB1-1
/opt/local/share/poppler/cMap/Adobe-GB1/Adobe-GB1-2
/opt/local/share/poppler/cMap/Adobe-GB1/Adobe-GB1-3
/opt/local/share/poppler/cMap/Adobe-GB1/Adobe-GB1-4
/opt/local/share/poppler/cMap/Adobe-GB1/Adobe-GB1-5
	:

libs/poppler/poppler-0.14.2

preparation
curl -RO -C - http://poppler.freedesktop.org/poppler-0.14.2.tar.gz
tar xvzf poppler-0.14.2.tar.gz
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' --prefix=/opt/local --disable-zlib --enable-libcurl --enable-xpdf-headers --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib 
make 
installed
/opt/local/bin/pdffonts
/opt/local/bin/pdfimages
/opt/local/bin/pdfinfo
/opt/local/bin/pdftoabw
/opt/local/bin/pdftohtml
/opt/local/bin/pdftoppm
/opt/local/bin/pdftops
/opt/local/bin/pdftotext
/opt/local/include/poppler/Annot.h
/opt/local/include/poppler/Array.h
/opt/local/include/poppler/BuiltinFont.h
/opt/local/include/poppler/BuiltinFontTables.h
/opt/local/include/poppler/CachedFile.h
/opt/local/include/poppler/Catalog.h
/opt/local/include/poppler/CharCodeToUnicode.h
/opt/local/include/poppler/CharTypes.h
/opt/local/include/poppler/CMap.h
/opt/local/include/poppler/CompactFontTables.h
/opt/local/include/poppler/cpp/poppler-document.h
/opt/local/include/poppler/cpp/poppler-embedded-file.h
/opt/local/include/poppler/cpp/poppler-font.h
/opt/local/include/poppler/cpp/poppler-global.h
/opt/local/include/poppler/cpp/poppler-page-transition.h
/opt/local/include/poppler/cpp/poppler-page.h
/opt/local/include/poppler/cpp/poppler-rectangle.h
/opt/local/include/poppler/cpp/poppler-toc.h
/opt/local/include/poppler/cpp/poppler-version.h
/opt/local/include/poppler/CurlCachedFile.h
/opt/local/include/poppler/CurlPDFDocBuilder.h
/opt/local/include/poppler/DateInfo.h
/opt/local/include/poppler/Decrypt.h
/opt/local/include/poppler/Dict.h
/opt/local/include/poppler/Error.h
/opt/local/include/poppler/ErrorCodes.h
/opt/local/include/poppler/FileSpec.h
/opt/local/include/poppler/fofi/FoFiBase.h
/opt/local/include/poppler/fofi/FoFiEncodings.h
/opt/local/include/poppler/fofi/FoFiTrueType.h
/opt/local/include/poppler/fofi/FoFiType1.h
/opt/local/include/poppler/fofi/FoFiType1C.h
/opt/local/include/poppler/FontEncodingTables.h
/opt/local/include/poppler/FontInfo.h
/opt/local/include/poppler/Form.h
/opt/local/include/poppler/Function.h
/opt/local/include/poppler/Gfx.h
/opt/local/include/poppler/GfxFont.h
/opt/local/include/poppler/GfxState.h
/opt/local/include/poppler/GfxState_helpers.h
/opt/local/include/poppler/glib/poppler-action.h
/opt/local/include/poppler/glib/poppler-annot.h
/opt/local/include/poppler/glib/poppler-attachment.h
/opt/local/include/poppler/glib/poppler-date.h
/opt/local/include/poppler/glib/poppler-document.h
/opt/local/include/poppler/glib/poppler-enums.h
/opt/local/include/poppler/glib/poppler-features.h
/opt/local/include/poppler/glib/poppler-form-field.h
/opt/local/include/poppler/glib/poppler-layer.h
/opt/local/include/poppler/glib/poppler-media.h
/opt/local/include/poppler/glib/poppler-movie.h
/opt/local/include/poppler/glib/poppler-page.h
/opt/local/include/poppler/glib/poppler.h
/opt/local/include/poppler/GlobalParams.h
/opt/local/include/poppler/goo/FixedPoint.h
/opt/local/include/poppler/goo/gfile.h
	:

libs/gtk+/gtkmm-2.21.5

preparation
curl -ROL -C - http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.21/gtkmm-2.21.5.tar.bz2
build
./configure --disable-dependency-tracking --enable-static CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make 
installed
/opt/local/include/gdkmm-2.4/gdkmm/bitmap.h
/opt/local/include/gdkmm-2.4/gdkmm/color.h
/opt/local/include/gdkmm-2.4/gdkmm/colormap.h
/opt/local/include/gdkmm-2.4/gdkmm/cursor.h
/opt/local/include/gdkmm-2.4/gdkmm/device.h
/opt/local/include/gdkmm-2.4/gdkmm/display.h
/opt/local/include/gdkmm-2.4/gdkmm/displaymanager.h
/opt/local/include/gdkmm-2.4/gdkmm/dragcontext.h
/opt/local/include/gdkmm-2.4/gdkmm/drawable.h
/opt/local/include/gdkmm-2.4/gdkmm/event.h
/opt/local/include/gdkmm-2.4/gdkmm/gc.h
/opt/local/include/gdkmm-2.4/gdkmm/general.h
/opt/local/include/gdkmm-2.4/gdkmm/image.h
/opt/local/include/gdkmm-2.4/gdkmm/list.h
/opt/local/include/gdkmm-2.4/gdkmm/pixbuf.h
/opt/local/include/gdkmm-2.4/gdkmm/pixbufanimation.h
/opt/local/include/gdkmm-2.4/gdkmm/pixbufanimationiter.h
/opt/local/include/gdkmm-2.4/gdkmm/pixbufformat.h
/opt/local/include/gdkmm-2.4/gdkmm/pixbufloader.h
/opt/local/include/gdkmm-2.4/gdkmm/pixmap.h
/opt/local/include/gdkmm-2.4/gdkmm/private/bitmap_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/color_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/colormap_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/cursor_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/device_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/display_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/displaymanager_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/dragcontext_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/drawable_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/event_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/gc_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/image_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/pixbuf_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/pixbufanimation_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/pixbufanimationiter_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/pixbufformat_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/pixbufloader_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/pixmap_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/rectangle_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/region_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/rgbcmap_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/screen_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/types_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/visual_p.h
/opt/local/include/gdkmm-2.4/gdkmm/private/window_p.h
/opt/local/include/gdkmm-2.4/gdkmm/rectangle.h
/opt/local/include/gdkmm-2.4/gdkmm/region.h
/opt/local/include/gdkmm-2.4/gdkmm/rgb.h
/opt/local/include/gdkmm-2.4/gdkmm/rgbcmap.h
/opt/local/include/gdkmm-2.4/gdkmm/screen.h
/opt/local/include/gdkmm-2.4/gdkmm/types.h
/opt/local/include/gdkmm-2.4/gdkmm/visual.h
/opt/local/include/gdkmm-2.4/gdkmm/window.h
/opt/local/include/gdkmm-2.4/gdkmm/wrap_init.h
/opt/local/include/gdkmm-2.4/gdkmm.h
/opt/local/include/gtkmm-2.4/gtkmm/aboutdialog.h
/opt/local/include/gtkmm-2.4/gtkmm/accelgroup.h
/opt/local/include/gtkmm-2.4/gtkmm/accelkey.h
/opt/local/include/gtkmm-2.4/gtkmm/accellabel.h
/opt/local/include/gtkmm-2.4/gtkmm/accelmap.h
/opt/local/include/gtkmm-2.4/gtkmm/action.h
/opt/local/include/gtkmm-2.4/gtkmm/actiongroup.h
/opt/local/include/gtkmm-2.4/gtkmm/activatable.h
/opt/local/include/gtkmm-2.4/gtkmm/adjustment.h
	:

libs/gtk+/atkmm-2.21.2

preparation
curl -ROL -C - http://ftp.gnome.org/pub/GNOME/sources/atkmm/2.21/atkmm-2.21.2.tar.bz2
tar xvjf atkmm-2.21.2.tar.bz2
build
./configure --disable-dependency-tracking --enable-static CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make 
installed
/opt/local/include/atkmm-1.6/atkmm/action.h
/opt/local/include/atkmm-1.6/atkmm/component.h
/opt/local/include/atkmm-1.6/atkmm/document.h
/opt/local/include/atkmm-1.6/atkmm/editabletext.h
/opt/local/include/atkmm-1.6/atkmm/hyperlink.h
/opt/local/include/atkmm-1.6/atkmm/hypertext.h
/opt/local/include/atkmm-1.6/atkmm/image.h
/opt/local/include/atkmm-1.6/atkmm/implementor.h
/opt/local/include/atkmm-1.6/atkmm/init.h
/opt/local/include/atkmm-1.6/atkmm/noopobject.h
/opt/local/include/atkmm-1.6/atkmm/object.h
/opt/local/include/atkmm-1.6/atkmm/objectaccessible.h
/opt/local/include/atkmm-1.6/atkmm/private/action_p.h
/opt/local/include/atkmm-1.6/atkmm/private/component_p.h
/opt/local/include/atkmm-1.6/atkmm/private/document_p.h
/opt/local/include/atkmm-1.6/atkmm/private/editabletext_p.h
/opt/local/include/atkmm-1.6/atkmm/private/hyperlink_p.h
/opt/local/include/atkmm-1.6/atkmm/private/hypertext_p.h
/opt/local/include/atkmm-1.6/atkmm/private/image_p.h
/opt/local/include/atkmm-1.6/atkmm/private/implementor_p.h
/opt/local/include/atkmm-1.6/atkmm/private/noopobject_p.h
/opt/local/include/atkmm-1.6/atkmm/private/object_p.h
/opt/local/include/atkmm-1.6/atkmm/private/objectaccessible_p.h
/opt/local/include/atkmm-1.6/atkmm/private/relation_p.h
/opt/local/include/atkmm-1.6/atkmm/private/relationset_p.h
/opt/local/include/atkmm-1.6/atkmm/private/selection_p.h
/opt/local/include/atkmm-1.6/atkmm/private/stateset_p.h
/opt/local/include/atkmm-1.6/atkmm/private/streamablecontent_p.h
/opt/local/include/atkmm-1.6/atkmm/private/table_p.h
/opt/local/include/atkmm-1.6/atkmm/private/text_p.h
/opt/local/include/atkmm-1.6/atkmm/private/value_p.h
/opt/local/include/atkmm-1.6/atkmm/relation.h
/opt/local/include/atkmm-1.6/atkmm/relationset.h
/opt/local/include/atkmm-1.6/atkmm/selection.h
/opt/local/include/atkmm-1.6/atkmm/stateset.h
/opt/local/include/atkmm-1.6/atkmm/streamablecontent.h
/opt/local/include/atkmm-1.6/atkmm/table.h
/opt/local/include/atkmm-1.6/atkmm/text.h
/opt/local/include/atkmm-1.6/atkmm/value.h
/opt/local/include/atkmm-1.6/atkmm/wrap_init.h
/opt/local/include/atkmm-1.6/atkmm.h
/opt/local/lib/atkmm-1.6/include/atkmmconfig.h
/opt/local/lib/libatkmm-1.6.1.dylib
/opt/local/lib/libatkmm-1.6.a
/opt/local/lib/libatkmm-1.6.dylib
/opt/local/lib/libatkmm-1.6.la
/opt/local/lib/pkgconfig/atkmm-1.6.pc
/opt/local/share/devhelp/books/atkmm-1.6/atkmm-1.6.devhelp2
/opt/local/share/doc/atkmm-1.6/reference/atkmm-1.6.tag
/opt/local/share/doc/atkmm-1.6/reference/html/annotated.html
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Action-members.html
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Action.html
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Action__inherit__graph.png
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Component-members.html
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Component.html
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Component__inherit__graph.png
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Document-members.html
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Document.html
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Document__inherit__graph.png
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Hyperlink-members.html
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Hyperlink.html
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Hyperlink__inherit__graph.png
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Image-members.html
/opt/local/share/doc/atkmm-1.6/reference/html/classAtk_1_1Image.html
	:

libs/pango/pangomm-2.26.2

preparation
curl -ROL -C - http://ftp.gnome.org/pub/gnome/sources/pangomm/2.26/pangomm-2.26.2.tar.bz2
tar xvjf pangomm-2.26.2.tar.bz2
build
./configure --disable-dependency-tracking --enable-static CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make 
installed
/opt/local/include/pangomm-1.4/pangomm/attributes.h
/opt/local/include/pangomm-1.4/pangomm/attriter.h
/opt/local/include/pangomm-1.4/pangomm/attrlist.h
/opt/local/include/pangomm-1.4/pangomm/cairofontmap.h
/opt/local/include/pangomm-1.4/pangomm/color.h
/opt/local/include/pangomm-1.4/pangomm/context.h
/opt/local/include/pangomm-1.4/pangomm/coverage.h
/opt/local/include/pangomm-1.4/pangomm/font.h
/opt/local/include/pangomm-1.4/pangomm/fontdescription.h
/opt/local/include/pangomm-1.4/pangomm/fontface.h
/opt/local/include/pangomm-1.4/pangomm/fontfamily.h
/opt/local/include/pangomm-1.4/pangomm/fontmap.h
/opt/local/include/pangomm-1.4/pangomm/fontmetrics.h
/opt/local/include/pangomm-1.4/pangomm/fontset.h
/opt/local/include/pangomm-1.4/pangomm/glyph.h
/opt/local/include/pangomm-1.4/pangomm/glyphstring.h
/opt/local/include/pangomm-1.4/pangomm/init.h
/opt/local/include/pangomm-1.4/pangomm/item.h
/opt/local/include/pangomm-1.4/pangomm/language.h
/opt/local/include/pangomm-1.4/pangomm/layout.h
/opt/local/include/pangomm-1.4/pangomm/layoutiter.h
/opt/local/include/pangomm-1.4/pangomm/layoutline.h
/opt/local/include/pangomm-1.4/pangomm/layoutrun.h
/opt/local/include/pangomm-1.4/pangomm/private/attributes_p.h
/opt/local/include/pangomm-1.4/pangomm/private/attriter_p.h
/opt/local/include/pangomm-1.4/pangomm/private/attrlist_p.h
/opt/local/include/pangomm-1.4/pangomm/private/cairofontmap_p.h
/opt/local/include/pangomm-1.4/pangomm/private/color_p.h
/opt/local/include/pangomm-1.4/pangomm/private/context_p.h
/opt/local/include/pangomm-1.4/pangomm/private/coverage_p.h
/opt/local/include/pangomm-1.4/pangomm/private/font_p.h
/opt/local/include/pangomm-1.4/pangomm/private/fontdescription_p.h
/opt/local/include/pangomm-1.4/pangomm/private/fontface_p.h
/opt/local/include/pangomm-1.4/pangomm/private/fontfamily_p.h
/opt/local/include/pangomm-1.4/pangomm/private/fontmap_p.h
/opt/local/include/pangomm-1.4/pangomm/private/fontmetrics_p.h
/opt/local/include/pangomm-1.4/pangomm/private/fontset_p.h
/opt/local/include/pangomm-1.4/pangomm/private/glyph_p.h
/opt/local/include/pangomm-1.4/pangomm/private/glyphstring_p.h
/opt/local/include/pangomm-1.4/pangomm/private/item_p.h
/opt/local/include/pangomm-1.4/pangomm/private/language_p.h
/opt/local/include/pangomm-1.4/pangomm/private/layout_p.h
/opt/local/include/pangomm-1.4/pangomm/private/layoutiter_p.h
/opt/local/include/pangomm-1.4/pangomm/private/layoutline_p.h
/opt/local/include/pangomm-1.4/pangomm/private/layoutrun_p.h
/opt/local/include/pangomm-1.4/pangomm/private/rectangle_p.h
/opt/local/include/pangomm-1.4/pangomm/private/renderer_p.h
/opt/local/include/pangomm-1.4/pangomm/private/tabarray_p.h
/opt/local/include/pangomm-1.4/pangomm/rectangle.h
/opt/local/include/pangomm-1.4/pangomm/renderer.h
/opt/local/include/pangomm-1.4/pangomm/tabarray.h
/opt/local/include/pangomm-1.4/pangomm/types.h
/opt/local/include/pangomm-1.4/pangomm/wrap_init.h
/opt/local/include/pangomm-1.4/pangomm.h
/opt/local/lib/libpangomm-1.4.1.dylib
/opt/local/lib/libpangomm-1.4.a
/opt/local/lib/libpangomm-1.4.dylib
/opt/local/lib/libpangomm-1.4.la
/opt/local/lib/pangomm-1.4/include/pangommconfig.h
/opt/local/lib/pkgconfig/pangomm-1.4.pc
/opt/local/share/devhelp/books/pangomm-1.4/pangomm-1.4.devhelp2
/opt/local/share/doc/pangomm-1.4/images/gtkmm_logo.gif
/opt/local/share/doc/pangomm-1.4/images/top.gif
/opt/local/share/doc/pangomm-1.4/reference/html/annotated.html
	:

libs/cairo/cairomm-1.8.4

preparation
curl -RO -C - http://cairographics.org/releases/cairomm-1.8.4.tar.gz
tar xvzf cairomm-1.8.4.tar.gz
build
./configure --disable-dependency-tracking --enable-static 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make 
installed
/opt/local/include/cairomm-1.0/cairomm/cairomm.h
/opt/local/include/cairomm-1.0/cairomm/context.h
/opt/local/include/cairomm-1.0/cairomm/enums.h
/opt/local/include/cairomm-1.0/cairomm/exception.h
/opt/local/include/cairomm-1.0/cairomm/fontface.h
/opt/local/include/cairomm-1.0/cairomm/fontoptions.h
/opt/local/include/cairomm-1.0/cairomm/matrix.h
/opt/local/include/cairomm-1.0/cairomm/path.h
/opt/local/include/cairomm-1.0/cairomm/pattern.h
/opt/local/include/cairomm-1.0/cairomm/quartz_font.h
/opt/local/include/cairomm-1.0/cairomm/quartz_surface.h
/opt/local/include/cairomm-1.0/cairomm/refptr.h
/opt/local/include/cairomm-1.0/cairomm/scaledfont.h
/opt/local/include/cairomm-1.0/cairomm/surface.h
/opt/local/include/cairomm-1.0/cairomm/types.h
/opt/local/include/cairomm-1.0/cairomm/win32_font.h
/opt/local/include/cairomm-1.0/cairomm/win32_surface.h
/opt/local/include/cairomm-1.0/cairomm/xlib_surface.h
/opt/local/lib/cairomm-1.0/include/cairommconfig.h
/opt/local/lib/libcairomm-1.0.1.dylib
/opt/local/lib/libcairomm-1.0.a
/opt/local/lib/libcairomm-1.0.dylib
/opt/local/lib/libcairomm-1.0.la
/opt/local/lib/pkgconfig/cairomm-1.0.pc
/opt/local/lib/pkgconfig/cairomm-ft-1.0.pc
/opt/local/lib/pkgconfig/cairomm-pdf-1.0.pc
/opt/local/lib/pkgconfig/cairomm-png-1.0.pc
/opt/local/lib/pkgconfig/cairomm-ps-1.0.pc
/opt/local/lib/pkgconfig/cairomm-quartz-1.0.pc
/opt/local/lib/pkgconfig/cairomm-quartz-font-1.0.pc
/opt/local/lib/pkgconfig/cairomm-quartz-image-1.0.pc
/opt/local/lib/pkgconfig/cairomm-svg-1.0.pc
/opt/local/lib/pkgconfig/cairomm-xlib-1.0.pc
/opt/local/share/devhelp/books/cairomm-1.0/cairomm-1.0.devhelp2
/opt/local/share/doc/cairomm-1.0/reference/cairomm-1.0.tag
/opt/local/share/doc/cairomm-1.0/reference/html/annotated.html
/opt/local/share/doc/cairomm-1.0/reference/html/cairomm.css
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1Context-members.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1Context.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1FontFace-members.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1FontFace.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1FontOptions-members.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1FontOptions.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1FtFontFace-members.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1FtFontFace.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1FtScaledFont-members.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1FtScaledFont.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1GlitzSurface-members.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1GlitzSurface.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1Gradient-members.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1Gradient.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1ImageSurface-members.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1ImageSurface.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1LinearGradient-members.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1LinearGradient.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1logic__error-members.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1logic__error.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1Matrix-members.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1Matrix.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1Path-members.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1Path.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1Pattern-members.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1Pattern.html
/opt/local/share/doc/cairomm-1.0/reference/html/classCairo_1_1PdfSurface-members.html
	:

libs/glibmm-2.25.3

preparation
curl -ROL -C - http://ftp.gnome.org/pub/gnome/sources/glibmm/2.25/glibmm-2.25.3.tar.bz2
tar xvjf glibmm-2.25.3.tar.bz2
build
./configure --disable-dependency-tracking --enable-static CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make 
installed
/opt/local/include/giomm-2.4/giomm/appinfo.h
/opt/local/include/giomm-2.4/giomm/application.h
/opt/local/include/giomm-2.4/giomm/asyncresult.h
/opt/local/include/giomm-2.4/giomm/bufferedinputstream.h
/opt/local/include/giomm-2.4/giomm/bufferedoutputstream.h
/opt/local/include/giomm-2.4/giomm/cancellable.h
/opt/local/include/giomm-2.4/giomm/contenttype.h
/opt/local/include/giomm-2.4/giomm/credentials.h
/opt/local/include/giomm-2.4/giomm/datainputstream.h
/opt/local/include/giomm-2.4/giomm/dataoutputstream.h
/opt/local/include/giomm-2.4/giomm/dbusauthobserver.h
/opt/local/include/giomm-2.4/giomm/dbusconnection.h
/opt/local/include/giomm-2.4/giomm/dbusmessage.h
/opt/local/include/giomm-2.4/giomm/dbusmethodinvocation.h
/opt/local/include/giomm-2.4/giomm/dbusownname.h
/opt/local/include/giomm-2.4/giomm/dbusserver.h
/opt/local/include/giomm-2.4/giomm/desktopappinfo.h
/opt/local/include/giomm-2.4/giomm/drive.h
/opt/local/include/giomm-2.4/giomm/emblem.h
/opt/local/include/giomm-2.4/giomm/emblemedicon.h
/opt/local/include/giomm-2.4/giomm/enums.h
/opt/local/include/giomm-2.4/giomm/error.h
/opt/local/include/giomm-2.4/giomm/file.h
/opt/local/include/giomm-2.4/giomm/fileattributeinfo.h
/opt/local/include/giomm-2.4/giomm/fileattributeinfolist.h
/opt/local/include/giomm-2.4/giomm/fileenumerator.h
/opt/local/include/giomm-2.4/giomm/fileicon.h
/opt/local/include/giomm-2.4/giomm/fileinfo.h
/opt/local/include/giomm-2.4/giomm/fileinputstream.h
/opt/local/include/giomm-2.4/giomm/fileiostream.h
/opt/local/include/giomm-2.4/giomm/filemonitor.h
/opt/local/include/giomm-2.4/giomm/filenamecompleter.h
/opt/local/include/giomm-2.4/giomm/fileoutputstream.h
/opt/local/include/giomm-2.4/giomm/filterinputstream.h
/opt/local/include/giomm-2.4/giomm/filteroutputstream.h
/opt/local/include/giomm-2.4/giomm/icon.h
/opt/local/include/giomm-2.4/giomm/inetaddress.h
/opt/local/include/giomm-2.4/giomm/inetsocketaddress.h
/opt/local/include/giomm-2.4/giomm/init.h
/opt/local/include/giomm-2.4/giomm/initable.h
/opt/local/include/giomm-2.4/giomm/inputstream.h
/opt/local/include/giomm-2.4/giomm/iostream.h
/opt/local/include/giomm-2.4/giomm/loadableicon.h
/opt/local/include/giomm-2.4/giomm/memoryinputstream.h
/opt/local/include/giomm-2.4/giomm/memoryoutputstream.h
/opt/local/include/giomm-2.4/giomm/mount.h
/opt/local/include/giomm-2.4/giomm/mountoperation.h
/opt/local/include/giomm-2.4/giomm/networkaddress.h
/opt/local/include/giomm-2.4/giomm/networkservice.h
/opt/local/include/giomm-2.4/giomm/outputstream.h
/opt/local/include/giomm-2.4/giomm/private/appinfo_p.h
/opt/local/include/giomm-2.4/giomm/private/application_p.h
/opt/local/include/giomm-2.4/giomm/private/asyncresult_p.h
/opt/local/include/giomm-2.4/giomm/private/bufferedinputstream_p.h
/opt/local/include/giomm-2.4/giomm/private/bufferedoutputstream_p.h
/opt/local/include/giomm-2.4/giomm/private/cancellable_p.h
/opt/local/include/giomm-2.4/giomm/private/credentials_p.h
/opt/local/include/giomm-2.4/giomm/private/datainputstream_p.h
/opt/local/include/giomm-2.4/giomm/private/dataoutputstream_p.h
/opt/local/include/giomm-2.4/giomm/private/dbusauthobserver_p.h
/opt/local/include/giomm-2.4/giomm/private/dbusconnection_p.h
/opt/local/include/giomm-2.4/giomm/private/dbusmessage_p.h
/opt/local/include/giomm-2.4/giomm/private/dbusmethodinvocation_p.h
/opt/local/include/giomm-2.4/giomm/private/dbusownname_p.h
	:

libs/libsigc++-2.2.8

preparation
curl -ROL -C - http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/libsigc++-2.2.8.tar.bz2
tar xvjf libsigc++-2.2.8.tar.bz2
build
./configure --disable-dependency-tracking --enable-static 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/adaptors.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/bind.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/bind_return.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/bound_argument.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/compose.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/deduce_result_type.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/exception_catch.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/hide.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/lambda/base.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/lambda/group.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/lambda/lambda.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/lambda/operator.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/lambda/select.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/retype.h
/opt/local/include/sigc++-2.0/sigc++/adaptors/retype_return.h
/opt/local/include/sigc++-2.0/sigc++/bind.h
/opt/local/include/sigc++-2.0/sigc++/bind_return.h
/opt/local/include/sigc++-2.0/sigc++/class_slot.h
/opt/local/include/sigc++-2.0/sigc++/connection.h
/opt/local/include/sigc++-2.0/sigc++/functors/functor_trait.h
/opt/local/include/sigc++-2.0/sigc++/functors/functors.h
/opt/local/include/sigc++-2.0/sigc++/functors/mem_fun.h
/opt/local/include/sigc++-2.0/sigc++/functors/ptr_fun.h
/opt/local/include/sigc++-2.0/sigc++/functors/slot.h
/opt/local/include/sigc++-2.0/sigc++/functors/slot_base.h
/opt/local/include/sigc++-2.0/sigc++/hide.h
/opt/local/include/sigc++-2.0/sigc++/limit_reference.h
/opt/local/include/sigc++-2.0/sigc++/method_slot.h
/opt/local/include/sigc++-2.0/sigc++/object.h
/opt/local/include/sigc++-2.0/sigc++/object_slot.h
/opt/local/include/sigc++-2.0/sigc++/reference_wrapper.h
/opt/local/include/sigc++-2.0/sigc++/retype.h
/opt/local/include/sigc++-2.0/sigc++/retype_return.h
/opt/local/include/sigc++-2.0/sigc++/sigc++.h
/opt/local/include/sigc++-2.0/sigc++/signal.h
/opt/local/include/sigc++-2.0/sigc++/signal_base.h
/opt/local/include/sigc++-2.0/sigc++/slot.h
/opt/local/include/sigc++-2.0/sigc++/trackable.h
/opt/local/include/sigc++-2.0/sigc++/type_traits.h
/opt/local/include/sigc++-2.0/sigc++/visit_each.h
/opt/local/lib/libsigc-2.0.0.dylib
/opt/local/lib/libsigc-2.0.a
/opt/local/lib/libsigc-2.0.dylib
/opt/local/lib/libsigc-2.0.la
/opt/local/lib/pkgconfig/sigc++-2.0.pc
/opt/local/lib/sigc++-2.0/include/sigc++config.h
/opt/local/share/devhelp/books/libsigc++-2.0/libsigc++-2.0.devhelp2
/opt/local/share/doc/libsigc++-2.0/images/libsigc_logo.gif
/opt/local/share/doc/libsigc++-2.0/images/top.gif
/opt/local/share/doc/libsigc++-2.0/index.html
/opt/local/share/doc/libsigc++-2.0/reference/html/annotated.html
/opt/local/share/doc/libsigc++-2.0/reference/html/classes.html
/opt/local/share/doc/libsigc++-2.0/reference/html/classsigc_1_1bound__argument-members.html
/opt/local/share/doc/libsigc++-2.0/reference/html/classsigc_1_1bound__argument.html
/opt/local/share/doc/libsigc++-2.0/reference/html/classsigc_1_1bound__argument_3_01const__reference__wrapper_3_01T__wrapped_01_4_01_4-members.html
/opt/local/share/doc/libsigc++-2.0/reference/html/classsigc_1_1bound__argument_3_01const__reference__wrapper_3_01T__wrapped_01_4_01_4.html
/opt/local/share/doc/libsigc++-2.0/reference/html/classsigc_1_1bound__argument_3_01reference__wrapper_3_01T__wrapped_01_4_01_4-members.html
/opt/local/share/doc/libsigc++-2.0/reference/html/classsigc_1_1bound__argument_3_01reference__wrapper_3_01T__wrapped_01_4_01_4.html
/opt/local/share/doc/libsigc++-2.0/reference/html/classsigc_1_1bound__const__mem__functor0-members.html
/opt/local/share/doc/libsigc++-2.0/reference/html/classsigc_1_1bound__const__mem__functor0.html
/opt/local/share/doc/libsigc++-2.0/reference/html/classsigc_1_1bound__const__mem__functor0__inherit__graph.png
/opt/local/share/doc/libsigc++-2.0/reference/html/classsigc_1_1bound__const__mem__functor1-members.html
/opt/local/share/doc/libsigc++-2.0/reference/html/classsigc_1_1bound__const__mem__functor1.html
	:

libs/gc-7.1

preparation
curl -ROL -C - http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.1.tar.gz
tar xvzf gc-7.1.tar.gz
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *"Mach-O"*" bundle"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean &&
./configure 'CFLAGS=-arch x86_64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXFLAGS=-arch x86_64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch x86_64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=x86_64-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  listup_binaries > .arch_x86_64/.binaries.lst && tar --files-from=.arch_x86_64/.binaries.lst -cf - | (cd .arch_x86_64 && tar xf -) &&
  listup_headers > .arch_x86_64/.headers.lst && tar --files-from=.arch_x86_64/.headers.lst -cf - | (cd .arch_x86_64 && tar xf -)
} &&
make clean &&
./configure 'CFLAGS=-arch i386 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXFLAGS=-arch i386 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch i386 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=i386-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean &&
./configure 'CFLAGS=-arch ppc64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXFLAGS=-arch ppc64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc64 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=ppc64-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  listup_binaries > .arch_ppc64/.binaries.lst && tar --files-from=.arch_ppc64/.binaries.lst -cf - | (cd .arch_ppc64 && tar xf -) &&
  listup_headers > .arch_ppc64/.headers.lst && tar --files-from=.arch_ppc64/.headers.lst -cf - | (cd .arch_ppc64 && tar xf -)
} &&
make clean &&
./configure 'CFLAGS=-arch ppc -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXFLAGS=-arch ppc -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=ppc-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_ppc64/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_x86_64/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__)

`cat .arch_ppc/"$h"`

#elif defined(__ppc64__)

`cat .arch_ppc64/"$h"`

#elif defined(__i386__)

`cat .arch_i386/"$h"`

#elif defined(__x86_64__)

`cat .arch_x86_64/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/include/gc/gc.h
/opt/local/include/gc/gc_allocator.h
/opt/local/include/gc/gc_amiga_redirects.h
/opt/local/include/gc/gc_backptr.h
/opt/local/include/gc/gc_config_macros.h
/opt/local/include/gc/gc_cpp.h
/opt/local/include/gc/gc_gcj.h
/opt/local/include/gc/gc_inline.h
/opt/local/include/gc/gc_mark.h
/opt/local/include/gc/gc_pthread_redirects.h
/opt/local/include/gc/gc_tiny_fl.h
/opt/local/include/gc/gc_typed.h
/opt/local/include/gc/gc_version.h
/opt/local/include/gc/leak_detector.h
/opt/local/include/gc/new_gc_alloc.h
/opt/local/include/gc/weakpointer.h
/opt/local/include/gc.h
/opt/local/include/gc_cpp.h
/opt/local/lib/libcord.1.0.3.dylib
/opt/local/lib/libcord.1.dylib
/opt/local/lib/libcord.a
/opt/local/lib/libcord.dylib
/opt/local/lib/libcord.la
/opt/local/lib/libgc.1.0.3.dylib
/opt/local/lib/libgc.1.dylib
/opt/local/lib/libgc.a
/opt/local/lib/libgc.dylib
/opt/local/lib/libgc.la
/opt/local/lib/pkgconfig/bdw-gc.pc
/opt/local/share/gc/barrett_diagram
/opt/local/share/gc/debugging.html
/opt/local/share/gc/gc.man
/opt/local/share/gc/gcdescr.html
/opt/local/share/gc/gcinterface.html
/opt/local/share/gc/leak.html
/opt/local/share/gc/overview.html
/opt/local/share/gc/porting.html
/opt/local/share/gc/README
/opt/local/share/gc/README.amiga
/opt/local/share/gc/README.arm.cross
/opt/local/share/gc/README.autoconf
/opt/local/share/gc/README.changes
/opt/local/share/gc/README.contributors
/opt/local/share/gc/README.cords
/opt/local/share/gc/README.darwin
/opt/local/share/gc/README.DGUX386
/opt/local/share/gc/README.dj
/opt/local/share/gc/README.environment
/opt/local/share/gc/README.ews4800
/opt/local/share/gc/README.hp
/opt/local/share/gc/README.linux
/opt/local/share/gc/README.Mac
/opt/local/share/gc/README.MacOSX
/opt/local/share/gc/README.macros
/opt/local/share/gc/README.OS2
/opt/local/share/gc/README.rs6000
/opt/local/share/gc/README.sgi
/opt/local/share/gc/README.solaris2
/opt/local/share/gc/README.uts
/opt/local/share/gc/README.win32
/opt/local/share/gc/README.win64
/opt/local/share/gc/scale.html
/opt/local/share/gc/simple_example.html
/opt/local/share/gc/tree.html
	:

img/gimp/gimp-2.6.10

preparation
curl -RO -C - ftp://ftp.gimp.org/pub/gimp/v2.6/gimp-2.6.10.tar.bz2
tar xvjf gimp-2.6.10.tar.bz2
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" bundle"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean &&
./configure 'CFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=i386-apple-darwin --build=`sh config.guess` --prefix=/opt/local --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --disable-python --enable-static &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean &&
./configure 'CFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' --host=ppc-apple-darwin --build=`sh config.guess` --prefix=/opt/local --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --disable-python --enable-static &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__) || defined(__ppc64__)

`cat .arch_ppc/"$h"`

#elif defined(__i386__) || defined(__x86_64__)

`cat .arch_i386/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/bin/gimp
/opt/local/bin/gimp-2.6
/opt/local/bin/gimp-console
/opt/local/bin/gimp-console-2.6
/opt/local/bin/gimptool-2.0
/opt/local/etc/gimp/2.0/controllerrc
/opt/local/etc/gimp/2.0/gimprc
/opt/local/etc/gimp/2.0/gtkrc
/opt/local/etc/gimp/2.0/menurc
/opt/local/etc/gimp/2.0/ps-menurc
/opt/local/etc/gimp/2.0/sessionrc
/opt/local/etc/gimp/2.0/templaterc
/opt/local/etc/gimp/2.0/unitrc
/opt/local/include/gimp-2.0/libgimp/gimp.h
/opt/local/include/gimp-2.0/libgimp/gimp_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpaspectpreview.h
/opt/local/include/gimp-2.0/libgimp/gimpbrush_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpbrushes.h
/opt/local/include/gimp-2.0/libgimp/gimpbrushes_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpbrushmenu.h
/opt/local/include/gimp-2.0/libgimp/gimpbrushselect.h
/opt/local/include/gimp-2.0/libgimp/gimpbrushselect_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpbrushselectbutton.h
/opt/local/include/gimp-2.0/libgimp/gimpbuffer_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpchannel.h
/opt/local/include/gimp-2.0/libgimp/gimpchannel_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpcolor_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpcompat.h
/opt/local/include/gimp-2.0/libgimp/gimpcontext_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpconvert_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpdisplay_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpdrawable.h
/opt/local/include/gimp-2.0/libgimp/gimpdrawable_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpdrawablepreview.h
/opt/local/include/gimp-2.0/libgimp/gimpdrawabletransform_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpedit_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpenums.h
/opt/local/include/gimp-2.0/libgimp/gimpexport.h
/opt/local/include/gimp-2.0/libgimp/gimpfileops_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpfloatingsel_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpfontmenu.h
/opt/local/include/gimp-2.0/libgimp/gimpfonts_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpfontselect.h
/opt/local/include/gimp-2.0/libgimp/gimpfontselect_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpfontselectbutton.h
/opt/local/include/gimp-2.0/libgimp/gimpgimprc.h
/opt/local/include/gimp-2.0/libgimp/gimpgimprc_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpgradient_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpgradientmenu.h
/opt/local/include/gimp-2.0/libgimp/gimpgradients.h
/opt/local/include/gimp-2.0/libgimp/gimpgradients_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpgradientselect.h
/opt/local/include/gimp-2.0/libgimp/gimpgradientselect_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpgradientselectbutton.h
/opt/local/include/gimp-2.0/libgimp/gimpgrid_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpguides_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimphelp_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpimage.h
/opt/local/include/gimp-2.0/libgimp/gimpimage_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpimagecombobox.h
/opt/local/include/gimp-2.0/libgimp/gimpitemcombobox.h
/opt/local/include/gimp-2.0/libgimp/gimplayer.h
/opt/local/include/gimp-2.0/libgimp/gimplayer_pdb.h
/opt/local/include/gimp-2.0/libgimp/gimpmenu.h
	:

img/gegl/gegl-0.1.2

preparation
curl -RO -C - ftp://ftp.gimp.org/pub/gegl/0.1/gegl-0.1.2.tar.bz2
tar xvjf gegl-0.1.2.tar.bz2
(cd gegl-0.1.2 &&
patch -p0 -b -z.org < ../gegl-0.1.2-ubagami.patch
)
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" bundle"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean &&
./configure 'CFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=i386-apple-darwin --build=`sh config.guess` --prefix=/opt/local --disable-docs --enable-static &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean &&
./configure 'CFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=ppc-apple-darwin --build=`sh config.guess` --prefix=/opt/local --disable-docs --enable-static &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__) || defined(__ppc64__)

`cat .arch_ppc/"$h"`

#elif defined(__i386__) || defined(__x86_64__)

`cat .arch_i386/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
patch
--- ./gegl/buffer/gegl-buffer.c~	2010-02-08 00:31:58.000000000 +0900
+++ ./gegl/buffer/gegl-buffer.c	2010-08-26 01:48:29.000000000 +0900
@@ -80,7 +80,8 @@
 /* #define GEGL_BUFFER_DEBUG_ALLOCATIONS to print allocation stack
  * traces for leaked GeglBuffers using GNU C libs backtrace_symbols()
  */
-#ifndef G_OS_WIN32
+#if defined(G_OS_WIN32) || __MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_OS_X_VERSION_10_5
+#else
 #include <execinfo.h>
 #endif
 
@@ -876,7 +877,7 @@
 gegl_buffer_get_alloc_stack (void)
 {
   char  *result         = NULL;
-#ifdef G_OS_WIN32
+#if defined(G_OS_WIN32) || __MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_OS_X_VERSION_10_5
   result = g_strdup ("backtrack not available on win32\n");
 #else
   void  *functions[MAX_N_FUNCTIONS];
installed
/opt/local/bin/gegl
/opt/local/include/gegl-0.1/gegl-buffer.h
/opt/local/include/gegl-0.1/gegl-chant.h
/opt/local/include/gegl-0.1/gegl-color.h
/opt/local/include/gegl-0.1/gegl-curve.h
/opt/local/include/gegl-0.1/gegl-lookup.h
/opt/local/include/gegl-0.1/gegl-matrix.h
/opt/local/include/gegl-0.1/gegl-paramspecs.h
/opt/local/include/gegl-0.1/gegl-path.h
/opt/local/include/gegl-0.1/gegl-plugin.h
/opt/local/include/gegl-0.1/gegl-simd.h
/opt/local/include/gegl-0.1/gegl-types.h
/opt/local/include/gegl-0.1/gegl-utils.h
/opt/local/include/gegl-0.1/gegl-version.h
/opt/local/include/gegl-0.1/gegl.h
/opt/local/include/gegl-0.1/operation/gegl-operation-area-filter.h
/opt/local/include/gegl-0.1/operation/gegl-operation-composer.h
/opt/local/include/gegl-0.1/operation/gegl-operation-composer3.h
/opt/local/include/gegl-0.1/operation/gegl-operation-filter.h
/opt/local/include/gegl-0.1/operation/gegl-operation-meta.h
/opt/local/include/gegl-0.1/operation/gegl-operation-point-composer.h
/opt/local/include/gegl-0.1/operation/gegl-operation-point-composer3.h
/opt/local/include/gegl-0.1/operation/gegl-operation-point-filter.h
/opt/local/include/gegl-0.1/operation/gegl-operation-point-render.h
/opt/local/include/gegl-0.1/operation/gegl-operation-sink.h
/opt/local/include/gegl-0.1/operation/gegl-operation-source.h
/opt/local/include/gegl-0.1/operation/gegl-operation-temporal.h
/opt/local/include/gegl-0.1/operation/gegl-operation.h
/opt/local/lib/gegl-0.1/add.a
/opt/local/lib/gegl-0.1/add.la
/opt/local/lib/gegl-0.1/add.so
/opt/local/lib/gegl-0.1/affine.a
/opt/local/lib/gegl-0.1/affine.la
/opt/local/lib/gegl-0.1/affine.so
/opt/local/lib/gegl-0.1/bilateral-filter.a
/opt/local/lib/gegl-0.1/bilateral-filter.la
/opt/local/lib/gegl-0.1/bilateral-filter.so
/opt/local/lib/gegl-0.1/box-blur.a
/opt/local/lib/gegl-0.1/box-blur.la
/opt/local/lib/gegl-0.1/box-blur.so
/opt/local/lib/gegl-0.1/brightness-contrast.a
/opt/local/lib/gegl-0.1/brightness-contrast.la
/opt/local/lib/gegl-0.1/brightness-contrast.so
/opt/local/lib/gegl-0.1/buffer-sink.a
/opt/local/lib/gegl-0.1/buffer-sink.la
/opt/local/lib/gegl-0.1/buffer-sink.so
/opt/local/lib/gegl-0.1/buffer-source.a
/opt/local/lib/gegl-0.1/buffer-source.la
/opt/local/lib/gegl-0.1/buffer-source.so
/opt/local/lib/gegl-0.1/c2g.a
/opt/local/lib/gegl-0.1/c2g.la
/opt/local/lib/gegl-0.1/c2g.so
/opt/local/lib/gegl-0.1/checkerboard.a
/opt/local/lib/gegl-0.1/checkerboard.la
/opt/local/lib/gegl-0.1/checkerboard.so
/opt/local/lib/gegl-0.1/clear.a
/opt/local/lib/gegl-0.1/clear.la
/opt/local/lib/gegl-0.1/clear.so
/opt/local/lib/gegl-0.1/clone.a
/opt/local/lib/gegl-0.1/clone.la
/opt/local/lib/gegl-0.1/clone.so
/opt/local/lib/gegl-0.1/color-burn.a
/opt/local/lib/gegl-0.1/color-burn.la
/opt/local/lib/gegl-0.1/color-burn.so
	:

img/gegl/libopenraw-0.0.8

preparation
curl -RO -C - http://libopenraw.freedesktop.org/download/libopenraw-0.0.8.tar.gz
tar xvzf libopenraw-0.0.8.tar.gz
(cd libopenraw-0.0.8 &&
patch -p0 -b -z.org < ../libopenraw-0.0.8-ubagami.patch
)
build
./configure --disable-dependency-tracking CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include LDFLAGS='-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make
patch
--- ./testsuite/testsuite.cpp~	2009-02-22 08:30:14.000000000 +0900
+++ ./testsuite/testsuite.cpp	2010-08-25 23:51:19.000000000 +0900
@@ -853,7 +853,11 @@
             break;
         case 'd':
             if(optarg[0] != '/') {
+#if 0
                 char * dir = get_current_dir_name();
+#else
+                char * dir = getwd(NULL);
+#endif
                 download_dir = dir;
                 download_dir += '/';
                 download_dir += optarg;
installed
/opt/local/include/libopenraw-1.0/libopenraw/bitmapdata.h
/opt/local/include/libopenraw-1.0/libopenraw/consts.h
/opt/local/include/libopenraw-1.0/libopenraw/debug.h
/opt/local/include/libopenraw-1.0/libopenraw/demosaic.h
/opt/local/include/libopenraw-1.0/libopenraw/exif.h
/opt/local/include/libopenraw-1.0/libopenraw/io.h
/opt/local/include/libopenraw-1.0/libopenraw/libopenraw.h
/opt/local/include/libopenraw-1.0/libopenraw/metadata.h
/opt/local/include/libopenraw-1.0/libopenraw/rawdata.h
/opt/local/include/libopenraw-1.0/libopenraw/rawfile.h
/opt/local/include/libopenraw-1.0/libopenraw/thumbnails.h
/opt/local/include/libopenraw-1.0/libopenraw/types.h
/opt/local/include/libopenraw-1.0/libopenraw-gnome/gdkpixbuf.h
/opt/local/lib/gtk-2.0/2.10.0/loaders/libopenraw_pixbuf.a
/opt/local/lib/gtk-2.0/2.10.0/loaders/libopenraw_pixbuf.la
/opt/local/lib/gtk-2.0/2.10.0/loaders/libopenraw_pixbuf.so
/opt/local/lib/libopenraw.1.dylib
/opt/local/lib/libopenraw.a
/opt/local/lib/libopenraw.dylib
/opt/local/lib/libopenraw.la
/opt/local/lib/libopenrawgnome.1.dylib
/opt/local/lib/libopenrawgnome.a
/opt/local/lib/libopenrawgnome.dylib
/opt/local/lib/libopenrawgnome.la
/opt/local/lib/pkgconfig/libopenraw-1.0.pc
/opt/local/lib/pkgconfig/libopenraw-gnome-1.0.pc

img/gegl/babl-0.1.2

preparation
curl -RO -C - ftp://ftp.gtk.org/pub/babl/0.1/babl-0.1.2.tar.bz2
tar xvjf babl-0.1.2.tar.bz2
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean &&
./configure 'CFLAGS=-arch x86_64 -mmacosx-version-min=10.4' 'CXXFLAGS=-arch x86_64 -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch x86_64 -mmacosx-version-min=10.4' --host=x86_64-apple-darwin --build=`sh config.guess` --prefix=/opt/local --enable-static &&
make &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  listup_binaries > .arch_x86_64/.binaries.lst && tar --files-from=.arch_x86_64/.binaries.lst -cf - | (cd .arch_x86_64 && tar xf -) &&
  listup_headers > .arch_x86_64/.headers.lst && tar --files-from=.arch_x86_64/.headers.lst -cf - | (cd .arch_x86_64 && tar xf -)
} &&
make clean &&
./configure 'CFLAGS=-arch i386 -mmacosx-version-min=10.4' 'CXXFLAGS=-arch i386 -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch i386 -mmacosx-version-min=10.4' --host=i386-apple-darwin --build=`sh config.guess` --prefix=/opt/local --enable-static &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean &&
./configure 'CFLAGS=-arch ppc64 -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc64 -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc64 -mmacosx-version-min=10.4' --host=ppc64-apple-darwin --build=`sh config.guess` --prefix=/opt/local --enable-static &&
make &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  listup_binaries > .arch_ppc64/.binaries.lst && tar --files-from=.arch_ppc64/.binaries.lst -cf - | (cd .arch_ppc64 && tar xf -) &&
  listup_headers > .arch_ppc64/.headers.lst && tar --files-from=.arch_ppc64/.headers.lst -cf - | (cd .arch_ppc64 && tar xf -)
} &&
make clean &&
./configure 'CFLAGS=-arch ppc -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -mmacosx-version-min=10.4' --host=ppc-apple-darwin --build=`sh config.guess` --prefix=/opt/local --enable-static &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_ppc64/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_x86_64/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__)

`cat .arch_ppc/"$h"`

#elif defined(__ppc64__)

`cat .arch_ppc64/"$h"`

#elif defined(__i386__)

`cat .arch_i386/"$h"`

#elif defined(__x86_64__)

`cat .arch_x86_64/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/include/babl-0.1/babl/babl-macros.h
/opt/local/include/babl-0.1/babl/babl-types.h
/opt/local/include/babl-0.1/babl/babl-version.h
/opt/local/include/babl-0.1/babl/babl.h
/opt/local/lib/babl-0.1/CIE.a
/opt/local/lib/babl-0.1/CIE.la
/opt/local/lib/babl-0.1/CIE.so
/opt/local/lib/babl-0.1/gegl-fixups.a
/opt/local/lib/babl-0.1/gegl-fixups.la
/opt/local/lib/babl-0.1/gegl-fixups.so
/opt/local/lib/babl-0.1/gggl-lies.a
/opt/local/lib/babl-0.1/gggl-lies.la
/opt/local/lib/babl-0.1/gggl-lies.so
/opt/local/lib/babl-0.1/gggl.a
/opt/local/lib/babl-0.1/gggl.la
/opt/local/lib/babl-0.1/gggl.so
/opt/local/lib/babl-0.1/gimp-8bit.a
/opt/local/lib/babl-0.1/gimp-8bit.la
/opt/local/lib/babl-0.1/gimp-8bit.so
/opt/local/lib/babl-0.1/naive-CMYK.a
/opt/local/lib/babl-0.1/naive-CMYK.la
/opt/local/lib/babl-0.1/naive-CMYK.so
/opt/local/lib/babl-0.1/sse-fixups.a
/opt/local/lib/babl-0.1/sse-fixups.la
/opt/local/lib/babl-0.1/sse-fixups.so
/opt/local/lib/libbabl-0.1.0.dylib
/opt/local/lib/libbabl-0.1.a
/opt/local/lib/libbabl-0.1.dylib
/opt/local/lib/libbabl-0.1.la
/opt/local/lib/pkgconfig/babl.pc

libs/gtk+/gtk+-2.21.6

preparation
curl -ROL -C - http://ftp.gnome.org/pub/gnome/sources/gtk+/2.21/gtk+-2.21.6.tar.bz2
tar xvjf gtk+-2.21.6.tar.bz2
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CUPS_CONFIG=/Developer/SDKs/MacOSX10.4u.sdk/usr/bin/cups-config --prefix=/opt/local --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib &&
make
installed
/opt/local/bin/gtk-builder-convert
/opt/local/bin/gtk-demo
/opt/local/bin/gtk-query-immodules-2.0
/opt/local/bin/gtk-update-icon-cache
/opt/local/etc/gtk-2.0/gtk.immodules
/opt/local/etc/gtk-2.0/im-multipress.conf
/opt/local/include/gail-1.0/gail/gailwidget.h
/opt/local/include/gail-1.0/libgail-util/gail-util.h
/opt/local/include/gail-1.0/libgail-util/gailmisc.h
/opt/local/include/gail-1.0/libgail-util/gailtextutil.h
/opt/local/include/gtk-2.0/gdk/gdk.h
/opt/local/include/gtk-2.0/gdk/gdkapplaunchcontext.h
/opt/local/include/gtk-2.0/gdk/gdkcairo.h
/opt/local/include/gtk-2.0/gdk/gdkcolor.h
/opt/local/include/gtk-2.0/gdk/gdkcursor.h
/opt/local/include/gtk-2.0/gdk/gdkdisplay.h
/opt/local/include/gtk-2.0/gdk/gdkdisplaymanager.h
/opt/local/include/gtk-2.0/gdk/gdkdnd.h
/opt/local/include/gtk-2.0/gdk/gdkdrawable.h
/opt/local/include/gtk-2.0/gdk/gdkenumtypes.h
/opt/local/include/gtk-2.0/gdk/gdkevents.h
/opt/local/include/gtk-2.0/gdk/gdkfont.h
/opt/local/include/gtk-2.0/gdk/gdkgc.h
/opt/local/include/gtk-2.0/gdk/gdki18n.h
/opt/local/include/gtk-2.0/gdk/gdkimage.h
/opt/local/include/gtk-2.0/gdk/gdkinput.h
/opt/local/include/gtk-2.0/gdk/gdkkeys.h
/opt/local/include/gtk-2.0/gdk/gdkkeysyms.h
/opt/local/include/gtk-2.0/gdk/gdkpango.h
/opt/local/include/gtk-2.0/gdk/gdkpixbuf.h
/opt/local/include/gtk-2.0/gdk/gdkpixmap.h
/opt/local/include/gtk-2.0/gdk/gdkprivate.h
/opt/local/include/gtk-2.0/gdk/gdkproperty.h
/opt/local/include/gtk-2.0/gdk/gdkregion.h
/opt/local/include/gtk-2.0/gdk/gdkrgb.h
/opt/local/include/gtk-2.0/gdk/gdkscreen.h
/opt/local/include/gtk-2.0/gdk/gdkselection.h
/opt/local/include/gtk-2.0/gdk/gdkspawn.h
/opt/local/include/gtk-2.0/gdk/gdktestutils.h
/opt/local/include/gtk-2.0/gdk/gdktypes.h
/opt/local/include/gtk-2.0/gdk/gdkvisual.h
/opt/local/include/gtk-2.0/gdk/gdkwindow.h
/opt/local/include/gtk-2.0/gdk/gdkx.h
/opt/local/include/gtk-2.0/gtk/gtk.h
/opt/local/include/gtk-2.0/gtk/gtkaboutdialog.h
/opt/local/include/gtk-2.0/gtk/gtkaccelgroup.h
/opt/local/include/gtk-2.0/gtk/gtkaccellabel.h
/opt/local/include/gtk-2.0/gtk/gtkaccelmap.h
/opt/local/include/gtk-2.0/gtk/gtkaccessible.h
/opt/local/include/gtk-2.0/gtk/gtkaction.h
/opt/local/include/gtk-2.0/gtk/gtkactiongroup.h
/opt/local/include/gtk-2.0/gtk/gtkactivatable.h
/opt/local/include/gtk-2.0/gtk/gtkadjustment.h
/opt/local/include/gtk-2.0/gtk/gtkalignment.h
/opt/local/include/gtk-2.0/gtk/gtkarrow.h
/opt/local/include/gtk-2.0/gtk/gtkaspectframe.h
/opt/local/include/gtk-2.0/gtk/gtkassistant.h
/opt/local/include/gtk-2.0/gtk/gtkbbox.h
/opt/local/include/gtk-2.0/gtk/gtkbin.h
/opt/local/include/gtk-2.0/gtk/gtkbindings.h
/opt/local/include/gtk-2.0/gtk/gtkbox.h
/opt/local/include/gtk-2.0/gtk/gtkbuildable.h
/opt/local/include/gtk-2.0/gtk/gtkbuilder.h
/opt/local/include/gtk-2.0/gtk/gtkbutton.h
	:
host_configuration
cat <<EOF > /opt/local/share/themes/Raleigh/gtk-2.0/gtkrc.ja
#
# This theme is the default theme if no other theme is selected.
#
gtk-font-name = "Osaka 10"
EOF

libs/glib-2.25.14

preparation
curl -ROL -C - http://ftp.gnome.org/pub/GNOME/sources/glib/2.25/glib-2.25.14.tar.bz2
tar xvjf glib-2.25.14.tar.bz2
(cd glib-2.25.14 &&
patch -p0 -b -z.org < ../glib-2.25.14-ubagami.patch
)
build
./configure --disable-dependency-tracking --enable-static CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
patch
--- ./gio/tests/gdbus-peer.c~	2010-08-17 04:30:03.000000000 +0900
+++ ./gio/tests/gdbus-peer.c	2010-08-25 17:07:35.000000000 +0900
@@ -38,9 +38,9 @@
 /* for struct ucred */
 #ifdef __linux__
 #define __USE_GNU
+#endif
 #include <sys/types.h>
 #include <sys/socket.h>
-#endif
 
 /* used in test_overflow */
 #ifdef G_OS_UNIX
installed
/opt/local/bin/gdbus
/opt/local/bin/gio-querymodules
/opt/local/bin/glib-compile-schemas
/opt/local/bin/glib-genmarshal
/opt/local/bin/glib-gettextize
/opt/local/bin/glib-mkenums
/opt/local/bin/gobject-query
/opt/local/bin/gsettings
/opt/local/bin/gtester
/opt/local/bin/gtester-report
/opt/local/etc/bash_completion.d/gdbus-bash-completion.sh
/opt/local/etc/bash_completion.d/gsettings-bash-completion.sh
/opt/local/include/gio-unix-2.0/gio/gdesktopappinfo.h
/opt/local/include/gio-unix-2.0/gio/gfiledescriptorbased.h
/opt/local/include/gio-unix-2.0/gio/gunixconnection.h
/opt/local/include/gio-unix-2.0/gio/gunixcredentialsmessage.h
/opt/local/include/gio-unix-2.0/gio/gunixfdlist.h
/opt/local/include/gio-unix-2.0/gio/gunixfdmessage.h
/opt/local/include/gio-unix-2.0/gio/gunixinputstream.h
/opt/local/include/gio-unix-2.0/gio/gunixmounts.h
/opt/local/include/gio-unix-2.0/gio/gunixoutputstream.h
/opt/local/include/gio-unix-2.0/gio/gunixsocketaddress.h
/opt/local/include/glib-2.0/gio/gappinfo.h
/opt/local/include/glib-2.0/gio/gapplication.h
/opt/local/include/glib-2.0/gio/gasyncinitable.h
/opt/local/include/glib-2.0/gio/gasyncresult.h
/opt/local/include/glib-2.0/gio/gbufferedinputstream.h
/opt/local/include/glib-2.0/gio/gbufferedoutputstream.h
/opt/local/include/glib-2.0/gio/gcancellable.h
/opt/local/include/glib-2.0/gio/gcharsetconverter.h
/opt/local/include/glib-2.0/gio/gcontenttype.h
/opt/local/include/glib-2.0/gio/gconverter.h
/opt/local/include/glib-2.0/gio/gconverterinputstream.h
/opt/local/include/glib-2.0/gio/gconverteroutputstream.h
/opt/local/include/glib-2.0/gio/gcredentials.h
/opt/local/include/glib-2.0/gio/gdatainputstream.h
/opt/local/include/glib-2.0/gio/gdataoutputstream.h
/opt/local/include/glib-2.0/gio/gdbusaddress.h
/opt/local/include/glib-2.0/gio/gdbusauthobserver.h
/opt/local/include/glib-2.0/gio/gdbusconnection.h
/opt/local/include/glib-2.0/gio/gdbuserror.h
/opt/local/include/glib-2.0/gio/gdbusintrospection.h
/opt/local/include/glib-2.0/gio/gdbusmessage.h
/opt/local/include/glib-2.0/gio/gdbusmethodinvocation.h
/opt/local/include/glib-2.0/gio/gdbusnameowning.h
/opt/local/include/glib-2.0/gio/gdbusnamewatching.h
/opt/local/include/glib-2.0/gio/gdbusproxy.h
/opt/local/include/glib-2.0/gio/gdbusserver.h
/opt/local/include/glib-2.0/gio/gdbusutils.h
/opt/local/include/glib-2.0/gio/gdrive.h
/opt/local/include/glib-2.0/gio/gemblem.h
/opt/local/include/glib-2.0/gio/gemblemedicon.h
/opt/local/include/glib-2.0/gio/gfile.h
/opt/local/include/glib-2.0/gio/gfileattribute.h
/opt/local/include/glib-2.0/gio/gfileenumerator.h
/opt/local/include/glib-2.0/gio/gfileicon.h
/opt/local/include/glib-2.0/gio/gfileinfo.h
/opt/local/include/glib-2.0/gio/gfileinputstream.h
/opt/local/include/glib-2.0/gio/gfileiostream.h
/opt/local/include/glib-2.0/gio/gfilemonitor.h
/opt/local/include/glib-2.0/gio/gfilenamecompleter.h
/opt/local/include/glib-2.0/gio/gfileoutputstream.h
/opt/local/include/glib-2.0/gio/gfilterinputstream.h
/opt/local/include/glib-2.0/gio/gfilteroutputstream.h
	:

libs/gtk+/shared-mime-info-0.71

preparation
curl -ROL -C - http://freedesktop.org/~hadess/shared-mime-info-0.71.tar.bz2
tar xvjf shared-mime-info-0.71.tar.bz2
build
./configure --disable-dependency-tracking CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make
installed
/opt/local/bin/update-mime-database
/opt/local/share/locale/ara/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/az/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/be@latin/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/bg/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/ca/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/cs/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/cy/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/da/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/de/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/el/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/en_GB/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/eo/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/es/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/eu/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/fi/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/fr/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/ga/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/hu/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/id/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/it/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/ja/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/ko/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/lt/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/lv/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/ms/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/nb/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/nl/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/nn/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/pl/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/pt/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/pt_BR/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/ru/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/rw/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/sq/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/sr/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/sv/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/uk/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/vi/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/zh_CN/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/locale/zh_TW/LC_MESSAGES/shared-mime-info.mo
/opt/local/share/man/man1/update-mime-database.1
/opt/local/share/mime/aliases
/opt/local/share/mime/application/andrew-inset.xml
/opt/local/share/mime/application/annodex.xml
/opt/local/share/mime/application/atom+xml.xml
/opt/local/share/mime/application/dicom.xml
/opt/local/share/mime/application/docbook+xml.xml
/opt/local/share/mime/application/ecmascript.xml
/opt/local/share/mime/application/epub+zip.xml
/opt/local/share/mime/application/gnunet-directory.xml
/opt/local/share/mime/application/illustrator.xml
/opt/local/share/mime/application/javascript.xml
/opt/local/share/mime/application/mac-binhex40.xml
/opt/local/share/mime/application/mathematica.xml
/opt/local/share/mime/application/mathml+xml.xml
/opt/local/share/mime/application/mbox.xml
/opt/local/share/mime/application/metalink+xml.xml
/opt/local/share/mime/application/msword-template.xml
/opt/local/share/mime/application/msword.xml
/opt/local/share/mime/application/mxf.xml
/opt/local/share/mime/application/octet-stream.xml
/opt/local/share/mime/application/oda.xml
/opt/local/share/mime/application/ogg.xml
	:

libs/gtk+/atk-1.30.0

preparation
curl -ROL -C - http://ftp.gnome.org/pub/gnome/sources/atk/1.30/atk-1.30.0.tar.bz2
tar xvjf atk-1.30.0.tar.bz2
build
./configure --disable-dependency-tracking CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make
installed
/opt/local/include/atk-1.0/atk/atk-enum-types.h
/opt/local/include/atk-1.0/atk/atk.h
/opt/local/include/atk-1.0/atk/atkaction.h
/opt/local/include/atk-1.0/atk/atkcomponent.h
/opt/local/include/atk-1.0/atk/atkdocument.h
/opt/local/include/atk-1.0/atk/atkeditabletext.h
/opt/local/include/atk-1.0/atk/atkgobjectaccessible.h
/opt/local/include/atk-1.0/atk/atkhyperlink.h
/opt/local/include/atk-1.0/atk/atkhyperlinkimpl.h
/opt/local/include/atk-1.0/atk/atkhypertext.h
/opt/local/include/atk-1.0/atk/atkimage.h
/opt/local/include/atk-1.0/atk/atkmisc.h
/opt/local/include/atk-1.0/atk/atknoopobject.h
/opt/local/include/atk-1.0/atk/atknoopobjectfactory.h
/opt/local/include/atk-1.0/atk/atkobject.h
/opt/local/include/atk-1.0/atk/atkobjectfactory.h
/opt/local/include/atk-1.0/atk/atkplug.h
/opt/local/include/atk-1.0/atk/atkregistry.h
/opt/local/include/atk-1.0/atk/atkrelation.h
/opt/local/include/atk-1.0/atk/atkrelationset.h
/opt/local/include/atk-1.0/atk/atkrelationtype.h
/opt/local/include/atk-1.0/atk/atkselection.h
/opt/local/include/atk-1.0/atk/atksocket.h
/opt/local/include/atk-1.0/atk/atkstate.h
/opt/local/include/atk-1.0/atk/atkstateset.h
/opt/local/include/atk-1.0/atk/atkstreamablecontent.h
/opt/local/include/atk-1.0/atk/atktable.h
/opt/local/include/atk-1.0/atk/atktext.h
/opt/local/include/atk-1.0/atk/atkutil.h
/opt/local/include/atk-1.0/atk/atkvalue.h
/opt/local/lib/libatk-1.0.0.dylib
/opt/local/lib/libatk-1.0.dylib
/opt/local/lib/libatk-1.0.la
/opt/local/lib/pkgconfig/atk.pc
/opt/local/share/gtk-doc/html/atk/atk-AtkHyperlinkImpl.html
/opt/local/share/gtk-doc/html/atk/atk-AtkState.html
/opt/local/share/gtk-doc/html/atk/atk.devhelp
/opt/local/share/gtk-doc/html/atk/atk.devhelp2
/opt/local/share/gtk-doc/html/atk/atk.html
/opt/local/share/gtk-doc/html/atk/AtkAction.html
/opt/local/share/gtk-doc/html/atk/AtkComponent.html
/opt/local/share/gtk-doc/html/atk/AtkDocument.html
/opt/local/share/gtk-doc/html/atk/AtkEditableText.html
/opt/local/share/gtk-doc/html/atk/AtkGObjectAccessible.html
/opt/local/share/gtk-doc/html/atk/AtkHyperlink.html
/opt/local/share/gtk-doc/html/atk/AtkHypertext.html
/opt/local/share/gtk-doc/html/atk/AtkImage.html
/opt/local/share/gtk-doc/html/atk/AtkNoOpObject.html
/opt/local/share/gtk-doc/html/atk/AtkNoOpObjectFactory.html
/opt/local/share/gtk-doc/html/atk/AtkObject.html
/opt/local/share/gtk-doc/html/atk/AtkObjectFactory.html
/opt/local/share/gtk-doc/html/atk/AtkRegistry.html
/opt/local/share/gtk-doc/html/atk/AtkRelation.html
/opt/local/share/gtk-doc/html/atk/AtkRelationSet.html
/opt/local/share/gtk-doc/html/atk/AtkSelection.html
/opt/local/share/gtk-doc/html/atk/AtkStateSet.html
/opt/local/share/gtk-doc/html/atk/AtkStreamableContent.html
/opt/local/share/gtk-doc/html/atk/AtkTable.html
/opt/local/share/gtk-doc/html/atk/AtkText.html
/opt/local/share/gtk-doc/html/atk/AtkUtil.html
/opt/local/share/gtk-doc/html/atk/AtkValue.html
/opt/local/share/gtk-doc/html/atk/home.png
/opt/local/share/gtk-doc/html/atk/index.html
/opt/local/share/gtk-doc/html/atk/index.sgml
	:

libs/graphviz/graphviz-2.26.3

preparation
curl -RO -C - http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.26.3.tar.gz
tar xvzf graphviz-2.26.3.tar.gz
(cd graphviz-2.26.3 &&
patch -p0 -b -z.org < ../graphviz-2.26.3-ubagami.patch
)
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' --prefix=/opt/local --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --with-libgd --disable-java --disable-perl --disable-php --disable-python --disable-ruby --disable-tcl --without-quartz &&
make
patch
--- ./configure.org	2010-01-27 01:01:10.000000000 +0900
+++ ./configure	2010-08-24 23:15:52.000000000 +0900
@@ -32385,8 +32385,8 @@
 
       if test -n "$GDLIB_CONFIG"; then
         GD_INCLUDES=`$GDLIB_CONFIG --includes`
-        GD_LDFLAGS=`$GDLIB_CONFIG --ldflags | sed 's/-xarch=386 //'`
-        GD_LIBS=`$GDLIB_CONFIG --libs`
+        GD_LDFLAGS=`$GDLIB_CONFIG --ldflags | sed 's| *-L/usr/X11/lib *||g;s/-xarch=386 //'`
+        GD_LIBS=`$GDLIB_CONFIG --libs | sed 's|^|-L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib |'`
         GD_MAJORVERSION=`$GDLIB_CONFIG --majorversion`
         GD_MINORVERSION=`$GDLIB_CONFIG --minorversion`
         GD_REVISION=`$GDLIB_CONFIG --revision`
installed
/opt/local/bin/acyclic
/opt/local/bin/bcomps
/opt/local/bin/ccomps
/opt/local/bin/circo
/opt/local/bin/diffimg
/opt/local/bin/dijkstra
/opt/local/bin/dot
/opt/local/bin/dot2gxl
/opt/local/bin/dotty
/opt/local/bin/fdp
/opt/local/bin/gc
/opt/local/bin/gml2gv
/opt/local/bin/gv2gxl
/opt/local/bin/gvcolor
/opt/local/bin/gvgen
/opt/local/bin/gvpack
/opt/local/bin/gvpr
/opt/local/bin/gxl2dot
/opt/local/bin/gxl2gv
/opt/local/bin/lefty
/opt/local/bin/lneato
/opt/local/bin/mm2gv
/opt/local/bin/neato
/opt/local/bin/nop
/opt/local/bin/osage
/opt/local/bin/prune
/opt/local/bin/sccmap
/opt/local/bin/sfdp
/opt/local/bin/tred
/opt/local/bin/twopi
/opt/local/bin/unflatten
/opt/local/bin/vimdot
/opt/local/include/graphviz/arith.h
/opt/local/include/graphviz/cdt.h
/opt/local/include/graphviz/cgraph.h
/opt/local/include/graphviz/color.h
/opt/local/include/graphviz/geom.h
/opt/local/include/graphviz/graph.h
/opt/local/include/graphviz/graphviz_version.h
/opt/local/include/graphviz/gv.cpp
/opt/local/include/graphviz/gv.i
/opt/local/include/graphviz/gvc.h
/opt/local/include/graphviz/gvcext.h
/opt/local/include/graphviz/gvcjob.h
/opt/local/include/graphviz/gvcommon.h
/opt/local/include/graphviz/gvconfig.h
/opt/local/include/graphviz/gvplugin.h
/opt/local/include/graphviz/gvplugin_device.h
/opt/local/include/graphviz/gvplugin_layout.h
/opt/local/include/graphviz/gvplugin_loadimage.h
/opt/local/include/graphviz/gvplugin_render.h
/opt/local/include/graphviz/gvplugin_textlayout.h
/opt/local/include/graphviz/gvpr.h
/opt/local/include/graphviz/pack.h
/opt/local/include/graphviz/pathgeom.h
/opt/local/include/graphviz/pathplan.h
/opt/local/include/graphviz/textpara.h
/opt/local/include/graphviz/types.h
/opt/local/include/graphviz/usershape.h
/opt/local/include/graphviz/xdot.h
/opt/local/lib/graphviz/config6
/opt/local/lib/graphviz/guile
/opt/local/lib/graphviz/io
/opt/local/lib/graphviz/java
	:

libs/librsvg/librsvg-2.31.0

preparation
curl -RO -C - http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.31/librsvg-2.31.0.tar.bz2
tar xvjf librsvg-2.31.0.tar.bz2
build
./configure --disable-dependency-tracking CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include LDFLAGS='-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make
installed
/opt/local/bin/rsvg-convert
/opt/local/include/librsvg-2.0/librsvg/librsvg-enum-types.h
/opt/local/include/librsvg-2.0/librsvg/librsvg-features.h
/opt/local/include/librsvg-2.0/librsvg/rsvg-cairo.h
/opt/local/include/librsvg-2.0/librsvg/rsvg.h
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
/opt/local/lib/gtk-2.0/engines
/opt/local/lib/gtk-3.0/engines
/opt/local/lib/librsvg-2.2.dylib
/opt/local/lib/librsvg-2.a
/opt/local/lib/librsvg-2.dylib
/opt/local/lib/librsvg-2.la
/opt/local/lib/pkgconfig/librsvg-2.0.pc
/opt/local/share/gtk-doc/html/rsvg-2.0/annotation-glossary.html
/opt/local/share/gtk-doc/html/rsvg-2.0/api-index-2-14.html
/opt/local/share/gtk-doc/html/rsvg-2.0/api-index-2-22.html
/opt/local/share/gtk-doc/html/rsvg-2.0/api-index-2-32.html
/opt/local/share/gtk-doc/html/rsvg-2.0/api-index-2-4.html
/opt/local/share/gtk-doc/html/rsvg-2.0/api-index-2-8.html
/opt/local/share/gtk-doc/html/rsvg-2.0/api-index-2-9.html
/opt/local/share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html
/opt/local/share/gtk-doc/html/rsvg-2.0/api-index-full.html
/opt/local/share/gtk-doc/html/rsvg-2.0/home.png
/opt/local/share/gtk-doc/html/rsvg-2.0/index.html
/opt/local/share/gtk-doc/html/rsvg-2.0/index.sgml
/opt/local/share/gtk-doc/html/rsvg-2.0/left.png
/opt/local/share/gtk-doc/html/rsvg-2.0/licence.html
/opt/local/share/gtk-doc/html/rsvg-2.0/object-tree.html
/opt/local/share/gtk-doc/html/rsvg-2.0/right.png
/opt/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp
/opt/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2
/opt/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html
/opt/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html
/opt/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html
/opt/local/share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html
/opt/local/share/gtk-doc/html/rsvg-2.0/rsvg.html
/opt/local/share/gtk-doc/html/rsvg-2.0/RsvgHandle.html
/opt/local/share/gtk-doc/html/rsvg-2.0/style.css
/opt/local/share/gtk-doc/html/rsvg-2.0/up.png
/opt/local/share/pixmaps/svg-viewer.svg
/opt/local/share/themes/bubble/gtk-2.0
/opt/local/share/themes/bubble/gtk-3.0

libs/libcroco-0.6.2

preparation
curl -ROL -C - http://ftp.gnome.org/pub/gnome/sources/libcroco/0.6/libcroco-0.6.2.tar.bz2
tar xvjf libcroco-0.6.2.tar.bz2
build
./configure --disable-dependency-tracking CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include LDFLAGS='-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make
installed
/opt/local/bin/croco-0.6-config
/opt/local/bin/csslint-0.6
/opt/local/include/libcroco-0.6/libcroco/cr-additional-sel.h
/opt/local/include/libcroco-0.6/libcroco/cr-attr-sel.h
/opt/local/include/libcroco-0.6/libcroco/cr-cascade.h
/opt/local/include/libcroco-0.6/libcroco/cr-declaration.h
/opt/local/include/libcroco-0.6/libcroco/cr-doc-handler.h
/opt/local/include/libcroco-0.6/libcroco/cr-enc-handler.h
/opt/local/include/libcroco-0.6/libcroco/cr-fonts.h
/opt/local/include/libcroco-0.6/libcroco/cr-input.h
/opt/local/include/libcroco-0.6/libcroco/cr-num.h
/opt/local/include/libcroco-0.6/libcroco/cr-om-parser.h
/opt/local/include/libcroco-0.6/libcroco/cr-parser.h
/opt/local/include/libcroco-0.6/libcroco/cr-parsing-location.h
/opt/local/include/libcroco-0.6/libcroco/cr-prop-list.h
/opt/local/include/libcroco-0.6/libcroco/cr-pseudo.h
/opt/local/include/libcroco-0.6/libcroco/cr-rgb.h
/opt/local/include/libcroco-0.6/libcroco/cr-sel-eng.h
/opt/local/include/libcroco-0.6/libcroco/cr-selector.h
/opt/local/include/libcroco-0.6/libcroco/cr-simple-sel.h
/opt/local/include/libcroco-0.6/libcroco/cr-statement.h
/opt/local/include/libcroco-0.6/libcroco/cr-string.h
/opt/local/include/libcroco-0.6/libcroco/cr-style.h
/opt/local/include/libcroco-0.6/libcroco/cr-stylesheet.h
/opt/local/include/libcroco-0.6/libcroco/cr-term.h
/opt/local/include/libcroco-0.6/libcroco/cr-tknzr.h
/opt/local/include/libcroco-0.6/libcroco/cr-token.h
/opt/local/include/libcroco-0.6/libcroco/cr-utils.h
/opt/local/include/libcroco-0.6/libcroco/libcroco-config.h
/opt/local/include/libcroco-0.6/libcroco/libcroco.h
/opt/local/lib/libcroco-0.6.3.0.1.dylib
/opt/local/lib/libcroco-0.6.3.dylib
/opt/local/lib/libcroco-0.6.a
/opt/local/lib/libcroco-0.6.dylib
/opt/local/lib/libcroco-0.6.la
/opt/local/lib/pkgconfig/libcroco-0.6.pc

libs/gdk-pixbuf-2.21.6

preparation
curl -ROL -C - http://ftp.gnome.org/pub/gnome/soures/gdk-pixbuf/2.21/gdk-pixbuf-2.21.6.tar.bz2
tar xvjf gdk-pixbuf-2.21.6.tar.bz2
(cd gdk-pixbuf-2.21.6 &&
patch -p0 -b -z.org < ../gdk-pixbuf-2.21.6-ubagami.patch
)
build
./configure --disable-dependency-tracking CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include LDFLAGS='-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local --with-libjasper &&
make
patch
--- ./configure~	2010-07-12 20:26:44.000000000 +0900
+++ ./configure	2010-08-24 17:46:26.000000000 +0900
@@ -13892,12 +13892,12 @@
  elif test -n "$PKG_CONFIG"; then
 
 if test -n "$PKG_CONFIG" && \
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.25.9\""; } >&5
-  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.25.9") 2>&5
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.1\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.1") 2>&5
   ac_status=$?
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   test $ac_status = 0; }; then
-  pkg_cv_BASE_DEPENDENCIES_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.25.9" 2>/dev/null`
+  pkg_cv_BASE_DEPENDENCIES_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.24.1" 2>/dev/null`
 else
   pkg_failed=yes
 
@@ -13911,12 +13911,12 @@
  elif test -n "$PKG_CONFIG"; then
 
 if test -n "$PKG_CONFIG" && \
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.25.9\""; } >&5
-  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.25.9") 2>&5
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.1\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.1") 2>&5
   ac_status=$?
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   test $ac_status = 0; }; then
-  pkg_cv_BASE_DEPENDENCIES_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.25.9" 2>/dev/null`
+  pkg_cv_BASE_DEPENDENCIES_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.24.1" 2>/dev/null`
 else
   pkg_failed=yes
 
@@ -13939,14 +13939,14 @@
 fi
 
         if test $_pkg_short_errors_supported = yes; then
-	        BASE_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.25.9" 2>&1`
+	        BASE_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.24.1" 2>&1`
         else
-	        BASE_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.25.9" 2>&1`
+	        BASE_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.24.1" 2>&1`
         fi
 	# Put the nasty error message in config.log where it belongs
 	echo "$BASE_DEPENDENCIES_PKG_ERRORS" >&5
 
-	as_fn_error $? "Package requirements (glib-2.0 >= 2.25.9) were not met:
+	as_fn_error $? "Package requirements (glib-2.0 >= 2.24.1) were not met:
 
 $BASE_DEPENDENCIES_PKG_ERRORS
 
@@ -16292,7 +16292,7 @@
     PKG_CONFIG=no
   fi
 
-  min_glib_version=2.25.9
+  min_glib_version=2.24.1
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
 
@@ -16479,7 +16479,7 @@
      GOBJECT_QUERY=""
      GLIB_MKENUMS=""
      as_fn_error $? "
-*** GLIB 2.25.9 or better is required. The latest version of
+*** GLIB 2.24.1 or better is required. The latest version of
 *** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/." "$LINENO" 5
   fi
 
@@ -16492,7 +16492,7 @@
 
 # See if it's safe to turn G_DISABLE_DEPRECATED on.
 GLIB_VERSION_MAJOR_MINOR=`$PKG_CONFIG --modversion glib-2.0 | sed "s/\.[^.]*\$//"`
-GLIB_REQUIRED_VERSION_MAJOR_MINOR=`echo 2.25.9 | sed "s/\.[^.]*\$//"`
+GLIB_REQUIRED_VERSION_MAJOR_MINOR=`echo 2.24.1 | sed "s/\.[^.]*\$//"`
 if test "x$GLIB_VERSION_MAJOR_MINOR" = "x$GLIB_REQUIRED_VERSION_MAJOR_MINOR"; then
   CFLAGS="-DG_DISABLE_DEPRECATED $CFLAGS"
 fi
installed
/opt/local/bin/gdk-pixbuf-csource
/opt/local/bin/gdk-pixbuf-query-loaders
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gif.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gif.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ico.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ico.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jasper.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jasper.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jpeg.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jpeg.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pcx.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pcx.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-qtif.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-qtif.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ras.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ras.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tga.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tga.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tiff.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tiff.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-wbmp.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-wbmp.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xbm.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xbm.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.la
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
/opt/local/lib/libgdk_pixbuf-2.0.0.dylib
/opt/local/lib/libgdk_pixbuf-2.0.dylib
/opt/local/lib/libgdk_pixbuf-2.0.la
/opt/local/lib/pkgconfig/gdk-pixbuf-2.0.pc
/opt/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html
/opt/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-10.html
/opt/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html
/opt/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html
/opt/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html
/opt/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html
/opt/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html
/opt/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html
/opt/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html
/opt/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html
/opt/local/share/gtk-doc/html/gdk-pixbuf/composite.png
/opt/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-animation.html
	:

libs/gts-0.7.6

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/gts/gts/0.7.6/gts-0.7.6.tar.gz
tar xvzf gts-0.7.6.tar.gz
build
./configure --disable-dependency-tracking CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make
installed
/opt/local/bin/delaunay
/opt/local/bin/gts-config
/opt/local/bin/gts2dxf
/opt/local/bin/gts2oogl
/opt/local/bin/gts2stl
/opt/local/bin/gtscheck
/opt/local/bin/gtscompare
/opt/local/bin/gtstemplate
/opt/local/bin/stl2gts
/opt/local/bin/transform
/opt/local/include/gts.h
/opt/local/include/gtsconfig.h
/opt/local/lib/libgts-0.7.5.0.1.dylib
/opt/local/lib/libgts-0.7.5.dylib
/opt/local/lib/libgts.a
/opt/local/lib/libgts.dylib
/opt/local/lib/libgts.la
/opt/local/lib/pkgconfig/gts.pc
/opt/local/share/aclocal/gts.m4

libs/pango/pango-1.28.1

preparation
curl -ROL -C - http://ftp.gnome.org/pub/GNOME/sources/pango/1.28/pango-1.28.1.tar.bz2
tar xvjf pango-1.28.1.tar.bz2
build
./configure --disable-silent-rules --disable-dependency-tracking CC='gcc -I/opt/local/include -L/opt/local/lib' CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CXX='g++ -I/opt/local/include -L/opt/local/lib' CXXFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' LDFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' XFT_CFLAGS=-I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include XFT_LIBS='-L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -lXft' --prefix=/opt/local --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib &&
make
installed
/opt/local/bin/pango-querymodules
/opt/local/bin/pango-view
/opt/local/etc/pango/pango.modules
/opt/local/etc/pango/pangox.aliases
/opt/local/include/pango-1.0/pango/pango-attributes.h
/opt/local/include/pango-1.0/pango/pango-bidi-type.h
/opt/local/include/pango-1.0/pango/pango-break.h
/opt/local/include/pango-1.0/pango/pango-context.h
/opt/local/include/pango-1.0/pango/pango-coverage.h
/opt/local/include/pango-1.0/pango/pango-engine.h
/opt/local/include/pango-1.0/pango/pango-enum-types.h
/opt/local/include/pango-1.0/pango/pango-features.h
/opt/local/include/pango-1.0/pango/pango-font.h
/opt/local/include/pango-1.0/pango/pango-fontmap.h
/opt/local/include/pango-1.0/pango/pango-fontset.h
/opt/local/include/pango-1.0/pango/pango-glyph-item.h
/opt/local/include/pango-1.0/pango/pango-glyph.h
/opt/local/include/pango-1.0/pango/pango-gravity.h
/opt/local/include/pango-1.0/pango/pango-item.h
/opt/local/include/pango-1.0/pango/pango-language.h
/opt/local/include/pango-1.0/pango/pango-layout.h
/opt/local/include/pango-1.0/pango/pango-matrix.h
/opt/local/include/pango-1.0/pango/pango-modules.h
/opt/local/include/pango-1.0/pango/pango-ot.h
/opt/local/include/pango-1.0/pango/pango-renderer.h
/opt/local/include/pango-1.0/pango/pango-script.h
/opt/local/include/pango-1.0/pango/pango-tabs.h
/opt/local/include/pango-1.0/pango/pango-types.h
/opt/local/include/pango-1.0/pango/pango-utils.h
/opt/local/include/pango-1.0/pango/pango.h
/opt/local/include/pango-1.0/pango/pangoatsui.h
/opt/local/include/pango-1.0/pango/pangocairo.h
/opt/local/include/pango-1.0/pango/pangofc-decoder.h
/opt/local/include/pango-1.0/pango/pangofc-font.h
/opt/local/include/pango-1.0/pango/pangofc-fontmap.h
/opt/local/include/pango-1.0/pango/pangoft2.h
/opt/local/include/pango-1.0/pango/pangox.h
/opt/local/include/pango-1.0/pango/pangoxft-render.h
/opt/local/include/pango-1.0/pango/pangoxft.h
/opt/local/lib/libpango-1.0.0.dylib
/opt/local/lib/libpango-1.0.dylib
/opt/local/lib/libpango-1.0.la
/opt/local/lib/libpangocairo-1.0.0.dylib
/opt/local/lib/libpangocairo-1.0.dylib
/opt/local/lib/libpangocairo-1.0.la
/opt/local/lib/libpangoft2-1.0.0.dylib
/opt/local/lib/libpangoft2-1.0.dylib
/opt/local/lib/libpangoft2-1.0.la
/opt/local/lib/libpangox-1.0.0.dylib
/opt/local/lib/libpangox-1.0.dylib
/opt/local/lib/libpangox-1.0.la
/opt/local/lib/libpangoxft-1.0.0.dylib
/opt/local/lib/libpangoxft-1.0.dylib
/opt/local/lib/libpangoxft-1.0.la
/opt/local/lib/pango/1.6.0/modules/pango-arabic-fc.la
/opt/local/lib/pango/1.6.0/modules/pango-arabic-fc.so
/opt/local/lib/pango/1.6.0/modules/pango-arabic-lang.la
/opt/local/lib/pango/1.6.0/modules/pango-arabic-lang.so
/opt/local/lib/pango/1.6.0/modules/pango-basic-atsui.la
/opt/local/lib/pango/1.6.0/modules/pango-basic-atsui.so
/opt/local/lib/pango/1.6.0/modules/pango-basic-fc.la
/opt/local/lib/pango/1.6.0/modules/pango-basic-fc.so
/opt/local/lib/pango/1.6.0/modules/pango-basic-x.la
/opt/local/lib/pango/1.6.0/modules/pango-basic-x.so
	:

libs/libxslt-1.1.26

preparation
curl -RO -C - ftp://xmlsoft.org/libxml2/libxslt-1.1.26.tar.gz
tar xvzf libxslt-1.1.26.tar.gz
build
./configure --disable-dependency-tracking CFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local --prefix=/opt/local &&
make 
installed
/opt/local/bin/xslt-config
/opt/local/bin/xsltproc
/opt/local/include/libexslt/exslt.h
/opt/local/include/libexslt/exsltconfig.h
/opt/local/include/libexslt/exsltexports.h
/opt/local/include/libxslt/attributes.h
/opt/local/include/libxslt/documents.h
/opt/local/include/libxslt/extensions.h
/opt/local/include/libxslt/extra.h
/opt/local/include/libxslt/functions.h
/opt/local/include/libxslt/imports.h
/opt/local/include/libxslt/keys.h
/opt/local/include/libxslt/namespaces.h
/opt/local/include/libxslt/numbersInternals.h
/opt/local/include/libxslt/pattern.h
/opt/local/include/libxslt/preproc.h
/opt/local/include/libxslt/security.h
/opt/local/include/libxslt/templates.h
/opt/local/include/libxslt/transform.h
/opt/local/include/libxslt/variables.h
/opt/local/include/libxslt/xslt.h
/opt/local/include/libxslt/xsltconfig.h
/opt/local/include/libxslt/xsltexports.h
/opt/local/include/libxslt/xsltInternals.h
/opt/local/include/libxslt/xsltlocale.h
/opt/local/include/libxslt/xsltutils.h
/opt/local/lib/libexslt.0.dylib
/opt/local/lib/libexslt.a
/opt/local/lib/libexslt.dylib
/opt/local/lib/libexslt.la
/opt/local/lib/libxslt-plugins
/opt/local/lib/libxslt.1.dylib
/opt/local/lib/libxslt.a
/opt/local/lib/libxslt.dylib
/opt/local/lib/libxslt.la
/opt/local/lib/pkgconfig/libexslt.pc
/opt/local/lib/pkgconfig/libxslt.pc
/opt/local/lib/python2.5/site-packages/libxslt.py
/opt/local/lib/python2.5/site-packages/libxsltmod.a
/opt/local/lib/python2.5/site-packages/libxsltmod.la
/opt/local/lib/python2.5/site-packages/libxsltmod.so
/opt/local/lib/xsltConf.sh
/opt/local/share/aclocal/libxslt.m4
/opt/local/share/doc/libxslt-1.1.26/html/API.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk0.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk1.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk10.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk11.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk12.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk13.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk2.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk3.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk4.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk5.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk6.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk7.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk8.html
/opt/local/share/doc/libxslt-1.1.26/html/APIchunk9.html
/opt/local/share/doc/libxslt-1.1.26/html/APIconstructors.html
/opt/local/share/doc/libxslt-1.1.26/html/APIfiles.html
/opt/local/share/doc/libxslt-1.1.26/html/APIfunctions.html
/opt/local/share/doc/libxslt-1.1.26/html/APIsymbols.html
/opt/local/share/doc/libxslt-1.1.26/html/bugs.html
/opt/local/share/doc/libxslt-1.1.26/html/contexts.gif
	:

libs/cairo/xsvg-0.2.1

preparation
curl -RO -C - http://cairographics.org/snapshots/xsvg-0.2.1.tar.gz
tar xvzf xsvg-0.2.1.tar.gz
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' --prefix=/opt/local --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib &&
make "X_LIBS=-L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -lXrender -lX11"
installed
/opt/local/bin/xsvg
/opt/local/man/man1/xsvg.1

libs/cairo/svg2pdf-0.1.3

preparation
curl -RO -C - http://cairographics.org/snapshots/svg2pdf-0.1.3.tar.gz
tar xvzf svg2pdf-0.1.3.tar.gz
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make 
installed
/opt/local/bin/svg2pdf
/opt/local/man/man1/svg2pdf.1

libs/cairo/svg2png-0.1.3

preparation
curl -RO -C - http://cairographics.org/snapshots/svg2png-0.1.3.tar.gz
tar xvzf svg2png-0.1.3.tar.gz
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make 
installed
/opt/local/bin/svg2png
/opt/local/man/man1/svg2png.1

libs/cairo/libsvg-cairo-0.1.6

preparation
curl -RO -C - http://cairographics.org/snapshots/libsvg-cairo-0.1.6.tar.gz
tar xvzf libsvg-cairo-0.1.6.tar.gz
build
./configure --disable-dependency-tracking 'CC=gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CPP=gcc -E' 'CXX=g++ -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local --without-x &&
make 
installed
/opt/local/include/svg-cairo.h
/opt/local/lib/libsvg-cairo.1.0.1.dylib
/opt/local/lib/libsvg-cairo.1.dylib
/opt/local/lib/libsvg-cairo.a
/opt/local/lib/libsvg-cairo.dylib
/opt/local/lib/libsvg-cairo.la
/opt/local/lib/pkgconfig/libsvg-cairo.pc

libs/cairo/libsvg-0.1.4

preparation
curl -RO -C - http://cairographics.org/snapshots/libsvg-0.1.4.tar.gz
tar xvzf libsvg-0.1.4.tar.gz
(cd libsvg-0.1.4 &&
patch -p0 -b -z.org < ../libsvg-0.1.4-ubagami.patch
)
build
#./configure --disable-dependency-tracking 'CC=gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CPP=gcc -E' 'CXX=g++ -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local --with-expat &&
./configure --disable-dependency-tracking 'CC=gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CPP=gcc -E' 'CXX=g++ -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local --without-expat &&
make 
patch
--- ./src/svg_parser_expat.c~	2005-02-15 02:26:26.000000000 +0900
+++ ./src/svg_parser_expat.c	2010-08-20 23:52:12.000000000 +0900
@@ -30,16 +30,16 @@
 #include "svgint.h"
 #include "svg_hash.h"
 
-static void
+void
 _svg_parser_sax_start_element (void		*closure,
 			       const XML_Char	*name,
 			       const XML_Char	**atts);
 
-static void
+void
 _svg_parser_sax_end_element (void		*closure,
 			     const XML_Char	*name);
 
-static void
+void
 _svg_parser_sax_characters (void		*closure,
 			    const XML_Char	*ch,
 			    int			len);
installed
/opt/local/include/svg.h
/opt/local/lib/libsvg.1.0.0.dylib
/opt/local/lib/libsvg.1.dylib
/opt/local/lib/libsvg.a
/opt/local/lib/libsvg.dylib
/opt/local/lib/libsvg.la
/opt/local/lib/pkgconfig/libsvg.pc

libs/libxml2-2.7.7

preparation
curl -RO -C - ftp://xmlsoft.org/libxml2/libxml2-2.7.7.tar.gz
tar xvzf libxml2-2.7.7.tar.gz
build
./configure --disable-dependency-tracking CFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make 
installed
/opt/local/bin/xml2-config
/opt/local/bin/xmlcatalog
/opt/local/bin/xmllint
/opt/local/include/libxml2/libxml/c14n.h
/opt/local/include/libxml2/libxml/catalog.h
/opt/local/include/libxml2/libxml/chvalid.h
/opt/local/include/libxml2/libxml/debugXML.h
/opt/local/include/libxml2/libxml/dict.h
/opt/local/include/libxml2/libxml/DOCBparser.h
/opt/local/include/libxml2/libxml/encoding.h
/opt/local/include/libxml2/libxml/entities.h
/opt/local/include/libxml2/libxml/globals.h
/opt/local/include/libxml2/libxml/hash.h
/opt/local/include/libxml2/libxml/HTMLparser.h
/opt/local/include/libxml2/libxml/HTMLtree.h
/opt/local/include/libxml2/libxml/list.h
/opt/local/include/libxml2/libxml/nanoftp.h
/opt/local/include/libxml2/libxml/nanohttp.h
/opt/local/include/libxml2/libxml/parser.h
/opt/local/include/libxml2/libxml/parserInternals.h
/opt/local/include/libxml2/libxml/pattern.h
/opt/local/include/libxml2/libxml/relaxng.h
/opt/local/include/libxml2/libxml/SAX.h
/opt/local/include/libxml2/libxml/SAX2.h
/opt/local/include/libxml2/libxml/schemasInternals.h
/opt/local/include/libxml2/libxml/schematron.h
/opt/local/include/libxml2/libxml/threads.h
/opt/local/include/libxml2/libxml/tree.h
/opt/local/include/libxml2/libxml/uri.h
/opt/local/include/libxml2/libxml/valid.h
/opt/local/include/libxml2/libxml/xinclude.h
/opt/local/include/libxml2/libxml/xlink.h
/opt/local/include/libxml2/libxml/xmlautomata.h
/opt/local/include/libxml2/libxml/xmlerror.h
/opt/local/include/libxml2/libxml/xmlexports.h
/opt/local/include/libxml2/libxml/xmlIO.h
/opt/local/include/libxml2/libxml/xmlmemory.h
/opt/local/include/libxml2/libxml/xmlmodule.h
/opt/local/include/libxml2/libxml/xmlreader.h
/opt/local/include/libxml2/libxml/xmlregexp.h
/opt/local/include/libxml2/libxml/xmlsave.h
/opt/local/include/libxml2/libxml/xmlschemas.h
/opt/local/include/libxml2/libxml/xmlschemastypes.h
/opt/local/include/libxml2/libxml/xmlstring.h
/opt/local/include/libxml2/libxml/xmlunicode.h
/opt/local/include/libxml2/libxml/xmlversion.h
/opt/local/include/libxml2/libxml/xmlwriter.h
/opt/local/include/libxml2/libxml/xpath.h
/opt/local/include/libxml2/libxml/xpathInternals.h
/opt/local/include/libxml2/libxml/xpointer.h
/opt/local/lib/libxml2.2.dylib
/opt/local/lib/libxml2.a
/opt/local/lib/libxml2.dylib
/opt/local/lib/libxml2.la
/opt/local/lib/pkgconfig/libxml-2.0.pc
/opt/local/lib/python2.5/site-packages/drv_libxml2.py
/opt/local/lib/python2.5/site-packages/libxml2.py
/opt/local/lib/python2.5/site-packages/libxml2mod.a
/opt/local/lib/python2.5/site-packages/libxml2mod.la
/opt/local/lib/python2.5/site-packages/libxml2mod.so
/opt/local/lib/xml2Conf.sh
/opt/local/share/aclocal/libxml.m4
/opt/local/share/doc/libxml2-2.7.7/Copyright
/opt/local/share/doc/libxml2-2.7.7/examples/testHTML.c
	:

libs/cairo/cairo-1.8.10

preparation
curl -RO -C - http://cairographics.org/releases/cairo-1.8.10.tar.gz
tar xvzf cairo-1.8.10.tar.gz
(cd cairo-1.8.10 &&
patch -p0 -b -z.org < ../cairo-1.8.10-ubagami.patch
)
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' --prefix=/opt/local --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --enable-quartz --enable-quartz-image --disable-xcb --disable-glitz &&
make 
patch
--- ./boilerplate/cairo-boilerplate-glitz.c~	2010-02-20 03:38:03.000000000 +0900
+++ ./boilerplate/cairo-boilerplate-glitz.c	2010-08-20 21:50:04.000000000 +0900
@@ -332,6 +332,7 @@
     glitz_surface_t *glitz_surface;
     cairo_surface_t *surface = NULL;
     glitz_agl_target_closure_t *aglc;
+    cairo_status_t status;
 
     glitz_agl_init ();
 
installed
/opt/local/include/cairo/cairo-deprecated.h
/opt/local/include/cairo/cairo-features.h
/opt/local/include/cairo/cairo-ft.h
/opt/local/include/cairo/cairo-pdf.h
/opt/local/include/cairo/cairo-ps.h
/opt/local/include/cairo/cairo-quartz-image.h
/opt/local/include/cairo/cairo-quartz.h
/opt/local/include/cairo/cairo-svg.h
/opt/local/include/cairo/cairo-version.h
/opt/local/include/cairo/cairo-xlib-xrender.h
/opt/local/include/cairo/cairo-xlib.h
/opt/local/include/cairo/cairo.h
/opt/local/lib/libcairo.2.dylib
/opt/local/lib/libcairo.a
/opt/local/lib/libcairo.dylib
/opt/local/lib/libcairo.la
/opt/local/lib/pkgconfig/cairo-ft.pc
/opt/local/lib/pkgconfig/cairo-pdf.pc
/opt/local/lib/pkgconfig/cairo-png.pc
/opt/local/lib/pkgconfig/cairo-ps.pc
/opt/local/lib/pkgconfig/cairo-quartz-font.pc
/opt/local/lib/pkgconfig/cairo-quartz-image.pc
/opt/local/lib/pkgconfig/cairo-quartz.pc
/opt/local/lib/pkgconfig/cairo-svg.pc
/opt/local/lib/pkgconfig/cairo-xlib-xrender.pc
/opt/local/lib/pkgconfig/cairo-xlib.pc
/opt/local/lib/pkgconfig/cairo.pc
/opt/local/share/gtk-doc/html/cairo/bindings-errors.html
/opt/local/share/gtk-doc/html/cairo/bindings-fonts.html
/opt/local/share/gtk-doc/html/cairo/bindings-memory.html
/opt/local/share/gtk-doc/html/cairo/bindings-overloading.html
/opt/local/share/gtk-doc/html/cairo/bindings-path.html
/opt/local/share/gtk-doc/html/cairo/bindings-patterns.html
/opt/local/share/gtk-doc/html/cairo/bindings-return-values.html
/opt/local/share/gtk-doc/html/cairo/bindings-streams.html
/opt/local/share/gtk-doc/html/cairo/bindings-surfaces.html
/opt/local/share/gtk-doc/html/cairo/cairo-context.html
/opt/local/share/gtk-doc/html/cairo/cairo-drawing.html
/opt/local/share/gtk-doc/html/cairo/cairo-error-status.html
/opt/local/share/gtk-doc/html/cairo/cairo-font-face.html
/opt/local/share/gtk-doc/html/cairo/cairo-font-options.html
/opt/local/share/gtk-doc/html/cairo/cairo-fonts.html
/opt/local/share/gtk-doc/html/cairo/cairo-ft-font.html
/opt/local/share/gtk-doc/html/cairo/cairo-image-surface.html
/opt/local/share/gtk-doc/html/cairo/cairo-matrix.html
/opt/local/share/gtk-doc/html/cairo/cairo-paths.html
/opt/local/share/gtk-doc/html/cairo/cairo-pattern.html
/opt/local/share/gtk-doc/html/cairo/cairo-pdf-surface.html
/opt/local/share/gtk-doc/html/cairo/cairo-png-functions.html
/opt/local/share/gtk-doc/html/cairo/cairo-ps-surface.html
/opt/local/share/gtk-doc/html/cairo/cairo-quartz-font.html
/opt/local/share/gtk-doc/html/cairo/cairo-quartz-surface.html
/opt/local/share/gtk-doc/html/cairo/cairo-scaled-font.html
/opt/local/share/gtk-doc/html/cairo/cairo-support.html
/opt/local/share/gtk-doc/html/cairo/cairo-surface.html
/opt/local/share/gtk-doc/html/cairo/cairo-surfaces.html
/opt/local/share/gtk-doc/html/cairo/cairo-svg-surface.html
/opt/local/share/gtk-doc/html/cairo/cairo-text.html
/opt/local/share/gtk-doc/html/cairo/cairo-transformations.html
/opt/local/share/gtk-doc/html/cairo/cairo-types.html
/opt/local/share/gtk-doc/html/cairo/cairo-user-font.html
/opt/local/share/gtk-doc/html/cairo/cairo-version-info.html
/opt/local/share/gtk-doc/html/cairo/cairo-win32-font.html
/opt/local/share/gtk-doc/html/cairo/cairo-win32-surface.html
	:

libs/cairo/glitz-0.5.6

preparation
wget -N http://cairographics.org/snapshots/glitz-0.5.6.tar.gz
tar xvzf glitz-0.5.6.tar.gz
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CXXFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' --prefix=/opt/local --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --enable-glx --disable-agl --disable-egl --disable-wgl &&
make 
installed
/opt/local/include/glitz-glx.h
/opt/local/include/glitz.h
/opt/local/lib/libglitz-glx.1.0.0.dylib
/opt/local/lib/libglitz-glx.1.dylib
/opt/local/lib/libglitz-glx.a
/opt/local/lib/libglitz-glx.dylib
/opt/local/lib/libglitz-glx.la
/opt/local/lib/libglitz.1.0.0.dylib
/opt/local/lib/libglitz.1.dylib
/opt/local/lib/libglitz.a
/opt/local/lib/libglitz.dylib
/opt/local/lib/libglitz.la
/opt/local/lib/pkgconfig/glitz-glx.pc
/opt/local/lib/pkgconfig/glitz.pc

libs/cairo/pixman-0.18.4

preparation
curl -RO -C - http://cairographics.org/releases/pixman-0.18.4.tar.gz
tar xvzf pixman-0.18.4.tar.gz
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean distclean &&
./configure CFLAGS='-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=x86_64-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  listup_binaries > .arch_x86_64/.binaries.lst && tar --files-from=.arch_x86_64/.binaries.lst -cf - | (cd .arch_x86_64 && tar xf -) &&
  listup_headers > .arch_x86_64/.headers.lst && tar --files-from=.arch_x86_64/.headers.lst -cf - | (cd .arch_x86_64 && tar xf -)
} &&
make clean distclean &&
./configure CFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=i686-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean distclean &&
./configure CFLAGS='-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=ppc64-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  listup_binaries > .arch_ppc64/.binaries.lst && tar --files-from=.arch_ppc64/.binaries.lst -cf - | (cd .arch_ppc64 && tar xf -) &&
  listup_headers > .arch_ppc64/.headers.lst && tar --files-from=.arch_ppc64/.headers.lst -cf - | (cd .arch_ppc64 && tar xf -)
} &&
make clean distclean &&
./configure CFLAGS='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=ppc-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_ppc64/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_x86_64/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__)

`cat .arch_ppc/"$h"`

#elif defined(__ppc64__)

`cat .arch_ppc64/"$h"`

#elif defined(__i386__)

`cat .arch_i386/"$h"`

#elif defined(__x86_64__)

`cat .arch_x86_64/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/include/pixman-1/pixman-version.h
/opt/local/include/pixman-1/pixman.h
/opt/local/lib/libpixman-1.0.dylib
/opt/local/lib/libpixman-1.a
/opt/local/lib/libpixman-1.dylib
/opt/local/lib/libpixman-1.la
/opt/local/lib/pkgconfig/pixman-1.pc

libs/fontconfig-2.8.0

preparation
curl -RO -C - http://fontconfig.org/release/fontconfig-2.8.0.tar.gz
tar xvzf fontconfig-2.8.0.tar.gz
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local --with-add-fonts=/opt/local/share/emacs/fonts,/opt/local/X11R6/lib/X11/fonts &&
make 
installed
/opt/local/bin/fc-cache
/opt/local/bin/fc-cat
/opt/local/bin/fc-list
/opt/local/bin/fc-match
/opt/local/bin/fc-query
/opt/local/bin/fc-scan
/opt/local/etc/fonts/conf.avail/10-autohint.conf
/opt/local/etc/fonts/conf.avail/10-no-sub-pixel.conf
/opt/local/etc/fonts/conf.avail/10-sub-pixel-bgr.conf
/opt/local/etc/fonts/conf.avail/10-sub-pixel-rgb.conf
/opt/local/etc/fonts/conf.avail/10-sub-pixel-vbgr.conf
/opt/local/etc/fonts/conf.avail/10-sub-pixel-vrgb.conf
/opt/local/etc/fonts/conf.avail/10-unhinted.conf
/opt/local/etc/fonts/conf.avail/20-fix-globaladvance.conf
/opt/local/etc/fonts/conf.avail/20-unhint-small-vera.conf
/opt/local/etc/fonts/conf.avail/25-unhint-nonlatin.conf
/opt/local/etc/fonts/conf.avail/30-metric-aliases.conf
/opt/local/etc/fonts/conf.avail/30-urw-aliases.conf
/opt/local/etc/fonts/conf.avail/40-nonlatin.conf
/opt/local/etc/fonts/conf.avail/45-latin.conf
/opt/local/etc/fonts/conf.avail/49-sansserif.conf
/opt/local/etc/fonts/conf.avail/50-user.conf
/opt/local/etc/fonts/conf.avail/51-local.conf
/opt/local/etc/fonts/conf.avail/60-latin.conf
/opt/local/etc/fonts/conf.avail/65-fonts-persian.conf
/opt/local/etc/fonts/conf.avail/65-khmer.conf
/opt/local/etc/fonts/conf.avail/65-nonlatin.conf
/opt/local/etc/fonts/conf.avail/69-unifont.conf
/opt/local/etc/fonts/conf.avail/70-no-bitmaps.conf
/opt/local/etc/fonts/conf.avail/70-yes-bitmaps.conf
/opt/local/etc/fonts/conf.avail/80-delicious.conf
/opt/local/etc/fonts/conf.avail/90-synthetic.conf
/opt/local/etc/fonts/conf.d/20-fix-globaladvance.conf
/opt/local/etc/fonts/conf.d/20-unhint-small-vera.conf
/opt/local/etc/fonts/conf.d/30-metric-aliases.conf
/opt/local/etc/fonts/conf.d/30-urw-aliases.conf
/opt/local/etc/fonts/conf.d/40-nonlatin.conf
/opt/local/etc/fonts/conf.d/45-latin.conf
/opt/local/etc/fonts/conf.d/49-sansserif.conf
/opt/local/etc/fonts/conf.d/50-user.conf
/opt/local/etc/fonts/conf.d/51-local.conf
/opt/local/etc/fonts/conf.d/60-latin.conf
/opt/local/etc/fonts/conf.d/65-fonts-persian.conf
/opt/local/etc/fonts/conf.d/65-nonlatin.conf
/opt/local/etc/fonts/conf.d/69-unifont.conf
/opt/local/etc/fonts/conf.d/80-delicious.conf
/opt/local/etc/fonts/conf.d/90-synthetic.conf
/opt/local/etc/fonts/conf.d/README
/opt/local/etc/fonts/fonts.conf
/opt/local/etc/fonts/fonts.dtd
/opt/local/include/fontconfig/fcfreetype.h
/opt/local/include/fontconfig/fcprivate.h
/opt/local/include/fontconfig/fontconfig.h
/opt/local/lib/libfontconfig.1.dylib
/opt/local/lib/libfontconfig.a
/opt/local/lib/libfontconfig.dylib
/opt/local/lib/libfontconfig.la
/opt/local/lib/pkgconfig/fontconfig.pc
/opt/local/share/doc/fontconfig/fontconfig-devel/fcatomiccreate.html
/opt/local/share/doc/fontconfig/fontconfig-devel/fcatomicdeletenew.html
/opt/local/share/doc/fontconfig/fontconfig-devel/fcatomicdestroy.html
/opt/local/share/doc/fontconfig/fontconfig-devel/fcatomiclock.html
/opt/local/share/doc/fontconfig/fontconfig-devel/fcatomicnewfile.html
/opt/local/share/doc/fontconfig/fontconfig-devel/fcatomicorigfile.html
	:
host_configuration
(cd /opt/local/etc/fonts &&
[ ! -f fonts.conf.org ] || mv fonts.conf.org fonts.conf
cat <<EOF | patch -p0 -b -z.org
--- fonts.conf.org	2010-08-20 00:17:03.000000000 +0900
+++ fonts.conf	2010-08-27 14:53:19.000000000 +0900
@@ -24,6 +24,7 @@
 <!-- Font directory list -->
 
 	<dir>/usr/share/fonts</dir>
+	<dir>/System/Library/Fonts</dir> <dir>/Library/Fonts</dir> <dir>/usr/X11R6/lib/X11/fonts</dir>
 	<dir>/opt/local/share/emacs/fonts</dir> <dir>/opt/local/X11R6/lib/X11/fonts</dir>
 	<dir>~/.fonts</dir>
 

EOF
)
/opt/local/bin/fc-cache -s -v

libs/freetype-2.4.2/freetype-2.4.2

preparation
curl -ROL -C - http://downloads.sourceforge.net/freetype/freetype-2.4.2.tar.bz2
curl -ROL -C - http://downloads.sourceforge.net/freetype/ft2demos-2.4.2.tar.bz2
curl -ROL -C - http://downloads.sourceforge.net/freetype/freetype-doc-2.4.2.tar.bz2
tar xvjf freetype-2.4.2.tar.bz2
ln -s freetype-2.4.2 freetype2
tar xvjf ft2demos-2.4.2.tar.bz2
build
./configure CFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local --without-old-mac-fonts --without-fsspec --without-fsref --without-quickdraw-toolbox --without-quickdraw-carbon --without-ats &&
make 
installed
/opt/local/bin/freetype-config
/opt/local/include/freetype2/freetype/config/ftconfig.h
/opt/local/include/freetype2/freetype/config/ftheader.h
/opt/local/include/freetype2/freetype/config/ftmodule.h
/opt/local/include/freetype2/freetype/config/ftoption.h
/opt/local/include/freetype2/freetype/config/ftstdlib.h
/opt/local/include/freetype2/freetype/freetype.h
/opt/local/include/freetype2/freetype/ftadvanc.h
/opt/local/include/freetype2/freetype/ftbbox.h
/opt/local/include/freetype2/freetype/ftbdf.h
/opt/local/include/freetype2/freetype/ftbitmap.h
/opt/local/include/freetype2/freetype/ftcache.h
/opt/local/include/freetype2/freetype/ftchapters.h
/opt/local/include/freetype2/freetype/ftcid.h
/opt/local/include/freetype2/freetype/fterrdef.h
/opt/local/include/freetype2/freetype/fterrors.h
/opt/local/include/freetype2/freetype/ftgasp.h
/opt/local/include/freetype2/freetype/ftglyph.h
/opt/local/include/freetype2/freetype/ftgxval.h
/opt/local/include/freetype2/freetype/ftgzip.h
/opt/local/include/freetype2/freetype/ftimage.h
/opt/local/include/freetype2/freetype/ftincrem.h
/opt/local/include/freetype2/freetype/ftlcdfil.h
/opt/local/include/freetype2/freetype/ftlist.h
/opt/local/include/freetype2/freetype/ftlzw.h
/opt/local/include/freetype2/freetype/ftmac.h
/opt/local/include/freetype2/freetype/ftmm.h
/opt/local/include/freetype2/freetype/ftmodapi.h
/opt/local/include/freetype2/freetype/ftmoderr.h
/opt/local/include/freetype2/freetype/ftotval.h
/opt/local/include/freetype2/freetype/ftoutln.h
/opt/local/include/freetype2/freetype/ftpfr.h
/opt/local/include/freetype2/freetype/ftrender.h
/opt/local/include/freetype2/freetype/ftsizes.h
/opt/local/include/freetype2/freetype/ftsnames.h
/opt/local/include/freetype2/freetype/ftstroke.h
/opt/local/include/freetype2/freetype/ftsynth.h
/opt/local/include/freetype2/freetype/ftsystem.h
/opt/local/include/freetype2/freetype/fttrigon.h
/opt/local/include/freetype2/freetype/fttypes.h
/opt/local/include/freetype2/freetype/ftwinfnt.h
/opt/local/include/freetype2/freetype/ftxf86.h
/opt/local/include/freetype2/freetype/t1tables.h
/opt/local/include/freetype2/freetype/ttnameid.h
/opt/local/include/freetype2/freetype/tttables.h
/opt/local/include/freetype2/freetype/tttags.h
/opt/local/include/freetype2/freetype/ttunpat.h
/opt/local/include/ft2build.h
/opt/local/lib/libfreetype.6.dylib
/opt/local/lib/libfreetype.a
/opt/local/lib/libfreetype.dylib
/opt/local/lib/libfreetype.la
/opt/local/lib/pkgconfig/freetype2.pc
/opt/local/share/aclocal/freetype2.m4

libs/expat-2.0.1

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/expat/expat/2.0.1/expat-2.0.1.tar.gz
tar xvzf expat-2.0.1.tar.gz
build
./configure 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local &&
make 
installed
/opt/local/bin/xmlwf
/opt/local/include/expat.h
/opt/local/include/expat_external.h
/opt/local/lib/libexpat.1.5.2.dylib
/opt/local/lib/libexpat.1.dylib
/opt/local/lib/libexpat.a
/opt/local/lib/libexpat.dylib
/opt/local/lib/libexpat.la
/opt/local/man/man1/xmlwf.1

libs/t1lib-5.1.2

preparation
curl -RO -C - ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-5.1.2.tar.gz
tar xvzf t1lib-5.1.2.tar.gz
build
./configure CC='gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP='gcc -E' CXX='g++ -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXCPP='g++ -E' --without-x --prefix=/opt/local &&
make without_doc
installed
/opt/local/bin/type1afm
/opt/local/include/t1lib.h
/opt/local/lib/libt1.5.1.2.dylib
/opt/local/lib/libt1.5.dylib
/opt/local/lib/libt1.a
/opt/local/lib/libt1.dylib
/opt/local/lib/libt1.la
/opt/local/share/t1lib/doc/t1lib_doc.pdf
/opt/local/share/t1lib/t1lib.config

text/aspell6-en-6.0-0

preparation
curl -RO -C - http://www.ring.gr.jp/archives/GNU/aspell/dict/en/aspell6-en-6.0-0.tar.bz2
tar xvjf aspell6-en-6.0-0.tar.bz2
build
./configure 
installation
make install 
installed
/opt/local/lib/aspell-0.60/american-w_accents.alias
/opt/local/lib/aspell-0.60/american-wo_accents.alias
/opt/local/lib/aspell-0.60/american.alias
/opt/local/lib/aspell-0.60/british-ise-w_accents.alias
/opt/local/lib/aspell-0.60/british-ise-wo_accents.alias
/opt/local/lib/aspell-0.60/british-ise.alias
/opt/local/lib/aspell-0.60/british-ize-w_accents.alias
/opt/local/lib/aspell-0.60/british-ize-wo_accents.alias
/opt/local/lib/aspell-0.60/british-ize.alias
/opt/local/lib/aspell-0.60/british-w_accents.alias
/opt/local/lib/aspell-0.60/british-wo_accents.alias
/opt/local/lib/aspell-0.60/british.alias
/opt/local/lib/aspell-0.60/canadian-w_accents.alias
/opt/local/lib/aspell-0.60/canadian-wo_accents.alias
/opt/local/lib/aspell-0.60/canadian.alias
/opt/local/lib/aspell-0.60/en-common.rws
/opt/local/lib/aspell-0.60/en-variant_0.multi
/opt/local/lib/aspell-0.60/en-variant_0.rws
/opt/local/lib/aspell-0.60/en-variant_1.multi
/opt/local/lib/aspell-0.60/en-variant_1.rws
/opt/local/lib/aspell-0.60/en-variant_2.multi
/opt/local/lib/aspell-0.60/en-variant_2.rws
/opt/local/lib/aspell-0.60/en-w_accents.multi
/opt/local/lib/aspell-0.60/en-wo_accents.multi
/opt/local/lib/aspell-0.60/en.dat
/opt/local/lib/aspell-0.60/en.multi
/opt/local/lib/aspell-0.60/en_affix.dat
/opt/local/lib/aspell-0.60/en_CA-w_accents-only.rws
/opt/local/lib/aspell-0.60/en_CA-w_accents.multi
/opt/local/lib/aspell-0.60/en_CA-wo_accents-only.rws
/opt/local/lib/aspell-0.60/en_CA-wo_accents.multi
/opt/local/lib/aspell-0.60/en_CA.multi
/opt/local/lib/aspell-0.60/en_GB-ise-w_accents-only.rws
/opt/local/lib/aspell-0.60/en_GB-ise-w_accents.multi
/opt/local/lib/aspell-0.60/en_GB-ise-wo_accents-only.rws
/opt/local/lib/aspell-0.60/en_GB-ise-wo_accents.multi
/opt/local/lib/aspell-0.60/en_GB-ise.multi
/opt/local/lib/aspell-0.60/en_GB-ize-w_accents-only.rws
/opt/local/lib/aspell-0.60/en_GB-ize-w_accents.multi
/opt/local/lib/aspell-0.60/en_GB-ize-wo_accents-only.rws
/opt/local/lib/aspell-0.60/en_GB-ize-wo_accents.multi
/opt/local/lib/aspell-0.60/en_GB-ize.multi
/opt/local/lib/aspell-0.60/en_GB-w_accents.multi
/opt/local/lib/aspell-0.60/en_GB-wo_accents.multi
/opt/local/lib/aspell-0.60/en_GB.multi
/opt/local/lib/aspell-0.60/en_phonet.dat
/opt/local/lib/aspell-0.60/en_US-w_accents-only.rws
/opt/local/lib/aspell-0.60/en_US-w_accents.multi
/opt/local/lib/aspell-0.60/en_US-wo_accents-only.rws
/opt/local/lib/aspell-0.60/en_US-wo_accents.multi
/opt/local/lib/aspell-0.60/en_US.multi
/opt/local/lib/aspell-0.60/english-variant_0.alias
/opt/local/lib/aspell-0.60/english-variant_1.alias
/opt/local/lib/aspell-0.60/english-variant_2.alias
/opt/local/lib/aspell-0.60/english-w_accents.alias
/opt/local/lib/aspell-0.60/english-wo_accents.alias
/opt/local/lib/aspell-0.60/english.alias

text/aspell-0.60.6

preparation
curl -RO -C - http://www.ring.gr.jp/archives/GNU/aspell/aspell-0.60.6.tar.gz
tar xvzf aspell-0.60.6.tar.gz
(cd aspell-0.60.6 &&
patch -p0 -b -z.org < ../aspell-0.60.6-ubagami.patch
)
build
./configure --disable-dependency-tracking CFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
patch
--- ./scripts/ispell.org	2004-10-27 02:12:17.000000000 +0900
+++ ./scripts/ispell	2010-08-19 18:50:04.000000000 +0900
@@ -8,6 +8,8 @@
 
 command=""
 
+export LANG= LC_ALL=
+
 for p 
 do
   case $p in 
--- ./scripts/spell.org	2005-01-11 18:56:33.000000000 +0900
+++ ./scripts/spell	2010-08-19 18:50:04.000000000 +0900
@@ -2,5 +2,5 @@
 
 # aspell list mimicks the standard unix spell program, roughly.
 
-cat "$@" | aspell list --mode=none | sort -u
+cat "$@" | env LANG= LC_ALL= aspell list --mode=none | sort -u
 
installation
make install
(cd /opt/local/bin &&
ln -sf ../lib/aspell-0.60/spell . &&
ln -sf ../lib/aspell-0.60/ispell .
)
installed
/opt/local/bin/aspell
/opt/local/bin/aspell-import
/opt/local/bin/ispell
/opt/local/bin/precat
/opt/local/bin/preunzip
/opt/local/bin/prezip
/opt/local/bin/prezip-bin
/opt/local/bin/pspell-config
/opt/local/bin/run-with-aspell
/opt/local/bin/spell
/opt/local/bin/word-list-compress
/opt/local/include/aspell.h
/opt/local/include/pspell/pspell.h
/opt/local/lib/aspell-0.60/ccpp.amf
/opt/local/lib/aspell-0.60/comment.amf
/opt/local/lib/aspell-0.60/context-filter.info
/opt/local/lib/aspell-0.60/context-filter.la
/opt/local/lib/aspell-0.60/context-filter.so
/opt/local/lib/aspell-0.60/cp1250.cmap
/opt/local/lib/aspell-0.60/cp1250.cset
/opt/local/lib/aspell-0.60/cp1251.cmap
/opt/local/lib/aspell-0.60/cp1251.cset
/opt/local/lib/aspell-0.60/cp1252.cmap
/opt/local/lib/aspell-0.60/cp1252.cset
/opt/local/lib/aspell-0.60/cp1253.cmap
/opt/local/lib/aspell-0.60/cp1253.cset
/opt/local/lib/aspell-0.60/cp1254.cmap
/opt/local/lib/aspell-0.60/cp1254.cset
/opt/local/lib/aspell-0.60/cp1255.cmap
/opt/local/lib/aspell-0.60/cp1255.cset
/opt/local/lib/aspell-0.60/cp1256.cmap
/opt/local/lib/aspell-0.60/cp1256.cset
/opt/local/lib/aspell-0.60/cp1257.cmap
/opt/local/lib/aspell-0.60/cp1257.cset
/opt/local/lib/aspell-0.60/cp1258.cmap
/opt/local/lib/aspell-0.60/cp1258.cset
/opt/local/lib/aspell-0.60/dvorak.kbd
/opt/local/lib/aspell-0.60/email-filter.info
/opt/local/lib/aspell-0.60/email-filter.la
/opt/local/lib/aspell-0.60/email-filter.so
/opt/local/lib/aspell-0.60/email.amf
/opt/local/lib/aspell-0.60/html-filter.info
/opt/local/lib/aspell-0.60/html.amf
/opt/local/lib/aspell-0.60/iso-8859-1.cmap
/opt/local/lib/aspell-0.60/iso-8859-1.cset
/opt/local/lib/aspell-0.60/iso-8859-10.cmap
/opt/local/lib/aspell-0.60/iso-8859-10.cset
/opt/local/lib/aspell-0.60/iso-8859-11.cmap
/opt/local/lib/aspell-0.60/iso-8859-11.cset
/opt/local/lib/aspell-0.60/iso-8859-13.cmap
/opt/local/lib/aspell-0.60/iso-8859-13.cset
/opt/local/lib/aspell-0.60/iso-8859-14.cmap
/opt/local/lib/aspell-0.60/iso-8859-14.cset
/opt/local/lib/aspell-0.60/iso-8859-15.cmap
/opt/local/lib/aspell-0.60/iso-8859-15.cset
/opt/local/lib/aspell-0.60/iso-8859-16.cmap
/opt/local/lib/aspell-0.60/iso-8859-16.cset
/opt/local/lib/aspell-0.60/iso-8859-2.cmap
/opt/local/lib/aspell-0.60/iso-8859-2.cset
/opt/local/lib/aspell-0.60/iso-8859-3.cmap
/opt/local/lib/aspell-0.60/iso-8859-3.cset
/opt/local/lib/aspell-0.60/iso-8859-4.cmap
/opt/local/lib/aspell-0.60/iso-8859-4.cset
/opt/local/lib/aspell-0.60/iso-8859-5.cmap
	:

secure/clamav-0.96.2

preparation
verify_digest(){	# $0 method file string
  case "$1" in
  *)
    DIGEST=`echo "$1" | tr a-z A-Z`
    [ "$DIGEST($2)= $3" = "`openssl $1 $2`" ]
    ;;
  esac
}
verify_signature(){	# $0 url|id ... sig
  while [ "$1" != "" ]; do
    case "$1" in
    0x*)
      gpg --recv-keys "$1" || return $?
      ;;
    http:*|ftp:*)
      curl "$1" | gpg --import || return $?
      ;;
    *)
      gpg --verify "$1"
      return $?
    esac
    shift
  done
}
error_out(){	# $0 message ...
  echo "$@" 1>&2
  exit 1
}

curl -ROL -C - http://downloads.sourceforge.net/project/clamav/clamav/0.96.2/clamav-0.96.2.tar.gz
curl -ROL -C - http://downloads.sourceforge.net/project/clamav/clamav/0.96.2/clamav-0.96.2.tar.gz.sig
verify_signature http://www.clamav.net/gpg/tkojm.gpg clamav-0.96.2.tar.gz.sig || error_out "$0: stopped at line $LINENO"

tar xvzf clamav-0.96.2.tar.gz
(cd clamav-0.96.2 && patch -p0 -b -z.org < ../clamav-0.96.2-ubagami.patch)
build
./configure 'CFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local/x86/clamav &&
make
patch
--- ./etc/clamd.conf.org	2010-07-30 21:25:16.000000000 +0900
+++ ./etc/clamd.conf	2010-08-18 13:42:11.000000000 +0900
@@ -5,13 +5,14 @@
 
 
 # Comment or remove the line below.
-Example
+#Example
 
 # Uncomment this option to enable logging.
 # LogFile must be writable for the user running daemon.
 # A full path is required.
 # Default: disabled
 #LogFile /tmp/clamd.log
+LogFile /tmp/clamd.log
 
 # By default the log file is locked for writing - the lock protects against
 # running clamd multiple times (if want to run another clamd, please
@@ -60,6 +61,7 @@
 # daemon (main thread).
 # Default: disabled
 #PidFile /var/run/clamd.pid
+PidFile /tmp/clamd.pid
 
 # Optional path to the global temporary directory.
 # Default: system specific (usually /tmp or /var/tmp).
@@ -68,6 +70,7 @@
 # Path to the database directory.
 # Default: hardcoded (depends on installation options)
 #DatabaseDirectory /var/lib/clamav
+DatabaseDirectory /opt/local/x86/clamav/share/clamav
 
 # Only load the official signatures published by the ClamAV project.
 # Default: no
@@ -95,6 +98,7 @@
 # TCP port address.
 # Default: no
 #TCPSocket 3310
+TCPSocket 3310
 
 # TCP address.
 # By default we bind to INADDR_ANY, probably not wise.
@@ -102,6 +106,7 @@
 # from the outside world.
 # Default: no
 #TCPAddr 127.0.0.1
+TCPAddr 127.0.0.1
 
 # Maximum length the queue of pending connections may grow to.
 # Default: 15
@@ -189,6 +194,7 @@
 # Run as another user (clamd must be started by root for this option to work)
 # Default: don't drop privileges
 #User clamav
+User clamav
 
 # Initialize supplementary group access (clamd must be started by root).
 # Default: no
--- ./etc/freshclam.conf.org	2010-07-30 21:25:16.000000000 +0900
+++ ./etc/freshclam.conf	2010-08-18 13:42:11.000000000 +0900
@@ -5,16 +5,18 @@
 
 
 # Comment or remove the line below.
-Example
+#Example
 
 # Path to the database directory.
 # WARNING: It must match clamd.conf's directive!
 # Default: hardcoded (depends on installation options)
 #DatabaseDirectory /var/lib/clamav
+DatabaseDirectory /opt/local/x86/clamav/share/clamav
 
 # Path to the log file (make sure it has proper permissions)
 # Default: disabled
 #UpdateLogFile /var/log/freshclam.log
+UpdateLogFile /tmp/freshclam.log
 
 # Maximum size of the log file.
 # Value of 0 disables the limit.
@@ -44,11 +46,13 @@
 # This option allows you to save the process identifier of the daemon
 # Default: disabled
 #PidFile /var/run/freshclam.pid
+PidFile /tmp/freshclam.pid
 
 # By default when started freshclam drops privileges and switches to the
 # "clamav" user. This directive allows you to change the database owner.
 # Default: clamav (may depend on installation options)
 #DatabaseOwner clamav
+DatabaseOwner clamav
 
 # Initialize supplementary group access (freshclam must be started by root).
 # Default: no
installed
/opt/local/x86/clamav/bin/clamav-config
/opt/local/x86/clamav/bin/clambc
/opt/local/x86/clamav/bin/clamconf
/opt/local/x86/clamav/bin/clamdscan
/opt/local/x86/clamav/bin/clamdtop
/opt/local/x86/clamav/bin/clamscan
/opt/local/x86/clamav/bin/freshclam
/opt/local/x86/clamav/bin/sigtool
/opt/local/x86/clamav/etc/clamd.conf
/opt/local/x86/clamav/etc/freshclam.conf
/opt/local/x86/clamav/include/clamav.h
/opt/local/x86/clamav/lib/libclamav.6.dylib
/opt/local/x86/clamav/lib/libclamav.dylib
/opt/local/x86/clamav/lib/libclamav.la
/opt/local/x86/clamav/lib/libclamunrar.6.dylib
/opt/local/x86/clamav/lib/libclamunrar.dylib
/opt/local/x86/clamav/lib/libclamunrar.la
/opt/local/x86/clamav/lib/libclamunrar_iface.6.so
/opt/local/x86/clamav/lib/libclamunrar_iface.la
/opt/local/x86/clamav/lib/libclamunrar_iface.so
/opt/local/x86/clamav/lib/pkgconfig/libclamav.pc
/opt/local/x86/clamav/sbin/clamd
/opt/local/x86/clamav/share/clamav
/opt/local/x86/clamav/share/clamav/daily.cvd
/opt/local/x86/clamav/share/clamav/main.cvd
/opt/local/x86/clamav/share/man/man1/clamconf.1
/opt/local/x86/clamav/share/man/man1/clamdscan.1
/opt/local/x86/clamav/share/man/man1/clamdtop.1
/opt/local/x86/clamav/share/man/man1/clamscan.1
/opt/local/x86/clamav/share/man/man1/freshclam.1
/opt/local/x86/clamav/share/man/man1/sigtool.1
/opt/local/x86/clamav/share/man/man5/clamav-milter.conf.5
/opt/local/x86/clamav/share/man/man5/clamd.conf.5
/opt/local/x86/clamav/share/man/man5/freshclam.conf.5
/opt/local/x86/clamav/share/man/man8/clamav-milter.8
/opt/local/x86/clamav/share/man/man8/clamd.8
host_configuration
[ ! -d /Library/StartupItems/Clamd ] && \
mkdir /Library/StartupItems/Clamd
if [ ! -f /Library/StartupItems/Clamd/Clamd ]; then
  cat <<EOF > /Library/StartupItems/Clamd/Clamd
#!/bin/sh

##
# ClamAV Server
##

. /etc/rc.common

StartService ()
{
	DYLD_LIBRARY_PATH=/opt/local/x86/clamav/lib; export DYLD_LIBRARY_PATH
	/opt/local/x86/clamav/bin/freshclam -d
	/opt/local/x86/clamav/sbin/clamd
}

StopService ()
{
	killall -9 freshclam
	killall -9 clamd
}

RestartService () { StopService; StartService; }

RunService "\$1"
EOF
  chmod +x /Library/StartupItems/Clamd/Clamd
fi
if [ ! -f /Library/StartupItems/Clamd/StartupParameters.plist ]; then
  cat <<EOF > /Library/StartupItems/Clamd/StartupParameters.plist
{
  Description     = "ClamAV Server";
  Provides        = ("ClamAV Server");
}
EOF
fi
#/Library/StartupItems/Clamd/Clamd start

ebooks/E-books

preparation
[ -d E-books ] || mkdir E-books
installation
tar -C /opt/local/share -xvjf ../E-books-data.tar.bz2
chown -R root:admin /opt/local/share/E-books
chmod -R +w /opt/local/share/E-books
installed
data_installed
/opt/local/share/E-books/ascii_jitenban/catalogs
/opt/local/share/E-books/ascii_jitenban/chiezo/data/honmon.ebz
/opt/local/share/E-books/ascii_jitenban/chiezo/gaiji/gai16f00.ebz
/opt/local/share/E-books/ascii_jitenban/chiezo/gaiji/gai16h00.ebz
/opt/local/share/E-books/ascii_jitenban/chiezo/gaiji/gai24f00.ebz
/opt/local/share/E-books/ascii_jitenban/chiezo/gaiji/gai24h00.ebz
/opt/local/share/E-books/ascii_jitenban/chiezo/gaiji/gai30f00.ebz
/opt/local/share/E-books/ascii_jitenban/chiezo/gaiji/gai30h00.ebz
/opt/local/share/E-books/ascii_jitenban/chiezo/gaiji/gai48f00.ebz
/opt/local/share/E-books/ascii_jitenban/chiezo/gaiji/gai48h00.ebz
/opt/local/share/E-books/ascii_jitenban/chujiten/data/honmon.ebz
/opt/local/share/E-books/ascii_jitenban/chujiten/gaiji/gai16f00.ebz
/opt/local/share/E-books/ascii_jitenban/chujiten/gaiji/gai16h00.ebz
/opt/local/share/E-books/ascii_jitenban/chujiten/gaiji/gai24f00.ebz
/opt/local/share/E-books/ascii_jitenban/chujiten/gaiji/gai24h00.ebz
/opt/local/share/E-books/ascii_jitenban/chujiten/gaiji/gai30f00.ebz
/opt/local/share/E-books/ascii_jitenban/chujiten/gaiji/gai30h00.ebz
/opt/local/share/E-books/ascii_jitenban/chujiten/gaiji/gai48f00.ebz
/opt/local/share/E-books/ascii_jitenban/chujiten/gaiji/gai48h00.ebz
/opt/local/share/E-books/ascii_jitenban/iwakoku/data/honmon.ebz
/opt/local/share/E-books/ascii_jitenban/iwakoku/gaiji/gai16f00.ebz
/opt/local/share/E-books/ascii_jitenban/iwakoku/gaiji/gai24f00.ebz
/opt/local/share/E-books/ascii_jitenban/iwakoku/gaiji/gai30f00.ebz
/opt/local/share/E-books/ascii_jitenban/iwakoku/gaiji/gai48f00.ebz
/opt/local/share/E-books/ascii_jitenban/mypaedia/data/honmon.ebz
/opt/local/share/E-books/ascii_jitenban/mypaedia/gaiji/gai16f00.ebz
/opt/local/share/E-books/ascii_jitenban/mypaedia/gaiji/gai16h00.ebz
/opt/local/share/E-books/ascii_jitenban/mypaedia/gaiji/gai24f00.ebz
/opt/local/share/E-books/ascii_jitenban/mypaedia/gaiji/gai24h00.ebz
/opt/local/share/E-books/ascii_jitenban/mypaedia/gaiji/gai30f00.ebz
/opt/local/share/E-books/ascii_jitenban/mypaedia/gaiji/gai30h00.ebz
/opt/local/share/E-books/ascii_jitenban/mypaedia/gaiji/gai48f00.ebz
/opt/local/share/E-books/ascii_jitenban/mypaedia/gaiji/gai48h00.ebz
/opt/local/share/E-books/ascii_jitenban/vtoc
/opt/local/share/E-books/ebx1100/atukai/sound.bz2
/opt/local/share/E-books/ebx1100/atukai/start.ebz
/opt/local/share/E-books/ebx1100/catalog
/opt/local/share/E-books/ebx1100/cen/language
/opt/local/share/E-books/ebx1100/cen/sound.bz2
/opt/local/share/E-books/ebx1100/cen/start.ebz
/opt/local/share/E-books/ebx1100/crown/language
/opt/local/share/E-books/ebx1100/crown/sound.bz2
/opt/local/share/E-books/ebx1100/crown/start.ebz
/opt/local/share/E-books/ebx1100/koji/language
/opt/local/share/E-books/ebx1100/koji/start.ebz
/opt/local/share/E-books/ebx1100/kokugo/language
/opt/local/share/E-books/ebx1100/kokugo/start.ebz
/opt/local/share/E-books/ebx1100/language.ebz
/opt/local/share/E-books/ebx1100/ruigo/language
/opt/local/share/E-books/ebx1100/ruigo/start.ebz
/opt/local/share/E-books/ebx1100/tegami/language
/opt/local/share/E-books/ebx1100/tegami/start.ebz
/opt/local/share/E-books/ebx1100/warpro/language
/opt/local/share/E-books/ebx1100/warpro/start.ebz
/opt/local/share/E-books/genius/catalog
/opt/local/share/E-books/genius/genius/language
/opt/local/share/E-books/genius/genius/sound.bz2
/opt/local/share/E-books/genius/genius/start.ebz
/opt/local/share/E-books/genius/language.ebz
/opt/local/share/E-books/genius/welcome
/opt/local/share/E-books/nec_books01/catalogs
/opt/local/share/E-books/nec_books01/crcen/data/honmon.ebz
/opt/local/share/E-books/nec_books01/crcen/gaiji/ga16full.ebz
/opt/local/share/E-books/nec_books01/crcen/gaiji/ga16half.ebz
	:

ebooks/ebnetd-1.0

preparation
curl -O -C - ftp://ftp.sra.co.jp/pub/misc/eb/ebnetd-1.0.tar.gz
tar xvzf ebnetd-1.0.tar.gz
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local --enable-ipv6 
make 
installed
/opt/local/etc/ebnetd.conf.sample
/opt/local/info/ebnetd-ja.info
/opt/local/info/ebnetd-ja.info-1
/opt/local/info/ebnetd-ja.info-2
/opt/local/info/ebnetd.info
/opt/local/info/ebnetd.info-1
/opt/local/info/ebnetd.info-2
/opt/local/libexec/ebhtstat
/opt/local/libexec/ebnstat
/opt/local/libexec/ndtpstat
/opt/local/sbin/ebhtcheck
/opt/local/sbin/ebhtcontrol
/opt/local/sbin/ebhttpd
/opt/local/sbin/ebncheck
/opt/local/sbin/ebncontrol
/opt/local/sbin/ebndaily
/opt/local/sbin/ebnetd
/opt/local/sbin/ebnupgrade
/opt/local/sbin/ndtpcheck
/opt/local/sbin/ndtpcontrol
/opt/local/sbin/ndtpd
/opt/local/var/ebnetd
host_configuration
if [ ! -f /opt/local/etc/ebnetd.conf ]; then
  cat <<EOF > /opt/local/etc/ebnetd.conf
######################################################################
# Configuration file for ebnetd/ndtpd/ebhttpd.
# (Copy this file to 'ebnetd.conf', and edit it.)
######################################################################

### Port number 'ebnetd' binds.
### (default: ebnet)
# ebnet-port		ebnet
ebnet-port		22010

### Port number 'ndtpd' binds.
### (default: ndtp)
# ndtp-port		ndtp
ndtp-port		2010

### Port number 'ebhttpd' binds.
### (default: http)
# http-port		http
http-port		8010

### Owner of the server process.
### (default: none)
#user			ndtpuser
user			nobody

### Group of the server process.
### (default: none)
#group			ndtpgrp
group			nobody

### How many clients can be connected to the server at the same time.
### (default: 1)
# max-clients		1
max-clients		0

### Which hosts can or cannot connect to the server.
### (default: none)
hosts			127.0.0.1
hosts			::1
hosts			!?
#hosts			host.your.domain

### Timeout seconds until the server disconnects an idle connection.
### (default: 900)
# timeout		900

### Path to a working directory.
### Please create the directory and make it be writable for the server
### processes before executing the server.
### (default: /opt/local/var/ebnetd)
# work-path		/opt/local/var/ebnetd
work-path		/opt/local/var/ebnetd

### How many hit entries the server tries to find at a search.
### (default: 50)
# max-hits		50

### The maximum size of text the server may send as a response to
### a client.
### (default: 32768)
# max-text-size		32768

### Syslog facility
### (default: daemon)
#syslog-facility		local0

###
### Book entry
###
begin book
    ### Name of the book.
    ### (required)
    name		jitenban

    ### Title of the book.
    ### (required)
    title		アスキー 『辞・典・盤』

    ### Path to a top directory of the book.
    ### (required)
    #path		/cdrom
    path		/opt/local/share/E-books/ascii_jitenban/

    ### Path to a top directory of the appdendix data of the book.
    ### (default: none)
    #appendix-path	/opt/local/share/eb/appendix/jitenban97-2.1

    ### How many clients can access the book at the same time.
    ### (default: 1)
    #max-clients		1
    max-clients		0

    ### Which hosts can or cannot access to the book.
    ### (default: none)
    hosts		127.0.0.1
    hosts		::1
    hosts		!?
    #hosts		host.your.domain
end

### Add a book group directive (lines between 'begin book' and 'end'),
### if you want to read another CD-ROM book.  A book group directive
### is required for each book.

begin book
    name		nec_books01
    title		三省堂 『日本語辞典、英和・和英辞典』
    path		/opt/local/share/E-books/nec_books01/
    max-clients		0
    hosts		127.0.0.1
    hosts		::1
    hosts		!?
end
begin book
    name		genius
    title		大修館書店 『ジーニアス英和辞典』
    path		/opt/local/share/E-books/genius/
    max-clients		0
    hosts		127.0.0.1
    hosts		::1
    hosts		!?
end
begin book
    name		ebx1100
    title		三省堂 『辞書十巻』
    path		/opt/local/share/E-books/ebx1100/
    max-clients		0
    hosts		127.0.0.1
    hosts		::1
    hosts		!?
end
EOF
fi

if [ -d /opt/local/var/ebnetd ]; then
  chown nobody /opt/local/var/ebnetd
  chgrp nobody /opt/local/var/ebnetd
fi

if false; then
if [ ! -f /Library/LaunchDaemons/ebnet.plist ]; then
  cat <<EOF > /Library/LaunchDaemons/ebnet.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Disabled</key>
	<true/>
	<key>InitGroups</key>
	<true/>
	<key>Label</key>
	<string>ebnet</string>
	<key>ProgramArguments</key>
	<array>
		<string>/opt/local/sbin/ebnetd</string>
		<string>-i</string>
	</array>
	<key>Sockets</key>
	<dict>
		<key>Listener</key>
		<dict>
			<key>SockServiceName</key>
			<string>22010</string>
			<key>SockType</key>
			<string>stream</string>
		</dict>
	</dict>
	<key>UserName</key>
	<string>nobody</string>
	<key>inetdCompatibility</key>
	<dict>
		<key>Wait</key>
		<false/>
	</dict>
	<key>LimitLoadToHosts</key>
	<array>
		<string>127.0.0.1</string><string>::1</string>
		<string>192.168.0.0/24</string><string>219.166.94.168/29</string>
		<string>192.168.1.0/24</string><string>210.154.62.64/29</string>
	</array>
</dict>
</plist>
EOF
fi

if [ ! -f /Library/LaunchDaemons/ndtp.plist ]; then
  cat <<EOF > /Library/LaunchDaemons/ndtp.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Disabled</key>
	<true/>
	<key>InitGroups</key>
	<true/>
	<key>Label</key>
	<string>ndtp</string>
	<key>ProgramArguments</key>
	<array>
		<string>/opt/local/sbin/ndtpd</string>
		<string>-i</string>
	</array>
	<key>Sockets</key>
	<dict>
		<key>Listener</key>
		<dict>
			<key>SockServiceName</key>
			<string>2010</string>
			<key>SockType</key>
			<string>stream</string>
		</dict>
	</dict>
	<key>UserName</key>
	<string>nobody</string>
	<key>inetdCompatibility</key>
	<dict>
		<key>Wait</key>
		<false/>
	</dict>
	<key>LimitLoadToHosts</key>
	<array>
		<string>127.0.0.1</string><string>::1</string>
		<string>192.168.0.0/24</string><string>219.166.94.168/29</string>
		<string>192.168.1.0/24</string><string>210.154.62.64/29</string>
	</array>
</dict>
</plist>
EOF
fi

if [ ! -f /Library/LaunchDaemons/ebhttp.plist ]; then
  cat <<EOF > /Library/LaunchDaemons/ebhttp.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Disabled</key>
	<true/>
	<key>InitGroups</key>
	<true/>
	<key>Label</key>
	<string>ebhttp</string>
	<key>ProgramArguments</key>
	<array>
		<string>/opt/local/sbin/ebhttpd</string>
		<string>-i</string>
	</array>
	<key>Sockets</key>
	<dict>
		<key>Listener</key>
		<dict>
			<key>SockServiceName</key>
			<string>8010</string>
			<key>SockType</key>
			<string>stream</string>
		</dict>
	</dict>
	<key>UserName</key>
	<string>nobody</string>
	<key>inetdCompatibility</key>
	<dict>
		<key>Wait</key>
		<false/>
	</dict>
	<key>LimitLoadToHosts</key>
	<array>
		<string>127.0.0.1</string><string>::1</string>
		<string>192.168.0.0/24</string><string>219.166.94.168/29</string>
		<string>192.168.1.0/24</string><string>210.154.62.64/29</string>
	</array>
</dict>
</plist>
EOF
fi
#launchctl load -w /Library/LaunchDaemons/ebnet.plist
#launchctl load -w /Library/LaunchDaemons/ndtp.plist
#launchctl load -w /Library/LaunchDaemons/ebhttp.plist
else
[ ! -d /Library/StartupItems/ebnetServer ] && \
mkdir /Library/StartupItems/ebnetServer
if [ ! -f /Library/StartupItems/ebnetServer/ebnetServer ]; then
  cat <<EOF > /Library/StartupItems/ebnetServer/ebnetServer
#!/bin/sh

##
# ebnet Server
##

. /etc/rc.common

StartService ()
{
	/opt/local/sbin/ebnetd
}

StopService ()
{
	/opt/local/sbin/ebncontrol terminate ||
	/opt/local/sbin/ebncontrol kill
}

RestartService ()
{
	/opt/local/sbin/ebncontrol restart ||
	{ StopService; StartService; }
}

RunService "\$1"
EOF
  chmod +x /Library/StartupItems/ebnetServer/ebnetServer
fi
if [ ! -f /Library/StartupItems/ebnetServer/StartupParameters.plist ]; then
  cat <<EOF > /Library/StartupItems/ebnetServer/StartupParameters.plist
{
  Description     = "ebnet Server";
  Provides        = ("ebnet Server");
}
EOF
fi

[ ! -d /Library/StartupItems/ndtpServer ] && \
mkdir /Library/StartupItems/ndtpServer
if [ ! -f /Library/StartupItems/ndtpServer/ndtpServer ]; then
  cat <<EOF > /Library/StartupItems/ndtpServer/ndtpServer
#!/bin/sh

##
# ndtp Server
##

. /etc/rc.common

StartService ()
{
	/opt/local/sbin/ndtpd
}

StopService ()
{
	/opt/local/sbin/ndtpcontrol terminate ||
	/opt/local/sbin/ndtpcontrol kill
}

RestartService ()
{
	/opt/local/sbin/ndtpcontrol restart ||
	{ StopService; StartService; }
}

RunService "\$1"
EOF
  chmod +x /Library/StartupItems/ndtpServer/ndtpServer
fi
if [ ! -f /Library/StartupItems/ndtpServer/StartupParameters.plist ]; then
  cat <<EOF > /Library/StartupItems/ndtpServer/StartupParameters.plist
{
  Description     = "ndtp Server";
  Provides        = ("ndtp Server");
}
EOF
fi

[ ! -d /Library/StartupItems/ebhttpServer ] && \
mkdir /Library/StartupItems/ebhttpServer
if [ ! -f /Library/StartupItems/ebhttpServer/ebhttpServer ]; then
  cat <<EOF > /Library/StartupItems/ebhttpServer/ebhttpServer
#!/bin/sh

##
# ebhttp Server
##

. /etc/rc.common

StartService ()
{
	/opt/local/sbin/ebhttpd
}

StopService ()
{
	/opt/local/sbin/ebhtcontrol terminate ||
	/opt/local/sbin/ebhtcontrol kill
}

RestartService ()
{
	/opt/local/sbin/ebhtcontrol restart ||
	{ StopService; StartService; }
}

RunService "\$1"
EOF
  chmod +x /Library/StartupItems/ebhttpServer/ebhttpServer
fi
if [ ! -f /Library/StartupItems/ebhttpServer/StartupParameters.plist ]; then
  cat <<EOF > /Library/StartupItems/ebhttpServer/StartupParameters.plist
{
  Description     = "ebhttp Server";
  Provides        = ("ebhttp Server");
}
EOF
fi
#/Library/StartupItems/ebnetServer/ebnetServer start
#/Library/StartupItems/ndtpServer/ndtpServer start
#/Library/StartupItems/ebhttpServer/ebhttpServer start
fi
host_unconfiguration
if false; then
launchctl unload -w /Library/LaunchDaemons/ebnet.plist &&
echo rm -f /Library/LaunchDaemons/ebnet.plist
launchctl unload -w /Library/LaunchDaemons/ndtp.plist &&
echo rm -f /Library/LaunchDaemons/ndtp.plist
launchctl unload -w /Library/LaunchDaemons/ebhttp.plist &&
echo rm -f /Library/LaunchDaemons/ebhttp.plist
else
/Library/StartupItems/ebnetServer/ebnetServer stop &&
rm -rf /Library/StartupItems/ebnetServer
/Library/StartupItems/ndtpServer/ndtpServer stop &&
rm -rf /Library/StartupItems/ndtpServer
/Library/StartupItems/ebhttpServer/ebhttpServer stop &&
rm -rf /Library/StartupItems/ebhttpServer
fi

ebooks/eb-4.4.3

preparation
curl -O -C - ftp://ftp.sra.co.jp/pub/misc/eb/eb-4.4.3.tar.bz2
tar xvjf eb-4.4.3.tar.bz2
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' --prefix=/opt/local 
make 
installed
/opt/local/bin/ebappendix
/opt/local/bin/ebfont
/opt/local/bin/ebinfo
/opt/local/bin/ebrefile
/opt/local/bin/ebstopcode
/opt/local/bin/ebunzip
/opt/local/bin/ebzip
/opt/local/bin/ebzipinfo
/opt/local/etc/eb.conf
/opt/local/include/eb/appendix.h
/opt/local/include/eb/binary.h
/opt/local/include/eb/booklist.h
/opt/local/include/eb/defs.h
/opt/local/include/eb/eb.h
/opt/local/include/eb/error.h
/opt/local/include/eb/font.h
/opt/local/include/eb/sysdefs.h
/opt/local/include/eb/text.h
/opt/local/include/eb/zio.h
/opt/local/lib/libeb.16.dylib
/opt/local/lib/libeb.a
/opt/local/lib/libeb.dylib
/opt/local/lib/libeb.la
/opt/local/share/aclocal/eb4.m4
/opt/local/share/eb/appendix
/opt/local/share/eb/doc/eb-01.html
/opt/local/share/eb/doc/eb-02.html
/opt/local/share/eb/doc/eb-03.html
/opt/local/share/eb/doc/eb-04.html
/opt/local/share/eb/doc/eb-05.html
/opt/local/share/eb/doc/eb-06.html
/opt/local/share/eb/doc/eb-07.html
/opt/local/share/eb/doc/eb-08.html
/opt/local/share/eb/doc/eb-09.html
/opt/local/share/eb/doc/eb-10.html
/opt/local/share/eb/doc/eb-11.html
/opt/local/share/eb/doc/eb-12.html
/opt/local/share/eb/doc/eb-13.html
/opt/local/share/eb/doc/eb-14.html
/opt/local/share/eb/doc/eb.html
/opt/local/share/eb/doc/ebappendix-01.html
/opt/local/share/eb/doc/ebappendix-02.html
/opt/local/share/eb/doc/ebappendix-03.html
/opt/local/share/eb/doc/ebappendix-04.html
/opt/local/share/eb/doc/ebappendix.html
/opt/local/share/eb/doc/ebfont-01.html
/opt/local/share/eb/doc/ebfont-02.html
/opt/local/share/eb/doc/ebfont-03.html
/opt/local/share/eb/doc/ebfont-04.html
/opt/local/share/eb/doc/ebfont.html
/opt/local/share/eb/doc/ebinfo-01.html
/opt/local/share/eb/doc/ebinfo-02.html
/opt/local/share/eb/doc/ebinfo-03.html
/opt/local/share/eb/doc/ebinfo-04.html
/opt/local/share/eb/doc/ebinfo-05.html
/opt/local/share/eb/doc/ebinfo.html
/opt/local/share/eb/doc/ebrefile-01.html
/opt/local/share/eb/doc/ebrefile-02.html
/opt/local/share/eb/doc/ebrefile-03.html
/opt/local/share/eb/doc/ebrefile.html
/opt/local/share/eb/doc/ebstopcode-01.html
/opt/local/share/eb/doc/ebstopcode-02.html
/opt/local/share/eb/doc/ebstopcode-03.html
/opt/local/share/eb/doc/ebstopcode.html
	:

net/www/tokyopromenade-0.9.21

preparation
curl -RO -C - http://fallabs.com/tokyopromenade/tokyopromenade-0.9.21.tar.gz
tar xvzf tokyopromenade-0.9.21.tar.gz
(cd tokyopromenade-0.9.21 &&
patch -p0 -b -z.org < ../tokyopromenade-0.9.21-ubagami.patch
)
build
./configure 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk' 'CPPFLAGS=-I/opt/local/tokyocabinet/include -I/opt/local/include' 'LDFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -L/opt/local/tokyocabinet/lib -I/opt/local/lib' --prefix=/opt/local 
make LIBDIR=/opt/local/lib
patch
--- ./promenade.c~	2010-08-10 00:14:16.000000000 +0900
+++ ./promenade.c	2010-08-17 17:39:24.000000000 +0900
@@ -413,9 +413,9 @@
     p_userlang = lang;
   }
   if(*p_format == '\0'){
-    if(!strcmp(g_mimerule, "xhtml")) {
+    if(g_mimerule && !strcmp(g_mimerule, "xhtml")) {
       p_format = "xhtml";
-    } else if(!strcmp(g_mimerule, "html")) {
+    } else if(g_mimerule && !strcmp(g_mimerule, "html")) {
       p_format = "html";
     } else {
       rp = getenv("HTTP_ACCEPT");
installed
/opt/local/bin/prommgr
/opt/local/libexec/promenade.cgi
/opt/local/libexec/promscrcount.lua
/opt/local/libexec/promscrsample.lua
/opt/local/libexec/promupdiff.sh
/opt/local/libexec/promupping.sh
/opt/local/share/man/man1/prommgr.1
/opt/local/share/tokyopromenade/ChangeLog
/opt/local/share/tokyopromenade/COPYING
/opt/local/share/tokyopromenade/doc/common.css
/opt/local/share/tokyopromenade/doc/index.html
/opt/local/share/tokyopromenade/doc/spex.html
/opt/local/share/tokyopromenade/misc/about.tpw
/opt/local/share/tokyopromenade/misc/banner.svg
/opt/local/share/tokyopromenade/misc/blog.tpw
/opt/local/share/tokyopromenade/misc/chars.tpw
/opt/local/share/tokyopromenade/misc/dup1.tpw
/opt/local/share/tokyopromenade/misc/dup2.tpw
/opt/local/share/tokyopromenade/misc/dup3.tpw
/opt/local/share/tokyopromenade/misc/dup4.tpw
/opt/local/share/tokyopromenade/misc/front.tpw
/opt/local/share/tokyopromenade/misc/help-en.tpw
/opt/local/share/tokyopromenade/misc/help-ja.tpw
/opt/local/share/tokyopromenade/misc/tc.tpw
/opt/local/share/tokyopromenade/passwd.txt
/opt/local/share/tokyopromenade/promenade.css
/opt/local/share/tokyopromenade/promenade.tmpl
/opt/local/share/tokyopromenade/THANKS

x11/drawer/tgif-QPL-4.2.2

preparation
#curl -RO -C - ftp://bourbon.usc.edu/pub/tgif/tgif-QPL-4.2.2.tar.gz
curl -ROL -C - http://downloads.sourceforge.net/project/tgif/tgif/4.2.2/tgif-QPL-4.2.2.tar.gz
tar xvzf tgif-QPL-4.2.2.tar.gz
(cd tgif-QPL-4.2.2 &&
patch -p0 -b -z.org < ../tgif-QPL-4.2.2-ubagami.patch
)
build
xmkmf 
make 'CC=gcc -arch ppc -arch i386 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 
patch
--- ./font.c.org	2009-11-17 09:57:17.000000000 +0900
+++ ./font.c	2010-08-06 20:44:17.000000000 +0900
@@ -1128,7 +1128,7 @@
                }
                nOdd = !nOdd;
             }
-            nTotal += XTextWidth16(xfs, gpszTmpStr16, nDoubleByteIndex);
+            nTotal += xfs->per_char ? XTextWidth16(xfs, gpszTmpStr16, nDoubleByteIndex) : (xfs->max_bounds.width * nDoubleByteIndex);
          } else {
             for (psz=pszStart, nSubStrIndex=0;
                   nIndex+nSubStrIndex < nLen && ((*psz)&0x80) == 0;
@@ -1189,7 +1189,7 @@
                   Pixmap bitmap=None;
                   TextExtentsInfo stTextExtents;
 
-                  w = XTextWidth16(canvasFontPtr, &gpszTmpStr16[i], 1);
+                  w = canvasFontPtr->per_char ? XTextWidth16(canvasFontPtr, &gpszTmpStr16[i], 1) : canvasFontPtr->max_bounds.width;
                   buf[0] = pszStart[i<<1];
                   buf[1] = pszStart[(i<<1)+1];
                   buf[2] = '\0';
@@ -1220,7 +1220,7 @@
             } else {
                XDrawString16(dpy, d, gc, x+nTotal, y, gpszTmpStr16,
                      nDoubleByteIndex);
-               w = XTextWidth16(canvasFontPtr, gpszTmpStr16, nDoubleByteIndex);
+               w = canvasFontPtr->per_char ? XTextWidth16(canvasFontPtr, gpszTmpStr16, nDoubleByteIndex) : (canvasFontPtr->max_bounds.width*nDoubleByteIndex);
                nTotal += w;
             }
          } else {
--- ./Imakefile.org	2009-11-17 09:57:20.000000000 +0900
+++ ./Imakefile	2010-08-06 20:52:31.000000000 +0900
@@ -11,7 +11,7 @@
 XCOMM There should be no need to modify this file.      XCOMM
 XCOMM ------------------------------------------------- XCOMM
 
-#include <Tgif.tmpl>
+#include <Tgif.tmpl-darwin>
 #include <Target.tmpl>
 
 XCOMM 
@@ -49,6 +49,8 @@
                   -DTGIF_DISTR_VER=\"$(TGIFVERSION)\" \@@\
                   $(MOREDEFINES) -DQPL_LICENSE
 
+DEFINES += -DA4PAPER
+
 XCOMM Things to try to add to the DEFINES line above:
 XCOMM
 XCOMM    RS6000:  -D_BSD
@@ -332,6 +334,7 @@
 SRCS3 = 
 
 ComplexProgramTarget_1($(TARGET_1),$(LOCAL_LIBRARIES),NullParameter)
+ComplexProgramTarget_2(prtgif,NullParameter,NullParameter)
 /*
  * ComplexProgramTarget_2(prtgif,NullParameter,NullParameter)
  * ComplexProgramTarget_3(testdrive,$(LOCAL_LIBRARIES),NullParameter)
--- ./Tgif.tmpl-darwin.org	2009-11-17 09:57:20.000000000 +0900
+++ ./Tgif.tmpl-darwin	2010-08-06 20:44:17.000000000 +0900
@@ -28,7 +28,7 @@
 XIMPDEFINES      =
 #endif
 
-PROGRAMS	= tgif XCOMM prtgif frontend11.o testdrive
+PROGRAMS	= tgif prtgif XCOMM frontend11.o testdrive
 TGIFDIR		= $(LIBDIR)/tgif
 XCOMM CDEBUGFLAGS= -g -Wall
 XCOMM CCOPTIONS	= -Wall -Wpointer-arith -Wmissing-prototypes \@@\
installed
/usr/X11R6/bin/prtgif
/usr/X11R6/bin/tgif
/usr/X11R6/lib/X11/tgif/Copyright
/usr/X11R6/lib/X11/tgif/eq4-2x-jpg.sym
/usr/X11R6/lib/X11/tgif/eq4-2x.sym
/usr/X11R6/lib/X11/tgif/eq4-epstool.sym
/usr/X11R6/lib/X11/tgif/eq4-lyx-ps2epsi.sym
/usr/X11R6/lib/X11/tgif/eq4-ps2epsi.sym
/usr/X11R6/lib/X11/tgif/eq4.sym
/usr/X11R6/lib/X11/tgif/eq4jpg.sym
/usr/X11R6/lib/X11/tgif/eq4png.sym
/usr/X11R6/lib/X11/tgif/eq4xpm-land.sym
/usr/X11R6/lib/X11/tgif/eq4xpm.sym
/usr/X11R6/lib/X11/tgif/hicolor/128x128/apps/tgificon.png
/usr/X11R6/lib/X11/tgif/hicolor/22x22/apps/tgificon.png
/usr/X11R6/lib/X11/tgif/hicolor/32x32/apps/tgificon.png
/usr/X11R6/lib/X11/tgif/hicolor/48x48/apps/tgificon.png
/usr/X11R6/lib/X11/tgif/hicolor/64x64/apps/tgificon.png
/usr/X11R6/lib/X11/tgif/keys.obj
/usr/X11R6/lib/X11/tgif/LICENSE.QPL
/usr/X11R6/lib/X11/tgif/tangram.sym
/usr/X11R6/lib/X11/tgif/tgif.gif
/usr/X11R6/lib/X11/tgif/tgif.Xdefaults
/usr/X11R6/lib/X11/tgif/tgificon.eps
/usr/X11R6/lib/X11/tgif/tgificon.obj
/usr/X11R6/lib/X11/tgif/tgificon.xbm
/usr/X11R6/lib/X11/tgif/tgificon.xpm
/usr/X11R6/man/man1/prtgif.1
/usr/X11R6/man/man1/tgif.1

libs/gd-2.0.35

preparation
curl -RO -C - http://www.libgd.org/releases/gd-2.0.35.tar.bz2
tar xvjf gd-2.0.35.tar.bz2
build
./configure --disable-dependency-tracking \
CC='gcc -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/opt/local/lib -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib' \
CPP='gcc -E -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/opt/local/lib -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib' \
CXX='g++ -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/opt/local/lib -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib' \
CXXCPP='g++ -E -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/opt/local/lib -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib' \
--prefix=/opt/local --with-x &&
make 
installed
/opt/local/bin/annotate
/opt/local/bin/bdftogd
/opt/local/bin/gd2copypal
/opt/local/bin/gd2togif
/opt/local/bin/gd2topng
/opt/local/bin/gdcmpgif
/opt/local/bin/gdlib-config
/opt/local/bin/gdparttopng
/opt/local/bin/gdtopng
/opt/local/bin/giftogd2
/opt/local/bin/pngtogd
/opt/local/bin/pngtogd2
/opt/local/bin/webpng
/opt/local/include/entities.h
/opt/local/include/gd.h
/opt/local/include/gd_io.h
/opt/local/include/gdcache.h
/opt/local/include/gdfontg.h
/opt/local/include/gdfontl.h
/opt/local/include/gdfontmb.h
/opt/local/include/gdfonts.h
/opt/local/include/gdfontt.h
/opt/local/include/gdfx.h
/opt/local/lib/libgd.2.0.0.dylib
/opt/local/lib/libgd.2.dylib
/opt/local/lib/libgd.a
/opt/local/lib/libgd.dylib
/opt/local/lib/libgd.la

img/ImageMagick-6.6.3-2

preparation
curl -RO -C - http://aist.ring.gr.jp/archives/graphics/ImageMagick/ImageMagick-6.6.3-2.tar.xz
xzcat ImageMagick-6.6.3-2.tar.xz | tar xvf -
(cd ImageMagick-6.6.3-2 &&
patch -p0 -b -z.org < ../ImageMagick-6.6.3-2-ubagami.patch
)
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean &&
./configure --disable-dependency-tracking 'CFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS='-I/opt/local/include' 'LDFLAGS=-L/opt/local/lib -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --with-magick-plus-plus --without-perl --with-bzlib --with-zlib --without-dps --without-djvu --without-fpx --without-fontconfig --with-freetype --without-gslib --without-gvc --without-jbig --with-jpeg --with-jp2 --with-lcms --with-lcms2 --with-lqr --without-openexr --with-png --without-rsvg --with-tiff --without-wmf --with-xml --with-x --host=i386-apple-darwin --build=`sh config/config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean &&
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS='-I/opt/local/include' 'LDFLAGS=-L/opt/local/lib -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --with-magick-plus-plus --without-perl --with-bzlib --with-zlib --without-dps --without-djvu --without-fpx --without-fontconfig --with-freetype --without-gslib --without-gvc --without-jbig --with-jpeg --with-jp2 --with-lcms --with-lcms2 --with-lqr --without-openexr --with-png --without-rsvg --with-tiff --without-wmf --with-xml --with-x --host=ppc-apple-darwin --build=`sh config/config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__)

`cat .arch_ppc/"$h"`

#elif defined(__i386__)

`cat .arch_i386/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
patch
--- ./configure~	2010-08-02 01:08:20.000000000 +0900
+++ ./configure	2010-08-02 22:26:54.000000000 +0900
@@ -9388,7 +9388,7 @@
         if test "$cross_compiling" = yes; then :
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
+as_echo $? "cannot run test program while cross compiling
 See \`config.log' for more details" "$LINENO" 5; }
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
installed
/opt/local/bin/animate
/opt/local/bin/compare
/opt/local/bin/composite
/opt/local/bin/conjure
/opt/local/bin/convert
/opt/local/bin/display
/opt/local/bin/identify
/opt/local/bin/import
/opt/local/bin/Magick++-config
/opt/local/bin/Magick-config
/opt/local/bin/MagickCore-config
/opt/local/bin/MagickWand-config
/opt/local/bin/mogrify
/opt/local/bin/montage
/opt/local/bin/stream
/opt/local/bin/Wand-config
/opt/local/include/ImageMagick/magick/accelerate.h
/opt/local/include/ImageMagick/magick/animate.h
/opt/local/include/ImageMagick/magick/annotate.h
/opt/local/include/ImageMagick/magick/api.h
/opt/local/include/ImageMagick/magick/artifact.h
/opt/local/include/ImageMagick/magick/attribute.h
/opt/local/include/ImageMagick/magick/blob.h
/opt/local/include/ImageMagick/magick/cache-view.h
/opt/local/include/ImageMagick/magick/cache.h
/opt/local/include/ImageMagick/magick/cipher.h
/opt/local/include/ImageMagick/magick/client.h
/opt/local/include/ImageMagick/magick/coder.h
/opt/local/include/ImageMagick/magick/color.h
/opt/local/include/ImageMagick/magick/colormap.h
/opt/local/include/ImageMagick/magick/colorspace.h
/opt/local/include/ImageMagick/magick/compare.h
/opt/local/include/ImageMagick/magick/composite.h
/opt/local/include/ImageMagick/magick/compress.h
/opt/local/include/ImageMagick/magick/configure.h
/opt/local/include/ImageMagick/magick/constitute.h
/opt/local/include/ImageMagick/magick/decorate.h
/opt/local/include/ImageMagick/magick/delegate.h
/opt/local/include/ImageMagick/magick/deprecate.h
/opt/local/include/ImageMagick/magick/display.h
/opt/local/include/ImageMagick/magick/distort.h
/opt/local/include/ImageMagick/magick/draw.h
/opt/local/include/ImageMagick/magick/effect.h
/opt/local/include/ImageMagick/magick/enhance.h
/opt/local/include/ImageMagick/magick/exception.h
/opt/local/include/ImageMagick/magick/feature.h
/opt/local/include/ImageMagick/magick/fourier.h
/opt/local/include/ImageMagick/magick/fx.h
/opt/local/include/ImageMagick/magick/gem.h
/opt/local/include/ImageMagick/magick/geometry.h
/opt/local/include/ImageMagick/magick/hashmap.h
/opt/local/include/ImageMagick/magick/histogram.h
/opt/local/include/ImageMagick/magick/identify.h
/opt/local/include/ImageMagick/magick/image-view.h
/opt/local/include/ImageMagick/magick/image.h
/opt/local/include/ImageMagick/magick/ImageMagick.h
/opt/local/include/ImageMagick/magick/layer.h
/opt/local/include/ImageMagick/magick/list.h
/opt/local/include/ImageMagick/magick/locale_.h
/opt/local/include/ImageMagick/magick/log.h
/opt/local/include/ImageMagick/magick/magic.h
/opt/local/include/ImageMagick/magick/magick-config.h
/opt/local/include/ImageMagick/magick/magick-type.h
/opt/local/include/ImageMagick/magick/magick.h
	:

img/liblqr-1-0.4.1

preparation
curl -ROL -C - http://liblqr.wikidot.com/local--files/en:download-page/liblqr-1-0.4.1.tar.bz2
tar xvjf liblqr-1-0.4.1.tar.bz2
(cd liblqr-1-0.4.1 &&
patch -p0 -b -z.org < ../liblqr-1-0.4.1-ubagami.patch
)
build
./configure --disable-dependency-tracking CFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS='-I/opt/local/include' 'LDFLAGS=-L/opt/local/lib -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
patch
--- ./lqr/lqr_energy_priv.h~	2009-05-11 09:08:03.000000000 +0900
+++ ./lqr/lqr_energy_priv.h	2010-08-05 21:13:48.000000000 +0900
@@ -23,6 +23,10 @@
 #ifndef __LQR_ENERGY_PRIV_H__
 #define __LQR_ENERGY_PRIV_H__
 
+#ifdef __APPLE__
+#define INLINE
+#endif
+
 #ifndef __LQR_BASE_H__
 #error "lqr_base.h must be included prior to lqr_energy_priv.h"
 #endif /* __LQR_BASE_H__ */
@@ -45,9 +49,9 @@
 inline gdouble lqr_carver_read_brightness_grey(LqrCarver *r, gint x, gint y);
 inline gdouble lqr_carver_read_brightness_std(LqrCarver *r, gint x, gint y);
 gdouble lqr_carver_read_brightness_custom(LqrCarver *r, gint x, gint y);
-inline gdouble lqr_carver_read_brightness(LqrCarver *r, gint x, gint y);
+INLINE gdouble lqr_carver_read_brightness(LqrCarver *r, gint x, gint y);
 inline gdouble lqr_carver_read_luma_std(LqrCarver *r, gint x, gint y);
-inline gdouble lqr_carver_read_luma(LqrCarver *r, gint x, gint y);
+INLINE gdouble lqr_carver_read_luma(LqrCarver *r, gint x, gint y);
 inline gdouble lqr_carver_read_rgba(LqrCarver *r, gint x, gint y, gint channel);
 inline gdouble lqr_carver_read_custom(LqrCarver *r, gint x, gint y, gint channel);
 
installed
/opt/local/include/lqr-1/lqr/lqr_base.h
/opt/local/include/lqr-1/lqr/lqr_carver_bias_pub.h
/opt/local/include/lqr-1/lqr/lqr_carver_list_pub.h
/opt/local/include/lqr-1/lqr/lqr_carver_pub.h
/opt/local/include/lqr-1/lqr/lqr_carver_rigmask_pub.h
/opt/local/include/lqr-1/lqr/lqr_cursor_pub.h
/opt/local/include/lqr-1/lqr/lqr_energy_pub.h
/opt/local/include/lqr-1/lqr/lqr_gradient_pub.h
/opt/local/include/lqr-1/lqr/lqr_progress_pub.h
/opt/local/include/lqr-1/lqr/lqr_rwindow_pub.h
/opt/local/include/lqr-1/lqr/lqr_vmap_list_pub.h
/opt/local/include/lqr-1/lqr/lqr_vmap_pub.h
/opt/local/include/lqr-1/lqr.h
/opt/local/lib/liblqr-1.0.dylib
/opt/local/lib/liblqr-1.dylib
/opt/local/lib/liblqr-1.la
/opt/local/lib/pkgconfig/lqr-1.pc

libs/gettext-0.18.1.1

preparation
curl -RO -C - http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz
tar xvzf gettext-0.18.1.1.tar.gz
build
./configure --disable-dependency-tracking CFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/bin/autopoint
/opt/local/bin/envsubst
/opt/local/bin/gettext
/opt/local/bin/gettext.sh
/opt/local/bin/gettextize
/opt/local/bin/msgattrib
/opt/local/bin/msgcat
/opt/local/bin/msgcmp
/opt/local/bin/msgcomm
/opt/local/bin/msgconv
/opt/local/bin/msgen
/opt/local/bin/msgexec
/opt/local/bin/msgfilter
/opt/local/bin/msgfmt
/opt/local/bin/msggrep
/opt/local/bin/msginit
/opt/local/bin/msgmerge
/opt/local/bin/msgunfmt
/opt/local/bin/msguniq
/opt/local/bin/ngettext
/opt/local/bin/recode-sr-latin
/opt/local/bin/xgettext
/opt/local/include/autosprintf.h
/opt/local/include/gettext-po.h
/opt/local/include/libintl.h
/opt/local/lib/gettext/hostname
/opt/local/lib/gettext/project-id
/opt/local/lib/gettext/urlget
/opt/local/lib/gettext/user-email
/opt/local/lib/libasprintf.0.dylib
/opt/local/lib/libasprintf.a
/opt/local/lib/libasprintf.dylib
/opt/local/lib/libasprintf.la
/opt/local/lib/libgettextlib-0.18.1.dylib
/opt/local/lib/libgettextlib.dylib
/opt/local/lib/libgettextlib.la
/opt/local/lib/libgettextpo.0.dylib
/opt/local/lib/libgettextpo.a
/opt/local/lib/libgettextpo.dylib
/opt/local/lib/libgettextpo.la
/opt/local/lib/libgettextsrc-0.18.1.dylib
/opt/local/lib/libgettextsrc.dylib
/opt/local/lib/libgettextsrc.la
/opt/local/lib/libintl.8.dylib
/opt/local/lib/libintl.a
/opt/local/lib/libintl.dylib
/opt/local/lib/libintl.la
/opt/local/share/aclocal/codeset.m4
/opt/local/share/aclocal/fcntl-o.m4
/opt/local/share/aclocal/gettext.m4
/opt/local/share/aclocal/glibc2.m4
/opt/local/share/aclocal/glibc21.m4
/opt/local/share/aclocal/iconv.m4
/opt/local/share/aclocal/intdiv0.m4
/opt/local/share/aclocal/intl.m4
/opt/local/share/aclocal/intldir.m4
/opt/local/share/aclocal/intlmacosx.m4
/opt/local/share/aclocal/intmax.m4
/opt/local/share/aclocal/inttypes-pri.m4
/opt/local/share/aclocal/inttypes_h.m4
/opt/local/share/aclocal/lcmessage.m4
/opt/local/share/aclocal/lib-ld.m4
/opt/local/share/aclocal/lib-link.m4
/opt/local/share/aclocal/lib-prefix.m4
	:

libs/iconv/libiconv-1.13.1

preparation
curl -RO -C - http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
curl -RO -C - http://svn.macports.org/repository/macports/trunk/dports/textproc/libiconv/files/patch-utf8mac.diff
curl -RO -C - http://www2d.biglobe.ne.jp/~msyk/software/libiconv/libiconv-1.13-ja-1.patch.gz
tar xvzf libiconv-1.13.1.tar.gz
(cd libiconv-1.13.1 &&
gzcat ../libiconv-1.13-ja-1.patch.gz | patch -p1
patch -p1 < ../patch-utf8mac.diff
patch -p0 -b -z.org < ../libiconv-1.13.1-ubagami.patch
)
build
find . -name configure.ac | while read a; do
  (cd "`dirname \"$a\"`" && libtoolize -f -c --verbose)
done &&
make -B ACLOCAL=aclocal AUTOCONF=autoconf AUTOMAKE=automake AUTOHEADER=autoheader -f Makefile.devel all &&
./configure --enable-static 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local --enable-extra-encodings &&
make 
patch
--- ./configure.ac~	2009-07-01 05:48:03.000000000 +0900
+++ ./configure.ac	2010-08-05 16:35:57.000000000 +0900
@@ -20,6 +20,7 @@
 AC_INIT
 AC_CONFIG_SRCDIR([lib/iconv.c])
 AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_MACRO_DIR([m4])
 AM_INIT_AUTOMAKE([libiconv], [1.13.1])
 AC_CONFIG_HEADERS([config.h lib/config.h])
 AC_PROG_MAKE_SET
--- ./libcharset/configure.ac~	2009-06-21 20:17:33.000000000 +0900
+++ ./libcharset/configure.ac	2010-08-05 16:37:15.000000000 +0900
@@ -23,6 +23,7 @@
 
 AC_INIT([lib/localcharset.c])
 AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_MACRO_DIR([m4])
 AC_CONFIG_HEADER([config.h])
 AC_PROG_MAKE_SET
 AC_SUBST([PACKAGE])
--- ./preload/configure.ac~	2009-06-21 20:17:33.000000000 +0900
+++ ./preload/configure.ac	2010-08-05 16:44:42.000000000 +0900
@@ -23,6 +23,7 @@
 
 AC_INIT([configure.ac])
 AC_CONFIG_AUX_DIR([../build-aux])
+AC_CONFIG_MACRO_DIR([../m4])
 AC_PROG_MAKE_SET
 AC_SUBST([PACKAGE])
 AC_SUBST([VERSION])
installed
/opt/local/bin/iconv
/opt/local/include/iconv.h
/opt/local/include/libcharset.h
/opt/local/include/localcharset.h
/opt/local/lib/libcharset.1.dylib
/opt/local/lib/libcharset.a
/opt/local/lib/libcharset.dylib
/opt/local/lib/libcharset.la
/opt/local/lib/libiconv.2.dylib
/opt/local/lib/libiconv.a
/opt/local/lib/libiconv.dylib
/opt/local/lib/libiconv.la
/opt/local/share/doc/libiconv/iconv.1.html
/opt/local/share/doc/libiconv/iconv.3.html
/opt/local/share/doc/libiconv/iconv_close.3.html
/opt/local/share/doc/libiconv/iconv_open.3.html
/opt/local/share/doc/libiconv/iconv_open_into.3.html
/opt/local/share/doc/libiconv/iconvctl.3.html
/opt/local/share/man/man1/iconv.1
/opt/local/share/man/man3/iconv.3
/opt/local/share/man/man3/iconv_close.3
/opt/local/share/man/man3/iconv_open.3
/opt/local/share/man/man3/iconv_open_into.3
/opt/local/share/man/man3/iconvctl.3

devel/autotools/libtool-2.2.10

preparation
verify_digest(){	# $0 method file string
  case "$1" in
  *)
    DIGEST=`echo "$1" | tr a-z A-Z`
    [ "$DIGEST($2)= $3" = "`openssl $1 $2`" ]
    ;;
  esac
}
verify_signature(){	# $0 url|id ... sig
  while [ "$1" != "" ]; do
    case "$1" in
    0x*)
      gpg --recv-keys "$1" || return $?
      ;;
    http:*|ftp:*)
      curl "$1" | gpg --import || return $?
      ;;
    *)
      gpg --verify "$1"
      return $?
    esac
    shift
  done
}
error_out(){	# $0 message ...
  echo "$@" 1>&2
  exit 1
}

curl -RO -C - http://ftp.gnu.org/gnu/libtool/libtool-2.2.10.tar.gz
curl -RO -C - http://ftp.gnu.org/gnu/libtool/libtool-2.2.10.tar.gz.sig

verify_signature 0xCE6532CF libtool-2.2.10.tar.gz.sig || error_out "$0: stopped at line $LINENO"

tar xvzf libtool-2.2.10.tar.gz
build
./configure --disable-dependency-tracking CFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/bin/libtool
/opt/local/bin/libtoolize
/opt/local/include/libltdl/lt_dlloader.h
/opt/local/include/libltdl/lt_error.h
/opt/local/include/libltdl/lt_system.h
/opt/local/include/ltdl.h
/opt/local/lib/libltdl.7.dylib
/opt/local/lib/libltdl.a
/opt/local/lib/libltdl.dylib
/opt/local/lib/libltdl.la
/opt/local/share/aclocal/argz.m4
/opt/local/share/aclocal/libtool.m4
/opt/local/share/aclocal/ltdl.m4
/opt/local/share/aclocal/ltoptions.m4
/opt/local/share/aclocal/ltsugar.m4
/opt/local/share/aclocal/ltversion.m4
/opt/local/share/aclocal/lt~obsolete.m4
/opt/local/share/info/libtool.info
/opt/local/share/info/libtool.info-1
/opt/local/share/info/libtool.info-2
/opt/local/share/libtool/config/compile
/opt/local/share/libtool/config/config.guess
/opt/local/share/libtool/config/config.sub
/opt/local/share/libtool/config/depcomp
/opt/local/share/libtool/config/install-sh
/opt/local/share/libtool/config/ltmain.sh
/opt/local/share/libtool/config/missing
/opt/local/share/libtool/libltdl/aclocal.m4
/opt/local/share/libtool/libltdl/argz.c
/opt/local/share/libtool/libltdl/argz_.h
/opt/local/share/libtool/libltdl/config-h.in
/opt/local/share/libtool/libltdl/configure
/opt/local/share/libtool/libltdl/configure.ac
/opt/local/share/libtool/libltdl/COPYING.LIB
/opt/local/share/libtool/libltdl/libltdl/lt__alloc.h
/opt/local/share/libtool/libltdl/libltdl/lt__dirent.h
/opt/local/share/libtool/libltdl/libltdl/lt__glibc.h
/opt/local/share/libtool/libltdl/libltdl/lt__private.h
/opt/local/share/libtool/libltdl/libltdl/lt__strl.h
/opt/local/share/libtool/libltdl/libltdl/lt_dlloader.h
/opt/local/share/libtool/libltdl/libltdl/lt_error.h
/opt/local/share/libtool/libltdl/libltdl/lt_system.h
/opt/local/share/libtool/libltdl/libltdl/slist.h
/opt/local/share/libtool/libltdl/loaders/dld_link.c
/opt/local/share/libtool/libltdl/loaders/dlopen.c
/opt/local/share/libtool/libltdl/loaders/dyld.c
/opt/local/share/libtool/libltdl/loaders/load_add_on.c
/opt/local/share/libtool/libltdl/loaders/loadlibrary.c
/opt/local/share/libtool/libltdl/loaders/preopen.c
/opt/local/share/libtool/libltdl/loaders/shl_load.c
/opt/local/share/libtool/libltdl/lt__alloc.c
/opt/local/share/libtool/libltdl/lt__dirent.c
/opt/local/share/libtool/libltdl/lt__strl.c
/opt/local/share/libtool/libltdl/lt_dlloader.c
/opt/local/share/libtool/libltdl/lt_error.c
/opt/local/share/libtool/libltdl/ltdl.c
/opt/local/share/libtool/libltdl/ltdl.h
/opt/local/share/libtool/libltdl/Makefile.am
/opt/local/share/libtool/libltdl/Makefile.in
/opt/local/share/libtool/libltdl/Makefile.inc
/opt/local/share/libtool/libltdl/README
/opt/local/share/libtool/libltdl/slist.c
/opt/local/share/man/man1/libtool.1
/opt/local/share/man/man1/libtoolize.1
	:

devel/autotools/automake-1.11.1

preparation
verify_digest(){	# $0 method file string
  case "$1" in
  *)
    DIGEST=`echo "$1" | tr a-z A-Z`
    [ "$DIGEST($2)= $3" = "`openssl $1 $2`" ]
    ;;
  esac
}
verify_signature(){	# $0 url|id ... sig
  while [ "$1" != "" ]; do
    case "$1" in
    0x*)
      gpg --recv-keys "$1" || return $?
      ;;
    http:*|ftp:*)
      curl "$1" | gpg --import || return $?
      ;;
    *)
      gpg --verify "$1"
      return $?
    esac
    shift
  done
}
error_out(){	# $0 message ...
  echo "$@" 1>&2
  exit 1
}

curl -RO -C - http://ftp.gnu.org/gnu/automake/automake-1.11.1.tar.gz
curl -RO -C - http://ftp.gnu.org/gnu/automake/automake-1.11.1.tar.gz.sig

verify_signature 0x5D0CDCFC automake-1.11.1.tar.gz.sig || error_out "$0: stopped at line $LINENO"

tar xvzf automake-1.11.1.tar.gz
build
./configure --prefix=/opt/local 
make 
installed
/opt/local/bin/aclocal
/opt/local/bin/aclocal-1.11
/opt/local/bin/automake
/opt/local/bin/automake-1.11
/opt/local/share/aclocal-1.11/amversion.m4
/opt/local/share/aclocal-1.11/as.m4
/opt/local/share/aclocal-1.11/auxdir.m4
/opt/local/share/aclocal-1.11/ccstdc.m4
/opt/local/share/aclocal-1.11/cond-if.m4
/opt/local/share/aclocal-1.11/cond.m4
/opt/local/share/aclocal-1.11/depend.m4
/opt/local/share/aclocal-1.11/depout.m4
/opt/local/share/aclocal-1.11/dmalloc.m4
/opt/local/share/aclocal-1.11/gcj.m4
/opt/local/share/aclocal-1.11/header.m4
/opt/local/share/aclocal-1.11/init.m4
/opt/local/share/aclocal-1.11/install-sh.m4
/opt/local/share/aclocal-1.11/lead-dot.m4
/opt/local/share/aclocal-1.11/lex.m4
/opt/local/share/aclocal-1.11/lispdir.m4
/opt/local/share/aclocal-1.11/maintainer.m4
/opt/local/share/aclocal-1.11/make.m4
/opt/local/share/aclocal-1.11/minuso.m4
/opt/local/share/aclocal-1.11/missing.m4
/opt/local/share/aclocal-1.11/mkdirp.m4
/opt/local/share/aclocal-1.11/multi.m4
/opt/local/share/aclocal-1.11/obsol-gt.m4
/opt/local/share/aclocal-1.11/obsol-lt.m4
/opt/local/share/aclocal-1.11/obsolete.m4
/opt/local/share/aclocal-1.11/options.m4
/opt/local/share/aclocal-1.11/protos.m4
/opt/local/share/aclocal-1.11/python.m4
/opt/local/share/aclocal-1.11/regex.m4
/opt/local/share/aclocal-1.11/runlog.m4
/opt/local/share/aclocal-1.11/sanity.m4
/opt/local/share/aclocal-1.11/silent.m4
/opt/local/share/aclocal-1.11/strip.m4
/opt/local/share/aclocal-1.11/substnot.m4
/opt/local/share/aclocal-1.11/tar.m4
/opt/local/share/aclocal-1.11/upc.m4
/opt/local/share/aclocal-1.11/vala.m4
/opt/local/share/automake-1.11/acinstall
/opt/local/share/automake-1.11/am/ansi2knr.am
/opt/local/share/automake-1.11/am/check.am
/opt/local/share/automake-1.11/am/check2.am
/opt/local/share/automake-1.11/am/clean-hdr.am
/opt/local/share/automake-1.11/am/clean.am
/opt/local/share/automake-1.11/am/compile.am
/opt/local/share/automake-1.11/am/configure.am
/opt/local/share/automake-1.11/am/data.am
/opt/local/share/automake-1.11/am/dejagnu.am
/opt/local/share/automake-1.11/am/depend.am
/opt/local/share/automake-1.11/am/depend2.am
/opt/local/share/automake-1.11/am/distdir.am
/opt/local/share/automake-1.11/am/footer.am
/opt/local/share/automake-1.11/am/header-vars.am
/opt/local/share/automake-1.11/am/header.am
/opt/local/share/automake-1.11/am/inst-vars.am
/opt/local/share/automake-1.11/am/install.am
/opt/local/share/automake-1.11/am/java.am
/opt/local/share/automake-1.11/am/lang-compile.am
/opt/local/share/automake-1.11/am/lex.am
/opt/local/share/automake-1.11/am/library.am
/opt/local/share/automake-1.11/am/libs.am
	:

devel/autotools/autoconf-2.67

preparation
verify_digest(){	# $0 method file string
  case "$1" in
  *)
    DIGEST=`echo "$1" | tr a-z A-Z`
    [ "$DIGEST($2)= $3" = "`openssl $1 $2`" ]
    ;;
  esac
}
verify_signature(){	# $0 url|id ... sig
  while [ "$1" != "" ]; do
    case "$1" in
    0x*)
      gpg --recv-keys "$1" || return $?
      ;;
    http:*|ftp:*)
      curl "$1" | gpg --import || return $?
      ;;
    *)
      gpg --verify "$1"
      return $?
    esac
    shift
  done
}
error_out(){	# $0 message ...
  echo "$@" 1>&2
  exit 1
}

curl -RO -C - http://ftp.gnu.org/gnu/autoconf/autoconf-2.67.tar.gz
curl -RO -C - http://ftp.gnu.org/gnu/autoconf/autoconf-2.67.tar.gz.sig

verify_signature 0x2527436A autoconf-2.67.tar.gz.sig || error_out "$0: stopped at line $LINENO"

tar xvzf autoconf-2.67.tar.gz
build
./configure --prefix=/opt/local 
make 
installed
/opt/local/bin/autoconf
/opt/local/bin/autoheader
/opt/local/bin/autom4te
/opt/local/bin/autoreconf
/opt/local/bin/autoscan
/opt/local/bin/autoupdate
/opt/local/bin/ifnames
/opt/local/share/autoconf/autoconf/autoconf.m4
/opt/local/share/autoconf/autoconf/autoconf.m4f
/opt/local/share/autoconf/autoconf/autoheader.m4
/opt/local/share/autoconf/autoconf/autoscan.m4
/opt/local/share/autoconf/autoconf/autotest.m4
/opt/local/share/autoconf/autoconf/autoupdate.m4
/opt/local/share/autoconf/autoconf/c.m4
/opt/local/share/autoconf/autoconf/erlang.m4
/opt/local/share/autoconf/autoconf/fortran.m4
/opt/local/share/autoconf/autoconf/functions.m4
/opt/local/share/autoconf/autoconf/general.m4
/opt/local/share/autoconf/autoconf/headers.m4
/opt/local/share/autoconf/autoconf/lang.m4
/opt/local/share/autoconf/autoconf/libs.m4
/opt/local/share/autoconf/autoconf/oldnames.m4
/opt/local/share/autoconf/autoconf/programs.m4
/opt/local/share/autoconf/autoconf/specific.m4
/opt/local/share/autoconf/autoconf/status.m4
/opt/local/share/autoconf/autoconf/types.m4
/opt/local/share/autoconf/Autom4te/C4che.pm
/opt/local/share/autoconf/Autom4te/ChannelDefs.pm
/opt/local/share/autoconf/Autom4te/Channels.pm
/opt/local/share/autoconf/Autom4te/Configure_ac.pm
/opt/local/share/autoconf/Autom4te/FileUtils.pm
/opt/local/share/autoconf/Autom4te/General.pm
/opt/local/share/autoconf/Autom4te/Request.pm
/opt/local/share/autoconf/Autom4te/Struct.pm
/opt/local/share/autoconf/Autom4te/XFile.pm
/opt/local/share/autoconf/autom4te.cfg
/opt/local/share/autoconf/autoscan/autoscan.list
/opt/local/share/autoconf/autotest/autotest.m4
/opt/local/share/autoconf/autotest/autotest.m4f
/opt/local/share/autoconf/autotest/general.m4
/opt/local/share/autoconf/autotest/specific.m4
/opt/local/share/autoconf/INSTALL
/opt/local/share/autoconf/m4sugar/foreach.m4
/opt/local/share/autoconf/m4sugar/m4sh.m4
/opt/local/share/autoconf/m4sugar/m4sh.m4f
/opt/local/share/autoconf/m4sugar/m4sugar.m4
/opt/local/share/autoconf/m4sugar/m4sugar.m4f
/opt/local/share/autoconf/m4sugar/version.m4
/opt/local/share/emacs/site-lisp/autoconf-mode.el
/opt/local/share/emacs/site-lisp/autoconf-mode.elc
/opt/local/share/emacs/site-lisp/autotest-mode.el
/opt/local/share/emacs/site-lisp/autotest-mode.elc
/opt/local/share/info/autoconf.info
/opt/local/share/info/standards.info
/opt/local/share/man/man1/autoconf.1
/opt/local/share/man/man1/autoheader.1
/opt/local/share/man/man1/autom4te.1
/opt/local/share/man/man1/autoreconf.1
/opt/local/share/man/man1/autoscan.1
/opt/local/share/man/man1/autoupdate.1
/opt/local/share/man/man1/config.guess.1
/opt/local/share/man/man1/config.sub.1
/opt/local/share/man/man1/ifnames.1

libs/fftw-3.2.2

preparation
curl -RO -C - http://www.fftw.org/fftw-3.2.2.tar.gz
tar xvzf fftw-3.2.2.tar.gz
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean distclean &&
./configure CFLAGS='-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --disable-fma --enable-sse2 --disable-fortran --host=x86_64-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local --enable-shared --enable-threads &&
make &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  listup_binaries > .arch_x86_64/.binaries.lst && tar --files-from=.arch_x86_64/.binaries.lst -cf - | (cd .arch_x86_64 && tar xf -) &&
  listup_headers > .arch_x86_64/.headers.lst && tar --files-from=.arch_x86_64/.headers.lst -cf - | (cd .arch_x86_64 && tar xf -)
} &&
make clean distclean &&
./configure CFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --disable-fma --enable-sse2 --disable-fortran --host=i686-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local --enable-shared --enable-threads &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean distclean &&
./configure CFLAGS='-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --enable-fma --disable-altivec --disable-fortran --host=ppc64-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local --enable-shared --enable-threads &&
make &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  listup_binaries > .arch_ppc64/.binaries.lst && tar --files-from=.arch_ppc64/.binaries.lst -cf - | (cd .arch_ppc64 && tar xf -) &&
  listup_headers > .arch_ppc64/.headers.lst && tar --files-from=.arch_ppc64/.headers.lst -cf - | (cd .arch_ppc64 && tar xf -)
} &&
make clean distclean &&
./configure CFLAGS='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --enable-fma --disable-altivec --disable-fortran --host=ppc-apple-darwin8 --build=`sh config.guess` --prefix=/opt/local --enable-shared --enable-threads &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_ppc64/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_x86_64/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__)

`cat .arch_ppc/"$h"`

#elif defined(__ppc64__)

`cat .arch_ppc64/"$h"`

#elif defined(__i386__)

`cat .arch_i386/"$h"`

#elif defined(__x86_64__)

`cat .arch_x86_64/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/bin/fftw-wisdom
/opt/local/bin/fftw-wisdom-to-conf
/opt/local/include/fftw3.f
/opt/local/include/fftw3.h
/opt/local/lib/libfftw3.3.dylib
/opt/local/lib/libfftw3.a
/opt/local/lib/libfftw3.dylib
/opt/local/lib/libfftw3.la
/opt/local/lib/libfftw3_threads.3.dylib
/opt/local/lib/libfftw3_threads.a
/opt/local/lib/libfftw3_threads.dylib
/opt/local/lib/libfftw3_threads.la
/opt/local/lib/pkgconfig/fftw3.pc
/opt/local/share/info/fftw3.info
/opt/local/share/man/man1/fftw-wisdom-to-conf.1
/opt/local/share/man/man1/fftw-wisdom.1

img/dcraw-9.04

preparation
curl -RO -C - http://www.cybercom.net/~dcoffin/dcraw/archive/dcraw-9.04.tar.gz
tar xvzf dcraw-9.04.tar.gz
mv dcraw dcraw-9.04
build
make CFLAGS='-O3 -Wall' CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib' LDLIBS='-ljpeg -llcms -lm' TARGET_ARCH='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' dcraw
installation
cp dcraw /opt/local/bin/
cp dcraw.1 /opt/local/share/man/man1/
installed
/opt/local/bin/dcraw
/opt/local/share/man/man1/dcraw.1

img/lcms2-2.0a

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/lcms/lcms/2.0/lcms2-2.0a.tar.gz
tar xvzf lcms2-2.0a.tar.gz
mv lcms-2.0 lcms2-2.0a
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make 
installed
/opt/local/bin/jpgicc
/opt/local/bin/linkicc
/opt/local/bin/psicc
/opt/local/bin/tificc
/opt/local/bin/transicc
/opt/local/include/lcms2.h
/opt/local/include/lcms2_plugin.h
/opt/local/lib/liblcms2.2.dylib
/opt/local/lib/liblcms2.a
/opt/local/lib/liblcms2.dylib
/opt/local/lib/liblcms2.la
/opt/local/lib/pkgconfig/lcms2.pc
/opt/local/share/man/man1/jpgicc.1
/opt/local/share/man/man1/tificc.1

img/lcms-1.19

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/lcms/lcms/1.19/lcms-1.19.tar.gz
tar xvzf lcms-1.19.tar.gz
build
./configure --disable-dependency-tracking 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local --without-python 
make 
installed
/opt/local/bin/icc2ps
/opt/local/bin/icclink
/opt/local/bin/icctrans
/opt/local/bin/jpegicc
/opt/local/bin/tiffdiff
/opt/local/bin/tifficc
/opt/local/bin/wtpt
/opt/local/include/icc34.h
/opt/local/include/lcms.h
/opt/local/lib/liblcms.1.0.19.dylib
/opt/local/lib/liblcms.1.dylib
/opt/local/lib/liblcms.a
/opt/local/lib/liblcms.dylib
/opt/local/lib/liblcms.la
/opt/local/lib/pkgconfig/lcms.pc
/opt/local/share/man/man1/icc2ps.1
/opt/local/share/man/man1/icclink.1
/opt/local/share/man/man1/jpegicc.1
/opt/local/share/man/man1/tifficc.1
/opt/local/share/man/man1/wtpt.1

img/tiff-3-20100803

preparation
if [ ! -f tiff-3-20100803.tar.bz2 ]; then
cvs -z3 -d:pserver:cvsanon@cvs.maptools.org:/cvs/maptools/cvsroot login
cvs -z3 -d:pserver:cvsanon@cvs.maptools.org:/cvs/maptools/cvsroot co -r branch-3-9 libtiff
[ ! -d tiff-3-20100803 ] && mkdir tiff-3-20100803
(cd libtiff && tar cf - .) | (cd tiff-3-20100803 && tar xvf -)
tar cvjf tiff-3-20100803.tar.bz2 tiff-3-20100803
else
tar xvjf tiff-3-20100803.tar.bz2
fi
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean &&
./configure 'CFLAGS=-I/opt/local/include -arch x86_64 -mmacosx-version-min=10.4' 'CXXFLAGS=-I/opt/local/include -arch x86_64 -mmacosx-version-min=10.4' 'LDFLAGS=-L/opt/local/lib -arch x86_64 -mmacosx-version-min=10.4' --host=x86_64-apple-darwin --build=`sh config/config.guess` --prefix=/opt/local --without-x --without-apple-opengl-framework &&
make &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  listup_binaries > .arch_x86_64/.binaries.lst && tar --files-from=.arch_x86_64/.binaries.lst -cf - | (cd .arch_x86_64 && tar xf -) &&
  listup_headers > .arch_x86_64/.headers.lst && tar --files-from=.arch_x86_64/.headers.lst -cf - | (cd .arch_x86_64 && tar xf -)
} &&
make clean &&
./configure 'CFLAGS=-I/opt/local/include -arch i386 -mmacosx-version-min=10.4' 'CXXFLAGS=-I/opt/local/include -arch i386 -mmacosx-version-min=10.4' 'LDFLAGS=-L/opt/local/lib -arch i386 -mmacosx-version-min=10.4' --host=i386-apple-darwin --build=`sh config/config.guess` --prefix=/opt/local --without-x --without-apple-opengl-framework &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean &&
./configure 'CFLAGS=-I/opt/local/include -arch ppc64 -mmacosx-version-min=10.4' 'CXXFLAGS=-I/opt/local/include -arch ppc64 -mmacosx-version-min=10.4' 'LDFLAGS=-L/opt/local/lib -arch ppc64 -mmacosx-version-min=10.4' --host=ppc64-apple-darwin --build=`sh config/config.guess` --prefix=/opt/local --without-x --without-apple-opengl-framework &&
make &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  listup_binaries > .arch_ppc64/.binaries.lst && tar --files-from=.arch_ppc64/.binaries.lst -cf - | (cd .arch_ppc64 && tar xf -) &&
  listup_headers > .arch_ppc64/.headers.lst && tar --files-from=.arch_ppc64/.headers.lst -cf - | (cd .arch_ppc64 && tar xf -)
} &&
make clean &&
./configure 'CFLAGS=-I/opt/local/include -arch ppc -mmacosx-version-min=10.4' 'CXXFLAGS=-I/opt/local/include -arch ppc -mmacosx-version-min=10.4' 'LDFLAGS=-L/opt/local/lib -arch ppc -mmacosx-version-min=10.4' --host=ppc-apple-darwin --build=`sh config/config.guess` --prefix=/opt/local --without-x --without-apple-opengl-framework &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  cat .arch_ppc/.headers.lst | while read h; do
    diff .arch_ppc/"$h" .arch_ppc64/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_i386/"$h" > /dev/null 2>&1 &&
    diff .arch_ppc/"$h" .arch_x86_64/"$h" > /dev/null 2>&1 || {
      echo univarsalized header: "$h"
      cat <<EOF > "$h" &&
#if defined(__ppc__)

`cat .arch_ppc/"$h"`

#elif defined(__ppc64__)

`cat .arch_ppc64/"$h"`

#elif defined(__i386__)

`cat .arch_i386/"$h"`

#elif defined(__x86_64__)

`cat .arch_x86_64/"$h"`

#endif /* defined(__arch__) */
EOF
      touch -r .arch_ppc/"$h" "$h"
    }
  done
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/bin/bmp2tiff
/opt/local/bin/fax2ps
/opt/local/bin/fax2tiff
/opt/local/bin/gif2tiff
/opt/local/bin/pal2rgb
/opt/local/bin/ppm2tiff
/opt/local/bin/ras2tiff
/opt/local/bin/raw2tiff
/opt/local/bin/rgb2ycbcr
/opt/local/bin/thumbnail
/opt/local/bin/tiff2bw
/opt/local/bin/tiff2pdf
/opt/local/bin/tiff2ps
/opt/local/bin/tiff2rgba
/opt/local/bin/tiffcmp
/opt/local/bin/tiffcp
/opt/local/bin/tiffcrop
/opt/local/bin/tiffdither
/opt/local/bin/tiffdump
/opt/local/bin/tiffinfo
/opt/local/bin/tiffmedian
/opt/local/bin/tiffset
/opt/local/bin/tiffsplit
/opt/local/include/tiff.h
/opt/local/include/tiffconf.h
/opt/local/include/tiffio.h
/opt/local/include/tiffio.hxx
/opt/local/include/tiffvers.h
/opt/local/lib/libtiff.3.dylib
/opt/local/lib/libtiff.a
/opt/local/lib/libtiff.dylib
/opt/local/lib/libtiff.la
/opt/local/lib/libtiffxx.3.dylib
/opt/local/lib/libtiffxx.a
/opt/local/lib/libtiffxx.dylib
/opt/local/lib/libtiffxx.la
/opt/local/share/doc/tiff-3.9.4/ChangeLog
/opt/local/share/doc/tiff-3.9.4/COPYRIGHT
/opt/local/share/doc/tiff-3.9.4/html/addingtags.html
/opt/local/share/doc/tiff-3.9.4/html/bugs.html
/opt/local/share/doc/tiff-3.9.4/html/build.html
/opt/local/share/doc/tiff-3.9.4/html/contrib.html
/opt/local/share/doc/tiff-3.9.4/html/document.html
/opt/local/share/doc/tiff-3.9.4/html/images/back.gif
/opt/local/share/doc/tiff-3.9.4/html/images/bali.jpg
/opt/local/share/doc/tiff-3.9.4/html/images/cat.gif
/opt/local/share/doc/tiff-3.9.4/html/images/cover.jpg
/opt/local/share/doc/tiff-3.9.4/html/images/cramps.gif
/opt/local/share/doc/tiff-3.9.4/html/images/dave.gif
/opt/local/share/doc/tiff-3.9.4/html/images/info.gif
/opt/local/share/doc/tiff-3.9.4/html/images/jello.jpg
/opt/local/share/doc/tiff-3.9.4/html/images/jim.gif
/opt/local/share/doc/tiff-3.9.4/html/images/note.gif
/opt/local/share/doc/tiff-3.9.4/html/images/oxford.gif
/opt/local/share/doc/tiff-3.9.4/html/images/quad.jpg
/opt/local/share/doc/tiff-3.9.4/html/images/ring.gif
/opt/local/share/doc/tiff-3.9.4/html/images/smallliz.jpg
/opt/local/share/doc/tiff-3.9.4/html/images/strike.gif
/opt/local/share/doc/tiff-3.9.4/html/images/warning.gif
/opt/local/share/doc/tiff-3.9.4/html/images.html
/opt/local/share/doc/tiff-3.9.4/html/index.html
/opt/local/share/doc/tiff-3.9.4/html/internals.html
/opt/local/share/doc/tiff-3.9.4/html/intro.html
/opt/local/share/doc/tiff-3.9.4/html/libtiff.html
	:

img/jasper-1.900.1

preparation
curl -RO -C - http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-1.900.1.zip
unzip jasper-1.900.1.zip
build
./configure --disable-dependency-tracking --enable-shared 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local --without-x 
make 
installed
/opt/local/bin/imgcmp
/opt/local/bin/imginfo
/opt/local/bin/jasper
/opt/local/bin/tmrdemo
/opt/local/include/jasper/jas_cm.h
/opt/local/include/jasper/jas_config.h
/opt/local/include/jasper/jas_config2.h
/opt/local/include/jasper/jas_debug.h
/opt/local/include/jasper/jas_fix.h
/opt/local/include/jasper/jas_getopt.h
/opt/local/include/jasper/jas_icc.h
/opt/local/include/jasper/jas_image.h
/opt/local/include/jasper/jas_init.h
/opt/local/include/jasper/jas_malloc.h
/opt/local/include/jasper/jas_math.h
/opt/local/include/jasper/jas_seq.h
/opt/local/include/jasper/jas_stream.h
/opt/local/include/jasper/jas_string.h
/opt/local/include/jasper/jas_tmr.h
/opt/local/include/jasper/jas_tvp.h
/opt/local/include/jasper/jas_types.h
/opt/local/include/jasper/jas_version.h
/opt/local/include/jasper/jasper.h
/opt/local/lib/libjasper.1.0.0.dylib
/opt/local/lib/libjasper.1.dylib
/opt/local/lib/libjasper.a
/opt/local/lib/libjasper.dylib
/opt/local/lib/libjasper.la
/opt/local/man/man1/imgcmp.1
/opt/local/man/man1/imginfo.1
/opt/local/man/man1/jasper.1
/opt/local/man/man1/jiv.1

lang/ps/ghostscript-7.07

preparation
curl -RO -C - http://jaist.dl.sourceforge.net/sourceforge/ghostscript/ghostscript-7.07.tar.bz2
curl -RO -C - http://jaist.dl.sourceforge.net/sourceforge/ghostscript/ghostscript-fonts-std-8.11.tar.gz
curl -RO -C - http://tagoh.jp/junk/ghostscript-7.07-bigposttable.patch
curl -RO -C - http://tagoh.jp/junk/ghostscript-7.07-gsublookuptable.patch
curl -RO -C - http://tagoh.jp/junk/ghostscript-7.07-coverage-glyphcount.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/fix_rename_font_gs_cidfn.ps.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/fix_cidfontname_Encoding_CIDToGIDMap_DW_W.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/modify_ps2pdfwr.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/ghostscript-7.07-bigcmaptable.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/ghostscript-7.07-noglyph-gid0.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/fix_cidfonttype2_Adobe-CNS1-4.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/ghostscript-7.07-seekCFFtable.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/ghostscript-7.07-readFDSelect.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/ghostscript-7.07-write_GSubrs.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/ghostscript-7.07-nosyoffsetcheck.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/fix_cidfonttype2_Adobe-Japan1-6.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/modify_ps2pdfwr-20050921.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/ghostscript-7.07-examples_cjk-V.patch
curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/ghostscript-7.07-write_DW2.patch
#curl -RO -C - http://www.aihara.co.jp/~taiji/gyve/tmp/trash/ghostscript-7.07-type1exec_bbox-nouse_FontBBox_as_Metrics2.patch
#curl -O -C - ftp://ftp.gyve.org/pub/gs-cjk/adobe-cmaps-200211.tar.gz
curl -O -C - ftp://ftp.gyve.org/pub/gs-cjk/adobe-cmaps-200406.tar.gz
curl -O -C - ftp://ftp.gyve.org/pub/gs-cjk/acro5-cmaps-2001.tar.gz
tar xvjf ghostscript-7.07.tar.bz2
(cd ghostscript-7.07
patch -b -p1 -z.orig < ../ghostscript-7.07-bigposttable.patch
patch -b -p1 -z.orig < ../ghostscript-7.07-gsublookuptable.patch
patch -b -p1 -z.orig < ../ghostscript-7.07-coverage-glyphcount.patch
patch -b -p0 -z.orig < ../fix_rename_font_gs_cidfn.ps.patch
patch -b -p0 -z.orig < ../fix_cidfontname_Encoding_CIDToGIDMap_DW_W.patch
(cd lib && patch -b -p0 -z.orig < ../../modify_ps2pdfwr.patch)
patch -b -p0 -z.orig < ../ghostscript-7.07-bigcmaptable.patch
patch -b -p0 -z.orig < ../ghostscript-7.07-noglyph-gid0.patch
patch -b -p0 -z.orig < ../fix_cidfonttype2_Adobe-CNS1-4.patch
patch -b -p0 -z.orig < ../ghostscript-7.07-seekCFFtable.patch
patch -b -p0 -z.orig < ../ghostscript-7.07-readFDSelect.patch
patch -b -p0 -z.orig < ../ghostscript-7.07-write_GSubrs.patch
patch -b -p0 -z.orig < ../ghostscript-7.07-nosyoffsetcheck.patch
patch -b -p0 -z.orig < ../fix_cidfonttype2_Adobe-Japan1-6.patch
(cd lib && patch -b -p0 -z.orig < ../../modify_ps2pdfwr-20050921.patch)
patch -b -p0 -z.orig < ../ghostscript-7.07-examples_cjk-V.patch
patch -b -p0 -z.orig < ../ghostscript-7.07-write_DW2.patch
#patch -b -p0 -z.orig < ../ghostscript-7.07-type1exec_bbox-nouse_FontBBox_as_Metrics2.patch
patch -b -p0 -z.org < ../ghostscript-7.07-ubagami.patch
)
build
if false; then	# cannot work caused by Bus error

./configure 'CC=gcc -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local/gs7.07 --with-ijs 
make 'CC=gcc -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include -L/opt/local/lib'

else

listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_i386/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O executable"*)	;;
      *"ar archive random library"*)	;;
      *"Mach-O dynamically linked shared library"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
./configure 'CC=gcc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local/gs7.07 --with-ijs &&
make 'CC=gcc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include -L/opt/local/lib' &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -) &&
  make clean distclean
} &&
./configure 'CC=gcc -arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local/gs7.07 --with-ijs &&
make 'CC=gcc -arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include -L/opt/local/lib' &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}

fi
patch
--- ./lib/CIDFnmap.Ado.org	2005-11-10 15:09:02.000000000 +0900
+++ ./lib/CIDFnmap.Ado	2005-09-26 22:53:20.000000000 +0900
@@ -0,0 +1,46 @@
+
+% Adobe-CNS1
+
+/MHei-Medium-Acro		(/opt/local/X11R6/lib/X11/fonts/opentype/MHei-Medium-Acro)		;
+/MHei-Medium			(/opt/local/X11R6/lib/X11/fonts/opentype/MHei-Medium-Acro)		;
+/MSung-Light-Acro		(/opt/local/X11R6/lib/X11/fonts/opentype/MSung-Light-Acro)		;
+/MSung-Light			(/opt/local/X11R6/lib/X11/fonts/opentype/MSung-Light-Acro)		;
+
+/AdobeMingStd-Light-Acro	(/opt/local/X11R6/lib/X11/fonts/opentype/AdobeMingStd-Light-Acro.otf)	;	% !
+%/AdobeMingStd-Light		(/opt/local/X11R6/lib/X11/fonts/opentype/AdobeMingStd-Light-Acro.otf)	;	% !
+/AdobeMingStd-Light		(/opt/local/X11R6/lib/X11/fonts/opentype/AdobeMingStd-Light.otf)	;
+
+
+% Adobe-GB1
+
+/STSong-Light-Acro		(/opt/local/X11R6/lib/X11/fonts/opentype/STSong-Light-Acro)		;
+/STSong-Light			(/opt/local/X11R6/lib/X11/fonts/opentype/STSong-Light-Acro)		;
+
+/AdobeSongStd-Light-Acro	(/opt/local/X11R6/lib/X11/fonts/opentype/AdobeSongStd-Light-Acro.otf)	;
+%/AdobeSongStd-Light		(/opt/local/X11R6/lib/X11/fonts/opentype/AdobeSongStd-Light-Acro.otf)	;
+/AdobeSongStd-Light		(/opt/local/X11R6/lib/X11/fonts/opentype/AdobeSongStd-Light.otf)	;
+
+% Adobe-Japan1
+
+/HeiseiKakuGo-W5-Acro		(/opt/local/X11R6/lib/X11/fonts/opentype/HeiseiKakuGo-W5-Acro)		;
+/HeiseiKakuGo-W5		(/opt/local/X11R6/lib/X11/fonts/opentype/HeiseiKakuGo-W5-Acro)		;
+/HeiseiMin-W3-Acro		(/opt/local/X11R6/lib/X11/fonts/opentype/HeiseiMin-W3-Acro)		;
+/HeiseiMin-W3			(/opt/local/X11R6/lib/X11/fonts/opentype/HeiseiMin-W3-Acro)		;
+
+/KozGoPro-Medium-Acro		(/opt/local/X11R6/lib/X11/fonts/opentype/KozGoPro-Medium-Acro.otf)	;
+%/KozGoPro-Medium		(/opt/local/X11R6/lib/X11/fonts/opentype/KozGoPro-Medium-Acro.otf)	;
+/KozGoPro-Medium		(/opt/local/X11R6/lib/X11/fonts/opentype/KozGoPro-Medium.otf)		;
+/KozMinPro-Regular-Acro		(/opt/local/X11R6/lib/X11/fonts/opentype/KozMinPro-Regular-Acro.otf)	;
+/KozMinPro-Regular		(/opt/local/X11R6/lib/X11/fonts/opentype/KozMinPro-Regular-Acro.otf)	;
+/KozMinProVI-Regular		(/opt/local/X11R6/lib/X11/fonts/opentype/KozMinProVI-Regular.otf)	;
+
+% Adobe-Korea1
+
+/HYGoThic-Medium-Acro		(/opt/local/X11R6/lib/X11/fonts/opentype/HYGoThic-Medium-Acro)		;
+/HYGoThic-Medium		(/opt/local/X11R6/lib/X11/fonts/opentype/HYGoThic-Medium-Acro)		;
+/HYSMyeongJo-Medium-Acro	(/opt/local/X11R6/lib/X11/fonts/opentype/HYSMyeongJo-Medium-Acro)	;
+/HYSMyeongJo-Medium		(/opt/local/X11R6/lib/X11/fonts/opentype/HYSMyeongJo-Medium-Acro)	;
+
+/AdobeMyungjoStd-Medium-Acro	(/opt/local/X11R6/lib/X11/fonts/opentype/AdobeMyungjoStd-Medium-Acro.otf)	;
+%/AdobeMyungjoStd-Medium	(/opt/local/X11R6/lib/X11/fonts/opentype/AdobeMyungjoStd-Medium-Acro.otf)	;
+/AdobeMyungjoStd-Medium		(/opt/local/X11R6/lib/X11/fonts/opentype/AdobeMyungjoStd-Medium.otf)	;
--- ./lib/CIDFnmap.ARP.org	2002-04-02 23:47:42.000000000 +0900
+++ ./lib/CIDFnmap.ARP	2005-11-10 15:02:33.000000000 +0900
@@ -25,10 +25,10 @@
 
 % Adobe-CNS1
 
-/ZenKai-Medium		(bkai00mp.ttf)		;
-/ShanHeiSun-Light	(bsmi00lp.ttf)		;
+/ZenKai-Medium		(/opt/local/X11R6/lib/X11/fonts/truetype/bkai00mp.ttf)		;
+/ShanHeiSun-Light	(/opt/local/X11R6/lib/X11/fonts/truetype/bsmi00lp.ttf)		;
 
 % Adobe-GB1
 
-/BousungEG-Light-GB	(gbsn00lp.ttf)		;
-/GBZenKai-Medium	(gkai00mp.ttf)		;
+/BousungEG-Light-GB	(/opt/local/X11R6/lib/X11/fonts/truetype/gbsn00lp.ttf)		;
+/GBZenKai-Medium	(/opt/local/X11R6/lib/X11/fonts/truetype/gkai00mp.ttf)		;
--- ./lib/CIDFnmap.Bae.org	2002-04-02 23:47:42.000000000 +0900
+++ ./lib/CIDFnmap.Bae	2005-11-10 15:02:33.000000000 +0900
@@ -25,7 +25,7 @@
 
 % Adobe-Korea1
 
-/Baekmuk-Batang		(batang.ttf)		;
-/Baekmuk-Dotum		(dotum.ttf)		;
-/Baekmuk-Gulim		(gulim.ttf)		;
-/Baekmuk-Headline	(hline.ttf)		;
+/Baekmuk-Batang		(/opt/local/X11R6/lib/X11/fonts/truetype/batang.ttf)		;
+/Baekmuk-Dotum		(/opt/local/X11R6/lib/X11/fonts/truetype/dotum.ttf)		;
+/Baekmuk-Gulim		(/opt/local/X11R6/lib/X11/fonts/truetype/gulim.ttf)		;
+/Baekmuk-Headline	(/opt/local/X11R6/lib/X11/fonts/truetype/hline.ttf)		;
--- ./lib/CIDFnmap.CJK.org	2002-04-02 23:47:42.000000000 +0900
+++ ./lib/CIDFnmap.CJK	2005-09-16 04:32:43.000000000 +0900
@@ -24,38 +24,46 @@
 % Fallback aliases for CJK PDF files
 %
 %/Adobe-CNS1		/MOESung-Regular	; % CIDFnmap.Ore
-%/Adobe-CNS1		/ShanHeiSun-Light	; % CIDFnmap.ARP
+/Adobe-CNS1		/ShanHeiSun-Light	; % CIDFnmap.ARP
 %/Adobe-CNS1		/ming			; % CIDFnmap.Sol
 %/Adobe-CNS1		/MingLiU		; % CIDFnmap.Win
 %/Adobe-CNS1		/SimSun-18030-Adobe-CNS1	; % CIDFnmap.Win
+%/Adobe-CNS1		/SimSun-Adobe-CNS1	; % CIDFnmap.OSX
 
 %/Adobe-GB1		/BousungEG-Light-GB	; % CIDFnmap.ARP
 %/Adobe-GB1		/zycjksun		; % CIDFnmap.Sol
 %/Adobe-GB1		/SimSun			; % CIDFnmap.Win
+/Adobe-GB1		/STSong-Regular		; % CIDFnmap.OSX
 
 %/Adobe-Japan1		/WadaMin-Regular	; % CIDFnmap.Ore
 %/Adobe-Japan1		/HG-MinchoL		; % CIDFnmap.Sol
+%/Adobe-Japan1		/IPAMincho		; % CIDFnmap.IPA
 %/Adobe-Japan1		/Kochi-Mincho		; % CIDFnmap.Koc
-%/Adobe-Japan1		/MS-Mincho		; % CIDFnmap.Win
+%/Adobe-Japan1		/Sazanami-Mincho-Regular	; % CIDFnmap.Saz
+%/Adobe-Japan1		/MS-Mincho		; % CIDFnmap.Win|.OSX
+/Adobe-Japan1		/HiraMinPro-W3		; % CIDFnmap.OSX
 
 %/Adobe-Japan2		/WadaMin-RegularH	; % CIDFnmap.Ore
 %/Adobe-Japan2		/HeiseiMin-W3H		; % CIDFnmap.Sol
-%/Adobe-Japan2		/MS-Mincho-Adobe-Japan2		; % CIDFnmap.Win
+/Adobe-Japan2		/MS-Mincho-Adobe-Japan2		; % CIDFnmap.Win|.OSX
 
 %/Adobe-Korea1		/Munhwa-Regular		; % CIDFnmap.Ore
 %/Adobe-Korea1		/Baekmuk-Batang		; % CIDFnmap.Bae
 %/Adobe-Korea1		/Myeongjo		; % CIDFnmap.Sol
-%/Adobe-Korea1		/Batang			; % CIDFnmap.Win
+/Adobe-Korea1		/Batang			; % CIDFnmap.Win|.OSX
 
 %
 % Convenient aliases for PS files on Traditional Chinese PostScript printer
 %
 %/MSung-Light		/MOESung-Regular	; % CIDFnmap.Ore
 %/MSung-Light		/SimSun-18030-Adobe-CNS1	; % CIDFnmap.Win
-%/MSung-Medium		/ShanHeiSun-Light	; % CIDFnmap.ARP
+%/MSung-Light		/SimSun-Adobe-CNS1	; % CIDFnmap.OSX
+/MSung-Medium		/ShanHeiSun-Light	; % CIDFnmap.ARP
 %/MHei-Medium		/ShanHeiSun-Light	; % CIDFnmap.ARP
 %/MHei-Medium		/hei			; % CIDFnmap.Sol
-%/MKai-Medium		/ZenKai-Medium		; % CIDFnmap.ARP
+%/MHei-Medium		/STHeiti-Regular-Adobe-CNS1	; % CIDFnmap.OSX
+%/MHei-Medium		/STHeiti-Light-Adobe-CNS1	; % CIDFnmap.OSX
+/MKai-Medium		/ZenKai-Medium		; % CIDFnmap.ARP
 %/MKai-Medium		/kai			; % CIDFnmap.Sol
 
 %
@@ -63,11 +71,14 @@
 %
 %/STSong-Light		/BousungEG-Light-GB	; % CIDFnmap.ARP
 %/STSong-Light		/zycjksun		; % CIDFnmap.Sol
-%/STSong-Light		/SimSun			; % CIDFnmap.Win
+%/STSong-Light		/SimSun			; % CIDFnmap.Win|.OSX
+%/STSong-Light		/STSong-Regular		; % CIDFnmap.OSX
 %/STFangsong-Light	/zycjkfangs		; % CIDFnmap.Sol
-%/STFangsong-Light	/SimSun			; % CIDFnmap.Win
+%/STFangsong-Light	/SimSun			; % CIDFnmap.Win|.OSX
+/STFangsong-Light	/STFangsong-Regular	; % CIDFnmap.OSX
 %/STHeiti-Regular	/zycjkhei		; % CIDFnmap.Sol
 %/STHeiti-Regular	/SimHei			; % CIDFnmap.Win
+%/STHeiti-Regular	/LiHei-Pro-Medium	; % CIDFnmap.OSX
 %/STKaiti-Regular	/GBZenKai-Medium	; % CIDFnmap.ARP
 %/STKaiti-Regular	/zycjkkai		; % CIDFnmap.Sol
 
@@ -76,22 +87,29 @@
 %
 %/Ryumin-Light		/WadaMin-Regular	; % CIDFnmap.Ore
 %/Ryumin-Light		/HG-MinchoL		; % CIDFnmap.Sol
+%/Ryumin-Light		/IPAMincho		; % CIDFnmap.IPA
 %/Ryumin-Light		/Kochi-Mincho		; % CIDFnmap.Koc
-%/Ryumin-Light		/MS-Mincho		; % CIDFnmap.Win
+%/Ryumin-Light		/Sazanami-Mincho-Regular	; % CIDFnmap.Saz
+%/Ryumin-Light		/MS-Mincho		; % CIDFnmap.Win|.OSX
+/Ryumin-Light		/HiraMinPro-W3		; % CIDFnmap.OSX
 %/GothicBBB-Medium	/WadaGo-Bold		; % CIDFnmap.Ore
 %/GothicBBB-Medium	/HG-GothicB		; % CIDFnmap.Sol
+%/GothicBBB-Medium	/IPAGothic		; % CIDFnmap.IPA
 %/GothicBBB-Medium	/Kochi-Gothic		; % CIDFnmap.Koc
-%/GothicBBB-Medium	/MS-Gothic		; % CIDFnmap.Win
+%/GothicBBB-Medium	/Sazanami-Gothic-Regular	; % CIDFnmap.Saz
+%/GothicBBB-Medium	/MS-Gothic		; % CIDFnmap.Win|.OSX
+/GothicBBB-Medium	/HiraKakuPro-W3		; % CIDFnmap.OSX
 %/HeiseiMin-W3		/MS-Mincho		; % CIDFnmap.Win
 %/HeiseiKakuGo-W5	/MS-Gothic		; % CIDFnmap.Win
 
+/WadaMin-RegularH	/Adobe-Japan2		;
 %/HeiseiMin-W3H		/WadaMin-RegularH	; % CIDFnmap.Ore
-%/HeiseiMin-W3H		/MS-Mincho-Adobe-Japan2	; % CIDFnmap.Win
+/HeiseiMin-W3H		/MS-Mincho-Adobe-Japan2	; % CIDFnmap.Win|.OSX
 %/HeiseiKakuGo-W5H	/WadaMaruGo-RegularH	; % CIDFnmap.Ore
-%/HeiseiKakuGo-W5H	/MS-Gothic-Adobe-Japan2	; % CIDFnmap.Win
+/HeiseiKakuGo-W5H	/MS-Gothic-Adobe-Japan2	; % CIDFnmap.Win|.OSX
 
-%/KozMin-Regular	/MS-Mincho		; % CIDFnmap.Win
-%/KozMinPro-Regular	/MS-PMincho		; % CIDFnmap.Win
+%/KozGoPro-Medium	/MS-Gothic		; % CIDFnmap.Win|.OSX
+%/KozMinPro-Regular	/MS-Mincho		; % CIDFnmap.Win|.OSX
 
 %
 % Convenient aliases for PS files on Korean PostScript printer
@@ -101,15 +119,15 @@
 %/HYGoThic-Medium	/Gothic			; % CIDFnmap.Sol
 %/HYGoThic-Medium	/Dotum			; % CIDFnmap.Win
 %/HYGungSo-Bold		/Gungsuh		; % CIDFnmap.Win
-%/HYKHeadLine-Bold	/Baekmuk-Headline	; % CIDFnmap.Bae
-%/HYKHeadLine-Medium	/Baekmuk-Headline	; % CIDFnmap.Bae
+/HYKHeadLine-Bold	/Baekmuk-Headline	; % CIDFnmap.Bae
+/HYKHeadLine-Medium	/Baekmuk-Headline	; % CIDFnmap.Bae
 %/HYSMyeongJo-Medium	/Munhwa-Regular		; % CIDFnmap.Ore
 %/HYSMyeongJo-Medium	/Baekmuk-Batang		; % CIDFnmap.Bae
 %/HYSMyeongJo-Medium	/Myeongjo		; % CIDFnmap.Sol
-%/HYSMyeongJo-Medium	/Batang			; % CIDFnmap.Win
+%/HYSMyeongJo-Medium	/Batang			; % CIDFnmap.Win|.OSX
 %/HYRGoThic-Medium	/Baekmuk-Gulim		; % CIDFnmap.Bae
 %/HYRGoThic-Medium	/RoundedGothic		; % CIDFnmap.Sol
-%/HYRGoThic-Medium	/Gulim			; % CIDFnmap.Win
+/HYRGoThic-Medium	/Gulim			; % CIDFnmap.Win|.OSX
 
 %
 % Convenient aliases for PS files on Traditional Chinese Acrobat Distiller
--- ./lib/CIDFnmap.IPA.org	2005-11-10 15:02:33.000000000 +0900
+++ ./lib/CIDFnmap.IPA	2005-09-17 16:06:58.000000000 +0900
@@ -0,0 +1,30 @@
+%!
+% Copyright (C) 2005 Taiji Yamada and gs-cjk project
+%
+% This file is part of GNU Ghostscript.
+%
+% GNU Ghostscript is distributed in the hope that it will be useful, but
+% WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
+% to anyone for the consequences of using it or for whether it serves any
+% particular purpose or works at all, unless he says so in writing. Refer
+% to the GNU General Public License for full details.
+%
+% Everyone is granted permission to copy, modify and redistribute GNU
+% Ghostscript, but only under the conditions described in the GNU General
+% Public License.  A copy of this license is supposed to have been given
+% to you along with GNU Ghostscript so you can know your rights and
+% responsibilities.  It should be in a file named COPYING.  Among other
+% things, the copyright notice and this notice must be preserved on all
+% copies.
+
+% CID fontmap for IPA truetype fonts
+
+%
+% IPA Mincho and Gothic - TrueType
+% URL: http://opfc.sourceforge.jp/
+%
+/IPAGothic	(/opt/local/X11R6/lib/X11/fonts/truetype/ipag.ttf)	;
+/IPAMincho	(/opt/local/X11R6/lib/X11/fonts/truetype/ipam.ttf)	;
+/IPAPGothic	(/opt/local/X11R6/lib/X11/fonts/truetype/ipagp.ttf)	;
+/IPAPMincho	(/opt/local/X11R6/lib/X11/fonts/truetype/ipamp.ttf)	;
+/IPAUIGothic	(/opt/local/X11R6/lib/X11/fonts/truetype/ipagui.ttf)	;
--- ./lib/CIDFnmap.Ore.org	2002-04-02 23:47:42.000000000 +0900
+++ ./lib/CIDFnmap.Ore	2005-09-16 00:11:44.000000000 +0900
@@ -43,6 +43,7 @@
 
 % Adobe-Korea1
 
+/Munhwa-Bold			(Munhwa-Bold)			;
 /Munhwa-Regular			(Munhwa-Regular)		;
 /MunhwaGothic-Bold		(MunhwaGothic-Bold)		;
 /MunhwaGothic-Regular		(MunhwaGothic-Regular)		;
@@ -51,3 +52,13 @@
 /MunhwaGungSeoHeulim-Bold	(MunhwaGungSeoHeulim-Bold)	;
 /MunhwaGungSeoHeulim-Light	(MunhwaGungSeoHeulim-Light)	;
 /MunhwaHoonMin-Regular		(MunhwaHoonMin-Regular)	        ;
+
+/MunhwaGothicStd-Bold		(/opt/local/gs7.07/share/ghostscript/Resource/CIDFont/MunhwaGothicStd-Bold.otf)			;
+/MunhwaGothicStd-Regular	(/opt/local/gs7.07/share/ghostscript/Resource/CIDFont/MunhwaGothicStd-Regular.otf)		;
+/MunhwaHoonminStd-Regular	(/opt/local/gs7.07/share/ghostscript/Resource/CIDFont/MunhwaHoonminStd-Regular.otf)		;
+/MunhwaMyungjoStd-Bold		(/opt/local/gs7.07/share/ghostscript/Resource/CIDFont/MunhwaMyungjoStd-Bold.otf)		;
+/MunhwaMyungjoStd-Regular	(/opt/local/gs7.07/share/ghostscript/Resource/CIDFont/MunhwaMyungjoStd-Regular.otf)		;
+/MunhwaScriptFreestyleStd-Bold	(/opt/local/gs7.07/share/ghostscript/Resource/CIDFont/MunhwaScriptFreestyleStd-Bold.otf)	;
+/MunhwaScriptFreestyleStd-Light	(/opt/local/gs7.07/share/ghostscript/Resource/CIDFont/MunhwaScriptFreestyleStd-Light.otf)	;
+/MunhwaScriptStd-Bold		(/opt/local/gs7.07/share/ghostscript/Resource/CIDFont/MunhwaScriptStd-Bold.otf)			;
+/MunhwaScriptStd-Light		(/opt/local/gs7.07/share/ghostscript/Resource/CIDFont/MunhwaScriptStd-Light.otf)		;
--- ./lib/CIDFnmap.org	2002-04-02 23:47:42.000000000 +0900
+++ ./lib/CIDFnmap	2005-09-15 04:45:07.000000000 +0900
@@ -135,14 +135,18 @@
 % in particular, you must leave at least one space or tab between each
 % field in the entry.  
 
-%(CIDFnmap.Ore) .runlibfile
-%(CIDFnmap.ARP) .runlibfile
-%(CIDFnmap.Bae) .runlibfile
+(CIDFnmap.Ore) .runlibfile
+(CIDFnmap.Ado) .runlibfile
+(CIDFnmap.ARP) .runlibfile
+(CIDFnmap.Bae) .runlibfile
+(CIDFnmap.IPA) .runlibfile
 %(CIDFnmap.Koc) .runlibfile
+(CIDFnmap.Saz) .runlibfile
 %(CIDFnmap.Sol) .runlibfile
 %(CIDFnmap.Win) .runlibfile
+(CIDFnmap.OSX) .runlibfile
 
-%(CIDFnmap.CJK) .runlibfile
+(CIDFnmap.CJK) .runlibfile
 
 % native CIDFontName (BIG5) in traditional Chinese
 %(CIDFnmap.b5) .runlibfile
--- ./lib/CIDFnmap.OSX.org	2005-11-10 15:11:51.000000000 +0900
+++ ./lib/CIDFnmap.OSX	2005-09-17 18:11:46.000000000 +0900
@@ -0,0 +1,52 @@
+
+% Adobe-CNS1
+
+/PMingLiU	(/Applications/Office 2004 for Mac Test Drive/Office/Fonts/PMingLiU.ttf)	;
+
+/SimSun-Adobe-CNS1	(/Applications/Office 2004 for Mac Test Drive/Office/Fonts/SimSun.ttf)	/Adobe-CNS1-Unicode	;
+
+% Can't handle format 12
+%/LiHeiPro-Medium	(/opt/local/X11R6/lib/X11/fonts/truetype/LiHeiPro.ttf)		/Adobe-CNS1-Unicode	;
+%/LiSongPro-Light	(/opt/local/X11R6/lib/X11/fonts/truetype/LiSongPro.ttf)	/Adobe-CNS1-Unicode	;
+
+/STHeiti-Regular-Adobe-CNS1	(/opt/local/X11R6/lib/X11/fonts/truetype/STHeiti.ttf)		/Adobe-CNS1-Unicode	;
+/STHeiti-Light-Adobe-CNS1	(/opt/local/X11R6/lib/X11/fonts/truetype/STXihei.ttf)		/Adobe-CNS1-Unicode	;
+/STFangsong-Regular-Adobe-CNS1	(/opt/local/X11R6/lib/X11/fonts/truetype/STFangsong.ttf)	/Adobe-CNS1-Unicode	;
+/STSong-Regular-Adobe-CNS1	(/opt/local/X11R6/lib/X11/fonts/truetype/STSong.ttf)		/Adobe-CNS1-Unicode	;
+/STKaiti-Regular-Adobe-CNS1	(/opt/local/X11R6/lib/X11/fonts/truetype/STKaiti.ttf)		/Adobe-CNS1-Unicode	;
+
+% Adobe-GB1
+
+/SimSun		(/Applications/Office 2004 for Mac Test Drive/Office/Fonts/SimSun.ttf)		;
+
+/STHeiti-Regular	(/opt/local/X11R6/lib/X11/fonts/truetype/STHeiti.ttf)		/Adobe-GB1-Unicode	;
+/STHeiti-Light		(/opt/local/X11R6/lib/X11/fonts/truetype/STXihei.ttf)		/Adobe-GB1-Unicode	;
+/STFangsong-Regular	(/opt/local/X11R6/lib/X11/fonts/truetype/STFangsong.ttf)	/Adobe-GB1-Unicode	;
+/STSong-Regular		(/opt/local/X11R6/lib/X11/fonts/truetype/STSong.ttf)		/Adobe-GB1-Unicode	;
+/STKaiti-Regular	(/opt/local/X11R6/lib/X11/fonts/truetype/STKaiti.ttf)		/Adobe-GB1-Unicode	;
+
+% Adobe-Japan1
+
+/MS-Gothic	(/opt/local/X11R6/lib/X11/fonts/truetype/msgothic.ttf)	;
+/MS-PGothic	(/opt/local/X11R6/lib/X11/fonts/truetype/mspgothic.ttf)	;
+/MS-Mincho	(/opt/local/X11R6/lib/X11/fonts/truetype/msmincho.ttf)	;
+/MS-PMincho	(/opt/local/X11R6/lib/X11/fonts/truetype/mspmincho.ttf)	;
+
+/HiraKakuPro-W3	(/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuPro-W3.otf)	;
+/HiraKakuPro-W6	(/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuPro-W6.otf)	;
+/HiraKakuStd-W8	(/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuStd-W8.otf)	;
+/HiraMaruPro-W4	(/opt/local/X11R6/lib/X11/fonts/opentype/HiraMaruPro-W4.otf)	;
+/HiraMinPro-W3	(/opt/local/X11R6/lib/X11/fonts/opentype/HiraMinPro-W3.otf)	;
+/HiraMinPro-W6	(/opt/local/X11R6/lib/X11/fonts/opentype/HiraMinPro-W6.otf)	;
+
+% Adobe-Japan2
+
+/MS-Gothic-Adobe-Japan2		(/opt/local/X11R6/lib/X11/fonts/truetype/msgothic.ttf)		/Adobe-Japan2	;
+/MS-PGothic-Adobe-Japan2	(/opt/local/X11R6/lib/X11/fonts/truetype/mspgothic.ttf)		/Adobe-Japan2	;
+/MS-Mincho-Adobe-Japan2		(/opt/local/X11R6/lib/X11/fonts/truetype/msmincho.ttf)		/Adobe-Japan2	;
+/MS-PMincho-Adobe-Japan2	(/opt/local/X11R6/lib/X11/fonts/truetype/mspmincho.ttf)		/Adobe-Japan2	;
+
+% Adobe-Korea1
+
+/Batang	(/Applications/Office 2004 for Mac Test Drive/Office/Fonts/Batang.ttf)	;
+/Gulim	(/Applications/Office 2004 for Mac Test Drive/Office/Fonts/Gulim.ttf)	;
--- ./lib/CIDFnmap.Saz.org	2005-11-10 15:02:33.000000000 +0900
+++ ./lib/CIDFnmap.Saz	2005-09-17 15:57:10.000000000 +0900
@@ -0,0 +1,27 @@
+%!
+% Copyright (C) 2005 Taiji Yamada and gs-cjk project
+%
+% This file is part of GNU Ghostscript.
+%
+% GNU Ghostscript is distributed in the hope that it will be useful, but
+% WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
+% to anyone for the consequences of using it or for whether it serves any
+% particular purpose or works at all, unless he says so in writing. Refer
+% to the GNU General Public License for full details.
+%
+% Everyone is granted permission to copy, modify and redistribute GNU
+% Ghostscript, but only under the conditions described in the GNU General
+% Public License.  A copy of this license is supposed to have been given
+% to you along with GNU Ghostscript so you can know your rights and
+% responsibilities.  It should be in a file named COPYING.  Among other
+% things, the copyright notice and this notice must be preserved on all
+% copies.
+
+% CID fontmap for Sazanami truetype fonts
+
+%
+% Sazanami Mincho and Gothic - TrueType
+% URL: http://sourceforge.jp/projects/efont/files/
+%
+/Sazanami-Gothic-Regular	(/opt/local/X11R6/lib/X11/fonts/truetype/sazanami-gothic.ttf)	;
+/Sazanami-Mincho-Regular	(/opt/local/X11R6/lib/X11/fonts/truetype/sazanami-mincho.ttf)	;
--- ./lib/gs_res.ps.org	2003-04-12 23:02:38.000000000 +0900
+++ ./lib/gs_res.ps	2005-11-10 15:02:33.000000000 +0900
@@ -246,8 +246,8 @@
   /pssystemparams 10 dict readonly def
 } if
 pssystemparams begin
-  /FontResourceDir (/Resource/Font/) readonly .forcedef	% pssys'params is r-o
-  /GenericResourceDir (/Resource/) readonly .forcedef	% pssys'params is r-o
+  /FontResourceDir (/opt/local/gs7.07/share/ghostscript/Resource/Font/) readonly .forcedef	% pssys'params is r-o
+  /GenericResourceDir (/opt/local/gs7.07/share/ghostscript/Resource/) readonly .forcedef	% pssys'params is r-o
   /GenericResourcePathSep (/) readonly .forcedef	% pssys'params is r-o
 end
 end
--- ./src/unixinst.mak.org	2003-01-17 09:49:05.000000000 +0900
+++ ./src/unixinst.mak	2005-11-10 15:16:54.000000000 +0900
@@ -66,8 +66,8 @@
 	-mkdir -p $(gsdatadir)/lib
 	$(SH) -c 'for f in \
 Fontmap Fontmap.GS \
-CIDFnmap CIDFnmap.Ore CIDFnmap.ARP CIDFnmap.Bae CIDFnmap.Koc \
-CIDFnmap.Sol CIDFnmap.Win \
+CIDFnmap CIDFnmap.Ore CIDFnmap.Ado CIDFnmap.ARP CIDFnmap.Bae CIDFnmap.IPA CIDFnmap.Koc CIDFnmap.Saz \
+CIDFnmap.Sol CIDFnmap.Win CIDFnmap.OSX \
 CIDFnmap.CJK \
 CIDFnmap.b5 CIDFnmap.gb CIDFnmap.ksx CIDFnmap.sj \
 ht_ccsto.ps \
installation
make install
if [ ! -d /opt/local/gs7.07/share/ghostscript/fonts ]; then
  tar -C /opt/local/gs7.07/share/ghostscript -xvzf ../ghostscript-fonts-std-8.11.tar.gz
fi
if [ ! -d /opt/local/gs7.07/share/ghostscript/Resource ]; then
  mkdir /opt/local/gs7.07/share/ghostscript/Resource
#  tar -C /opt/local/gs7.07/share/ghostscript/Resource -xvzf ../acro5-cmaps-2001.tar.gz
  tar -C /opt/local/gs7.07/share/ghostscript/Resource -xvzf ../acro9-cmaps-200712.tar.gz
#  tar -C /opt/local/gs7.07/share/ghostscript/Resource -xvzf ../adobe-cmaps-200211.tar.gz
#  tar -C /opt/local/gs7.07/share/ghostscript/Resource -xvzf ../adobe-cmaps-200406.tar.gz
  tar -C /opt/local/gs7.07/share/ghostscript/Resource -xvzf ../adobe-cmaps-200803.tar.gz
fi
[ ! -d   /opt/local/gs7.07/share/ghostscript/7.07/Resource/CIDFont ] &&
mkdir -p /opt/local/gs7.07/share/ghostscript/7.07/Resource/CIDFont
(cd      /opt/local/gs7.07/share/ghostscript/7.07/Resource/CIDFont &&
  (
    find /opt/local/X11R6/lib/X11/fonts/cidkeyed ! -type d &&
    find /opt/local/X11R6/lib/X11/fonts/opentype ! -type d
  ) |
  while read f; do
    case "`file -b \"$f\"`" in
    *'Type font '*|'PostScript document '*)	;;
    *) continue	;;
    esac
    t="`basename \"$f\" .otf`"
    case "$t" in
    ipag)	t=IPAGothicRegular	;;
    ipagp)	t=IPAPGothicRegular	;;
    ipam)	t=IPAMinchoRegular	;;
    ipamp)	t=IPAPMinchoRegular	;;
    esac
    [ -f "$t" ] || ln -sf "$f" "$t"
  done
  #
  #
  #
  find . -maxdepth 1 -name '*-Acro' |
  while read f; do
    f="`basename \"$f\"`"
    t="`basename \"$f\" -Acro`"
    [ -f "$t" ] || echo "/$t	/$f	;"
  done
)
installed
/opt/local/gs7.07/bin/bdftops
/opt/local/gs7.07/bin/dvipdf
/opt/local/gs7.07/bin/eps2eps
/opt/local/gs7.07/bin/fixmswrd.pl
/opt/local/gs7.07/bin/font2c
/opt/local/gs7.07/bin/gs
/opt/local/gs7.07/bin/gsbj
/opt/local/gs7.07/bin/gsdj
/opt/local/gs7.07/bin/gsdj500
/opt/local/gs7.07/bin/gslj
/opt/local/gs7.07/bin/gslp
/opt/local/gs7.07/bin/gsnd
/opt/local/gs7.07/bin/lprsetup.sh
/opt/local/gs7.07/bin/pdf2dsc
/opt/local/gs7.07/bin/pdf2ps
/opt/local/gs7.07/bin/pdfopt
/opt/local/gs7.07/bin/pf2afm
/opt/local/gs7.07/bin/pfbtopfa
/opt/local/gs7.07/bin/pj-gs.sh
/opt/local/gs7.07/bin/printafm
/opt/local/gs7.07/bin/ps2ascii
/opt/local/gs7.07/bin/ps2epsi
/opt/local/gs7.07/bin/ps2pdf
/opt/local/gs7.07/bin/ps2pdf12
/opt/local/gs7.07/bin/ps2pdf13
/opt/local/gs7.07/bin/ps2pdf14
/opt/local/gs7.07/bin/ps2pdfwr
/opt/local/gs7.07/bin/ps2ps
/opt/local/gs7.07/bin/pv.sh
/opt/local/gs7.07/bin/sysvlp.sh
/opt/local/gs7.07/bin/unix-lpr.sh
/opt/local/gs7.07/bin/wftopfa
/opt/local/gs7.07/man/de/man1/ansi2knr.1
/opt/local/gs7.07/man/de/man1/dvipdf.1
/opt/local/gs7.07/man/de/man1/eps2eps.1
/opt/local/gs7.07/man/de/man1/font2c.1
/opt/local/gs7.07/man/de/man1/gsbj.1
/opt/local/gs7.07/man/de/man1/gsdj.1
/opt/local/gs7.07/man/de/man1/gsdj500.1
/opt/local/gs7.07/man/de/man1/gslj.1
/opt/local/gs7.07/man/de/man1/gsnd.1
/opt/local/gs7.07/man/de/man1/pdf2dsc.1
/opt/local/gs7.07/man/de/man1/pdf2ps.1
/opt/local/gs7.07/man/de/man1/pdfopt.1
/opt/local/gs7.07/man/de/man1/printafm.1
/opt/local/gs7.07/man/de/man1/ps2ascii.1
/opt/local/gs7.07/man/de/man1/ps2pdf.1
/opt/local/gs7.07/man/de/man1/ps2pdf12.1
/opt/local/gs7.07/man/de/man1/ps2pdf13.1
/opt/local/gs7.07/man/de/man1/ps2ps.1
/opt/local/gs7.07/man/de/man1/wftopfa.1
/opt/local/gs7.07/man/man1/ansi2knr.1
/opt/local/gs7.07/man/man1/dvipdf.1
/opt/local/gs7.07/man/man1/eps2eps.1
/opt/local/gs7.07/man/man1/font2c.1
/opt/local/gs7.07/man/man1/gs.1
/opt/local/gs7.07/man/man1/gsbj.1
/opt/local/gs7.07/man/man1/gsdj.1
/opt/local/gs7.07/man/man1/gsdj500.1
/opt/local/gs7.07/man/man1/gslj.1
/opt/local/gs7.07/man/man1/gslp.1
/opt/local/gs7.07/man/man1/gsnd.1
/opt/local/gs7.07/man/man1/pdf2dsc.1
/opt/local/gs7.07/man/man1/pdf2ps.1
	:
data_installed
/opt/local/gs7.07/share/ghostscript/fonts/a010013l.afm
/opt/local/gs7.07/share/ghostscript/fonts/a010013l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/a010013l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/a010015l.afm
/opt/local/gs7.07/share/ghostscript/fonts/a010015l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/a010015l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/a010033l.afm
/opt/local/gs7.07/share/ghostscript/fonts/a010033l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/a010033l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/a010035l.afm
/opt/local/gs7.07/share/ghostscript/fonts/a010035l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/a010035l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/b018012l.afm
/opt/local/gs7.07/share/ghostscript/fonts/b018012l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/b018012l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/b018015l.afm
/opt/local/gs7.07/share/ghostscript/fonts/b018015l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/b018015l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/b018032l.afm
/opt/local/gs7.07/share/ghostscript/fonts/b018032l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/b018032l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/b018035l.afm
/opt/local/gs7.07/share/ghostscript/fonts/b018035l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/b018035l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/c059013l.afm
/opt/local/gs7.07/share/ghostscript/fonts/c059013l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/c059016l.afm
/opt/local/gs7.07/share/ghostscript/fonts/c059016l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/c059033l.afm
/opt/local/gs7.07/share/ghostscript/fonts/c059033l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/c059036l.afm
/opt/local/gs7.07/share/ghostscript/fonts/c059036l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/ChangeLog
/opt/local/gs7.07/share/ghostscript/fonts/COPYING
/opt/local/gs7.07/share/ghostscript/fonts/d050000l.afm
/opt/local/gs7.07/share/ghostscript/fonts/d050000l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/fonts.dir
/opt/local/gs7.07/share/ghostscript/fonts/fonts.scale
/opt/local/gs7.07/share/ghostscript/fonts/n019003l.afm
/opt/local/gs7.07/share/ghostscript/fonts/n019003l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/n019003l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/n019004l.afm
/opt/local/gs7.07/share/ghostscript/fonts/n019004l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/n019004l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/n019023l.afm
/opt/local/gs7.07/share/ghostscript/fonts/n019023l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/n019023l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/n019024l.afm
/opt/local/gs7.07/share/ghostscript/fonts/n019024l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/n019024l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/n019043l.afm
/opt/local/gs7.07/share/ghostscript/fonts/n019043l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/n019044l.afm
/opt/local/gs7.07/share/ghostscript/fonts/n019044l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/n019063l.afm
/opt/local/gs7.07/share/ghostscript/fonts/n019063l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/n019064l.afm
/opt/local/gs7.07/share/ghostscript/fonts/n019064l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/n019064l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/n021003l.afm
/opt/local/gs7.07/share/ghostscript/fonts/n021003l.pfb
/opt/local/gs7.07/share/ghostscript/fonts/n021003l.pfm
/opt/local/gs7.07/share/ghostscript/fonts/n021004l.afm
/opt/local/gs7.07/share/ghostscript/fonts/n021004l.pfb
	:

archivers/xz-4.999.8beta

preparation
curl -RO -C - http://tukaani.org/xz/xz-4.999.8beta.tar.gz
tar xvzf xz-4.999.8beta.tar.gz
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
#make clean distclean &&
./configure 'CC=gcc -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' --prefix=/opt/local --host=x86_64-apple-darwin --build=`sh build-aux/config.guess` --disable-nls &&
make &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  tar cf - `listup_binaries` | (cd .arch_x86_64 && tar xf -)
} &&
make clean distclean &&
./configure 'CC=gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' --prefix=/opt/local --host=i386-apple-darwin --build=`sh build-aux/config.guess` --disable-nls &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -)
} &&
make clean distclean &&
./configure 'CC=gcc -arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' --prefix=/opt/local --host=ppc64-apple-darwin --build=`sh build-aux/config.guess` --disable-nls &&
make &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  tar cf - `listup_binaries` | (cd .arch_ppc64 && tar xf -)
} &&
make clean distclean &&
./configure 'CC=gcc -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' --prefix=/opt/local --host=ppc-apple-darwin --build=`sh build-aux/config.guess` --disable-nls &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -)
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/bin/lzcat
/opt/local/bin/lzcmp
/opt/local/bin/lzdiff
/opt/local/bin/lzegrep
/opt/local/bin/lzfgrep
/opt/local/bin/lzgrep
/opt/local/bin/lzless
/opt/local/bin/lzma
/opt/local/bin/lzmadec
/opt/local/bin/lzmore
/opt/local/bin/unlzma
/opt/local/bin/unxz
/opt/local/bin/xz
/opt/local/bin/xzcat
/opt/local/bin/xzdec
/opt/local/include/lzma/base.h
/opt/local/include/lzma/bcj.h
/opt/local/include/lzma/block.h
/opt/local/include/lzma/check.h
/opt/local/include/lzma/container.h
/opt/local/include/lzma/delta.h
/opt/local/include/lzma/filter.h
/opt/local/include/lzma/index.h
/opt/local/include/lzma/index_hash.h
/opt/local/include/lzma/lzma.h
/opt/local/include/lzma/stream_flags.h
/opt/local/include/lzma/subblock.h
/opt/local/include/lzma/version.h
/opt/local/include/lzma/vli.h
/opt/local/include/lzma.h
/opt/local/lib/liblzma.0.0.0.dylib
/opt/local/lib/liblzma.0.dylib
/opt/local/lib/liblzma.a
/opt/local/lib/liblzma.dylib
/opt/local/lib/liblzma.la
/opt/local/lib/pkgconfig/liblzma.pc
/opt/local/share/man/man1/lzcmp.1
/opt/local/share/man/man1/lzdiff.1
/opt/local/share/man/man1/lzegrep.1
/opt/local/share/man/man1/lzfgrep.1
/opt/local/share/man/man1/lzgrep.1
/opt/local/share/man/man1/lzless.1
/opt/local/share/man/man1/lzmore.1

archivers/bzip2-1.0.5

preparation
curl -RO -C - http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz
tar xvzf bzip2-1.0.5.tar.gz
(cd bzip2-1.0.5 &&
patch -p0 -b -z.org < ../bzip2-1.0.5-ubagami.patch
)
build
make -f Makefile-libbz2_so
make
patch
--- ./Makefile-libbz2_so~	2007-12-09 22:00:50.000000000 +0900
+++ ./Makefile-libbz2_so	2010-08-04 00:41:21.000000000 +0900
@@ -1,6 +1,6 @@
 
 # This Makefile builds a shared version of the library, 
-# libbz2.so.1.0.4, with soname libbz2.so.1.0,
+# libbz2.so.1.0.5, with soname libbz2.so.1.0,
 # at least on x86-Linux (RedHat 7.2), 
 # with gcc-2.96 20000731 (Red Hat Linux 7.1 2.96-98).  
 # Please see the README file for some important info 
@@ -22,10 +22,14 @@
 
 
 SHELL=/bin/sh
-CC=gcc
+CC=gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
 BIGFILES=-D_FILE_OFFSET_BITS=64
 CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
 
+# Where you want it installed when you do 'make install'
+PREFIX=/opt/local
+
+
 OBJS= blocksort.o  \
       huffman.o    \
       crctable.o   \
@@ -35,13 +39,27 @@
       bzlib.o
 
 all: $(OBJS)
-	$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.4 $(OBJS)
-	$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.4
-	rm -f libbz2.so.1.0
-	ln -s libbz2.so.1.0.4 libbz2.so.1.0
+#	$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.5 $(OBJS)
+#	$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.5
+#	rm -f libbz2.so.1.0
+#	ln -s libbz2.so.1.0.5 libbz2.so.1.0
+	$(CC) -dynamiclib -install_name /opt/local/lib/libbz2.1.0.5.dylib -current_version 1.0.5 -compatibility_version 1.0.0 -o libbz2.1.0.5.dylib $(OBJS)
+	rm -f libbz2.1.0.dylib libbz2.dylib
+	ln -s libbz2.1.0.5.dylib libbz2.1.0.dylib
+	ln -s libbz2.1.0.5.dylib libbz2.dylib
+
+#install: libbz2.so.1.0.5
+install: libbz2.1.0.5.dylib
+	cp -f libbz2.1.0.5.dylib $(PREFIX)/lib
+	chmod a+r $(PREFIX)/lib/libbz2.1.0.5.dylib	 
+	(cd $(PREFIX)/lib; \
+	rm -f libbz2.1.0.dylib libbz2.dylib; \
+	ln -s libbz2.1.0.5.dylib libbz2.1.0.dylib; \
+	ln -s libbz2.1.0.5.dylib libbz2.dylib)
 
 clean: 
-	rm -f $(OBJS) bzip2.o libbz2.so.1.0.4 libbz2.so.1.0 bzip2-shared
+#	rm -f $(OBJS) bzip2.o libbz2.so.1.0.5 libbz2.so.1.0 bzip2-shared
+	rm -f $(OBJS) bzip2.o libbz2.1.0.5.dylib libbz2.1.0.dylib libbz2.dylib
 
 blocksort.o: blocksort.c
 	$(CC) $(CFLAGS) -c blocksort.c
--- ./Makefile~	2008-02-14 21:39:18.000000000 +0900
+++ ./Makefile	2010-08-04 02:25:56.000000000 +0900
@@ -15,7 +15,7 @@
 SHELL=/bin/sh
 
 # To assist in cross-compiling
-CC=gcc
+CC=gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
 AR=ar
 RANLIB=ranlib
 LDFLAGS=
@@ -24,7 +24,7 @@
 CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
 
 # Where you want it installed when you do 'make install'
-PREFIX=/usr/local
+PREFIX=/opt/local
 
 
 OBJS= blocksort.o  \
@@ -38,6 +38,7 @@
 all: libbz2.a bzip2 bzip2recover test
 
 bzip2: libbz2.a bzip2.o
+#	$(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o libbz2.a
 	$(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2
 
 bzip2recover: bzip2recover.o
@@ -55,12 +56,12 @@
 check: test
 test: bzip2
 	@cat words1
-	./bzip2 -1  < sample1.ref > sample1.rb2
-	./bzip2 -2  < sample2.ref > sample2.rb2
-	./bzip2 -3  < sample3.ref > sample3.rb2
-	./bzip2 -d  < sample1.bz2 > sample1.tst
-	./bzip2 -d  < sample2.bz2 > sample2.tst
-	./bzip2 -ds < sample3.bz2 > sample3.tst
+	DYLD_LIBRARY_PATH=. ./bzip2 -1  < sample1.ref > sample1.rb2
+	DYLD_LIBRARY_PATH=. ./bzip2 -2  < sample2.ref > sample2.rb2
+	DYLD_LIBRARY_PATH=. ./bzip2 -3  < sample3.ref > sample3.rb2
+	DYLD_LIBRARY_PATH=. ./bzip2 -d  < sample1.bz2 > sample1.tst
+	DYLD_LIBRARY_PATH=. ./bzip2 -d  < sample2.bz2 > sample2.tst
+	DYLD_LIBRARY_PATH=. ./bzip2 -ds < sample3.bz2 > sample3.tst
 	cmp sample1.bz2 sample1.rb2 
 	cmp sample2.bz2 sample2.rb2
 	cmp sample3.bz2 sample3.rb2
@@ -90,14 +91,20 @@
 	cp -f libbz2.a $(PREFIX)/lib
 	chmod a+r $(PREFIX)/lib/libbz2.a
 	cp -f bzgrep $(PREFIX)/bin/bzgrep
-	ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep
-	ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep
+	(cd $(PREFIX)/bin; \
+	rm -f bzegrep bzfgrep; \
+	ln -s bzgrep bzegrep; \
+	ln -s bzgrep bzfgrep)
 	chmod a+x $(PREFIX)/bin/bzgrep
 	cp -f bzmore $(PREFIX)/bin/bzmore
-	ln -s -f $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless
+	(cd $(PREFIX)/bin; \
+	rm -f bzless; \
+	ln -s bzmore bzless)
 	chmod a+x $(PREFIX)/bin/bzmore
 	cp -f bzdiff $(PREFIX)/bin/bzdiff
-	ln -s -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp
+	(cd $(PREFIX)/bin; \
+	rm -f bzcmp; \
+	ln -s bzdiff bzcmp)
 	chmod a+x $(PREFIX)/bin/bzdiff
 	cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1
 	chmod a+r $(PREFIX)/man/man1/bzgrep.1
installation
make -f Makefile-libbz2_so install
make install
installed
/opt/local/bin/bunzip2
/opt/local/bin/bzcat
/opt/local/bin/bzcmp
/opt/local/bin/bzdiff
/opt/local/bin/bzegrep
/opt/local/bin/bzfgrep
/opt/local/bin/bzgrep
/opt/local/bin/bzip2
/opt/local/bin/bzip2recover
/opt/local/bin/bzless
/opt/local/bin/bzmore
/opt/local/include/bzlib.h
/opt/local/lib/libbz2.1.0.5.dylib
/opt/local/lib/libbz2.1.0.dylib
/opt/local/lib/libbz2.a
/opt/local/lib/libbz2.dylib
/opt/local/man/man1/bzcmp.1
/opt/local/man/man1/bzdiff.1
/opt/local/man/man1/bzegrep.1
/opt/local/man/man1/bzfgrep.1
/opt/local/man/man1/bzgrep.1
/opt/local/man/man1/bzip2.1
/opt/local/man/man1/bzless.1
/opt/local/man/man1/bzmore.1

av/players/mplayer/mplayer-export-2009-07-07

preparation
[ -f mplayer-export-2009-07-07.tar.bz2 ] || {
curl -RO -C - http://www.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2 &&
mv mplayer-export-snapshot.tar.bz2 mplayer-export-2009-07-07.tar.bz2
} &&
tar xvjf mplayer-export-2009-07-07.tar.bz2
(cd mplayer-export-2009-07-07 &&
patch -p0 -b -z.org < ../mplayer-export-2009-07-07-ubagami.patch
)
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
[ -f freetype-config ] || sed 's|/usr/X11|/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6|g' /usr/X11/bin/freetype-config > freetype-config &&
chmod +x freetype-config &&
#make clean distclean &&
./configure --extra-cflags='-arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include' --extra-ldflags='-arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -L/opt/local/lib -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib' --with-freetype-config="`pwd`/freetype-config" --extra-libs-mplayer='-L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -lXext -lX11' --prefix=/opt/local --enable-x11 --enable-sdl &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -)
} &&
make clean distclean &&
./configure --target=powerpc-darwin --cc='gcc -force_cpusubtype_ALL' --extra-cflags='-arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include' --extra-ldflags='-arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -L/opt/local/lib -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib' --with-freetype-config="`pwd`/freetype-config" --extra-libs-mplayer='-L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -lXext -lX11' --enable-big-endian --prefix=/opt/local --enable-x11 --enable-sdl &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -)
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
patch
--- ./configure~	2009-06-25 08:31:17.000000000 +0900
+++ ./configure	2009-07-14 18:53:28.000000000 +0900
@@ -4136,7 +4136,8 @@
     fi
   done
   if test $_cross_compile = no; then
-    for I in /usr/X11/include /usr/X11R7/include /usr/X11R6/include \
+    for I in /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include \
+             /usr/X11/include /usr/X11R7/include /usr/X11R6/include \
              /usr/include/X11R6 /usr/openwin/include ; do
       if test -f "$I/X11/Xlib.h" ; then
         extra_cflags="$extra_cflags -I$I"
@@ -4156,7 +4157,8 @@
 #include <X11/Xutil.h>
 int main(void) { (void) XCreateWindow(0,0,0,0,0,0,0,0,0,0,0,0); return 0; }
 EOF
-  for I in "" -L/usr/X11R7/lib -L/usr/X11R6/lib -L/usr/lib/X11R6 \
+  for I in "" -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib \
+           -L/usr/X11R7/lib -L/usr/X11R6/lib -L/usr/lib/X11R6 \
            -L/usr/X11/lib -L/usr/lib32 -L/usr/openwin/lib -L/usr/X11R6/lib64 \
            -L/usr/lib ; do
     if netbsd; then
@@ -6017,7 +6019,7 @@
 	(int)major,(int)minor,(int)patch );
     if (major!=FREETYPE_MAJOR || minor!=FREETYPE_MINOR) {
 	printf("Library and header version mismatch! Fix it in your distribution!\n");
-	exit(1);
+	/*exit(1);*/
     }
     return 0;
 }
installed
/opt/local/bin/mencoder
/opt/local/bin/mplayer
/opt/local/share/man/man1/mencoder.1
/opt/local/share/man/man1/mplayer.1

av/mjpegtools-1.9.0

preparation
curl -ROL -C - http://downloads.sourceforge.net/sourceforge/mjpeg/mjpegtools-1.9.0.tar.gz
tar xvzf mjpegtools-1.9.0.tar.gz
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
autoreconf -i -f &&
#make clean distclean &&
./configure 'CC=gcc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local --with-libquicktime --with-libdv --with-libpng --with-x --with-sdl-prefix=/opt/local &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -)
} &&
make clean distclean &&
./configure 'CC=gcc -arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --host=ppc-apple-darwin --prefix=/opt/local --with-libquicktime --with-libdv --with-libpng --with-x --with-sdl-prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -)
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/bin/anytovcd.sh
/opt/local/bin/jpeg2yuv
/opt/local/bin/lav2avi.sh
/opt/local/bin/lav2mpeg
/opt/local/bin/lav2wav
/opt/local/bin/lav2yuv
/opt/local/bin/lavaddwav
/opt/local/bin/lavinfo
/opt/local/bin/lavpipe
/opt/local/bin/lavplay
/opt/local/bin/lavtc.sh
/opt/local/bin/lavtrans
/opt/local/bin/matteblend.flt
/opt/local/bin/mjpeg_simd_helper
/opt/local/bin/mp2enc
/opt/local/bin/mpeg2enc
/opt/local/bin/mpegtranscode
/opt/local/bin/mplex
/opt/local/bin/multiblend.flt
/opt/local/bin/pgmtoy4m
/opt/local/bin/png2yuv
/opt/local/bin/pnmtoy4m
/opt/local/bin/ppmtoy4m
/opt/local/bin/qttoy4m
/opt/local/bin/transist.flt
/opt/local/bin/y4mblack
/opt/local/bin/y4mcolorbars
/opt/local/bin/y4mdenoise
/opt/local/bin/y4mhist
/opt/local/bin/y4minterlace
/opt/local/bin/y4mivtc
/opt/local/bin/y4mshift
/opt/local/bin/y4mspatialfilter
/opt/local/bin/y4mstabilizer
/opt/local/bin/y4mtopnm
/opt/local/bin/y4mtoppm
/opt/local/bin/y4mtoqt
/opt/local/bin/y4mtoyuv
/opt/local/bin/y4munsharp
/opt/local/bin/ypipe
/opt/local/bin/yuv2lav
/opt/local/bin/yuv4mpeg
/opt/local/bin/yuvcorrect
/opt/local/bin/yuvcorrect_tune
/opt/local/bin/yuvdeinterlace
/opt/local/bin/yuvdenoise
/opt/local/bin/yuvfps
/opt/local/bin/yuvinactive
/opt/local/bin/yuvkineco
/opt/local/bin/yuvmedianfilter
/opt/local/bin/yuvplay
/opt/local/bin/yuvscaler
/opt/local/bin/yuvycsnoise
/opt/local/bin/yuyvtoy4m
/opt/local/include/mjpegtools/audiolib.h
/opt/local/include/mjpegtools/avilib.h
/opt/local/include/mjpegtools/editlist.h
/opt/local/include/mjpegtools/format_codes.h
/opt/local/include/mjpegtools/frequencies.h
/opt/local/include/mjpegtools/jpegutils.h
/opt/local/include/mjpegtools/lav_io.h
/opt/local/include/mjpegtools/liblavplay.h
/opt/local/include/mjpegtools/liblavrec.h
/opt/local/include/mjpegtools/mjpeg_logging.h
	:

av/gpac/gpac-0.4.5

preparation
curl -RO -C - http://jaist.dl.sourceforge.net/sourceforge/gpac/gpac-0.4.5.tar.gz
tar xvzf gpac-0.4.5.tar.gz && mv gpac gpac-0.4.5
(cd gpac-0.4.5 &&
chmod +x configure &&
patch -p0 -b -z.org < ../gpac-0.4.5-ubagami.patch
)
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
[ -f freetype-config ] || sed 's|/usr/X11|/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6|g' /usr/X11/bin/freetype-config > freetype-config &&
chmod +x freetype-config &&
#make clean distclean &&
./configure --cpu=i386 --extra-cflags='-arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include' --extra-ldflags='-arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -L/opt/local/lib' --X11-path=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6 --prefix=/opt/local --disable-wx &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -)
} &&
make clean distclean &&
./configure --cpu=ppc --extra-cflags='-arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include' --extra-ldflags='-arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -L/opt/local/lib' --X11-path=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6 --prefix=/opt/local --disable-wx &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -)
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
patch
--- ./applications/mp4client/Makefile.org	2008-11-24 17:44:26.000000000 +0900
+++ ./applications/mp4client/Makefile	2009-07-15 03:07:23.000000000 +0900
@@ -87,8 +87,9 @@
 clean: 
 	rm -f $(OBJS) ../../bin/gcc/$(PROG)
 
-install: clean
-	$(MAKE) -override BUILD_INSTALL=yes all
+#install: clean
+install:
+#	$(MAKE) -override BUILD_INSTALL=yes all
 	install -m 755 $(INSTFLAGS) ../../bin/gcc/MP4Client "$(DESTDIR)$(prefix)/bin"
 
 uninstall:
--- ./configure.org	2008-12-03 03:04:42.000000000 +0900
+++ ./configure	2009-07-15 03:18:42.000000000 +0900
@@ -540,6 +540,18 @@
        fi
     fi
   fi
+elif [ -f freetype-config ]; then
+    ft_cflags="`./freetype-config --cflags`"
+    ft_lflags="`./freetype-config --libs`"
+    if $cc -o $TMPO $TMPC $ft_cflags $ft_lflags 2> /dev/null  ; then
+      has_ft="system"
+    else
+      ft_cflags="-I$local_inc/freetype"
+      ft_lflags="-L$local_lib -lfreetype"
+      if $cc -o $TMPO $TMPC $ft_cflags $ft_lflags 2> /dev/null  ; then
+        has_ft="local"
+      fi
+    fi
 else
   if test "`which freetype-config`" != ""; then
     ft_cflags="`freetype-config --cflags`"
--- ./src/Makefile.org	2008-12-02 23:01:08.000000000 +0900
+++ ./src/Makefile	2009-07-15 03:07:23.000000000 +0900
@@ -181,7 +181,7 @@
 
 LD_SONAME="-Wl,-soname,$(LIB)"
 ifeq ($(CONFIG_DARWIN), yes)
-LD_SONAME=""
+LD_SONAME=
 endif
 
 
installation
make install install-lib 
installed
/opt/local/bin/MP4Box
/opt/local/bin/MP4Client
/opt/local/include/gpac/avparse.h
/opt/local/include/gpac/base_coding.h
/opt/local/include/gpac/bifs.h
/opt/local/include/gpac/bifsengine.h
/opt/local/include/gpac/bitstream.h
/opt/local/include/gpac/color.h
/opt/local/include/gpac/compositor.h
/opt/local/include/gpac/config_file.h
/opt/local/include/gpac/constants.h
/opt/local/include/gpac/crypt.h
/opt/local/include/gpac/download.h
/opt/local/include/gpac/esi.h
/opt/local/include/gpac/events.h
/opt/local/include/gpac/ietf.h
/opt/local/include/gpac/internal/avilib.h
/opt/local/include/gpac/internal/bifs_dev.h
/opt/local/include/gpac/internal/bifs_tables.h
/opt/local/include/gpac/internal/camera.h
/opt/local/include/gpac/internal/compositor_dev.h
/opt/local/include/gpac/internal/config_static.h
/opt/local/include/gpac/internal/crypt_dev.h
/opt/local/include/gpac/internal/ietf_dev.h
/opt/local/include/gpac/internal/isomedia_dev.h
/opt/local/include/gpac/internal/laser_dev.h
/opt/local/include/gpac/internal/media_dev.h
/opt/local/include/gpac/internal/mesh.h
/opt/local/include/gpac/internal/odf_dev.h
/opt/local/include/gpac/internal/ogg.h
/opt/local/include/gpac/internal/scenegraph_dev.h
/opt/local/include/gpac/internal/swf_dev.h
/opt/local/include/gpac/internal/terminal_dev.h
/opt/local/include/gpac/internal/vobsub.h
/opt/local/include/gpac/ismacryp.h
/opt/local/include/gpac/iso639.h
/opt/local/include/gpac/isomedia.h
/opt/local/include/gpac/laser.h
/opt/local/include/gpac/list.h
/opt/local/include/gpac/math.h
/opt/local/include/gpac/media_tools.h
/opt/local/include/gpac/mediaobject.h
/opt/local/include/gpac/module.h
/opt/local/include/gpac/modules/audio_out.h
/opt/local/include/gpac/modules/codec.h
/opt/local/include/gpac/modules/font.h
/opt/local/include/gpac/modules/ipmp.h
/opt/local/include/gpac/modules/js_usr.h
/opt/local/include/gpac/modules/raster2d.h
/opt/local/include/gpac/modules/service.h
/opt/local/include/gpac/modules/term_ext.h
/opt/local/include/gpac/modules/video_out.h
/opt/local/include/gpac/mpeg4_odf.h
/opt/local/include/gpac/mpegts.h
/opt/local/include/gpac/network.h
/opt/local/include/gpac/nodes_mpeg4.h
/opt/local/include/gpac/nodes_svg.h
/opt/local/include/gpac/nodes_x3d.h
/opt/local/include/gpac/nodes_xbl.h
/opt/local/include/gpac/options.h
/opt/local/include/gpac/path2d.h
/opt/local/include/gpac/scene_manager.h
/opt/local/include/gpac/scenegraph.h
/opt/local/include/gpac/scenegraph_svg.h
	:

img/OpenJPEG_v1_3

preparation
curl -RO -C - http://www.openjpeg.org/openjpeg_v1_3.tar.gz
tar xvzf openjpeg_v1_3.tar.gz
(cd OpenJPEG_v1_3 &&
patch -p0 -b -z.org < ../OpenJPEG_v1_3-ubagami.patch
)
build
make osx TARGET_ARCH='-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' &&
(cd codec &&
gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 index.c convert.c image_to_j2k.c -o image_to_j2k -I../libopenjpeg ../libopenjpeg-2.1.2.0.dylib -L/opt/local/lib -ltiff -lm &&
gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 index.c convert.c j2k_to_image.c -o j2k_to_image -I../libopenjpeg ../libopenjpeg-2.1.2.0.dylib -L/opt/local/lib -ltiff -lm
)
patch
--- ./libopenjpeg/opj_malloc.h.org	2007-12-21 19:19:01.000000000 +0900
+++ ./libopenjpeg/opj_malloc.h	2010-08-04 19:04:56.000000000 +0900
@@ -75,7 +75,7 @@
 #else /* Not WIN32 */
 	#if defined(__sun)
 			#define HAVE_MEMALIGN
-		#elif defined(__GNUC__)
+		#elif defined(__GNUC__) && !defined(__APPLE__)
 			#define HAVE_MEMALIGN
 			#include <malloc.h>		
 		/* Linux x86_64 and OSX always align allocations to 16 bytes */
--- ./Makefile.org	2007-12-21 19:39:41.000000000 +0900
+++ ./Makefile	2010-08-04 19:06:20.000000000 +0900
@@ -69,10 +69,10 @@
 	rm -rf core dist/ u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME)
 
 osx:
-	make -f Makefile.osx
+	$(MAKE) $(MAKEFLAGS) -f Makefile.osx
 
 osxinstall:
-	make -f Makefile.osx install
+	$(MAKE) $(MAKEFLAGS) -f Makefile.osx install
 
 osxclean:
-	make -f Makefile.osx clean
+	$(MAKE) $(MAKEFLAGS) -f Makefile.osx clean
--- ./Makefile.osx.org	2007-06-05 18:00:34.000000000 +0900
+++ ./Makefile.osx	2010-08-04 19:04:56.000000000 +0900
@@ -8,11 +8,11 @@
 INCLUDE = -Ilibopenjpeg
 
 # General configuration variables:
-CC = gcc
-LIBTOOLSTAT = libtool
-LIBTOOLDYN = gcc
+CC = gcc $(TARGET_ARCH)
+LIBTOOLSTAT = /usr/bin/libtool
+LIBTOOLDYN = gcc $(TARGET_ARCH)
 
-PREFIX = /usr
+PREFIX = /opt/local
 INSTALL_LIBDIR = $(PREFIX)/lib
 INSTALL_INCLUDE = $(PREFIX)/include
 
@@ -51,7 +51,7 @@
 	$(LIBTOOLSTAT) -o $@ $(MODULES)
 
 $(SHAREDLIB): $(MODULES)
-	$(LIBTOOLDYN) -dynamiclib -o $@ $(MODULES)
+	$(LIBTOOLDYN) -dynamiclib -install_name $(INSTALL_LIBDIR)/$@ -current_version $(VER_MAJOR).$(basename $(VER_MINOR)) -compatibility_version $(VER_MAJOR) -o $@ $(MODULES)
 
 install:
 	install -d '$(DESTDIR)$(INSTALL_LIBDIR)' '$(DESTDIR)$(INSTALL_INCLUDE)'
installation
make osxinstall 
(cd codec &&
cp image_to_j2k j2k_to_image /opt/local/bin
)
installed
/opt/local/bin/image_to_j2k
/opt/local/bin/j2k_to_image
/opt/local/include/openjpeg.h
/opt/local/lib/libopenjpeg-2.1.2.0.dylib
/opt/local/lib/libopenjpeg.a
/opt/local/lib/libopenjpeg.dylib

editors/emacs-23.2

preparation
curl -RO -C - http://ftp.gnu.org/pub/gnu/emacs/emacs-23.2.tar.gz
tar xvzf emacs-23.2.tar.gz
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
#make clean distclean &&
./configure CPPFLAGS='-I/opt/local/include' CFLAGS='-arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-L/opt/local/lib -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=i386-apple-darwin --build=`sh config.guess` --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local --without-pop --without-sound --with-x-toolkit=lucid --without-xpm --without-rsvg --without-libotf --without-m17n-flt --without-toolkit-scroll-bars --without-xaw3d --without-ns --without-gpm --without-dbus --without-gconf --with-x &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -)
} &&
make clean distclean &&
./configure CPPFLAGS='-I/opt/local/include' CFLAGS='-arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXFLAGS='-arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-L/opt/local/lib -arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=ppc-apple-darwin --build=`sh config.guess` --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local --without-pop --without-sound --with-x-toolkit=lucid --without-xpm --without-rsvg --without-libotf --without-m17n-flt --without-toolkit-scroll-bars --without-xaw3d --without-ns --without-gpm --without-dbus --without-gconf --with-x &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -)
} &&
{
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installation
make install
(cd /opt/local/libexec/emacs/23.2/ &&
ln -s ppc-apple-darwin i386-apple-darwin
)
installed
/opt/local/bin/b2m
/opt/local/bin/ctags
/opt/local/bin/ebrowse
/opt/local/bin/emacs
/opt/local/bin/emacs-23.2
/opt/local/bin/emacsclient
/opt/local/bin/etags
/opt/local/bin/grep-changelog
/opt/local/bin/rcs-checkin
/opt/local/libexec/emacs/23.2/ppc-apple-darwin/digest-doc
/opt/local/libexec/emacs/23.2/ppc-apple-darwin/fakemail
/opt/local/libexec/emacs/23.2/ppc-apple-darwin/hexl
/opt/local/libexec/emacs/23.2/ppc-apple-darwin/movemail
/opt/local/libexec/emacs/23.2/ppc-apple-darwin/profile
/opt/local/libexec/emacs/23.2/ppc-apple-darwin/rcs2log
/opt/local/libexec/emacs/23.2/ppc-apple-darwin/sorted-doc
/opt/local/libexec/emacs/23.2/ppc-apple-darwin/update-game-score
/opt/local/libexec/emacs/23.2/ppc-apple-darwin/vcdiff
/opt/local/libexec/emacs/23.2/i386-apple-darwin
/opt/local/share/applications/emacs.desktop
/opt/local/share/emacs/23.2/lisp/subdirs.el
/opt/local/share/emacs/23.2/site-lisp/subdirs.el
/opt/local/share/emacs/site-lisp/subdirs.el
/opt/local/share/icons/hicolor/128x128/apps/emacs.png
/opt/local/share/icons/hicolor/16x16/apps/emacs.png
/opt/local/share/icons/hicolor/16x16/apps/emacs22.png
/opt/local/share/icons/hicolor/24x24/apps/emacs.png
/opt/local/share/icons/hicolor/24x24/apps/emacs22.png
/opt/local/share/icons/hicolor/32x32/apps/emacs.png
/opt/local/share/icons/hicolor/32x32/apps/emacs22.png
/opt/local/share/icons/hicolor/48x48/apps/emacs.png
/opt/local/share/icons/hicolor/48x48/apps/emacs22.png
/opt/local/share/icons/hicolor/scalable/apps/emacs.svg
/opt/local/share/icons/hicolor/scalable/mimetypes/emacs-document.svg
/opt/local/share/info/ada-mode
/opt/local/share/info/auth
/opt/local/share/info/autotype
/opt/local/share/info/calc
/opt/local/share/info/calc-1
/opt/local/share/info/calc-2
/opt/local/share/info/calc-3
/opt/local/share/info/calc-4
/opt/local/share/info/calc-5
/opt/local/share/info/calc-6
/opt/local/share/info/ccmode
/opt/local/share/info/ccmode-1
/opt/local/share/info/ccmode-2
/opt/local/share/info/cl
/opt/local/share/info/dbus
/opt/local/share/info/dired-x
/opt/local/share/info/ebrowse
/opt/local/share/info/ede
/opt/local/share/info/ediff
/opt/local/share/info/edt
/opt/local/share/info/efaq
/opt/local/share/info/eieio
/opt/local/share/info/eintr
/opt/local/share/info/eintr-1
/opt/local/share/info/eintr-2
/opt/local/share/info/eintr-3
/opt/local/share/info/elisp
/opt/local/share/info/elisp-1
/opt/local/share/info/elisp-10
/opt/local/share/info/elisp-11
	:
data_installed
/opt/local/share/emacs/23.2/etc/AUTHORS
/opt/local/share/emacs/23.2/etc/BABYL
/opt/local/share/emacs/23.2/etc/celibacy.1
/opt/local/share/emacs/23.2/etc/CENSORSHIP
/opt/local/share/emacs/23.2/etc/charsets/8859-10.map
/opt/local/share/emacs/23.2/etc/charsets/8859-11.map
/opt/local/share/emacs/23.2/etc/charsets/8859-13.map
/opt/local/share/emacs/23.2/etc/charsets/8859-14.map
/opt/local/share/emacs/23.2/etc/charsets/8859-15.map
/opt/local/share/emacs/23.2/etc/charsets/8859-16.map
/opt/local/share/emacs/23.2/etc/charsets/8859-2.map
/opt/local/share/emacs/23.2/etc/charsets/8859-3.map
/opt/local/share/emacs/23.2/etc/charsets/8859-4.map
/opt/local/share/emacs/23.2/etc/charsets/8859-5.map
/opt/local/share/emacs/23.2/etc/charsets/8859-6.map
/opt/local/share/emacs/23.2/etc/charsets/8859-7.map
/opt/local/share/emacs/23.2/etc/charsets/8859-8.map
/opt/local/share/emacs/23.2/etc/charsets/8859-9.map
/opt/local/share/emacs/23.2/etc/charsets/ALTERNATIVNYJ.map
/opt/local/share/emacs/23.2/etc/charsets/BIG5-1.map
/opt/local/share/emacs/23.2/etc/charsets/BIG5-2.map
/opt/local/share/emacs/23.2/etc/charsets/BIG5-HKSCS.map
/opt/local/share/emacs/23.2/etc/charsets/BIG5.map
/opt/local/share/emacs/23.2/etc/charsets/CNS-1.map
/opt/local/share/emacs/23.2/etc/charsets/CNS-2.map
/opt/local/share/emacs/23.2/etc/charsets/CNS-3.map
/opt/local/share/emacs/23.2/etc/charsets/CNS-4.map
/opt/local/share/emacs/23.2/etc/charsets/CNS-5.map
/opt/local/share/emacs/23.2/etc/charsets/CNS-6.map
/opt/local/share/emacs/23.2/etc/charsets/CNS-7.map
/opt/local/share/emacs/23.2/etc/charsets/CNS-F.map
/opt/local/share/emacs/23.2/etc/charsets/CP10007.map
/opt/local/share/emacs/23.2/etc/charsets/CP1125.map
/opt/local/share/emacs/23.2/etc/charsets/CP1250.map
/opt/local/share/emacs/23.2/etc/charsets/CP1251.map
/opt/local/share/emacs/23.2/etc/charsets/CP1252.map
/opt/local/share/emacs/23.2/etc/charsets/CP1253.map
/opt/local/share/emacs/23.2/etc/charsets/CP1254.map
/opt/local/share/emacs/23.2/etc/charsets/CP1255.map
/opt/local/share/emacs/23.2/etc/charsets/CP1256.map
/opt/local/share/emacs/23.2/etc/charsets/CP1257.map
/opt/local/share/emacs/23.2/etc/charsets/CP1258.map
/opt/local/share/emacs/23.2/etc/charsets/CP720.map
/opt/local/share/emacs/23.2/etc/charsets/CP737.map
/opt/local/share/emacs/23.2/etc/charsets/CP775.map
/opt/local/share/emacs/23.2/etc/charsets/CP858.map
/opt/local/share/emacs/23.2/etc/charsets/CP932-2BYTE.map
/opt/local/share/emacs/23.2/etc/charsets/CP949-2BYTE.map
/opt/local/share/emacs/23.2/etc/charsets/EBCDICUK.map
/opt/local/share/emacs/23.2/etc/charsets/EBCDICUS.map
/opt/local/share/emacs/23.2/etc/charsets/GB180302.map
/opt/local/share/emacs/23.2/etc/charsets/GB180304.map
/opt/local/share/emacs/23.2/etc/charsets/GB2312.map
/opt/local/share/emacs/23.2/etc/charsets/GBK.map
/opt/local/share/emacs/23.2/etc/charsets/HP-ROMAN8.map
/opt/local/share/emacs/23.2/etc/charsets/IBM037.map
/opt/local/share/emacs/23.2/etc/charsets/IBM038.map
/opt/local/share/emacs/23.2/etc/charsets/IBM1004.map
/opt/local/share/emacs/23.2/etc/charsets/IBM1026.map
/opt/local/share/emacs/23.2/etc/charsets/IBM1047.map
/opt/local/share/emacs/23.2/etc/charsets/IBM256.map
/opt/local/share/emacs/23.2/etc/charsets/IBM273.map
/opt/local/share/emacs/23.2/etc/charsets/IBM274.map
/opt/local/share/emacs/23.2/etc/charsets/IBM275.map
	:

img/giflib-4.1.6

preparation
curl -RO -C - http://jaist.dl.sourceforge.net/sourceforge/giflib/giflib-4.1.6.tar.bz2
tar xvjf giflib-4.1.6.tar.bz2
build
./configure 'CC=gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --without-x --prefix=/opt/local 
make 
installed
/opt/local/bin/gif2epsn
/opt/local/bin/gif2ps
/opt/local/bin/gif2rgb
/opt/local/bin/gifasm
/opt/local/bin/gifbg
/opt/local/bin/gifburst
/opt/local/bin/gifclip
/opt/local/bin/gifclrmp
/opt/local/bin/gifcolor
/opt/local/bin/gifcomb
/opt/local/bin/gifcompose
/opt/local/bin/giffiltr
/opt/local/bin/giffix
/opt/local/bin/gifflip
/opt/local/bin/gifhisto
/opt/local/bin/gifinfo
/opt/local/bin/gifinter
/opt/local/bin/gifinto
/opt/local/bin/gifovly
/opt/local/bin/gifpos
/opt/local/bin/gifrotat
/opt/local/bin/gifrsize
/opt/local/bin/gifspnge
/opt/local/bin/giftext
/opt/local/bin/gifwedge
/opt/local/bin/icon2gif
/opt/local/bin/raw2gif
/opt/local/bin/rgb2gif
/opt/local/bin/text2gif
/opt/local/include/gif_lib.h
/opt/local/lib/libgif.4.1.6.dylib
/opt/local/lib/libgif.4.dylib
/opt/local/lib/libgif.a
/opt/local/lib/libgif.dylib
/opt/local/lib/libgif.la

img/libpng-1.2.44

preparation
curl -ROL -C - http://downloads.sourceforge.net/libpng/libpng-1.2.44.tar.bz2
tar xvjf libpng-1.2.44.tar.bz2
build
ln -s scripts/makefile.darwin Makefile
make CC='gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' prefix=/opt/local ZLIBLIB=/usr/lib ZLIBINC=/usr/include

installation
make CC='gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64' prefix=/opt/local install 
installed
/opt/local/bin/libpng-config
/opt/local/bin/libpng12-config
/opt/local/include/libpng
/opt/local/include/libpng12/png.h
/opt/local/include/libpng12/pngconf.h
/opt/local/include/png.h
/opt/local/include/pngconf.h
/opt/local/lib/libpng.3.1.2.44.dylib
/opt/local/lib/libpng.3.dylib
/opt/local/lib/libpng.a
/opt/local/lib/libpng.dylib
/opt/local/lib/libpng12.12.1.2.44.dylib
/opt/local/lib/libpng12.12.dylib
/opt/local/lib/libpng12.a
/opt/local/lib/libpng12.dylib
/opt/local/lib/pkgconfig/libpng.pc
/opt/local/lib/pkgconfig/libpng12.pc
/opt/local/man/man3/libpng.3
/opt/local/man/man3/libpngpf.3
/opt/local/man/man5/png.5

img/jpeg-8b

preparation
curl -RO -C - http://www.ijg.org/files/jpegsrc.v8b.tar.gz
tar xvzf jpegsrc.v8b.tar.gz
build
./configure 'CC=gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local --enable-shared --enable-static 
make 
installed
/opt/local/bin/cjpeg
/opt/local/bin/djpeg
/opt/local/bin/jpegtran
/opt/local/bin/rdjpgcom
/opt/local/bin/wrjpgcom
/opt/local/include/jconfig.h
/opt/local/include/jerror.h
/opt/local/include/jmorecfg.h
/opt/local/include/jpeglib.h
/opt/local/lib/libjpeg.8.dylib
/opt/local/lib/libjpeg.a
/opt/local/lib/libjpeg.dylib
/opt/local/lib/libjpeg.la
/opt/local/share/man/man1/cjpeg.1
/opt/local/share/man/man1/djpeg.1
/opt/local/share/man/man1/jpegtran.1
/opt/local/share/man/man1/rdjpgcom.1
/opt/local/share/man/man1/wrjpgcom.1

science/gnuplot-4.4.0

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/gnuplot/gnuplot/4.4.0/gnuplot-4.4.0.tar.gz
tar xvzf gnuplot-4.4.0.tar.gz
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *"Mach-O"*" object"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
./configure 'CFLAGS=-I/opt/local/include -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-I/opt/local/include -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-L/opt/local/lib -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --host=ppc-apple-darwin --build=`sh /opt/local/share/libtool/config/config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -) &&
  make clean
} &&
./configure 'CFLAGS=-I/opt/local/include -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXFLAGS=-I/opt/local/include -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-L/opt/local/lib -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --host=i386-apple-darwin --build=`sh /opt/local/share/libtool/config/config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installation
make install 'CC=gcc -I/opt/local/include -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP='gcc -E' 'CXX=g++ -I/opt/local/include -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXPP='g++ -E' 
installed
/opt/local/bin/gnuplot
/opt/local/libexec/gnuplot/4.4/gnuplot_x11
/opt/local/share/emacs/site-lisp/gnuplot-gui.el
/opt/local/share/emacs/site-lisp/gnuplot-gui.elc
/opt/local/share/emacs/site-lisp/gnuplot.el
/opt/local/share/emacs/site-lisp/gnuplot.elc
/opt/local/share/emacs/site-lisp/info-look.20.2.el
/opt/local/share/emacs/site-lisp/info-look.20.3.el
/opt/local/share/gnuplot/4.4/app-defaults/Gnuplot
/opt/local/share/gnuplot/4.4/gnuplot.gih
/opt/local/share/gnuplot/4.4/js/canvasmath.js
/opt/local/share/gnuplot/4.4/js/canvastext.js
/opt/local/share/gnuplot/4.4/js/gnuplot_common.js
/opt/local/share/gnuplot/4.4/js/gnuplot_mouse.css
/opt/local/share/gnuplot/4.4/js/gnuplot_mouse.js
/opt/local/share/gnuplot/4.4/js/grid.png
/opt/local/share/gnuplot/4.4/js/help.png
/opt/local/share/gnuplot/4.4/js/nextzoom.png
/opt/local/share/gnuplot/4.4/js/previouszoom.png
/opt/local/share/gnuplot/4.4/js/README
/opt/local/share/gnuplot/4.4/js/textzoom.png
/opt/local/share/gnuplot/4.4/lua/gnuplot-tikz.lua
/opt/local/share/gnuplot/4.4/PostScript/8859-1.ps
/opt/local/share/gnuplot/4.4/PostScript/8859-15.ps
/opt/local/share/gnuplot/4.4/PostScript/8859-2.ps
/opt/local/share/gnuplot/4.4/PostScript/8859-9.ps
/opt/local/share/gnuplot/4.4/PostScript/aglfn.txt
/opt/local/share/gnuplot/4.4/PostScript/cp1250.ps
/opt/local/share/gnuplot/4.4/PostScript/cp437.ps
/opt/local/share/gnuplot/4.4/PostScript/cp850.ps
/opt/local/share/gnuplot/4.4/PostScript/cp852.ps
/opt/local/share/gnuplot/4.4/PostScript/koi8r.ps
/opt/local/share/gnuplot/4.4/PostScript/koi8u.ps
/opt/local/share/gnuplot/4.4/PostScript/prologue.ps
/opt/local/share/gnuplot/4.4/PostScript/utf-8.ps
/opt/local/share/info/gnuplot.info
/opt/local/share/man/man1/gnuplot.1

science/boost/others/threadpool-0_2_5-src

preparation
wget -N http://downloads.sourceforge.net/project/threadpool/threadpool/0.2.5%20%28Stable%29/threadpool-0_2_5-src.zip
unzip threadpool-0_2_5-src.zip
build
echo 'do nothing'
installation
(cd threadpool/boost &&
tar cf - threadpool* | (cd /opt/local/include/boost &&
    tar xf - && find threadpool* -exec touch {} \;
  )
)
installed
/opt/local/include/boost/threadpool/detail/future.hpp
/opt/local/include/boost/threadpool/detail/locking_ptr.hpp
/opt/local/include/boost/threadpool/detail/pool_core.hpp
/opt/local/include/boost/threadpool/detail/scope_guard.hpp
/opt/local/include/boost/threadpool/detail/worker_thread.hpp
/opt/local/include/boost/threadpool/future.hpp
/opt/local/include/boost/threadpool/pool.hpp
/opt/local/include/boost/threadpool/pool_adaptors.hpp
/opt/local/include/boost/threadpool/scheduling_policies.hpp
/opt/local/include/boost/threadpool/shutdown_policies.hpp
/opt/local/include/boost/threadpool/size_policies.hpp
/opt/local/include/boost/threadpool/task_adaptors.hpp
/opt/local/include/boost/threadpool.hpp

libs/gsl/gsl-1.14

preparation
curl -RO -C - ftp://ftp.gnu.org/gnu/gsl/gsl-1.14.tar.gz
tar xvzf gsl-1.14.tar.gz
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)	;;
      *"current ar archive"*|*"ar archive random library"*)	;;
      *"Mach-O"*" dynamically linked shared library"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
listup_headers(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue	;;
    *.h|*.hpp)
      t="`file -b \"$o\"`"
      case "$t" in
      *"program text"*)	;;
      *) continue	;;
      esac
      ;;
    *) continue	;;
    esac
    echo "$o"
  done
}
./configure 'CC=gcc -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP='gcc -E' 'CXX=g++ -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' --host=x86_64-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  listup_binaries > .arch_x86_64/.binaries.lst && tar --files-from=.arch_x86_64/.binaries.lst -cf - | (cd .arch_x86_64 && tar xf -) &&
  listup_headers > .arch_x86_64/.headers.lst && tar --files-from=.arch_x86_64/.headers.lst -cf - | (cd .arch_x86_64 && tar xf -) &&
  make clean
} &&
./configure 'CC=gcc -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP='gcc -E' 'CXX=g++ -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' --host=ppc-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  listup_binaries > .arch_ppc/.binaries.lst && tar --files-from=.arch_ppc/.binaries.lst -cf - | (cd .arch_ppc && tar xf -) &&
  listup_headers > .arch_ppc/.headers.lst && tar --files-from=.arch_ppc/.headers.lst -cf - | (cd .arch_ppc && tar xf -) &&
  make clean
} &&
./configure 'CC=gcc -arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP='gcc -E' 'CXX=g++ -arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' --host=ppc64-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  listup_binaries > .arch_ppc64/.binaries.lst && tar --files-from=.arch_ppc64/.binaries.lst -cf - | (cd .arch_ppc64 && tar xf -) &&
  listup_headers > .arch_ppc64/.headers.lst && tar --files-from=.arch_ppc64/.headers.lst -cf - | (cd .arch_ppc64 && tar xf -) &&
  make clean
} &&
./configure 'CC=gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP='gcc -E' 'CXX=g++ -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' --host=i386-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  listup_binaries > .arch_i386/.binaries.lst && tar --files-from=.arch_i386/.binaries.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_headers > .arch_i386/.headers.lst && tar --files-from=.arch_i386/.headers.lst -cf - | (cd .arch_i386 && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/bin/gsl-config
/opt/local/bin/gsl-histogram
/opt/local/bin/gsl-randist
/opt/local/include/gsl/gsl_blas.h
/opt/local/include/gsl/gsl_blas_types.h
/opt/local/include/gsl/gsl_block.h
/opt/local/include/gsl/gsl_block_char.h
/opt/local/include/gsl/gsl_block_complex_double.h
/opt/local/include/gsl/gsl_block_complex_float.h
/opt/local/include/gsl/gsl_block_complex_long_double.h
/opt/local/include/gsl/gsl_block_double.h
/opt/local/include/gsl/gsl_block_float.h
/opt/local/include/gsl/gsl_block_int.h
/opt/local/include/gsl/gsl_block_long.h
/opt/local/include/gsl/gsl_block_long_double.h
/opt/local/include/gsl/gsl_block_short.h
/opt/local/include/gsl/gsl_block_uchar.h
/opt/local/include/gsl/gsl_block_uint.h
/opt/local/include/gsl/gsl_block_ulong.h
/opt/local/include/gsl/gsl_block_ushort.h
/opt/local/include/gsl/gsl_bspline.h
/opt/local/include/gsl/gsl_cblas.h
/opt/local/include/gsl/gsl_cdf.h
/opt/local/include/gsl/gsl_chebyshev.h
/opt/local/include/gsl/gsl_check_range.h
/opt/local/include/gsl/gsl_combination.h
/opt/local/include/gsl/gsl_complex.h
/opt/local/include/gsl/gsl_complex_math.h
/opt/local/include/gsl/gsl_const.h
/opt/local/include/gsl/gsl_const_cgs.h
/opt/local/include/gsl/gsl_const_cgsm.h
/opt/local/include/gsl/gsl_const_mks.h
/opt/local/include/gsl/gsl_const_mksa.h
/opt/local/include/gsl/gsl_const_num.h
/opt/local/include/gsl/gsl_deriv.h
/opt/local/include/gsl/gsl_dft_complex.h
/opt/local/include/gsl/gsl_dft_complex_float.h
/opt/local/include/gsl/gsl_dht.h
/opt/local/include/gsl/gsl_diff.h
/opt/local/include/gsl/gsl_eigen.h
/opt/local/include/gsl/gsl_errno.h
/opt/local/include/gsl/gsl_fft.h
/opt/local/include/gsl/gsl_fft_complex.h
/opt/local/include/gsl/gsl_fft_complex_float.h
/opt/local/include/gsl/gsl_fft_halfcomplex.h
/opt/local/include/gsl/gsl_fft_halfcomplex_float.h
/opt/local/include/gsl/gsl_fft_real.h
/opt/local/include/gsl/gsl_fft_real_float.h
/opt/local/include/gsl/gsl_fit.h
/opt/local/include/gsl/gsl_heapsort.h
/opt/local/include/gsl/gsl_histogram.h
/opt/local/include/gsl/gsl_histogram2d.h
/opt/local/include/gsl/gsl_ieee_utils.h
/opt/local/include/gsl/gsl_inline.h
/opt/local/include/gsl/gsl_integration.h
/opt/local/include/gsl/gsl_interp.h
/opt/local/include/gsl/gsl_linalg.h
/opt/local/include/gsl/gsl_machine.h
/opt/local/include/gsl/gsl_math.h
/opt/local/include/gsl/gsl_matrix.h
/opt/local/include/gsl/gsl_matrix_char.h
/opt/local/include/gsl/gsl_matrix_complex_double.h
/opt/local/include/gsl/gsl_matrix_complex_float.h
/opt/local/include/gsl/gsl_matrix_complex_long_double.h
	:

science/boost/boost_1_42_0

preparation
wget -N http://downloads.sourceforge.net/boost/boost_1_42_0.tar.bz2
tar xvjf boost_1_42_0.tar.bz2
(cd boost_1_42_0 &&
patch -p0 -b -z.org < ../boost_1_42_0-ubagami.patch
)
build
bjam --prefix=/opt/local --toolset=darwin architecture=combined macosx-version=10.4 --disable-long-double address-model=32_64 -d2 --debug-configuration 
bjam --prefix=/opt/local --toolset=darwin architecture=combined macosx-version=10.4 --disable-long-double address-model=32 -d2 --debug-configuration 
patch
--- ./tools/build/v2/tools/darwin.jam~	2009-11-11 02:26:59.000000000 +0900
+++ ./tools/build/v2/tools/darwin.jam	2010-02-25 22:47:33.000000000 +0900
@@ -501,7 +501,7 @@
 
 actions link.dll bind LIBRARIES
 {
-    "$(CONFIG_COMMAND)" -dynamiclib -Wl,-single_module -install_name "$(<:B)$(<:S)" -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) $(FRAMEWORK_PATH) -framework$(_)$(FRAMEWORK:D=:S=) $(OPTIONS) $(USER_OPTIONS)
+    "$(CONFIG_COMMAND)" -dynamiclib -Wl,-single_module -install_name "/opt/local/lib/$(<:B)$(<:S)" -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) $(FRAMEWORK_PATH) -framework$(_)$(FRAMEWORK:D=:S=) $(OPTIONS) $(USER_OPTIONS)
 }
 
 # We use libtool instead of ar to support universal binary linking
--- ./tools/build/v2/user-config.jam~	2008-07-15 22:53:41.000000000 +0900
+++ ./tools/build/v2/user-config.jam	2010-02-25 22:52:44.000000000 +0900
@@ -84,3 +84,8 @@
 
 # Configure with an explicit installation prefix.
 # using qt : /usr/opt/qt ;
+
+#
+#
+#
+using mpi ;
installation
bjam --prefix=/opt/local --toolset=darwin architecture=combined macosx-version=10.4 --disable-long-double address-model=32_64 -d2 --debug-configuration install 
bjam --prefix=/opt/local --toolset=darwin architecture=combined macosx-version=10.4 --disable-long-double address-model=32 -d2 --debug-configuration install 
installed
/opt/local/include/boost/accumulators/accumulators.hpp
/opt/local/include/boost/accumulators/accumulators_fwd.hpp
/opt/local/include/boost/accumulators/framework/accumulator_base.hpp
/opt/local/include/boost/accumulators/framework/accumulator_concept.hpp
/opt/local/include/boost/accumulators/framework/accumulator_set.hpp
/opt/local/include/boost/accumulators/framework/accumulators/droppable_accumulator.hpp
/opt/local/include/boost/accumulators/framework/accumulators/external_accumulator.hpp
/opt/local/include/boost/accumulators/framework/accumulators/reference_accumulator.hpp
/opt/local/include/boost/accumulators/framework/accumulators/value_accumulator.hpp
/opt/local/include/boost/accumulators/framework/depends_on.hpp
/opt/local/include/boost/accumulators/framework/external.hpp
/opt/local/include/boost/accumulators/framework/extractor.hpp
/opt/local/include/boost/accumulators/framework/features.hpp
/opt/local/include/boost/accumulators/framework/parameters/accumulator.hpp
/opt/local/include/boost/accumulators/framework/parameters/sample.hpp
/opt/local/include/boost/accumulators/framework/parameters/weight.hpp
/opt/local/include/boost/accumulators/framework/parameters/weights.hpp
/opt/local/include/boost/accumulators/numeric/detail/function1.hpp
/opt/local/include/boost/accumulators/numeric/detail/function2.hpp
/opt/local/include/boost/accumulators/numeric/detail/function3.hpp
/opt/local/include/boost/accumulators/numeric/detail/function4.hpp
/opt/local/include/boost/accumulators/numeric/detail/function_n.hpp
/opt/local/include/boost/accumulators/numeric/detail/pod_singleton.hpp
/opt/local/include/boost/accumulators/numeric/functional/complex.hpp
/opt/local/include/boost/accumulators/numeric/functional/valarray.hpp
/opt/local/include/boost/accumulators/numeric/functional/vector.hpp
/opt/local/include/boost/accumulators/numeric/functional.hpp
/opt/local/include/boost/accumulators/numeric/functional_fwd.hpp
/opt/local/include/boost/accumulators/statistics/count.hpp
/opt/local/include/boost/accumulators/statistics/covariance.hpp
/opt/local/include/boost/accumulators/statistics/density.hpp
/opt/local/include/boost/accumulators/statistics/error_of.hpp
/opt/local/include/boost/accumulators/statistics/error_of_mean.hpp
/opt/local/include/boost/accumulators/statistics/extended_p_square.hpp
/opt/local/include/boost/accumulators/statistics/extended_p_square_quantile.hpp
/opt/local/include/boost/accumulators/statistics/kurtosis.hpp
/opt/local/include/boost/accumulators/statistics/max.hpp
/opt/local/include/boost/accumulators/statistics/mean.hpp
/opt/local/include/boost/accumulators/statistics/median.hpp
/opt/local/include/boost/accumulators/statistics/min.hpp
/opt/local/include/boost/accumulators/statistics/moment.hpp
/opt/local/include/boost/accumulators/statistics/p_square_cumulative_distribution.hpp
/opt/local/include/boost/accumulators/statistics/p_square_quantile.hpp
/opt/local/include/boost/accumulators/statistics/parameters/quantile_probability.hpp
/opt/local/include/boost/accumulators/statistics/peaks_over_threshold.hpp
/opt/local/include/boost/accumulators/statistics/pot_quantile.hpp
/opt/local/include/boost/accumulators/statistics/pot_tail_mean.hpp
/opt/local/include/boost/accumulators/statistics/rolling_count.hpp
/opt/local/include/boost/accumulators/statistics/rolling_mean.hpp
/opt/local/include/boost/accumulators/statistics/rolling_sum.hpp
/opt/local/include/boost/accumulators/statistics/rolling_window.hpp
/opt/local/include/boost/accumulators/statistics/skewness.hpp
/opt/local/include/boost/accumulators/statistics/stats.hpp
/opt/local/include/boost/accumulators/statistics/sum.hpp
/opt/local/include/boost/accumulators/statistics/tail.hpp
/opt/local/include/boost/accumulators/statistics/tail_mean.hpp
/opt/local/include/boost/accumulators/statistics/tail_quantile.hpp
/opt/local/include/boost/accumulators/statistics/tail_variate.hpp
/opt/local/include/boost/accumulators/statistics/tail_variate_means.hpp
/opt/local/include/boost/accumulators/statistics/times2_iterator.hpp
/opt/local/include/boost/accumulators/statistics/variance.hpp
/opt/local/include/boost/accumulators/statistics/variates/covariate.hpp
/opt/local/include/boost/accumulators/statistics/weighted_covariance.hpp
/opt/local/include/boost/accumulators/statistics/weighted_density.hpp
	:

libs/db/qdbm-1.8.77

preparation
curl -RO -C - http://qdbm.sourceforge.net/qdbm-1.8.77.tar.gz
tar xvzf qdbm-1.8.77.tar.gz
build
./configure 'CC=gcc -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXX=g++ -arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local 
make mac 
installation
make install-mac 
installed
/opt/local/bin/cbcodec
/opt/local/bin/cbtest
/opt/local/bin/crmgr
/opt/local/bin/crtest
/opt/local/bin/crtsv
/opt/local/bin/dpmgr
/opt/local/bin/dptest
/opt/local/bin/dptsv
/opt/local/bin/hvmgr
/opt/local/bin/hvtest
/opt/local/bin/odidx
/opt/local/bin/odmgr
/opt/local/bin/odtest
/opt/local/bin/qmttest
/opt/local/bin/rlmgr
/opt/local/bin/rltest
/opt/local/bin/vlmgr
/opt/local/bin/vltest
/opt/local/bin/vltsv
/opt/local/include/cabin.h
/opt/local/include/curia.h
/opt/local/include/depot.h
/opt/local/include/hovel.h
/opt/local/include/odeum.h
/opt/local/include/relic.h
/opt/local/include/villa.h
/opt/local/include/vista.h
/opt/local/lib/libqdbm.14.13.0.dylib
/opt/local/lib/libqdbm.14.dylib
/opt/local/lib/libqdbm.a
/opt/local/lib/libqdbm.dylib
/opt/local/lib/pkgconfig/qdbm.pc
/opt/local/man/man1/cbcodec.1
/opt/local/man/man1/cbtest.1
/opt/local/man/man1/crmgr.1
/opt/local/man/man1/crtest.1
/opt/local/man/man1/crtsv.1
/opt/local/man/man1/dpmgr.1
/opt/local/man/man1/dptest.1
/opt/local/man/man1/dptsv.1
/opt/local/man/man1/hvmgr.1
/opt/local/man/man1/hvtest.1
/opt/local/man/man1/odidx.1
/opt/local/man/man1/odmgr.1
/opt/local/man/man1/odtest.1
/opt/local/man/man1/qmttest.1
/opt/local/man/man1/rlmgr.1
/opt/local/man/man1/rltest.1
/opt/local/man/man1/vlmgr.1
/opt/local/man/man1/vltest.1
/opt/local/man/man1/vltsv.1
/opt/local/man/man3/cabin.3
/opt/local/man/man3/cropen.3
/opt/local/man/man3/curia.3
/opt/local/man/man3/depot.3
/opt/local/man/man3/dpopen.3
/opt/local/man/man3/hovel.3
/opt/local/man/man3/odeum.3
/opt/local/man/man3/odopen.3
/opt/local/man/man3/qdbm.3
/opt/local/man/man3/relic.3
/opt/local/man/man3/villa.3
/opt/local/man/man3/vista.3
/opt/local/man/man3/vlopen.3
	:

libs/db/tokyocabinet-1.4.39

preparation
curl -RO -C - http://1978th.net/tokyocabinet/tokyocabinet-1.4.39.tar.gz
tar xvzf tokyocabinet-1.4.39.tar.gz
build
#./configure 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --prefix=/opt/local/tokyocabinet-1.4.39 
./configure 'CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -mmacosx-version-min=10.4' 'LDFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -mmacosx-version-min=10.4' --prefix=/opt/local/tokyocabinet-1.4.39 
make 
installation
make install 
installed
/opt/local/tokyocabinet-1.4.39/bin/tcamgr
/opt/local/tokyocabinet-1.4.39/bin/tcamttest
/opt/local/tokyocabinet-1.4.39/bin/tcatest
/opt/local/tokyocabinet-1.4.39/bin/tcbmgr
/opt/local/tokyocabinet-1.4.39/bin/tcbmttest
/opt/local/tokyocabinet-1.4.39/bin/tcbtest
/opt/local/tokyocabinet-1.4.39/bin/tcfmgr
/opt/local/tokyocabinet-1.4.39/bin/tcfmttest
/opt/local/tokyocabinet-1.4.39/bin/tcftest
/opt/local/tokyocabinet-1.4.39/bin/tchmgr
/opt/local/tokyocabinet-1.4.39/bin/tchmttest
/opt/local/tokyocabinet-1.4.39/bin/tchtest
/opt/local/tokyocabinet-1.4.39/bin/tctmgr
/opt/local/tokyocabinet-1.4.39/bin/tctmttest
/opt/local/tokyocabinet-1.4.39/bin/tcttest
/opt/local/tokyocabinet-1.4.39/bin/tcucodec
/opt/local/tokyocabinet-1.4.39/bin/tcumttest
/opt/local/tokyocabinet-1.4.39/bin/tcutest
/opt/local/tokyocabinet-1.4.39/include/tcadb.h
/opt/local/tokyocabinet-1.4.39/include/tcbdb.h
/opt/local/tokyocabinet-1.4.39/include/tcfdb.h
/opt/local/tokyocabinet-1.4.39/include/tchdb.h
/opt/local/tokyocabinet-1.4.39/include/tctdb.h
/opt/local/tokyocabinet-1.4.39/include/tcutil.h
/opt/local/tokyocabinet-1.4.39/lib/libtokyocabinet.9.2.0.dylib
/opt/local/tokyocabinet-1.4.39/lib/libtokyocabinet.9.dylib
/opt/local/tokyocabinet-1.4.39/lib/libtokyocabinet.a
/opt/local/tokyocabinet-1.4.39/lib/libtokyocabinet.dylib
/opt/local/tokyocabinet-1.4.39/lib/pkgconfig/tokyocabinet.pc
/opt/local/tokyocabinet-1.4.39/libexec/tcawmgr.cgi
/opt/local/tokyocabinet-1.4.39/share/man/man1/tcamgr.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tcamttest.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tcatest.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tcbmgr.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tcbmttest.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tcbtest.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tcfmgr.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tcfmttest.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tcftest.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tchmgr.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tchmttest.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tchtest.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tctmgr.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tctmttest.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tcttest.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tcucodec.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tcumttest.1
/opt/local/tokyocabinet-1.4.39/share/man/man1/tcutest.1
/opt/local/tokyocabinet-1.4.39/share/man/man3/tcadb.3
/opt/local/tokyocabinet-1.4.39/share/man/man3/tcbdb.3
/opt/local/tokyocabinet-1.4.39/share/man/man3/tcfdb.3
/opt/local/tokyocabinet-1.4.39/share/man/man3/tchdb.3
/opt/local/tokyocabinet-1.4.39/share/man/man3/tclist.3
/opt/local/tokyocabinet-1.4.39/share/man/man3/tcmap.3
/opt/local/tokyocabinet-1.4.39/share/man/man3/tcmdb.3
/opt/local/tokyocabinet-1.4.39/share/man/man3/tcmpool.3
/opt/local/tokyocabinet-1.4.39/share/man/man3/tctdb.3
/opt/local/tokyocabinet-1.4.39/share/man/man3/tctree.3
/opt/local/tokyocabinet-1.4.39/share/man/man3/tcutil.3
/opt/local/tokyocabinet-1.4.39/share/man/man3/tcxstr.3
/opt/local/tokyocabinet-1.4.39/share/man/man3/tokyocabinet.3
/opt/local/tokyocabinet-1.4.39/share/tokyocabinet/ChangeLog
/opt/local/tokyocabinet-1.4.39/share/tokyocabinet/COPYING
/opt/local/tokyocabinet-1.4.39/share/tokyocabinet/doc/benchmark.pdf
	:

libs/pcre-8.00

preparation
curl -ROL -C - http://downloads.sourceforge.net/project/pcre/pcre/8.00/pcre-8.00.tar.bz2
tar xvjf pcre-8.00.tar.bz2
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_ppc64/*|./.arch_i386/*|./.arch_x86_64/*) continue      ;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O"*" executable"*)    ;;
      *"current ar archive"*|*"ar archive random library"*)    ;;
      *"Mach-O"*" dynamically linked shared library"*)     ;;
      *) continue       ;;
      esac
      ;;
    esac
    echo "$o"
  done
}
./configure 'CPPFLAGS=-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=x86_64-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_x86_64 ] || mkdir .arch_x86_64 &&
  tar cf - `listup_binaries` | (cd .arch_x86_64 && tar xf -) &&
  make clean distclean
} &&
./configure 'CPPFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=i386-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -) &&
  make clean distclean
} &&
./configure 'CPPFLAGS=-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=ppc64-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc64 ] || mkdir .arch_ppc64 &&
  tar cf - `listup_binaries` | (cd .arch_ppc64 && tar xf -) &&
  make clean distclean
} &&
./configure 'CPPFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'LDFLAGS=-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --host=ppc-apple-darwin --build=`sh config.guess` --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch ppc64 .arch_ppc64/"$o" -arch i386 .arch_i386/"$o" -arch x86_64 .arch_x86_64/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/bin/pcre-config
/opt/local/bin/pcregrep
/opt/local/bin/pcretest
/opt/local/include/pcre.h
/opt/local/include/pcre_scanner.h
/opt/local/include/pcre_stringpiece.h
/opt/local/include/pcrecpp.h
/opt/local/include/pcrecpparg.h
/opt/local/include/pcreposix.h
/opt/local/lib/libpcre.0.dylib
/opt/local/lib/libpcre.a
/opt/local/lib/libpcre.dylib
/opt/local/lib/libpcre.la
/opt/local/lib/libpcrecpp.0.dylib
/opt/local/lib/libpcrecpp.a
/opt/local/lib/libpcrecpp.dylib
/opt/local/lib/libpcrecpp.la
/opt/local/lib/libpcreposix.0.dylib
/opt/local/lib/libpcreposix.a
/opt/local/lib/libpcreposix.dylib
/opt/local/lib/libpcreposix.la
/opt/local/lib/pkgconfig/libpcre.pc
/opt/local/lib/pkgconfig/libpcrecpp.pc
/opt/local/lib/pkgconfig/libpcreposix.pc
/opt/local/share/doc/pcre/AUTHORS
/opt/local/share/doc/pcre/ChangeLog
/opt/local/share/doc/pcre/COPYING
/opt/local/share/doc/pcre/html/index.html
/opt/local/share/doc/pcre/html/pcre-config.html
/opt/local/share/doc/pcre/html/pcre.html
/opt/local/share/doc/pcre/html/pcre_compile.html
/opt/local/share/doc/pcre/html/pcre_compile2.html
/opt/local/share/doc/pcre/html/pcre_config.html
/opt/local/share/doc/pcre/html/pcre_copy_named_substring.html
/opt/local/share/doc/pcre/html/pcre_copy_substring.html
/opt/local/share/doc/pcre/html/pcre_dfa_exec.html
/opt/local/share/doc/pcre/html/pcre_exec.html
/opt/local/share/doc/pcre/html/pcre_free_substring.html
/opt/local/share/doc/pcre/html/pcre_free_substring_list.html
/opt/local/share/doc/pcre/html/pcre_fullinfo.html
/opt/local/share/doc/pcre/html/pcre_get_named_substring.html
/opt/local/share/doc/pcre/html/pcre_get_stringnumber.html
/opt/local/share/doc/pcre/html/pcre_get_stringtable_entries.html
/opt/local/share/doc/pcre/html/pcre_get_substring.html
/opt/local/share/doc/pcre/html/pcre_get_substring_list.html
/opt/local/share/doc/pcre/html/pcre_info.html
/opt/local/share/doc/pcre/html/pcre_maketables.html
/opt/local/share/doc/pcre/html/pcre_refcount.html
/opt/local/share/doc/pcre/html/pcre_study.html
/opt/local/share/doc/pcre/html/pcre_version.html
/opt/local/share/doc/pcre/html/pcreapi.html
/opt/local/share/doc/pcre/html/pcrebuild.html
/opt/local/share/doc/pcre/html/pcrecallout.html
/opt/local/share/doc/pcre/html/pcrecompat.html
/opt/local/share/doc/pcre/html/pcrecpp.html
/opt/local/share/doc/pcre/html/pcredemo.html
/opt/local/share/doc/pcre/html/pcregrep.html
/opt/local/share/doc/pcre/html/pcrematching.html
/opt/local/share/doc/pcre/html/pcrepartial.html
/opt/local/share/doc/pcre/html/pcrepattern.html
/opt/local/share/doc/pcre/html/pcreperform.html
/opt/local/share/doc/pcre/html/pcreposix.html
/opt/local/share/doc/pcre/html/pcreprecompile.html
/opt/local/share/doc/pcre/html/pcresample.html
	:

av/stream/flvstreamer-1.8k

preparation
curl -RO -C - http://download.savannah.gnu.org/releases-noredirect/flvstreamer/source/flvstreamer-1.8k.tar.gz
tar xvzf flvstreamer-1.8k.tar.gz
mv flvstreamer flvstreamer-1.8k
(cd flvstreamer-1.8k &&
patch -p0 -b -z.org < ../flvstreamer-1.8k-ubagami.patch
)
build
make -f MakefileOSX clean 'CFLAGS=-Wall -D_FILE_OFFSET_BITS=64 -arch ppc -arch i386' 'CXXFLAGS=-Wall -D_FILE_OFFSET_BITS=64 -arch ppc -arch i386' 'LDFLAGS=-Wall -D_FILE_OFFSET_BITS=64 -arch ppc -arch i386' flvstreamer streams 
patch
--- ./streams.cpp~	2009-08-21 22:01:11.000000000 +0900
+++ ./streams.cpp	2009-09-28 20:28:10.000000000 +0900
@@ -32,6 +32,12 @@
 //#include <winsock.h>
 //#endif
 
+#if defined(__APPLE__)
+#ifndef MSG_NOSIGNAL
+#define MSG_NOSIGNAL 0
+#endif
+#endif
+
 #include "rtmp.h"
 #include "log.h"
 #include "AMFObject.h"
installation
cp flvstreamer /opt/local/bin/ 
installed
/opt/local/bin/flvstreamer

misc/qemu/qemu-0.11.0-rc2

preparation
curl -ROL -C - http://download.savannah.gnu.org/releases/qemu/qemu-0.11.0-rc2.tar.gz
tar xvzf qemu-0.11.0-rc2.tar.gz
(cd qemu-0.11.0-rc2 &&
patch -p0 -b -z.org < ../qemu-0.11.0-rc2-ubagami.patch
)
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_i386/*) continue      ;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O executable"*)    ;;
      *"current ar archive"*|*"ar archive random library"*)    ;;
      *"Mach-O dynamically linked shared library"*)     ;;
      *) continue       ;;
      esac
      ;;
    esac
    echo "$o"
  done
}
./configure --prefix=/opt/local --interp-prefix=/opt/local/gnemul/qemu-%M --cpu=i386 --cc=gcc --extra-cflags='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include' --extra-ldflags='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -L/opt/local/lib' --enable-cocoa --enable-system --disable-linux-user --disable-darwin-user --disable-bsd-user --disable-vnc-tls --disable-vnc-sasl &&
make V=: &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -) &&
  make clean distclean
} &&
./configure --prefix=/opt/local --interp-prefix=/opt/local/gnemul/qemu-%M --cpu=ppc --cc=gcc --extra-cflags='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include' --extra-ldflags='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -L/opt/local/lib' --enable-cocoa --enable-system --disable-linux-user --disable-darwin-user --disable-bsd-user --disable-vnc-tls --disable-vnc-sasl &&
make V=: &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
patch
--- ./cocoa.m.org	2009-09-02 03:44:16.000000000 +0900
+++ ./cocoa.m	2009-09-15 21:39:27.000000000 +0900
@@ -438,7 +438,7 @@
         [self grabMouse];
         [self setContentDimensions];
 // test if host support "enterFullScreenMode:withOptions" at compiletime
-#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)
+#if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_4)
         if ([NSView respondsToSelector:@selector(enterFullScreenMode:withOptions:)]) { // test if "enterFullScreenMode:withOptions" is supported on host at runtime
             [self enterFullScreenMode:[NSScreen mainScreen] withOptions:[NSDictionary dictionaryWithObjectsAndKeys:
                 [NSNumber numberWithBool:NO], NSFullScreenModeAllScreens,
@@ -454,7 +454,7 @@
             [fullScreenWindow setHasShadow:NO];
             [fullScreenWindow setContentView:self];
             [fullScreenWindow makeKeyAndOrderFront:self];
-#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)
+#if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_4)
         }
 #endif
     }
installed
/opt/local/bin/qemu
/opt/local/bin/qemu-system-arm
/opt/local/bin/qemu-system-cris
/opt/local/bin/qemu-system-m68k
/opt/local/bin/qemu-system-microblaze
/opt/local/bin/qemu-system-mips
/opt/local/bin/qemu-system-mips64
/opt/local/bin/qemu-system-mips64el
/opt/local/bin/qemu-system-mipsel
/opt/local/bin/qemu-system-ppc
/opt/local/bin/qemu-system-ppc64
/opt/local/bin/qemu-system-ppcemb
/opt/local/bin/qemu-system-sh4
/opt/local/bin/qemu-system-sh4eb
/opt/local/bin/qemu-system-sparc
/opt/local/bin/qemu-system-sparc64
/opt/local/bin/qemu-system-x86_64
data_installed
/opt/local/bin/qemu-img
/opt/local/share/doc/qemu/qemu-doc.html
/opt/local/share/doc/qemu/qemu-tech.html
/opt/local/share/man/man1/qemu-img.1
/opt/local/share/man/man1/qemu.1
/opt/local/share/man/man8/qemu-nbd.8
/opt/local/share/qemu/bamboo.dtb
/opt/local/share/qemu/bios.bin
/opt/local/share/qemu/keymaps/ar
/opt/local/share/qemu/keymaps/common
/opt/local/share/qemu/keymaps/da
/opt/local/share/qemu/keymaps/de
/opt/local/share/qemu/keymaps/de-ch
/opt/local/share/qemu/keymaps/en-gb
/opt/local/share/qemu/keymaps/en-us
/opt/local/share/qemu/keymaps/es
/opt/local/share/qemu/keymaps/et
/opt/local/share/qemu/keymaps/fi
/opt/local/share/qemu/keymaps/fo
/opt/local/share/qemu/keymaps/fr
/opt/local/share/qemu/keymaps/fr-be
/opt/local/share/qemu/keymaps/fr-ca
/opt/local/share/qemu/keymaps/fr-ch
/opt/local/share/qemu/keymaps/hr
/opt/local/share/qemu/keymaps/hu
/opt/local/share/qemu/keymaps/is
/opt/local/share/qemu/keymaps/it
/opt/local/share/qemu/keymaps/ja
/opt/local/share/qemu/keymaps/lt
/opt/local/share/qemu/keymaps/lv
/opt/local/share/qemu/keymaps/mk
/opt/local/share/qemu/keymaps/modifiers
/opt/local/share/qemu/keymaps/nl
/opt/local/share/qemu/keymaps/nl-be
/opt/local/share/qemu/keymaps/no
/opt/local/share/qemu/keymaps/pl
/opt/local/share/qemu/keymaps/pt
/opt/local/share/qemu/keymaps/pt-br
/opt/local/share/qemu/keymaps/ru
/opt/local/share/qemu/keymaps/sl
/opt/local/share/qemu/keymaps/sv
/opt/local/share/qemu/keymaps/th
/opt/local/share/qemu/keymaps/tr
/opt/local/share/qemu/multiboot.bin
/opt/local/share/qemu/openbios-ppc
/opt/local/share/qemu/openbios-sparc32
/opt/local/share/qemu/openbios-sparc64
/opt/local/share/qemu/petalogix-s3adsp1800.dtb
/opt/local/share/qemu/ppc_rom.bin
/opt/local/share/qemu/pxe-e1000.bin
/opt/local/share/qemu/pxe-ne2k_pci.bin
/opt/local/share/qemu/pxe-pcnet.bin
/opt/local/share/qemu/pxe-rtl8139.bin
/opt/local/share/qemu/vgabios-cirrus.bin
/opt/local/share/qemu/vgabios.bin
/opt/local/share/qemu/video.x

devel/git-1.6.4.2

preparation
verify_digest(){	# $0 method file string
  case "$1" in
  *)
    DIGEST=`echo "$1" | tr a-z A-Z`
    [ "$DIGEST($2)= $3" = "`openssl $1 $2`" ]
    ;;
  esac
}
verify_signature(){	# $0 url|id ... sig
  while [ "$1" != "" ]; do
    case "$1" in
    0x*)
      gpg --keyserver pgp.nic.ad.jp --recv-keys "$1" || return $?
      ;;
    http:*|ftp:*)
      curl "$1" | gpg --import || return $?
      ;;
    *)
      gpg --verify "$1"
      return $?
    esac
    shift
  done
}
error_out(){	# $0 message ...
  echo "$@" 1>&2
  exit 1
}

curl -RO -C - http://kernel.org/pub/software/scm/git/git-1.6.4.2.tar.bz2
curl -RO -C - http://kernel.org/pub/software/scm/git/git-1.6.4.2.tar.bz2.sign

verify_signature 0x517D0F0E git-1.6.4.2.tar.bz2.sign || error_out "$0: stopped at line $LINENO"

tar xvjf git-1.6.4.2.tar.bz2
(cd git-1.6.4.2 &&
patch -p0 -b -z.org < ../git-1.6.4.2-ubagami.patch
)
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local
#./configure CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local
#env SGML_CATALOG_FILES=`pwd`/../docbook-xml-4.5/catalog.xml:`pwd`/../docbook-xsl-1.75.1/catalog.xml make all doc info
#env SGML_CATALOG_FILES=`pwd`/../docbook-xml-4.5/catalog.xml:`pwd`/../docbook-xsl-1.75.1/catalog.xml make prefix=/opt/local ASCIIDOC8=YesPlease all doc info
#env SGML_CATALOG_FILES=`pwd`/../docbook-xml-4.5/catalog.xml:`pwd`/../docbook-xsl-1.75.1/catalog.xml make prefix=/opt/local ASCIIDOC8=YesPlease all doc
env SGML_CATALOG_FILES=`pwd`/../docbook-xml-4.5/catalog.xml:`pwd`/../docbook-xsl-1.75.1/catalog.xml make prefix=/opt/local ASCIIDOC8=YesPlease ASCIIDOC_NO_ROFF=YesPlease V=YesPlease all doc
patch
--- ./Documentation/Makefile~	2009-07-29 17:18:18.000000000 +0900
+++ ./Documentation/Makefile	2009-09-03 15:41:44.000000000 +0900
@@ -231,7 +231,7 @@
 
 %.1 %.5 %.7 : %.xml
 	$(QUIET_XMLTO)$(RM) $@ && \
-	xmlto -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
+	xmlto --skip-validation -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
 
 %.xml : %.txt
 	$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
installation
#make install install-doc install-html install-info 
#make prefix=/opt/local ASCIIDOC8=YesPlease install install-doc install-html install-info 
#make prefix=/opt/local ASCIIDOC8=YesPlease install install-doc install-html 
make prefix=/opt/local ASCIIDOC8=YesPlease ASCIIDOC_NO_ROFF=YesPlease install install-doc install-html 
installed
/opt/local/Library/Perl/Updates/5.8.8/darwin-thread-multi-2level/perllocal.pod
/opt/local/bin/git
/opt/local/bin/git-cvsserver
/opt/local/bin/git-receive-pack
/opt/local/bin/git-shell
/opt/local/bin/git-upload-archive
/opt/local/bin/git-upload-pack
/opt/local/bin/gitk
/opt/local/lib/perl5/site_perl/5.8.8/darwin-thread-multi-2level/auto/Git/.packlist
/opt/local/libexec/git-core/git
/opt/local/libexec/git-core/git-add
/opt/local/libexec/git-core/git-add--interactive
/opt/local/libexec/git-core/git-am
/opt/local/libexec/git-core/git-annotate
/opt/local/libexec/git-core/git-apply
/opt/local/libexec/git-core/git-archimport
/opt/local/libexec/git-core/git-archive
/opt/local/libexec/git-core/git-bisect
/opt/local/libexec/git-core/git-bisect--helper
/opt/local/libexec/git-core/git-blame
/opt/local/libexec/git-core/git-branch
/opt/local/libexec/git-core/git-bundle
/opt/local/libexec/git-core/git-cat-file
/opt/local/libexec/git-core/git-check-attr
/opt/local/libexec/git-core/git-check-ref-format
/opt/local/libexec/git-core/git-checkout
/opt/local/libexec/git-core/git-checkout-index
/opt/local/libexec/git-core/git-cherry
/opt/local/libexec/git-core/git-cherry-pick
/opt/local/libexec/git-core/git-citool
/opt/local/libexec/git-core/git-clean
/opt/local/libexec/git-core/git-clone
/opt/local/libexec/git-core/git-commit
/opt/local/libexec/git-core/git-commit-tree
/opt/local/libexec/git-core/git-config
/opt/local/libexec/git-core/git-count-objects
/opt/local/libexec/git-core/git-cvsexportcommit
/opt/local/libexec/git-core/git-cvsimport
/opt/local/libexec/git-core/git-cvsserver
/opt/local/libexec/git-core/git-daemon
/opt/local/libexec/git-core/git-describe
/opt/local/libexec/git-core/git-diff
/opt/local/libexec/git-core/git-diff-files
/opt/local/libexec/git-core/git-diff-index
/opt/local/libexec/git-core/git-diff-tree
/opt/local/libexec/git-core/git-difftool
/opt/local/libexec/git-core/git-difftool--helper
/opt/local/libexec/git-core/git-fast-export
/opt/local/libexec/git-core/git-fast-import
/opt/local/libexec/git-core/git-fetch
/opt/local/libexec/git-core/git-fetch--tool
/opt/local/libexec/git-core/git-fetch-pack
/opt/local/libexec/git-core/git-filter-branch
/opt/local/libexec/git-core/git-fmt-merge-msg
/opt/local/libexec/git-core/git-for-each-ref
/opt/local/libexec/git-core/git-format-patch
/opt/local/libexec/git-core/git-fsck
/opt/local/libexec/git-core/git-fsck-objects
/opt/local/libexec/git-core/git-gc
/opt/local/libexec/git-core/git-get-tar-commit-id
/opt/local/libexec/git-core/git-grep
/opt/local/libexec/git-core/git-gui
/opt/local/libexec/git-core/git-gui--askpass
/opt/local/libexec/git-core/git-hash-object
	:
data_installed
/opt/local/lib/perl5/site_perl/Error.pm
/opt/local/lib/perl5/site_perl/Git.pm
/opt/local/share/git-core/templates/description
/opt/local/share/git-core/templates/hooks/applypatch-msg.sample
/opt/local/share/git-core/templates/hooks/commit-msg.sample
/opt/local/share/git-core/templates/hooks/post-commit.sample
/opt/local/share/git-core/templates/hooks/post-receive.sample
/opt/local/share/git-core/templates/hooks/post-update.sample
/opt/local/share/git-core/templates/hooks/pre-applypatch.sample
/opt/local/share/git-core/templates/hooks/pre-commit.sample
/opt/local/share/git-core/templates/hooks/pre-rebase.sample
/opt/local/share/git-core/templates/hooks/prepare-commit-msg.sample
/opt/local/share/git-core/templates/hooks/update.sample
/opt/local/share/git-core/templates/info/exclude
/opt/local/share/man/man3/Git.3pm
/opt/local/share/man/man3/private-Error.3pm
host_configuration
if false; then
if [ ! -f /Library/LaunchDaemons/org.kernel.git-daemon.plist ]; then
  cat <<EOF > /Library/LaunchDaemons/org.kernel.git-daemon.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Disabled</key>
	<true/>
	<key>EnvironmentVariables</key>
	<dict>
		<key>PATH</key>
		<string>/opt/local/bin:/usr/bin:/usr/sbin:/bin:/sbin</string>
	</dict>
	<key>Label</key>
	<string>org.kernel.git-daemon</string>
	<key>OnDemand</key>
	<false/>
	<key>Program</key>
	<string>/opt/local/libexec/git-core/git-daemon</string>
	<key>ProgramArguments</key>
	<array>
		<string>/opt/local/libexec/git-core/git-daemon</string>
		<string>--user=nobody</string>
		<string>--group=nobody</string>
		<string>--base-path=/var/git</string>
		<string>--export-all</string>
		<string>--syslog</string>
		<string>--pid-file=/var/run/git-daemon.pid</string>
	</array>
	<key>ServiceIPC</key>
	<false/>
</dict>
</plist>
EOF
fi
#launchctl load -w /Library/LaunchDaemons/org.kernel.git-daemon.plist
else
[ ! -d /Library/StartupItems/GitDaemon ] && \
mkdir /Library/StartupItems/GitDaemon
if [ ! -f /Library/StartupItems/GitDaemon/GitDaemon ]; then
  cat <<EOF > /Library/StartupItems/GitDaemon/GitDaemon
#!/bin/sh

##
# Git Daemon
##

. /etc/rc.common

StartService ()
{
	PATH="/opt/local/bin:/usr/bin:/usr/sbin:/bin:/sbin"; export PATH
	/opt/local/libexec/git-core/git-daemon --user=nobody --group=nobody --base-path=/var/git --export-all --syslog --pid-file=/var/run/git-daemon.pid &
}

StopService ()
{
	kill -9 \`cat /var/run/git-daemon.pid\`
}

RestartService () { StopService; StartService; }

RunService "\$1"
EOF
  chmod +x /Library/StartupItems/GitDaemon/GitDaemon
fi
if [ ! -f /Library/StartupItems/GitDaemon/StartupParameters.plist ]; then
  cat <<EOF > /Library/StartupItems/GitDaemon/StartupParameters.plist
{
  Description     = "Git Daemon";
  Provides        = ("Git Daemon");
}
EOF
fi
#/Library/StartupItems/GitDaemon/GitDaemon start
fi
host_unconfiguration
if false; then
launchctl unload -w /Library/LaunchDaemons/org.kernel.git-daemon.plist &&
echo rm -f /Library/LaunchDaemons/org.kernel.git-daemon.plist
else
/Library/StartupItems/GitDaemon/GitDaemon stop &&
rm -rf /Library/StartupItems/GitDaemon
fi

net/curl-7.19.6

preparation
verify_digest(){	# $0 method file string
  case "$1" in
  *)
    DIGEST=`echo "$1" | tr a-z A-Z`
    [ "$DIGEST($2)= $3" = "`openssl $1 $2`" ]
    ;;
  esac
}
verify_signature(){	# $0 url|id ... sig
  while [ "$1" != "" ]; do
    case "$1" in
    0x*)
      gpg --recv-keys "$1" || return $?
      ;;
    http:*|ftp:*)
      curl "$1" | gpg --import || return $?
      ;;
    *)
      gpg --verify "$1"
      return $?
    esac
    shift
  done
}
error_out(){	# $0 message ...
  echo "$@" 1>&2
  exit 1
}

curl -RO -C - http://curl.haxx.se/download/curl-7.19.6.tar.bz2
curl -RO -C - http://curl.haxx.se/download/curl-7.19.6.tar.bz2.asc
curl -RO -C - http://curl.haxx.se/ca/cacert.pem

verify_signature 0x279D5C91 curl-7.19.6.tar.bz2.asc || error_out "$0: stopped at line $LINENO"

tar xvjf curl-7.19.6.tar.bz2
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local --with-ca-bundle=/opt/local/share/curl/cacert.pem 
make 
installation
make install 
[ -d /opt/local/share/curl ] || mkdir -p /opt/local/share/curl 
cp ../cacert.pem /opt/local/share/curl/ 
installed
/opt/local/bin/curl
/opt/local/bin/curl-config
/opt/local/include/curl/curl.h
/opt/local/include/curl/curlbuild.h
/opt/local/include/curl/curlrules.h
/opt/local/include/curl/curlver.h
/opt/local/include/curl/easy.h
/opt/local/include/curl/mprintf.h
/opt/local/include/curl/multi.h
/opt/local/include/curl/stdcheaders.h
/opt/local/include/curl/typecheck-gcc.h
/opt/local/include/curl/types.h
/opt/local/lib/libcurl.4.dylib
/opt/local/lib/libcurl.a
/opt/local/lib/libcurl.dylib
/opt/local/lib/libcurl.la
/opt/local/lib/pkgconfig/libcurl.pc
/opt/local/share/curl/cacert.pem
/opt/local/share/man/man1/curl-config.1
/opt/local/share/man/man1/curl.1
/opt/local/share/man/man3/curl_easy_cleanup.3
/opt/local/share/man/man3/curl_easy_duphandle.3
/opt/local/share/man/man3/curl_easy_escape.3
/opt/local/share/man/man3/curl_easy_getinfo.3
/opt/local/share/man/man3/curl_easy_init.3
/opt/local/share/man/man3/curl_easy_pause.3
/opt/local/share/man/man3/curl_easy_perform.3
/opt/local/share/man/man3/curl_easy_recv.3
/opt/local/share/man/man3/curl_easy_reset.3
/opt/local/share/man/man3/curl_easy_send.3
/opt/local/share/man/man3/curl_easy_setopt.3
/opt/local/share/man/man3/curl_easy_strerror.3
/opt/local/share/man/man3/curl_easy_unescape.3
/opt/local/share/man/man3/curl_escape.3
/opt/local/share/man/man3/curl_formadd.3
/opt/local/share/man/man3/curl_formfree.3
/opt/local/share/man/man3/curl_formget.3
/opt/local/share/man/man3/curl_free.3
/opt/local/share/man/man3/curl_getdate.3
/opt/local/share/man/man3/curl_getenv.3
/opt/local/share/man/man3/curl_global_cleanup.3
/opt/local/share/man/man3/curl_global_init.3
/opt/local/share/man/man3/curl_global_init_mem.3
/opt/local/share/man/man3/curl_mprintf.3
/opt/local/share/man/man3/curl_multi_add_handle.3
/opt/local/share/man/man3/curl_multi_assign.3
/opt/local/share/man/man3/curl_multi_cleanup.3
/opt/local/share/man/man3/curl_multi_fdset.3
/opt/local/share/man/man3/curl_multi_info_read.3
/opt/local/share/man/man3/curl_multi_init.3
/opt/local/share/man/man3/curl_multi_perform.3
/opt/local/share/man/man3/curl_multi_remove_handle.3
/opt/local/share/man/man3/curl_multi_setopt.3
/opt/local/share/man/man3/curl_multi_socket.3
/opt/local/share/man/man3/curl_multi_socket_action.3
/opt/local/share/man/man3/curl_multi_strerror.3
/opt/local/share/man/man3/curl_multi_timeout.3
/opt/local/share/man/man3/curl_share_cleanup.3
/opt/local/share/man/man3/curl_share_init.3
/opt/local/share/man/man3/curl_share_setopt.3
/opt/local/share/man/man3/curl_share_strerror.3
/opt/local/share/man/man3/curl_slist_append.3
/opt/local/share/man/man3/curl_slist_free_all.3
/opt/local/share/man/man3/curl_strequal.3
	:

devel/autotools/make-3.81

preparation
verify_digest(){	# $0 method file string
  case "$1" in
  *)
    DIGEST=`echo "$1" | tr a-z A-Z`
    [ "$DIGEST($2)= $3" = "`openssl $1 $2`" ]
    ;;
  esac
}
verify_signature(){	# $0 url|id ... sig
  while [ "$1" != "" ]; do
    case "$1" in
    0x*)
      gpg --recv-keys "$1" || return $?
      ;;
    http:*|ftp:*)
      curl "$1" | gpg --import || return $?
      ;;
    *)
      gpg --verify "$1"
      return $?
    esac
    shift
  done
}
error_out(){	# $0 message ...
  echo "$@" 1>&2
  exit 1
}

curl -RO -C - http://ftp.gnu.org/gnu/make/make-3.81.tar.gz
curl -RO -C - http://ftp.gnu.org/gnu/make/make-3.81.tar.gz.sig

verify_signature 0x6338B6D4 make-3.81.tar.gz.sig || error_out "$0: stopped at line $LINENO"

tar xvzf make-3.81.tar.gz
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local 
make 
installed
/opt/local/bin/make
/opt/local/info/make.info
/opt/local/info/make.info-1
/opt/local/info/make.info-2
/opt/local/man/man1/make.1
/opt/local/share/locale/be/LC_MESSAGES/make.mo
/opt/local/share/locale/da/LC_MESSAGES/make.mo
/opt/local/share/locale/de/LC_MESSAGES/make.mo
/opt/local/share/locale/es/LC_MESSAGES/make.mo
/opt/local/share/locale/fi/LC_MESSAGES/make.mo
/opt/local/share/locale/fr/LC_MESSAGES/make.mo
/opt/local/share/locale/ga/LC_MESSAGES/make.mo
/opt/local/share/locale/gl/LC_MESSAGES/make.mo
/opt/local/share/locale/he/LC_MESSAGES/make.mo
/opt/local/share/locale/hr/LC_MESSAGES/make.mo
/opt/local/share/locale/id/LC_MESSAGES/make.mo
/opt/local/share/locale/ja/LC_MESSAGES/make.mo
/opt/local/share/locale/ko/LC_MESSAGES/make.mo
/opt/local/share/locale/nl/LC_MESSAGES/make.mo
/opt/local/share/locale/pl/LC_MESSAGES/make.mo
/opt/local/share/locale/pt_BR/LC_MESSAGES/make.mo
/opt/local/share/locale/ru/LC_MESSAGES/make.mo
/opt/local/share/locale/rw/LC_MESSAGES/make.mo
/opt/local/share/locale/sv/LC_MESSAGES/make.mo
/opt/local/share/locale/tr/LC_MESSAGES/make.mo
/opt/local/share/locale/uk/LC_MESSAGES/make.mo
/opt/local/share/locale/vi/LC_MESSAGES/make.mo
/opt/local/share/locale/zh_CN/LC_MESSAGES/make.mo

science/boost/boost_1_39_0

preparation
wget -N http://downloads.sourceforge.net/boost/boost_1_39_0.tar.bz2
tar xvjf boost_1_39_0.tar.bz2
(cd boost_1_39_0 &&
patch -p0 -b -z.org < ../boost_1_39_0-mitsuha.patch
)
build
bjam --prefix=/opt/local --toolset=darwin architecture=combined macosx-version=10.4 --disable-long-double address-model=32 -d2 --debug-configuration
patch
--- ./tools/build/v2/tools/darwin.jam~	2009-04-14 16:59:30.000000000 +0900
+++ ./tools/build/v2/tools/darwin.jam	2009-08-11 19:10:28.000000000 +0900
@@ -382,7 +382,7 @@
 
 actions link.dll bind LIBRARIES
 {
-    "$(CONFIG_COMMAND)" -dynamiclib -Wl,-single_module -install_name "$(<:B)$(<:S)" -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) $(FRAMEWORK_PATH) -framework$(_)$(FRAMEWORK:D=:S=) $(OPTIONS) $(USER_OPTIONS)
+    "$(CONFIG_COMMAND)" -dynamiclib -Wl,-single_module -install_name "/opt/local/lib/$(<:B)$(<:S)" -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) $(FRAMEWORK_PATH) -framework$(_)$(FRAMEWORK:D=:S=) $(OPTIONS) $(USER_OPTIONS)
 }
 
 # We use libtool instead of ar to support universal binary linking
installation
bjam --prefix=/opt/local --toolset=darwin architecture=combined macosx-version=10.4 --disable-long-double address-model=32 -d2 --debug-configuration install 
installed
/opt/local/include/boost-1_39/boost/accumulators/accumulators.hpp
/opt/local/include/boost-1_39/boost/accumulators/accumulators_fwd.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/accumulator_base.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/accumulator_concept.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/accumulator_set.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/accumulators/droppable_accumulator.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/accumulators/external_accumulator.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/accumulators/reference_accumulator.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/accumulators/value_accumulator.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/depends_on.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/external.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/extractor.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/features.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/parameters/accumulator.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/parameters/sample.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/parameters/weight.hpp
/opt/local/include/boost-1_39/boost/accumulators/framework/parameters/weights.hpp
/opt/local/include/boost-1_39/boost/accumulators/numeric/detail/function1.hpp
/opt/local/include/boost-1_39/boost/accumulators/numeric/detail/function2.hpp
/opt/local/include/boost-1_39/boost/accumulators/numeric/detail/function3.hpp
/opt/local/include/boost-1_39/boost/accumulators/numeric/detail/function4.hpp
/opt/local/include/boost-1_39/boost/accumulators/numeric/detail/function_n.hpp
/opt/local/include/boost-1_39/boost/accumulators/numeric/detail/pod_singleton.hpp
/opt/local/include/boost-1_39/boost/accumulators/numeric/functional/complex.hpp
/opt/local/include/boost-1_39/boost/accumulators/numeric/functional/valarray.hpp
/opt/local/include/boost-1_39/boost/accumulators/numeric/functional/vector.hpp
/opt/local/include/boost-1_39/boost/accumulators/numeric/functional.hpp
/opt/local/include/boost-1_39/boost/accumulators/numeric/functional_fwd.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/count.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/covariance.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/density.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/error_of.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/error_of_mean.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/extended_p_square.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/extended_p_square_quantile.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/kurtosis.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/max.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/mean.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/median.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/min.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/moment.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/p_square_cumulative_distribution.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/p_square_quantile.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/parameters/quantile_probability.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/peaks_over_threshold.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/pot_quantile.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/pot_tail_mean.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/rolling_count.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/rolling_mean.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/rolling_sum.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/rolling_window.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/skewness.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/stats.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/sum.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/tail.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/tail_mean.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/tail_quantile.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/tail_variate.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/tail_variate_means.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/times2_iterator.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/variance.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/variates/covariate.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/weighted_covariance.hpp
/opt/local/include/boost-1_39/boost/accumulators/statistics/weighted_density.hpp
	:

science/boost/boost-jam-3.1.17

preparation
curl -ROL -C - http://downloads.sourceforge.net/boost/boost-jam-3.1.17.tgz
tar xvzf boost-jam-3.1.17.tgz
(cd boost-jam-3.1.17 && patch -p0 -b -z.org < ../boost-jam-3.1.17-ubagami.patch)
build
./build.sh 
patch
--- ./build.jam.org	2008-11-29 12:28:30.000000000 +0900
+++ ./build.jam	2009-08-11 01:26:24.000000000 +0900
@@ -181,7 +181,7 @@
     : -L$(--python-lib[1]) -l$(--python-lib[2]) ;
 ## MacOSX Darwin, using GCC 2.9.x, 3.x
 toolset darwin cc :  "-o " : -D
-    :
+    : -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
     [ opt --release : -Wl,-x -O3 -finline-functions ]
     [ opt --debug : -g -O0 -fno-inline -pg ]
     [ opt --profile : -Wl,-x -O3 -finline-functions -g -pg ]
--- ./build.sh.org	2008-11-29 12:28:30.000000000 +0900
+++ ./build.sh	2009-08-11 01:18:40.000000000 +0900
@@ -133,7 +133,7 @@
     ;;
 
     darwin)
-    BOOST_JAM_CC=cc
+    BOOST_JAM_CC="cc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4"
     ;;
 
     intel-linux)
--- ./Jambase.org	2008-11-29 12:28:30.000000000 +0900
+++ ./Jambase	2009-08-11 01:14:22.000000000 +0900
@@ -903,8 +903,9 @@
 
     case MACOSX :
     AR          ?= libtool -o ;
-    C++         ?= c++ ;
-    MANDIR      ?= /usr/local/share/man ;
+    CC          ?= cc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 ;
+    C++         ?= c++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 ;
+    MANDIR      ?= /opt/local/share/man ;
     RANLIB      ?= "" ;
 
     case NCR :
@@ -969,7 +970,7 @@
     AS          ?= as ;
     ASFLAGS     ?= ;
     AWK         ?= awk ;
-    BINDIR      ?= /usr/local/bin ;
+    BINDIR      ?= /opt/local/bin ;
     C++         ?= cc ;
     C++FLAGS    ?= ;
     CC          ?= cc ;
@@ -987,12 +988,12 @@
     JAMFILE     ?= Jamfile ;
     JAMRULES    ?= Jamrules ;
     LEX         ?= ;
-    LIBDIR      ?= /usr/local/lib ;
+    LIBDIR      ?= /opt/local/lib ;
     LINK        ?= $(CC) ;
     LINKFLAGS   ?= ;
     LINKLIBS    ?= ;
     LN          ?= ln ;
-    MANDIR      ?= /usr/local/man ;
+    MANDIR      ?= /opt/local/man ;
     MKDIR       ?= mkdir ;
     MV          ?= mv -f ;
     OPTIM       ?= ;
installation
cp bin.macosxx86/bjam /opt/local/bin/ 
installed
/opt/local/bin/bjam

misc/gv-3.6.7

preparation
curl -O -C - ftp://ftp.gnu.org/gnu/gv/gv-3.6.7.tar.gz
tar xvzf gv-3.6.7.tar.gz
(cd gv-3.6.7 &&
[ -f ../gv-3.6.7-ubagami.patch ] &&
patch -p0 -b -z.org < ../gv-3.6.7-ubagami.patch
)
build
./configure 'CC=gcc -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local --enable-setenv-code 
make 
patch
--- ./src/callbacks.c~	2009-02-15 18:06:35.000000000 +0900
+++ ./src/callbacks.c	2009-07-17 16:06:45.000000000 +0900
@@ -94,6 +94,10 @@
 #include "widgets_misc.h"
 #include "VlistP.h"
 
+#ifndef SIGCLD
+#define SIGCLD SIGCHLD
+#endif
+
 static char* save_directory = NULL;
 static char* open_directory = NULL;
 
--- ./src/info.c~	2008-11-09 18:26:39.000000000 +0900
+++ ./src/info.c	2009-07-17 16:28:55.000000000 +0900
@@ -193,7 +193,7 @@
    Cardinal     n;
    Dimension	bottomMargin, leftMargin, rightMargin, topMargin;
    Dimension	width, height;
-   XFontStruct	*font;
+   XFontStruct	*font = NULL;
 
    BEGINMESSAGE(makeInfoPopup)
 
@@ -233,8 +233,8 @@
             XtSetArg(args[n], XtNtopMargin, &topMargin);			n++;
     XtGetValues(infotext,args,n);
 
-    width = font->max_bounds.width * 80 + leftMargin + rightMargin;
-    height = (font->ascent + font->descent) * 22 + topMargin + bottomMargin;
+    width = font ? font->max_bounds.width : 9 * 80 + leftMargin + rightMargin;
+    height = (font ? font->ascent + font->descent : 12) * 22 + topMargin + bottomMargin;
 
 										n=0;
             XtSetArg(args[0], XtNwidth, width);					n++;
installation
make EXEEXT=.bin install
mv /opt/local/bin/gv.bin /opt/local/bin/gv
installed
/opt/local/bin/gv
/opt/local/bin/gv-update-userconfig
/opt/local/share/gv/GV
/opt/local/share/gv/gv_class.ad
/opt/local/share/gv/gv_copyright.dat
/opt/local/share/gv/gv_spartan.dat
/opt/local/share/gv/gv_system.ad
/opt/local/share/gv/gv_user.ad
/opt/local/share/gv/gv_user_res.dat
/opt/local/share/gv/gv_widgetless.dat
/opt/local/share/info/gv.info
/opt/local/share/man/man1/gv-update-userconfig.1
/opt/local/share/man/man1/gv.1

x11/libs/Xaw3d-1.5E

preparation
curl -O -C - ftp://ftp.visi.com/users/hawkeyd/X/Xaw3d-1.5E.tar.gz
curl -RO -C - http://www.startide.jp/motif/Xaw3d-1.5-unoff-1.2.patch.gz
tar xvzf Xaw3d-1.5E.tar.gz
mv xc/lib/Xaw3d Xaw3d-1.5E
(cd Xaw3d-1.5E &&
  #gzcat ../Xaw3d-1.5-unoff-1.2.patch.gz | patch -p1 -b -z.orig
  [ -d X11/Xaw3d ] || mkdir -p X11/Xaw3d &&
  (cd X11/Xaw3d &&
    ln -s ../../*.h .
  )
  patch -p0 -b -z.org < ../Xaw3d-1.5E-ubagami.patch
)
build
xmkmf 
make Makefiles 
make 'CC=gcc -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib' INCROOT=/usr/X11R6/include USRLIBDIR=/usr/X11R6/lib SHLIBDIR=/usr/X11R6/lib MANPATH=/usr/X11R6/man PROJECTROOT=/usr/X11R6 BINDIR=/usr/X11R6/bin LIBDIR=/usr/X11R6/lib/X11 SHAREDIR=/usr/X11R6/share/X11 LIBEXECDIR=/usr/X11R6/libexec 
patch
--- ./Imakefile~	2003-03-08 23:55:18.000000000 +0900
+++ ./Imakefile	2006-11-06 23:28:25.000000000 +0900
@@ -22,7 +22,7 @@
 #define IncSubSubdir Xaw3d
 
 XCOMM When building outside an X11 source tree:
-XCOMM EXTRA_INCLUDES = -I.
+EXTRA_INCLUDES = -I.
 
 #ifdef SharedXawReqs
 REQUIREDLIBS = SharedXawReqs
installation
make 'CC=gcc -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib' INCROOT=/usr/X11R6/include USRLIBDIR=/usr/X11R6/lib SHLIBDIR=/usr/X11R6/lib MANPATH=/usr/X11R6/man PROJECTROOT=/usr/X11R6 BINDIR=/usr/X11R6/bin LIBDIR=/usr/X11R6/lib/X11 SHAREDIR=/usr/X11R6/share/X11 LIBEXECDIR=/usr/X11R6/libexec install install.man 
installed
/usr/X11R6/include/X11/Xaw3d/AllWidgets.h
/usr/X11R6/include/X11/Xaw3d/AsciiSink.h
/usr/X11R6/include/X11/Xaw3d/AsciiSinkP.h
/usr/X11R6/include/X11/Xaw3d/AsciiSrc.h
/usr/X11R6/include/X11/Xaw3d/AsciiSrcP.h
/usr/X11R6/include/X11/Xaw3d/AsciiText.h
/usr/X11R6/include/X11/Xaw3d/AsciiTextP.h
/usr/X11R6/include/X11/Xaw3d/Box.h
/usr/X11R6/include/X11/Xaw3d/BoxP.h
/usr/X11R6/include/X11/Xaw3d/Cardinals.h
/usr/X11R6/include/X11/Xaw3d/Command.h
/usr/X11R6/include/X11/Xaw3d/CommandP.h
/usr/X11R6/include/X11/Xaw3d/Dialog.h
/usr/X11R6/include/X11/Xaw3d/DialogP.h
/usr/X11R6/include/X11/Xaw3d/Form.h
/usr/X11R6/include/X11/Xaw3d/FormP.h
/usr/X11R6/include/X11/Xaw3d/Grip.h
/usr/X11R6/include/X11/Xaw3d/GripP.h
/usr/X11R6/include/X11/Xaw3d/Label.h
/usr/X11R6/include/X11/Xaw3d/LabelP.h
/usr/X11R6/include/X11/Xaw3d/Layout.h
/usr/X11R6/include/X11/Xaw3d/LayoutP.h
/usr/X11R6/include/X11/Xaw3d/List.h
/usr/X11R6/include/X11/Xaw3d/ListP.h
/usr/X11R6/include/X11/Xaw3d/MenuButton.h
/usr/X11R6/include/X11/Xaw3d/MenuButtoP.h
/usr/X11R6/include/X11/Xaw3d/MultiSink.h
/usr/X11R6/include/X11/Xaw3d/MultiSinkP.h
/usr/X11R6/include/X11/Xaw3d/MultiSrc.h
/usr/X11R6/include/X11/Xaw3d/MultiSrcP.h
/usr/X11R6/include/X11/Xaw3d/Paned.h
/usr/X11R6/include/X11/Xaw3d/PanedP.h
/usr/X11R6/include/X11/Xaw3d/Panner.h
/usr/X11R6/include/X11/Xaw3d/PannerP.h
/usr/X11R6/include/X11/Xaw3d/Porthole.h
/usr/X11R6/include/X11/Xaw3d/PortholeP.h
/usr/X11R6/include/X11/Xaw3d/Repeater.h
/usr/X11R6/include/X11/Xaw3d/RepeaterP.h
/usr/X11R6/include/X11/Xaw3d/Reports.h
/usr/X11R6/include/X11/Xaw3d/Scrollbar.h
/usr/X11R6/include/X11/Xaw3d/ScrollbarP.h
/usr/X11R6/include/X11/Xaw3d/Simple.h
/usr/X11R6/include/X11/Xaw3d/SimpleMenP.h
/usr/X11R6/include/X11/Xaw3d/SimpleMenu.h
/usr/X11R6/include/X11/Xaw3d/SimpleP.h
/usr/X11R6/include/X11/Xaw3d/Sme.h
/usr/X11R6/include/X11/Xaw3d/SmeBSB.h
/usr/X11R6/include/X11/Xaw3d/SmeBSBP.h
/usr/X11R6/include/X11/Xaw3d/SmeLine.h
/usr/X11R6/include/X11/Xaw3d/SmeLineP.h
/usr/X11R6/include/X11/Xaw3d/SmeP.h
/usr/X11R6/include/X11/Xaw3d/SmeThreeD.h
/usr/X11R6/include/X11/Xaw3d/SmeThreeDP.h
/usr/X11R6/include/X11/Xaw3d/StripCharP.h
/usr/X11R6/include/X11/Xaw3d/StripChart.h
/usr/X11R6/include/X11/Xaw3d/Template.c
/usr/X11R6/include/X11/Xaw3d/Template.h
/usr/X11R6/include/X11/Xaw3d/TemplateP.h
/usr/X11R6/include/X11/Xaw3d/Text.h
/usr/X11R6/include/X11/Xaw3d/TextP.h
/usr/X11R6/include/X11/Xaw3d/TextSink.h
/usr/X11R6/include/X11/Xaw3d/TextSinkP.h
/usr/X11R6/include/X11/Xaw3d/TextSrc.h
/usr/X11R6/include/X11/Xaw3d/TextSrcP.h
	:

lang/ps/ghostscript-8.64

preparation
curl -ROL -C - http://downloads.sourceforge.net/ghostscript/ghostscript-8.64.tar.bz2
tar xvjf ghostscript-8.64.tar.bz2
(cd ghostscript-8.64 &&
patch -p0 -b -z.org < ../ghostscript-8.64-ubagami.patch
)
build
if false; then	# cannot work caused by Bus error

./configure 'CC=gcc -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --disable-fontconfig --disable-cups --prefix=/opt/local/gs8.64 --disable-compile-inits --with-drivers=ALL 
make 

else

listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_i386/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O executable"*)	;;
      *"ar archive random library"*)	;;
      *"Mach-O dynamically linked shared library"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
./configure 'CC=gcc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --disable-fontconfig --disable-cups --prefix=/opt/local/gs8.64 --disable-compile-inits --with-drivers=ALL &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -) &&
  make clean distclean
} &&
./configure 'CC=gcc -arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --disable-fontconfig --disable-cups --prefix=/opt/local/gs8.64 --disable-compile-inits --with-drivers=ALL &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}

fi
patch
--- ./base/gdevbit.c.org	2008-08-21 08:58:43.000000000 +0900
+++ ./base/gdevbit.c	2009-02-12 05:35:13.000000000 +0900
@@ -11,7 +11,7 @@
    San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
 */
 
-/* $Id: gdevbit.c 9007 2008-08-20 23:58:43Z giles $ */
+/* $Id$ */
 /* "Plain bits" devices to measure rendering time. */
 
 #include "gdevprn.h"
@@ -653,7 +653,7 @@
 		     pdev->color_info.depth == 32 ? cmyk_8bit_map_cmyk_color :
 		     bit_map_cmyk_color);
     }
-    /* Reset the sparable and linear shift, masks, bits. */
+    /* Reset the separable and linear shift, masks, bits. */
     set_linear_color_bits_mask_shift(pdev);
     pdev->color_info.separable_and_linear = GX_CINFO_SEP_LIN;
     ((gx_device_bit *)pdev)->FirstLine = FirstLine;
@@ -671,16 +671,18 @@
     byte *in = gs_alloc_bytes(pdev->memory, line_size, "bit_print_page(in)");
     byte *data;
     int nul = !strcmp(pdev->fname, "nul") || !strcmp(pdev->fname, "/dev/null");
-    int lnum = ((gx_device_bit *)pdev)->FirstLine;
-    int bottom = ((gx_device_bit *)pdev)->LastLine;
+    int lnum = ((gx_device_bit *)pdev)->FirstLine >= pdev->height ?  pdev->height - 1 :
+		 ((gx_device_bit *)pdev)->FirstLine;
+    int bottom = ((gx_device_bit *)pdev)->LastLine >= pdev->height ?  pdev->height - 1 :
+		 ((gx_device_bit *)pdev)->LastLine;
     int line_count = any_abs(bottom - lnum);
     int i, step = lnum > bottom ? -1 : 1;
 
     if (in == 0)
 	return_error(gs_error_VMerror);
     if ((lnum == 0) && (bottom == 0))
-	bottom = pdev->height - 1;
-    for (i = 0; i < line_count; i++, lnum += step) {
+	line_count = pdev->height - 1;		/* default when LastLine == 0, FirstLine == 0 */
+    for (i = 0; i <= line_count; i++, lnum += step) {
 	gdev_prn_get_bits(pdev, lnum, in, &data);
 	if (!nul)
 	    fwrite(data, 1, line_size, prn_stream);
--- ./icclib/icc.c.org	2008-05-09 13:12:01.000000000 +0900
+++ ./icclib/icc.c	2009-07-18 18:36:31.000000000 +0900
@@ -152,6 +152,8 @@
  *      Various bug fixes and enhancements.
  */
 
+#include <limits.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
@@ -313,8 +315,11 @@
 	icmFileMem *p = (icmFileMem *)pp;
 	size_t len;
 
+	if (count > 0 && size > SIZE_MAX / count)
+		return 0;
+
 	len = size * count;
-	if ((p->cur + len) >= p->end) {		/* Too much */
+	if (len > (p->end - p->cur)) { /* Too much */
 		if (size > 0)
 			count = (p->end - p->cur)/size;
 		else
@@ -1634,6 +1639,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmUInt8Array_write malloc() failed");
 		return icp->errc = 2;
@@ -1698,7 +1705,7 @@
 	if (p->size != p->_size) {
 		if (p->data != NULL)
 			icp->al->free(icp->al, p->data);
-		if ((p->data = (unsigned int *) icp->al->malloc(icp->al, p->size * sizeof(unsigned int))) == NULL) {
+		if ((p->data = (unsigned int *) icp->al->calloc(icp->al, p->size, sizeof(unsigned int))) == NULL) {
 			sprintf(icp->err,"icmUInt8Array_alloc: malloc() of icmUInt8Array data failed");
 			return icp->errc = 2;
 		}
@@ -1749,6 +1756,10 @@
 	icmUInt16Array *p = (icmUInt16Array *)pp;
 	unsigned int len = 0;
 	len += 8;			/* 8 bytes for tag and padding */
+	if (p->size > (UINT_MAX - len) / 2) {
+		p->icp->errc = 1;
+		return (unsigned int) -1;
+	}
 	len += p->size * 2;	/* 2 bytes for each UInt16 */
 	return len;
 }
@@ -1821,6 +1832,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmUInt16Array_write malloc() failed");
 		return icp->errc = 2;
@@ -1885,7 +1898,7 @@
 	if (p->size != p->_size) {
 		if (p->data != NULL)
 			icp->al->free(icp->al, p->data);
-		if ((p->data = (unsigned int *) icp->al->malloc(icp->al, p->size * sizeof(unsigned int))) == NULL) {
+		if ((p->data = (unsigned int *) icp->al->calloc(icp->al, p->size, sizeof(unsigned int))) == NULL) {
 			sprintf(icp->err,"icmUInt16Array_alloc: malloc() of icmUInt16Array data failed");
 			return icp->errc = 2;
 		}
@@ -1936,6 +1949,10 @@
 	icmUInt32Array *p = (icmUInt32Array *)pp;
 	unsigned int len = 0;
 	len += 8;			/* 8 bytes for tag and padding */
+	if (p->size > (UINT_MAX - len) / 4) {
+		p->icp->errc = 1;
+		return (unsigned int) -1;
+	}
 	len += p->size * 4;	/* 4 bytes for each UInt32 */
 	return len;
 }
@@ -2008,6 +2025,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmUInt32Array_write malloc() failed");
 		return icp->errc = 2;
@@ -2072,7 +2091,7 @@
 	if (p->size != p->_size) {
 		if (p->data != NULL)
 			icp->al->free(icp->al, p->data);
-		if ((p->data = (unsigned int *) icp->al->malloc(icp->al, p->size * sizeof(unsigned int))) == NULL) {
+		if ((p->data = (unsigned int *) icp->al->calloc(icp->al, p->size, sizeof(unsigned int))) == NULL) {
 			sprintf(icp->err,"icmUInt32Array_alloc: malloc() of icmUInt32Array data failed");
 			return icp->errc = 2;
 		}
@@ -2123,6 +2142,10 @@
 	icmUInt64Array *p = (icmUInt64Array *)pp;
 	unsigned int len = 0;
 	len += 8;			/* 8 bytes for tag and padding */
+	if (p->size > (UINT_MAX - len) / 8) {
+		p->icp->errc = 1;
+		return (unsigned int) -1;
+	}
 	len += p->size * 8;	/* 8 bytes for each UInt64 */
 	return len;
 }
@@ -2195,6 +2218,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmUInt64Array_write malloc() failed");
 		return icp->errc = 2;
@@ -2259,7 +2284,7 @@
 	if (p->size != p->_size) {
 		if (p->data != NULL)
 			icp->al->free(icp->al, p->data);
-		if ((p->data = (icmUint64 *) icp->al->malloc(icp->al, p->size * sizeof(icmUint64))) == NULL) {
+		if ((p->data = (icmUint64 *) icp->al->calloc(icp->al, p->size, sizeof(icmUint64))) == NULL) {
 			sprintf(icp->err,"icmUInt64Array_alloc: malloc() of icmUInt64Array data failed");
 			return icp->errc = 2;
 		}
@@ -2310,6 +2335,10 @@
 	icmU16Fixed16Array *p = (icmU16Fixed16Array *)pp;
 	unsigned int len = 0;
 	len += 8;			/* 8 bytes for tag and padding */
+	if (p->size > (UINT_MAX - len) / 4) {
+		p->icp->errc = 1;
+		return (unsigned int) -1;
+	}
 	len += p->size * 4;	/* 4 byte for each U16Fixed16 */
 	return len;
 }
@@ -2382,6 +2411,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmU16Fixed16Array_write malloc() failed");
 		return icp->errc = 2;
@@ -2446,7 +2477,7 @@
 	if (p->size != p->_size) {
 		if (p->data != NULL)
 			icp->al->free(icp->al, p->data);
-		if ((p->data = (double *) icp->al->malloc(icp->al, p->size * sizeof(double))) == NULL) {
+		if ((p->data = (double *) icp->al->calloc(icp->al, p->size, sizeof(double))) == NULL) {
 			sprintf(icp->err,"icmU16Fixed16Array_alloc: malloc() of icmU16Fixed16Array data failed");
 			return icp->errc = 2;
 		}
@@ -2497,6 +2528,10 @@
 	icmS15Fixed16Array *p = (icmS15Fixed16Array *)pp;
 	unsigned int len = 0;
 	len += 8;			/* 8 bytes for tag and padding */
+	if (p->size > (UINT_MAX - len) / 4) {
+		p->icp->errc = 1;
+		return (unsigned int) - 1;
+	}
 	len += p->size * 4;	/* 4 byte for each S15Fixed16 */
 	return len;
 }
@@ -2569,6 +2604,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmS15Fixed16Array_write malloc() failed");
 		return icp->errc = 2;
@@ -2633,7 +2670,7 @@
 	if (p->size != p->_size) {
 		if (p->data != NULL)
 			icp->al->free(icp->al, p->data);
-		if ((p->data = (double *) icp->al->malloc(icp->al, p->size * sizeof(double))) == NULL) {
+		if ((p->data = (double *) icp->al->calloc(icp->al, p->size, sizeof(double))) == NULL) {
 			sprintf(icp->err,"icmS15Fixed16Array_alloc: malloc() of icmS15Fixed16Array data failed");
 			return icp->errc = 2;
 		}
@@ -2726,6 +2763,10 @@
 	icmXYZArray *p = (icmXYZArray *)pp;
 	unsigned int len = 0;
 	len += 8;				/* 8 bytes for tag and padding */
+	if (p->size > (UINT_MAX - len) / 12) {
+		p->icp->errc = 1;
+		return (unsigned int) - 1;
+	}
 	len += p->size * 12;	/* 12 bytes for each XYZ */
 	return len;
 }
@@ -2798,6 +2839,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmXYZArray_write malloc() failed");
 		return icp->errc = 2;
@@ -2865,7 +2908,7 @@
 	if (p->size != p->_size) {
 		if (p->data != NULL)
 			icp->al->free(icp->al, p->data);
-		if ((p->data = (icmXYZNumber *) icp->al->malloc(icp->al, p->size * sizeof(icmXYZNumber))) == NULL) {
+		if ((p->data = (icmXYZNumber *) icp->al->calloc(icp->al, p->size, sizeof(icmXYZNumber))) == NULL) {
 			sprintf(icp->err,"icmXYZArray_alloc: malloc() of icmXYZArray data failed");
 			return icp->errc = 2;
 		}
@@ -2939,7 +2982,7 @@
 			rv |= 1;
 		}
 		ix = (int)floor(val);		/* Coordinate */
-		if (ix > (p->size-2))
+		if (ix < 0 || ix > (p->size-2))
 			ix = (p->size-2);
 		w = val - (double)ix;		/* weight */
 		val = p->data[ix];
@@ -2961,6 +3004,11 @@
 ) {
 	int i;
 
+	if (size > INT_MAX - 2)
+		/* Although rt->size is unsigned long, the rt data
+		 * structure uses int data types to store indices. */
+		return 2;
+
 	rt->size = size;		/* Stash pointers to these away */
 	rt->data = data;
 	
@@ -2979,7 +3027,7 @@
 	rt->qscale = (double)rt->rsize/(rt->rmax - rt->rmin);	/* Scale factor to quantize to */
 	
 	/* Initialize the reverse lookup structures, and get overall min/max */
-	if ((rt->rlists = (int **) icp->al->calloc(icp->al, 1, rt->rsize * sizeof(int *))) == NULL) {
+	if ((rt->rlists = (int **) icp->al->calloc(icp->al, rt->rsize, sizeof(int *))) == NULL) {
 		return 2;
 	}
 
@@ -2992,6 +3040,15 @@
 			int t;
 			t = s; s = e; e = t;
 		}
+		/* s and e should both be in the range [0,rt->rsize]
+		 * now, but let's not rely on floating point
+		 * calculations -- double-check. */
+		if (s < 0)
+			s = 0;
+		if (e < 0)
+			e = 0;
+		if (s >= rt->rsize)
+			s = rt->rsize-1;
 		if (e >= rt->rsize)
 			e = rt->rsize-1;
 
@@ -3001,7 +3058,7 @@
 			int nf;			/* Next free slot */
 			if (rt->rlists[j] == NULL) {	/* No allocation */
 				as = 5;						/* Start with space for 5 */
-				if ((rt->rlists[j] = (int *) icp->al->malloc(icp->al, sizeof(int) * as)) == NULL) {
+				if ((rt->rlists[j] = (int *) icp->al->calloc(icp->al, sizeof(int), as)) == NULL) {
 					return 2;
 				}
 				rt->rlists[j][0] = as;
@@ -3010,6 +3067,9 @@
 				as = rt->rlists[j][0];	/* Allocate space for this list */
 				nf = rt->rlists[j][1];	/* Next free location in list */
 				if (nf >= as) {			/* need to expand space */
+					if (as > INT_MAX / 2 / sizeof (int))
+						return 2;
+
 					as *= 2;
 					rt->rlists[j] = (int *) icp->al->realloc(icp->al,rt->rlists[j], sizeof(int) * as);
 					if (rt->rlists[j] == NULL) {
@@ -3061,7 +3121,7 @@
 		val = rsize_1;
 	ix = (int)floor(val);		/* Coordinate */
 
-	if (ix > (rt->size-2))
+	if (ix < 0 || ix > (rt->size-2))
 		ix = (rt->size-2);
 	if (rt->rlists[ix] != NULL)  {		/* There is a list of fwd candidates */
 		/* For each candidate forward range */
@@ -3088,6 +3148,7 @@
 	/* We have failed to find an exact value, so return the nearest value */
 	/* (This is slow !) */
 	val = fabs(ival - rt->data[0]);
+	/* rt->size is known to be < INT_MAX */
 	for (k = 0, i = 1; i < rt->size; i++) {
 		double er;
 		er = fabs(ival - rt->data[i]);
@@ -3141,6 +3202,10 @@
 	icmCurve *p = (icmCurve *)pp;
 	unsigned int len = 0;
 	len += 12;			/* 12 bytes for tag, padding and count */
+	if (p->size > (UINT_MAX - len) / 2) {
+		p->icp->errc = 1;
+		return (unsigned int) - 1;
+	}
 	len += p->size * 2;	/* 2 bytes for each UInt16 */
 	return len;
 }
@@ -3238,6 +3303,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmCurve_write malloc() failed");
 		return icp->errc = 2;
@@ -3347,7 +3414,7 @@
 	if (p->size != p->_size) {
 		if (p->data != NULL)
 			icp->al->free(icp->al, p->data);
-		if ((p->data = (double *) icp->al->malloc(icp->al, p->size * sizeof(double))) == NULL) {
+		if ((p->data = (double *) icp->al->calloc(icp->al, p->size, sizeof(double))) == NULL) {
 			sprintf(icp->err,"icmCurve_alloc: malloc() of icmCurve data failed");
 			return icp->errc = 2;
 		}
@@ -3493,6 +3560,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmData_write malloc() failed");
 		return icp->errc = 2;
@@ -3620,7 +3689,7 @@
 	if (p->size != p->_size) {
 		if (p->data != NULL)
 			icp->al->free(icp->al, p->data);
-		if ((p->data = (unsigned char *) icp->al->malloc(icp->al, p->size * sizeof(unsigned char))) == NULL) {
+		if ((p->data = (unsigned char *) icp->al->calloc(icp->al, p->size, sizeof(unsigned char))) == NULL) {
 			sprintf(icp->err,"icmData_alloc: malloc() of icmData data failed");
 			return icp->errc = 2;
 		}
@@ -3745,6 +3814,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmText_write malloc() failed");
 		return icp->errc = 2;
@@ -3834,7 +3905,7 @@
 	if (p->size != p->_size) {
 		if (p->data != NULL)
 			icp->al->free(icp->al, p->data);
-		if ((p->data = (char *) icp->al->malloc(icp->al, p->size * sizeof(char))) == NULL) {
+		if ((p->data = (char *) icp->al->calloc(icp->al, p->size, sizeof(char))) == NULL) {
 			sprintf(icp->err,"icmText_alloc: malloc() of icmText data failed");
 			return icp->errc = 2;
 		}
@@ -4038,6 +4109,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmDateTimeNumber_write malloc() failed");
 		return icp->errc = 2;
@@ -4128,11 +4201,15 @@
 /* icmLut object */
 
 /* Utility function - raise one integer to an integer power */
-static unsigned int uipow(unsigned int a, unsigned int b) {
+static int uipow(unsigned int a, unsigned int b, unsigned int *ret) {
 	unsigned int rv = 1;
-	for (; b > 0; b--)
+	for (; b > 0; b--) {
+		if (a > 0 && rv > UINT_MAX / a)
+			return 1;
 		rv *= a;
-	return rv;
+	}
+	*ret = rv;
+	return 0;
 }
 
 /* - - - - - - - - - - - - - - - - */
@@ -4242,7 +4319,7 @@
 			rv |= 1;
 		}
 		ix = (int)floor(val);		/* Grid coordinate */
-		if (ix > (p->inputEnt-2))
+		if (ix < 0 || ix > (p->inputEnt-2))
 			ix = (p->inputEnt-2);
 		w = val - (double)ix;		/* weight */
 		val = table[ix];
@@ -4268,7 +4345,7 @@
 	if (p->inputChan <= 8) {
 		gw = GW;				/* Use stack allocation */
 	} else {
-		if ((gw = (double *) icp->al->malloc(icp->al, (1 << p->inputChan) * sizeof(double))) == NULL) {
+		if ((gw = (double *) icp->al->calloc(icp->al, (1 << p->inputChan), sizeof(double))) == NULL) {
 			sprintf(icp->err,"icmLut_lookup_clut: malloc() failed");
 			return icp->errc = 2;
 		}
@@ -4301,7 +4378,7 @@
 				rv |= 1;
 			}
 			x = (int)floor(val);		/* Grid coordinate */
-			if (x > clutPoints_2)
+			if (x < 0 || x > clutPoints_2)
 				x = clutPoints_2;
 			co[e] = val - (double)x;	/* 1.0 - weight */
 			gp += x * p->dinc[e];		/* Add index offset for base of cube */
@@ -4374,7 +4451,7 @@
 				rv |= 1;
 			}
 			x = (int)floor(val);		/* Grid coordinate */
-			if (x > clutPoints_2)
+			if (x < 0 || x > clutPoints_2)
 				x = clutPoints_2;
 			co[e] = val - (double)x;	/* 1.0 - weight */
 			gp += x * p->dinc[e];		/* Add index offset for base of cube */
@@ -4447,7 +4524,7 @@
 			rv |= 1;
 		}
 		ix = (int)floor(val);		/* Grid coordinate */
-		if (ix > (p->outputEnt-2))
+		if (ix < 0 || ix > (p->outputEnt-2))
 			ix = (p->outputEnt-2);
 		w = val - (double)ix;		/* weight */
 		val = table[ix];
@@ -4819,19 +4896,50 @@
 ) {
 	icmLut *p = (icmLut *)pp;
 	unsigned int len = 0;
+	unsigned int pw;
 
 	if (p->ttype == icSigLut8Type) {
 		len += 48;			/* tag and header */
+		if (p->inputChan > 0 &&
+		    p->inputEnt > (UINT_MAX - len) / p->inputChan / 1)
+			goto overflow;
+
 		len += 1 * (p->inputChan * p->inputEnt);
-		len += 1 * (p->outputChan * uipow(p->clutPoints,p->inputChan));
+		if (uipow(p->clutPoints,p->inputChan, &pw) ||
+		    (p->outputChan > 0 &&
+		     pw > (UINT_MAX - len) / p->outputChan / 1))
+			goto overflow;
+
+		len += 1 * (p->outputChan * pw);
+		if (p->outputChan > 0 &&
+		    p->outputEnt > (UINT_MAX - len) / p->outputChan / 1)
+			goto overflow;
+
 		len += 1 * (p->outputChan * p->outputEnt);
 	} else {
 		len += 52;			/* tag and header */
+		if (p->inputChan > 0 &&
+		    p->inputEnt > (UINT_MAX - len) / p->inputChan / 2)
+			goto overflow;
+
 		len += 2 * (p->inputChan * p->inputEnt);
-		len += 2 * (p->outputChan * uipow(p->clutPoints,p->inputChan));
+		if (uipow(p->clutPoints,p->inputChan, &pw) ||
+		    (p->outputChan > 0 &&
+		     pw > (UINT_MAX - len) / p->outputChan / 2))
+			goto overflow;
+
+		len += 2 * (p->outputChan * pw);
+		if (p->outputChan > 0 &&
+		    p->outputEnt > (UINT_MAX - len) / p->outputChan / 2)
+			goto overflow;
+
 		len += 2 * (p->outputChan * p->outputEnt);
 	}
 	return len;
+
+  overflow:
+	p->icp->errc = 1;
+	return (unsigned int) -1;
 }
 
 /* read the object, return 0 on success, error code on fail */
@@ -4844,6 +4952,7 @@
 	icc *icp = p->icp;
 	int rv = 0;
 	unsigned long i, j, g, size;
+	unsigned int pw;
 	char *bp, *buf;
 
 	if (len < 4) {
@@ -4904,6 +5013,11 @@
 		return icp->errc = 1;
 	}
 
+	if (p->clutPoints > 100) {
+		sprintf(icp->err,"icmLut_read: too many clutPoints");
+		return icp->errc = 1;
+	}
+
 	/* Read 3x3 transform matrix */
 	for (j = 0; j < 3; j++) {		/* Rows */
 		for (i = 0; i < 3; i++) {	/* Columns */
@@ -4921,13 +5035,18 @@
 		bp = buf+52;
 	}
 
-	if (len < icmLut_get_size((icmBase *)p)) {
+	if (len < icmLut_get_size((icmBase *)p) || icp->errc) {
 		sprintf(icp->err,"icmLut_read: Tag too small for contents");
 		icp->al->free(icp->al, buf);
 		return icp->errc = 1;
 	}
 
 	/* Read the input tables */
+	if (p->inputEnt > 0 && p->inputChan > UINT_MAX / p->inputEnt) {
+		sprintf(icp->err,"icmLut_read: overflow");
+		icp->al->free(icp->al, buf);
+		return icp->errc = 1;
+	}
 	size = (p->inputChan * p->inputEnt);
 	if ((rv = p->allocate((icmBase *)p)) != 0) {
 		icp->al->free(icp->al, buf);
@@ -4942,7 +5061,14 @@
 	}
 
 	/* Read the clut table */
-	size = (p->outputChan * uipow(p->clutPoints,p->inputChan));
+	if (uipow(p->clutPoints,p->inputChan,&pw) ||
+	    (p->outputChan > 0 &&
+	     pw > UINT_MAX / p->outputChan)) {
+		sprintf(icp->err,"icmLut_read: overflow");
+		icp->al->free(icp->al, buf);
+		return icp->errc = 1;
+	}
+	size = (p->outputChan * pw);
 	if ((rv = p->allocate((icmBase *)p)) != 0) {
 		icp->al->free(icp->al, buf);
 		return rv;
@@ -4956,6 +5082,11 @@
 	}
 
 	/* Read the output tables */
+	if (p->outputChan > 0 && p->outputEnt > UINT_MAX / p->outputChan) {
+		sprintf(icp->err,"icmLut_read: overflow");
+		icp->al->free(icp->al, buf);
+		return icp->errc = 1;
+	}
 	size = (p->outputChan * p->outputEnt);
 	if ((rv = p->allocate((icmBase *)p)) != 0) {
 		icp->al->free(icp->al, buf);
@@ -4995,12 +5126,14 @@
 	icmLut *p = (icmLut *)pp;
 	icc *icp = p->icp;
 	unsigned long i,j;
-	unsigned int len, size;
+	unsigned int len, size, pw;
 	char *bp, *buf;		/* Buffer to write from */
 	int rv = 0;
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmLut_write malloc() failed");
 		return icp->errc = 2;
@@ -5066,6 +5199,11 @@
 	}
 
 	/* Write the input tables */
+	if (p->inputEnt > 0 && p->inputChan > UINT_MAX / p->inputEnt) {
+		sprintf(icp->err,"icmLut_write: overflow");
+		icp->al->free(icp->al, buf);
+		return icp->errc = 1;
+	}
 	size = (p->inputChan * p->inputEnt);
 	if (p->ttype == icSigLut8Type) {
 		for (i = 0; i < size; i++, bp += 1) {
@@ -5086,7 +5224,14 @@
 	}
 
 	/* Write the clut table */
-	size = (p->outputChan * uipow(p->clutPoints,p->inputChan));
+	if (uipow(p->clutPoints,p->inputChan,&pw) ||
+	    (p->outputChan > 0 &&
+	     pw > UINT_MAX / p->outputChan)) {
+		sprintf(icp->err,"icmLut_write: overflow");
+		icp->al->free(icp->al, buf);
+		return icp->errc = 1;
+	}
+	size = (p->outputChan * pw);
 	if (p->ttype == icSigLut8Type) {
 		for (i = 0; i < size; i++, bp += 1) {
 			if ((rv = write_DCS8Number(p->clutTable[i], bp)) != 0) {
@@ -5106,6 +5251,11 @@
 	}
 
 	/* Write the output tables */
+	if (p->outputChan > 0 && p->outputEnt > UINT_MAX / p->outputChan) {
+		sprintf(icp->err,"icmLut_write: overflow");
+		icp->al->free(icp->al, buf);
+		return icp->errc = 1;
+	}
 	size = (p->outputChan * p->outputEnt);
 	if (p->ttype == icSigLut8Type) {
 		for (i = 0; i < size; i++, bp += 1) {
@@ -5177,7 +5327,14 @@
 		if (p->inputChan > MAX_CHAN) {
 			fprintf(op,"  !!Can't dump > %d input channel CLUT table!!\n",MAX_CHAN);
 		} else {
-			size = (p->outputChan * uipow(p->clutPoints,p->inputChan));
+			unsigned int pw;
+			if (uipow(p->clutPoints,p->inputChan,&pw) ||
+			    (p->outputChan > 0 &&
+			     pw > UINT_MAX / p->outputChan)) {
+				fprintf(op,"Would overflow.\n");
+				return;
+			}
+			size = (p->outputChan * pw);
 			for (j = 0; j < p->inputChan; j++)
 				ii[j] = 0;
 			for (i = 0; i < size;) {
@@ -5216,7 +5373,7 @@
 static int icmLut_allocate(
 	icmBase *pp
 ) {
-	unsigned int i, j, g, size;
+	unsigned int i, j, g, size, pw;
 	icmLut *p = (icmLut *)pp;
 	icc *icp = p->icp;
 
@@ -5231,6 +5388,10 @@
 		return icp->errc = 1;
 	}
 
+	if (p->inputEnt > 0 && p->inputChan > UINT_MAX / p->inputEnt) {
+		sprintf(icp->err,"icmLut_alloc: too many entries");
+		return icp->errc = 1;
+	}
 	size = (p->inputChan * p->inputEnt);
 	if (size != p->inputTable_size) {
 		if (p->inputTable != NULL)
@@ -5241,7 +5402,13 @@
 		}
 		p->inputTable_size = size;
 	}
-	size = (p->outputChan * uipow(p->clutPoints,p->inputChan));
+	if (uipow(p->clutPoints,p->inputChan,&pw) ||
+	    (p->outputChan > 0 &&
+	     pw > UINT_MAX / p->outputChan)) {
+		sprintf(icp->err,"icmLut_alloc: overflow");
+		return icp->errc = 1;
+	}
+	size = (p->outputChan * pw);
 	if (size != p->clutTable_size) {
 		if (p->clutTable != NULL)
 			icp->al->free(icp->al, p->clutTable);
@@ -5251,6 +5418,10 @@
 		}
 		p->clutTable_size = size;
 	}
+	if (p->outputChan > 0 && p->outputEnt > UINT_MAX / p->outputChan) {
+		sprintf(icp->err,"icmLut_alloc: overflow");
+		return icp->errc = 1;
+	}
 	size = (p->outputChan * p->outputEnt);
 	if (size != p->outputTable_size) {
 		if (p->outputTable != NULL)
@@ -5441,6 +5612,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmMeasurement_write malloc() failed");
 		return icp->errc = 2;
@@ -5712,13 +5885,20 @@
 			len += p->nDeviceCoords * 1;	/* bytes for each named color */
 		}
 	} else {	/* Named Color 2 */
+		unsigned int col;
 		len += 8;			/* 8 bytes for tag and padding */
 		len += 4;			/* 4 for vendor specific flags */
 		len += 4;			/* 4 for count of named colors */
 		len += 4;			/* 4 for number of device coords */
 		len += 32;			/* 32 for prefix of color names */
 		len += 32;			/* 32 for suffix of color names */
-		len += p->count * (32 + 6 + p->nDeviceCoords * 2);	/* bytes for each named color */
+		col = 32 + 6 + p->nDeviceCoords * 2;
+		if (p->nDeviceCoords > (UINT_MAX - (32 + 6)) / 2 ||
+		    (p->count > 0 && col > (UINT_MAX - len) / p->count)) {
+			p->icp->errc = 1;
+			return (unsigned int) -1;
+		}
+		len += p->count * col;	/* bytes for each named color */
 	}
 	return len;
 }
@@ -5882,6 +6062,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmNamedColor_write malloc() failed");
 		return icp->errc = 2;
@@ -6109,9 +6291,22 @@
 ) {
 	icmTextDescription *p = (icmTextDescription *)pp;
 	unsigned int len = 0;
+	if (p->size > UINT_MAX - (8 + 4 + 8)) {
+		p->icp->errc = 1;
+		return (unsigned int) -1;
+	}
 	len += 8;			/* 8 bytes for tag and padding */
 	len += 4 + p->size;	/* Ascii string length + ascii string */
-	len += 8 + 2 * p->ucSize;	/* Unicode language code + length + string */
+	len += 8;               /* Unicode language code + length */
+	if (p->ucSize > (UINT_MAX - len) / 2) {
+		p->icp->errc = 1;
+		return (unsigned int) -1;
+	}
+	len += 2 * p->ucSize;    /* Unicode string */
+	if (len > (UINT_MAX - (3 + 67))) {
+		p->icp->errc = 1;
+		return (unsigned int) -1;
+	}
 	len += 3 + 67;		/* ScriptCode code, length string */
 	return len;
 }
@@ -6294,6 +6489,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmTextDescription_write malloc() failed");
 		return icp->errc = 2;
@@ -6535,7 +6732,7 @@
 	if (p->size != p->_size) {
 		if (p->desc != NULL)
 			icp->al->free(icp->al, p->desc);
-		if ((p->desc = (char *) icp->al->malloc(icp->al, p->size * sizeof(char))) == NULL) {
+		if ((p->desc = (char *) icp->al->calloc(icp->al, p->size, sizeof(char))) == NULL) {
 			sprintf(icp->err,"icmTextDescription_alloc: malloc() of Ascii description failed");
 			return icp->errc = 2;
 		}
@@ -6544,7 +6741,7 @@
 	if (p->ucSize != p->uc_size) {
 		if (p->ucDesc != NULL)
 			icp->al->free(icp->al, p->ucDesc);
-		if ((p->ucDesc = (ORD16 *) icp->al->malloc(icp->al, p->ucSize * sizeof(ORD16))) == NULL) {
+		if ((p->ucDesc = (ORD16 *) icp->al->calloc(icp->al, p->ucSize, sizeof(ORD16))) == NULL) {
 			sprintf(icp->err,"icmTextDescription_alloc: malloc() of Unicode description failed");
 			return icp->errc = 2;
 		}
@@ -6820,6 +7017,12 @@
 	bp += 8;	/* Skip padding */
 
 	p->count = read_UInt32Number(bp);	/* Number of sequence descriptions */
+	if (p->count > 1000) {
+		sprintf(icp->err,"icmProfileSequenceDesc_read: too many sequence descriptions");
+		icp->al->free(icp->al, buf);
+		return icp->errc = 1;
+	}
+
 	bp += 4;
 
 	/* Read all the sequence descriptions */
@@ -6852,6 +7055,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmProfileSequenceDesc_write malloc() failed");
 		return icp->errc = 2;
@@ -6922,7 +7127,7 @@
 	if (p->count != p->_count) {
 		if (p->data != NULL)
 			icp->al->free(icp->al, p->data);
-		if ((p->data = (icmDescStruct *) icp->al->malloc(icp->al, p->count * sizeof(icmDescStruct))) == NULL) {
+		if ((p->data = (icmDescStruct *) icp->al->calloc(icp->al, p->count, sizeof(icmDescStruct))) == NULL) {
 			sprintf(icp->err,"icmProfileSequenceDesc_allocate Allocation of DescStruct array failed");
 			return icp->errc = 2;
 		}
@@ -7041,6 +7246,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmSignature_write malloc() failed");
 		return icp->errc = 2;
@@ -7156,6 +7363,10 @@
 	icmScreening *p = (icmScreening *)pp;
 	unsigned int len = 0;
 	len += 16;				/* 16 bytes for tag, padding, flag & channeles */
+	if (p->channels > (UINT_MAX - len) / 12) {
+		p->icp->errc = 1;
+		return (unsigned int) -1;
+	}
 	len += p->channels * 12;	/* 12 bytes for each channel */
 	return len;
 }
@@ -7235,6 +7446,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmScreening_write malloc() failed");
 		return icp->errc = 2;
@@ -7315,7 +7528,7 @@
 	if (p->channels != p->_channels) {
 		if (p->data != NULL)
 			icp->al->free(icp->al, p->data);
-		if ((p->data = (icmScreeningData *) icp->al->malloc(icp->al, p->channels * sizeof(icmScreeningData))) == NULL) {
+		if ((p->data = (icmScreeningData *) icp->al->calloc(icp->al, p->channels, sizeof(icmScreeningData))) == NULL) {
 			sprintf(icp->err,"icmScreening_alloc: malloc() of icmScreening data failed");
 			return icp->errc = 2;
 		}
@@ -7366,10 +7579,20 @@
 	icmUcrBg *p = (icmUcrBg *)pp;
 	unsigned int len = 0;
 	len += 8;			/* 8 bytes for tag and padding */
+	if (p->UCRcount > (UINT_MAX - len - 4) / 2)
+		goto overflow;
+
 	len += 4 + p->UCRcount * 2;	/* Undercolor Removal */
+	if (p->BGcount > (UINT_MAX - len - 4 - p->size) / 2)
+		goto overflow;
+
 	len += 4 + p->BGcount * 2;	/* Black Generation */
 	len += p->size;				/* Description string */
 	return len;
+
+ overflow:
+	p->icp->errc = 1;
+	return (unsigned int) -1;
 }
 
 /* read the object, return 0 on success, error code on fail */
@@ -7498,6 +7721,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmUcrBg_write malloc() failed");
 		return icp->errc = 2;
@@ -7663,7 +7888,7 @@
 	if (p->UCRcount != p->UCR_count) {
 		if (p->UCRcurve != NULL)
 			icp->al->free(icp->al, p->UCRcurve);
-		if ((p->UCRcurve = (double *) icp->al->malloc(icp->al, p->UCRcount * sizeof(double))) == NULL) {
+		if ((p->UCRcurve = (double *) icp->al->calloc(icp->al, p->UCRcount, sizeof(double))) == NULL) {
 			sprintf(icp->err,"icmUcrBg_allocate: malloc() of UCR curve data failed");
 			return icp->errc = 2;
 		}
@@ -7672,7 +7897,7 @@
 	if (p->BGcount != p->BG_count) {
 		if (p->BGcurve != NULL)
 			icp->al->free(icp->al, p->BGcurve);
-		if ((p->BGcurve = (double *) icp->al->malloc(icp->al, p->BGcount * sizeof(double))) == NULL) {
+		if ((p->BGcurve = (double *) icp->al->calloc(icp->al, p->BGcount, sizeof(double))) == NULL) {
 			sprintf(icp->err,"icmUcrBg_allocate: malloc() of BG curve data failed");
 			return icp->errc = 2;
 		}
@@ -7681,7 +7906,7 @@
 	if (p->size != p->_size) {
 		if (p->string != NULL)
 			icp->al->free(icp->al, p->string);
-		if ((p->string = (char *) icp->al->malloc(icp->al, p->size * sizeof(char))) == NULL) {
+		if ((p->string = (char *) icp->al->calloc(icp->al, p->size, sizeof(char))) == NULL) {
 			sprintf(icp->err,"icmUcrBg_allocate: malloc() of string data failed");
 			return icp->errc = 2;
 		}
@@ -7743,6 +7968,15 @@
 		len += 2;       /* 2 bytes for channels */
 		len += 2;       /* 2 for entry count */
 		len += 2;       /* 2 for entry size */
+		if (p->u.table.entryCount > 0 &&
+		    p->u.table.entrySize > 0 &&
+		    p->u.table.channels >
+		    (UINT_MAX - len) /
+		    p->u.table.entryCount /
+		    p->u.table.entrySize) {
+			p->icp->errc = 1;
+			return (unsigned int) -1;
+		}
 		len += ( p->u.table.channels *     /* compute table size */
 				 p->u.table.entryCount *
 				 p->u.table.entrySize );
@@ -7762,10 +7996,11 @@
 ) {
 	icmVideoCardGamma *p = (icmVideoCardGamma *)pp;
 	icc *icp = p->icp;
-	int rv, c;
+	int rv;
 	char *bp, *buf;
 	unsigned char *pchar;
 	unsigned short *pshort;
+	unsigned long c;
 
 	if (len < 18) {
 		sprintf(icp->err,"icmVideoCardGamma_read: Tag too small to be legal");
@@ -7803,6 +8038,16 @@
 		p->u.table.channels   = read_UInt16Number(bp+12);
 		p->u.table.entryCount = read_UInt16Number(bp+14);
 		p->u.table.entrySize  = read_UInt16Number(bp+16);
+		if (p->u.table.entrySize > 65530 || p->u.table.entrySize == 0) {
+			sprintf(icp->err,"icmVideoCardGamma_read: Too many entries (or none)");
+			return icp->errc = 1;
+		}
+		if (p->u.table.entryCount > 0 && p->u.table.entrySize > 0 &&
+		    p->u.table.channels >
+		    UINT_MAX / p->u.table.entryCount / p->u.table.entrySize) {
+			sprintf(icp->err,"icmVideoCardGamma_read: Overflow reading tag");
+			return icp->errc = 1;
+		}
 		if (len-18 < p->u.table.channels*p->u.table.entryCount*p->u.table.entrySize) {
 			sprintf(icp->err,"icmVideoCardGamma_read: Tag too small to be legal");
 			return icp->errc = 1;
@@ -7871,6 +8116,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmViewingConditions_write malloc() failed");
 		return icp->errc = 2;
@@ -8049,7 +8296,7 @@
 ) {
 	icmVideoCardGamma *p = (icmVideoCardGamma *)pp;
 	icc *icp = p->icp;
-	int size;
+	unsigned int size;
 
 	/* note: allocation is only relevant for table type
 	 * and in that case the channels, entryCount, and entrySize
@@ -8059,6 +8306,11 @@
 	if (p->tagType == icmVideoCardGammaTableType) {
 		if (p->u.table.data != NULL)
 			icp->al->free(icp->al, p->u.table.data);
+		if (p->u.table.entryCount > 0 &&
+		    p->u.table.channels > UINT_MAX / p->u.table.entryCount) {
+			sprintf(icp->err,"icmVideoCardGamma_alloc: table too large");
+			return icp->errc = 1;
+		}
 		size = (p->u.table.channels *
 				p->u.table.entryCount);
 		switch (p->u.table.entrySize) {
@@ -8066,6 +8318,10 @@
 			size *= sizeof(unsigned char);
 			break;
 		case 2:
+			if (size > UINT_MAX / sizeof(unsigned short)) {
+				sprintf(icp->err,"icmVideoCardGamma_alloc: table too large");
+				return icp->errc = 1;
+			}
 			size *= sizeof(unsigned short);
 			break;
 		default:
@@ -8201,6 +8457,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmViewingConditions_write malloc() failed");
 		return icp->errc = 2;
@@ -8433,6 +8691,8 @@
 
 	/* Allocate a file write buffer */
 	len = p->get_size((icmBase *)p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->malloc(icp->al, len)) == NULL) {
 		sprintf(icp->err,"icmCrdInfo_write malloc() failed");
 		return icp->errc = 2;
@@ -8585,7 +8845,7 @@
 	if (p->ppsize != p->_ppsize) {
 		if (p->ppname != NULL)
 			icp->al->free(icp->al, p->ppname);
-		if ((p->ppname = (char *) icp->al->malloc(icp->al, p->ppsize * sizeof(char))) == NULL) {
+		if ((p->ppname = (char *) icp->al->calloc(icp->al, p->ppsize, sizeof(char))) == NULL) {
 			sprintf(icp->err,"icmCrdInfo_alloc: malloc() of string data failed");
 			return icp->errc = 2;
 		}
@@ -8595,7 +8855,7 @@
 		if (p->crdsize[t] != p->_crdsize[t]) {
 			if (p->crdname[t] != NULL)
 				icp->al->free(icp->al, p->crdname[t]);
-			if ((p->crdname[t] = (char *) icp->al->malloc(icp->al, p->crdsize[t] * sizeof(char))) == NULL) {
+			if ((p->crdname[t] = (char *) icp->al->calloc(icp->al, p->crdsize[t], sizeof(char))) == NULL) {
 				sprintf(icp->err,"icmCrdInfo_alloc: malloc() of CRD%d name string failed",t);
 				return icp->errc = 2;
 			}
@@ -8736,6 +8996,8 @@
 	int rv = 0;
 
 	len = p->get_size(p);
+	if (icp->errc)
+		return icp->errc;
 	if ((buf = (char *) icp->al->calloc(icp->al,1,len)) == NULL) {			/* Zero it - some CMS are fussy */
 		sprintf(icp->err,"icmHeader_write calloc() failed");
 		return icp->errc = 2;
@@ -9245,13 +9507,23 @@
 	}
 
 	p->count = read_UInt32Number(tcbuf);		/* Tag count */
+	if (p->count > 100) {
+		sprintf(p->err,"icc_read: too many table tags");
+		return p->errc = 1;
+	}
 	if (p->count > 0) {
 		char *bp, *buf;
-		if ((p->data = (icmTag *) p->al->malloc(p->al, p->count * sizeof(icmTag))) == NULL) {
+		if ((p->data = (icmTag *) p->al->calloc(p->al, p->count, sizeof(icmTag))) == NULL) {
 			sprintf(p->err,"icc_read: Tag table malloc() failed");
 			return p->errc = 2;
 		}
 	
+		if (p->count > (UINT_MAX - 4) / 12) {
+			sprintf(p->err,"icc_read: overflow");
+			p->al->free(p->al, p->data);
+			p->data = NULL;
+			return p->errc = 1;
+		}
 		len = 4 + p->count * 12;
 		if ((buf = (char *) p->al->malloc(p->al, len)) == NULL) {
 			sprintf(p->err,"icc_read: Tag table read buffer malloc() failed");
@@ -9281,6 +9553,14 @@
 	    	    return p->errc = 1;
 	    	}
 	    	p->data[i].size = read_UInt32Number(bp + 8);	
+			if (p->data[i].offset + p->data[i].size >
+			    p->header->size) {
+				sprintf(p->err,"icc_read: tag out of bounds");
+				p->al->free(p->al, p->data);
+				p->data = NULL;
+				p->al->free(p->al, buf);
+				return p->errc = 1;
+			}
 			if (   p->fp->seek(p->fp, of + p->data[i].offset) != 0
 			    || p->fp->read(p->fp, tcbuf, 1, 4) != 4) {
 				sprintf(p->err,"icc_read: fseek() or fread() failed on tag headers");
@@ -9321,8 +9601,14 @@
 	}
 
 	size += p->header->get_size(p->header);
+	if (p->errc)
+		return (unsigned int) -1;
 
 	size = DO_ALIGN(size);
+	if (size == 0 || p->count > (UINT_MAX - 4 - size) / 12) {
+		p->errc = 1;
+		return (unsigned int) -1;
+	}
 	size += 4 + p->count * 12;	/* Tag table length */
 	
 	/* Reset touched flag for each tag type */
@@ -9337,8 +9623,13 @@
 	/* Get size for each tag type, skipping links */
 	for (i = 0; i < p->count; i++) {
 		if (p->data[i].objp->touched == 0) { /* Not alllowed for previously */
+			unsigned int obj_size;
 			size = DO_ALIGN(size);
-			size += p->data[i].objp->get_size(p->data[i].objp);
+			obj_size = p->data[i].objp->get_size(p->data[i].objp);
+			if (size == 0 || p->errc ||
+			    obj_size > UINT_MAX - size)
+				return (unsigned int) -1;
+			size += obj_size;
 			p->data[i].objp->touched = 1;	/* Don't account for this again */
 		}
 	}
@@ -9373,9 +9664,19 @@
 	}
 
 	size += p->header->get_size(p->header);
+	if (p->errc)
+		return p->errc;
 
+	if (p->count > (UINT_MAX - 4 - len) / 12) {
+		sprintf(p->err,"icc_write: too many tags");
+		return p->errc = 1;
+	}
 	len = 4 + p->count * 12;	/* Tag table length */
 	size = DO_ALIGN(size);
+	if (size == 0 || size > UINT_MAX - len) {
+		sprintf(p->err,"icc_write: overflow writing tag table");
+		return p->errc = 1;
+	}
 	size += len;
 	
 	/* Allocate memory buffer for tag table */
@@ -9406,6 +9707,12 @@
 			size = DO_ALIGN(size);
 			p->data[i].offset = size;			/* Profile relative target */
 			p->data[i].size = p->data[i].objp->get_size(p->data[i].objp);
+			if (size == 0 ||
+			    p->errc || p->data[i].size > UINT_MAX - size) {
+				sprintf(p->err,"icc_write: internal error - overflow?");
+				p->al->free(p->al, buf);
+				return p->errc;
+			}
 			size += p->data[i].size;
 			p->data[i].objp->touched = 1;	/* Allocated space for it */
 		} else { /* must be linked - copy allocation */
@@ -9529,6 +9836,11 @@
 	}
 
 	/* Make space in tag table for new tag item */
+	if (p->count > (UINT_MAX / sizeof(icmTag)) - 1) {
+		sprintf(p->err,"icc_add_tag: overflow");
+		p->errc = 1;
+		return NULL;
+	}
 	if (p->data == NULL)
 		tp = p->al->malloc(p->al, (p->count+1) * sizeof(icmTag));
 	else
@@ -9612,6 +9924,11 @@
 	}
 
 	/* Make space in tag table for new tag item */
+	if (p->count > (UINT_MAX / sizeof(icmTag)) - 1) {
+		sprintf(p->err,"icc_link_tag: overflow");
+		p->errc = 1;
+		return NULL;
+	}
 	if (p->data == NULL)
 		tp = p->al->malloc(p->al, (p->count+1) * sizeof(icmTag));
 	else
--- ./jasper/src/libjasper/include/jasper/jas_config_ac.h.in~	2006-02-08 15:21:28.000000000 +0900
+++ ./jasper/src/libjasper/include/jasper/jas_config_ac.h.in	2009-02-04 02:29:14.000000000 +0900
@@ -106,28 +106,28 @@
 /* Define to the version of this package. */
 #undef PACKAGE_VERSION
 
-/* The size of a `int', as computed by sizeof. */
+/* The size of `int', as computed by sizeof. */
 #undef SIZEOF_INT
 
-/* The size of a `long', as computed by sizeof. */
+/* The size of `long', as computed by sizeof. */
 #undef SIZEOF_LONG
 
-/* The size of a `long long', as computed by sizeof. */
+/* The size of `long long', as computed by sizeof. */
 #undef SIZEOF_LONG_LONG
 
-/* The size of a `short', as computed by sizeof. */
+/* The size of `short', as computed by sizeof. */
 #undef SIZEOF_SHORT
 
-/* The size of a `unsigned int', as computed by sizeof. */
+/* The size of `unsigned int', as computed by sizeof. */
 #undef SIZEOF_UNSIGNED_INT
 
-/* The size of a `unsigned long', as computed by sizeof. */
+/* The size of `unsigned long', as computed by sizeof. */
 #undef SIZEOF_UNSIGNED_LONG
 
-/* The size of a `unsigned long long', as computed by sizeof. */
+/* The size of `unsigned long long', as computed by sizeof. */
 #undef SIZEOF_UNSIGNED_LONG_LONG
 
-/* The size of a `unsigned short', as computed by sizeof. */
+/* The size of `unsigned short', as computed by sizeof. */
 #undef SIZEOF_UNSIGNED_SHORT
 
 /* Define to 1 if you have the ANSI C header files. */
@@ -155,7 +155,7 @@
 /* Define to `long long' if <sys/types.h> does not define. */
 #undef longlong
 
-/* Define to `unsigned' if <sys/types.h> does not define. */
+/* Define to `unsigned int' if <sys/types.h> does not define. */
 #undef size_t
 
 /* Define to `int' if <sys/types.h> does not define. */
--- ./jbig2dec/jbig2_symbol_dict.c.org	2007-12-11 17:29:58.000000000 +0900
+++ ./jbig2dec/jbig2_symbol_dict.c	2009-07-18 18:37:14.000000000 +0900
@@ -699,6 +699,15 @@
         exrunlength = params->SDNUMEXSYMS;
       else
         code = jbig2_arith_int_decode(IAEX, as, &exrunlength);
+      if (exrunlength > params->SDNUMEXSYMS - j) {
+        jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
+          "runlength too large in export symbol table (%d > %d - %d)\n",
+          exrunlength, params->SDNUMEXSYMS, j);
+        jbig2_sd_release(ctx, SDEXSYMS);
+        /* skip to the cleanup code and return SDEXSYMS = NULL */
+        SDEXSYMS = NULL;
+        break;
+      }
       for(k = 0; k < exrunlength; k++)
         if (exflag) {
           SDEXSYMS->glyphs[j++] = (i < m) ? 
--- ./Resource/Init/cidfmap.org	2008-08-08 13:22:38.000000000 +0900
+++ ./Resource/Init/cidfmap	2009-07-17 13:54:00.000000000 +0900
@@ -26,3 +26,106 @@
 %   /ShinGo-Bold   /HeiseiKakuGo-W5 ;
 %   /Ryumin-Medium << /FileType /TrueType /Path (H:/AuxFiles/Fonts/BATANG.TTC) /SubfontID 3 /CSI [(Japan1) 2] >> ;
 %
+
+/HeiseiKakuGo-W5	/HeiseiKakuGo-W5-Acro		;
+/HeiseiMin-W3		/HeiseiMin-W3-Acro		;
+/HYGoThic-Medium	/HYGoThic-Medium-Acro		;
+/HYSMyeongJo-Medium	/HYSMyeongJo-Medium-Acro	;
+/KozMinPro-Regular	/KozMinPro-Regular-Acro		;
+/MHei-Medium		/MHei-Medium-Acro		;
+/MSung-Light		/MSung-Light-Acro		;
+/STSong-Light		/STSong-Light-Acro		;
+
+% Adobe-CNS1
+
+/PMingLiU	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/PMingLiU.ttf) /CSI [(CNS1) 4] >>	;
+
+/SimSun-Adobe-CNS1	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/SimSun.ttf) /CSI [(CNS1) 4] >>	; % /Adobe-CNS1-Unicode	;
+
+% Can't handle format 12
+%/LiHeiPro-Medium	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/LiHeiPro.ttf) /CSI [(CNS1) 4] >>	; % /Adobe-CNS1-Unicode	;
+%/LiSongPro-Light	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/LiSongPro.ttf) /CSI [(CNS1) 4] >>	; % /Adobe-CNS1-Unicode	;
+
+% Can't handle!
+%/STHeiti-Regular-Adobe-CNS1	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/STHeiti.ttf) /CSI [(CNS1) 4] >>	; % /Adobe-CNS1-Unicode	;
+%/STHeiti-Light-Adobe-CNS1	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/STXihei.ttf) /CSI [(CNS1) 4] >>	; % /Adobe-CNS1-Unicode	;
+%/STFangsong-Regular-Adobe-CNS1	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/STFangsong.ttf) /CSI [(CNS1) 4] >>	; % /Adobe-CNS1-Unicode	;
+%/STSong-Regular-Adobe-CNS1	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/STSong.ttf) /CSI [(CNS1) 4] >>		; % /Adobe-CNS1-Unicode	;
+%/STKaiti-Regular-Adobe-CNS1	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/STKaiti.ttf) /CSI [(CNS1) 4] >>	; % /Adobe-CNS1-Unicode	;
+
+% Adobe-GB1
+
+/SimSun	<< /FileType /TrueType /Path		(/opt/local/X11R6/lib/X11/fonts/truetype/SimSun.ttf) /CSI [(GB1) 4] >>		;
+
+% Can't handle!
+%/STHeiti-Regular	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/STHeiti.ttf) /CSI [(GB1) 4] >>	; % /Adobe-GB1-Unicode	;
+%/STHeiti-Light	<< /FileType /TrueType /Path		(/opt/local/X11R6/lib/X11/fonts/truetype/STXihei.ttf) /CSI [(GB1) 4] >>	; % /Adobe-GB1-Unicode	;
+%/STFangsong-Regular	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/STFangsong.ttf) /CSI [(GB1) 4] >>	; % /Adobe-GB1-Unicode	;
+%/STSong-Regular	<< /FileType /TrueType /Path		(/opt/local/X11R6/lib/X11/fonts/truetype/STSong.ttf) /CSI [(GB1) 4] >>	; % /Adobe-GB1-Unicode	;
+%/STKaiti-Regular	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/STKaiti.ttf) /CSI [(GB1) 4] >>	; % /Adobe-GB1-Unicode	;
+
+% Adobe-Japan1
+
+/MS-Gothic	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/msgothic.ttf) /CSI [(Japan1) 2] >>	;
+/MS-PGothic	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/mspgothic.ttf) /CSI [(Japan1) 2] >>	;
+/MS-UI-Gothic	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/msgothic.ttc) /SubfontID 2 /CSI [(Japan1) 2] >>	;
+/MS-Mincho	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/msmincho.ttf) /CSI [(Japan1) 2] >>	;
+/MS-PMincho	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/mspmincho.ttf) /CSI [(Japan1) 2] >>	;
+
+/Mona		<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/mona.ttf) /CSI [(Japan1) 2] >>	;
+
+/HGGothicEPRO	<< /FileType /TrueType /Path 		(/opt/local/X11R6/lib/X11/fonts/truetype/hgrgep.ttf) /CSI [(Japan1) 2] >>	;
+%/HGGothicEPRO-Identity	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/hgrgep.ttf) /CSI [(Japan1) 2] >>	/Identity	;
+/HGMarugothicMPRO	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/hgrsmp.ttf) /CSI [(Japan1) 2] >>	;
+%/HGMarugothicMPRO-Identity	<< /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/hgrsmp.ttf) /CSI [(Japan1) 2] >>	/Identity	;
+/HGSeikaishotaiPRO	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/hgrskp.ttf) /CSI [(Japan1) 2] >>	;
+%/HGSeikaishotaiPRO-Identity	<< /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/hgrskp.ttf) /CSI [(Japan1) 2] >>	/Identity	;
+
+/HGGothicE	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/HGRGE.TTC) /CSI [(Japan1) 2] >>		;
+/HGPGothicE	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/HGRGE.TTC) /SubfontID 1 /CSI [(Japan1) 2] >>	;
+/HGSGothicE	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/HGRGE.TTC) /SubfontID 2 /CSI [(Japan1) 2] >>	;
+
+/HGGothicM	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/HGRGM.TTC) /CSI [(Japan1) 2] >>		;
+/HGPGothicM	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/HGRGM.TTC) /SubfontID 1 /CSI [(Japan1) 2] >>	;
+/HGSGothicM	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/HGRGM.TTC) /SubfontID 2 /CSI [(Japan1) 2] >>	;
+
+/HGGyoshotai	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/HGRGY.TTC) /CSI [(Japan1) 2] >>		;
+/HGPGyoshotai	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/HGRGY.TTC) /SubfontID 1 /CSI [(Japan1) 2] >>	;
+/HGSGyoshotai	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/HGRGY.TTC) /SubfontID 2 /CSI [(Japan1) 2] >>	;
+
+/HGSoeiKakugothicUB	<< /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/HGRSGU.TTC) /CSI [(Japan1) 2] >>		;
+/HGPSoeiKakugothicUB	<< /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/HGRSGU.TTC) /SubfontID 1 /CSI [(Japan1) 2] >>	;
+/HGSSoeiKakugothicUB	<< /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/HGRSGU.TTC) /SubfontID 2 /CSI [(Japan1) 2] >>	;
+
+/HGSoeiKakupoptai	<< /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/HGRPP1.TTC) /CSI [(Japan1) 2] >>		;
+/HGPSoeiKakupoptai	<< /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/HGRPP1.TTC) /SubfontID 1 /CSI [(Japan1) 2] >>	;
+/HGSSoeiKakupoptai	<< /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/HGRPP1.TTC) /SubfontID 2 /CSI [(Japan1) 2] >>	;
+
+/IPAGothic << /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/ipag.ttf) /CSI [(Japan1) 2] >> ;
+/IPAMincho << /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/ipam.ttf) /CSI [(Japan1) 2] >> ;
+/IPAPGothic << /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/ipagp.ttf) /CSI [(Japan1) 2] >> ;
+/IPAPMincho << /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/ipamp.ttf) /CSI [(Japan1) 2] >> ;
+
+/IPAMonaGothic << /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/ipag-mona.ttf) /CSI [(Japan1) 2] >> ;
+/IPAMonaMincho << /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/ipam-mona.ttf) /CSI [(Japan1) 2] >> ;
+/IPAMonaPGothic << /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/ipagp-mona.ttf) /CSI [(Japan1) 2] >> ;
+/IPAMonaPMincho << /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/ipamp-mona.ttf) /CSI [(Japan1) 2] >> ;
+
+/Meiryo	<< /FileType /TrueType /Path 		(/opt/local/X11R6/lib/X11/fonts/truetype/meiryo.ttc) /CSI [(Japan1) 2] >>		;
+/Meiryo-Italic	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/meiryo.ttc) /SubfontID 1 /CSI [(Japan1) 2] >>	;
+/Meiryo-Bold	<< /FileType /TrueType /Path 	(/opt/local/X11R6/lib/X11/fonts/truetype/meiryob.ttc) /CSI [(Japan1) 2] >>		;
+/Meiryo-BoldItalic	<< /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/meiryob.ttc) /SubfontID 1 /CSI [(Japan1) 2] >>	;
+
+/Tokyo-UCS2 << /FileType /TrueType /Path (/opt/local/X11R6/lib/X11/fonts/truetype/ipamp-mona.ttf) /CSI [(Unicode) 0] >> ;
+
+%/Ryumin-Light		/MS-Mincho		;
+%/Ryumin-Light		/Mona		;
+/Ryumin-Light		/IPAMincho		;
+/GothicBBB-Medium	/IPAGothic		;
+%/Ryumin-Light		/IPAMonaMincho		;
+%/GothicBBB-Medium	/IPAMonaGothic		;
+
+% Adobe-Korea1
+
+/Batang	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/Batang.ttf) /CSI [(Korea1) 2] >>	;
+/Gulim	<< /FileType /TrueType /Path	(/opt/local/X11R6/lib/X11/fonts/truetype/Gulim.ttf) /CSI [(Korea1) 2] >>	;
installation
make install 
[ ! -d   /opt/local/gs8.64/share/ghostscript/8.64/Resource/CIDFont ] &&
mkdir -p /opt/local/gs8.64/share/ghostscript/8.64/Resource/CIDFont
(cd      /opt/local/gs8.64/share/ghostscript/8.64/Resource/CIDFont &&
  (
    find /opt/local/X11R6/lib/X11/fonts/cidkeyed ! -type d &&
    find /opt/local/X11R6/lib/X11/fonts/opentype ! -type d
  ) |
  while read f; do
    case "`file -b \"$f\"`" in
    *'Type font '*|'PostScript document '*)	;;
    *) continue	;;
    esac
    t="`basename \"$f\" .otf`"
    case "$t" in
    ipag)	t=IPAGothicRegular	;;
    ipagp)	t=IPAPGothicRegular	;;
    ipam)	t=IPAMinchoRegular	;;
    ipamp)	t=IPAPMinchoRegular	;;
    esac
    [ -f "$t" ] || ln -sf "$f" "$t"
  done
  #
  #
  #
  find . -maxdepth 1 -name '*-Acro' |
  while read f; do
    f="`basename \"$f\"`"
    t="`basename \"$f\" -Acro`"
    [ -f "$t" ] || echo "/$t	/$f	;"
  done
)
installed
/opt/local/gs8.64/bin/bdftops
/opt/local/gs8.64/bin/dumphint
/opt/local/gs8.64/bin/dvipdf
/opt/local/gs8.64/bin/eps2eps
/opt/local/gs8.64/bin/fixmswrd.pl
/opt/local/gs8.64/bin/font2c
/opt/local/gs8.64/bin/gs
/opt/local/gs8.64/bin/gsbj
/opt/local/gs8.64/bin/gsdj
/opt/local/gs8.64/bin/gsdj500
/opt/local/gs8.64/bin/gslj
/opt/local/gs8.64/bin/gslp
/opt/local/gs8.64/bin/gsnd
/opt/local/gs8.64/bin/lprsetup.sh
/opt/local/gs8.64/bin/pdf2dsc
/opt/local/gs8.64/bin/pdf2ps
/opt/local/gs8.64/bin/pdfopt
/opt/local/gs8.64/bin/pf2afm
/opt/local/gs8.64/bin/pfbtopfa
/opt/local/gs8.64/bin/printafm
/opt/local/gs8.64/bin/ps2ascii
/opt/local/gs8.64/bin/ps2epsi
/opt/local/gs8.64/bin/ps2pdf
/opt/local/gs8.64/bin/ps2pdf12
/opt/local/gs8.64/bin/ps2pdf13
/opt/local/gs8.64/bin/ps2pdf14
/opt/local/gs8.64/bin/ps2pdfwr
/opt/local/gs8.64/bin/ps2ps
/opt/local/gs8.64/bin/ps2ps2
/opt/local/gs8.64/bin/pv.sh
/opt/local/gs8.64/bin/unix-lpr.sh
/opt/local/gs8.64/bin/wftopfa
/opt/local/gs8.64/share/ghostscript/8.64/doc/API.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/C-style.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Changes.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Commprod.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Deprecated.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Details.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Details8.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Develop.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Devices.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/DLL.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Drivers.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Fonts.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/gs.css
/opt/local/gs8.64/share/ghostscript/8.64/doc/Helpers.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Hershey.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/History1.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/History2.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/History3.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/History4.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/History5.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/History6.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/History7.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/History8.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/index.html
/opt/local/gs8.64/share/ghostscript/8.64/doc/Install.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Issues.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Language.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Lib.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Make.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/News.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Projects.htm
/opt/local/gs8.64/share/ghostscript/8.64/doc/Ps-style.htm
	:

misc/du2ps-3.1

preparation
curl -RO -C - http://www.line.to/mac/soft/du2ps/du2ps-3.1.tgz
tar xvzf du2ps-3.1.tgz
(cd du2ps-3.1 &&
patch -p0 < ../du2ps-3.1-ubagami.patch)
build
make 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 
patch
--- ./du2ps.1.org	2005-02-19 17:30:33.000000000 +0900
+++ ./du2ps.1	2009-02-13 18:02:52.000000000 +0900
@@ -2,7 +2,7 @@
 .\" Copyleft 1994-2005 nagae@media.t-kougei.ac.jp and mac@line.to
 .\" du2ps.man
 .\""
-.TH du2ps 1 "Feb 19, 2005"
+.TH du2ps 1 "Feb 13, 2009"
 .SH NAME
 du2ps \- filter for converting output of du to PostScript file
 .SH SYNOPSIS
@@ -81,6 +81,21 @@
 and
 .I height
 are the width and height of a BoundingBox.
+.TP
+.BI \-B " size"
+Specify the size of block unit for input. Default 512 byte.
+.TP
+.BI \-K
+Assume 1024-byte of block unit for input.
+.TP
+.BI \-k
+Specify 1K-byte unit for output. Default depend on input.
+.TP
+.BI \-m
+Specify 1M-byte unit for output.
+.TP
+.BI \-h
+Specify Human-readable output.
 .SH EXAMPLES
 .B " du | du2ps | lpr
 .IP
@@ -115,12 +130,20 @@
 The most left directory name becomes ``..'', and print
 ``The number of disk blocks used at''
 in the upper left corner.
+.PP
+.B " du -k ~ | du2ps -K -h | ps2pdf -sPAPERSIZE=a4 - /tmp/du2.pdf"
+.IP
+The most left directory name becomes your own home, and print
+``The number of disk blocks used at $HOME'' in the upper left corner.
+The generated ``/tmp/du2.pdf'' will be ``Human-readable'' format with
+``-k'' option of ``du'', ``-K'' and ``-h'' options of ``du2ps''.
 .SH SEE ALSO
 .BR du (1),
 .BR xdu (1)
 .SH AUTHORS
-Takanori Nagae <nagae@media.t-kougei.ac.jp> and
-Shigeru Makino <mac@line.to>
+Takanori Nagae <nagae@media.t-kougei.ac.jp>,
+Shigeru Makino <mac@line.to> and
+Taiji Yamada <taiji@aihara.co.jp>
 .PP
 The du2ps is based on xdu.
 The author of xdu is Phillip C. Dykstra <phil@BRL.MIL>.
--- ./du2ps.1j.org	2005-02-19 17:30:33.000000000 +0900
+++ ./du2ps.1j	2009-02-13 18:13:11.000000000 +0900
@@ -82,6 +82,21 @@
 と
 .I height
 はBoundingBoxの幅と高さです.
+.TP
+.BI \-B " size"
+入力のブロックサイズ単位のサイズを指定します.デフォルトは 512 byte です.
+.TP
+.BI \-K
+入力のブロックサイズ単位のサイズを 1024 byte とします.
+.TP
+.BI \-k
+出力のサイズ単位を 1K byte とします.デフォルトは入力に依存します.
+.TP
+.BI \-m
+出力のサイズ単位を 1M byte とします.
+.TP
+.BI \-h
+出力のサイズ単位を人間に読みやすく決めます.
 .SH EXAMPLES
 .B " du | du2ps | lpr
 .IP
@@ -115,6 +130,14 @@
 一番左のディレクトリ名が``..''になり,左肩に
 ``The number of disk blocks used at''
 と表示されます.
+.PP
+.B " du -k ~ | du2ps -K -h | ps2pdf -sPAPERSIZE=a4 - /tmp/du2.pdf"
+.IP
+一番左のディレクトリが名があなたのホームになり,左肩に
+``The number of disk blocks used at $HOME'' と表示されます.
+生成された ``/tmp/du2.pdf'' は ``du'' コマンドの ``-k'' オプション及び
+``du2ps'' コマンドの ``-K'', ``-h'' オプションによって,
+人間に読みやすい形式となります.
 .SH SEE ALSO
 .BR du (1),
 .BR xdu (1)
--- ./du2ps.h.org	2005-02-19 17:30:33.000000000 +0900
+++ ./du2ps.h	2009-02-13 17:10:06.000000000 +0900
@@ -1,9 +1,10 @@
 /* $Id: du2ps.h,v 3.1 2005/02/19 08:29:53 mac Exp $
  *
  * du2ps is a modification of xdu
- * 1992 1994 2005
+ * 1992 1994 2005 2009
  * 	Takanori Nagae <nagae@media.t-kougei.ac.jp>
  *      Shigeru Makino <mac@line.to>
+ *      Taiji Yamada <taiji@aihara.co.jp>
  */
 /*
  * The following is the copyright & permission notices of xdu
@@ -47,14 +48,28 @@
 #	define MAXPATH   4096  /* max total pathname length */
 #endif
 
+#ifndef NCOLS_PORTRAIT
 #define NCOLS_PORTRAIT 7
+#endif
+#ifndef NCOLS_LANDSCAPE
 #define NCOLS_LANDSCAPE 10 
+#endif
 #define MIN_DEPTH 0
+#ifndef MARGIN
 #define MARGIN 50
+#endif
+#ifndef FONT_SIZE
 #define FONT_SIZE 8
+#endif
+#ifndef FONT_FAMILY
 #define FONT_FAMILY "Times-Roman"
+#endif
+#ifndef LINE_WIDTH
 #define LINE_WIDTH 0.5
+#endif
+#ifndef HEAD_SEP
 #define HEAD_SEP 5.0
+#endif
 #define A3_WIDTH 841.889764
 #define A3_HEIGHT 1190.55118
 #define A4_WIDTH 595.275591
@@ -76,7 +91,7 @@
     struct _node_ *peer;  /* siblings */
     struct _node_ *child; /* list of children if !NULL */
     int nchild;		  /* number of children */
-    int size;             /* from here down */
+    unsigned long long size; /* from here down */
     char *name;
 } Node;
 
--- ./getopt.c.org	2005-02-19 17:30:33.000000000 +0900
+++ ./getopt.c	2009-02-13 17:10:24.000000000 +0900
@@ -18,6 +18,9 @@
 double paper_width, paper_height, margin, font_size, linewidth;
 char *font_family;
 int ps_type;
+unsigned long long in_unit = 512;
+int unit_type = 0; /* -1: Human-readable, 0: depend on input, 1: Kilobyte, 2:Megabyte,
+	3:Gigabyte, 4:Terabyte and 5:Petabyte, ... for output */
 
 static char *usage[] ={
 	"",
@@ -48,6 +51,11 @@
 	"  -lw size    ... line width",
 	"  -ncols num  ... number of columns",
 	"  -eps w h    ... output an epsfile contained in BoundingBox:0 0 w h",
+	"  -B size     ... specified-size byte unit input",
+	"  -K          ... 1024-byte (1K-byte) unit input",
+	"  -k          ... 1K-byte unit output",
+	"  -m          ... 1M-byte unit output",
+	"  -h          ... Human-readable output",
 	NULL,
 };
 
@@ -144,6 +152,21 @@
 			paper_height = atof(argv[i + 2]);
 			ps_type = EPS;
 			i += 3;
+		} else if(!strcmp("-B", argv[i])){
+			in_unit = strtoull(argv[i + 1], (char **)NULL, 10);
+			i += 2;
+		} else if(!strcmp("-K", argv[i])){
+			in_unit = 1024;
+			i++;
+		} else if(!strcmp("-k", argv[i])){
+			unit_type = 1;
+			i++;
+		} else if(!strcmp("-m", argv[i])){
+			unit_type = 2;
+			i++;
+		} else if(!strcmp("-h", argv[i])){
+			unit_type = -1;
+			i++;
 		} else {
 			fprintf(stderr, "unknown option %s\n", argv[i]);
 			print_message(usage);
--- ./Makefile.org	2005-02-19 17:30:33.000000000 +0900
+++ ./Makefile	2009-02-16 19:36:01.000000000 +0900
@@ -1,9 +1,11 @@
 # du2ps makefile
 
+prefix=/opt/local
 LIB = -lm
 NAME = du2ps
 #CC = gcc
-CFLAGS= -Wall -pedantic
+CPPFLAGS=-DNCOLS_PORTRAIT=8 -DNCOLS_LANDSCAPE=12 -DMARGIN=40 -DFONT_SIZE=6 -DFONT_FAMILY=\"Times-Roman\" -DLINE_WIDTH=.25
+CFLAGS= -Wall -pedantic -std=c99
 
 OBJ = $(NAME).o nodeop.o getopt.o
 BINDIR = .
@@ -15,3 +17,10 @@
 	rm -f $(BINDIR)/$(NAME) *.o *~ tmp
 
 $(OBJ): du2ps.h
+
+install:
+	cp du2ps $(prefix)/bin
+
+install.man:
+	chmod -x du2ps.1
+	cp du2ps.1 $(prefix)/man/man1
--- ./nodeop.c.org	2005-02-19 17:30:33.000000000 +0900
+++ ./nodeop.c	2009-02-13 17:11:05.000000000 +0900
@@ -14,6 +14,8 @@
  */
 #include "du2ps.h"
 unsigned dhue;
+extern unsigned long long in_unit;
+extern int unit_type;
 
 Node *top;
 int (*cmp)();
@@ -22,9 +24,40 @@
 drawrect(Node *nodep, double y, double height, int depth,
 		unsigned h, unsigned s, unsigned b)
 {
-	printf("%d (%s \\(%d\\)) %.2f %.2f %f %f %f\n",
-        depth, nodep->name, nodep->size, height, y,
-	(double) h / 0x8000 , (double) s, (double) b);
+	unsigned long long u = 1;
+	int i = 0, pi = 0;
+	char *p[] = {
+	  "B",
+	  "K",
+	  "M",
+	  "G",
+	  "T",
+	  "P",
+	};
+
+	switch (unit_type) {
+	case 0:
+		printf("%d (%s \\(%llu\\)) %.2f %.2f %f %f %f\n",
+			depth, nodep->name, nodep->size, height, y,
+			(double) h / 0x8000 , (double) s, (double) b);
+		break;
+	default:
+		if(unit_type > 0){
+			pi = unit_type;
+			while(i++ < pi)
+				u *= 1024;
+		}
+		else {
+			while(pi+1 < sizeof(p)/sizeof(p[0]) && nodep->size*(in_unit?in_unit:1)/(u*1024) > 0){
+				u *= 1024;
+				pi++;
+			}
+		}
+		printf("%d (%s \\(%g%s\\)) %.2f %.2f %f %f %f\n",
+			depth, nodep->name, (float)nodep->size*(in_unit?in_unit:1)/u, (unit_type > 0)?"":p[pi], height, y,
+			(double) h / 0x8000 , (double) s, (double) b);
+		break;
+	}
 }
 
 /*
@@ -49,7 +82,7 @@
 
 
 static void
-addtree(Node *nodep, char **path, int size)
+addtree(Node *nodep, char **path, unsigned long long size)
 {
 	Node *child;
 
@@ -84,7 +117,7 @@
 int
 cmp_size(Node **p, Node **q)
 {
-	return ((*q)->size - (*p)->size);
+	return ((*q)->size > (*p)->size) ? 1 : ((*q)->size < (*p)->size) ? -1 : 0;
 }
 
 static void
@@ -168,14 +201,27 @@
 char *
 parse(void)
 {
-	char buf[MAXLL], name[MAXPATH+2], *n;
+	char fmt[1024], buf[MAXLL], name[MAXPATH+2], *n;
 	char *path[MAXDEPTH]; /* break up path into this list */
-	int depth, size;
+	int depth;
+	unsigned long long size;
 	int i;
+	float z;
+	char u;
 
+	snprintf(fmt, sizeof(fmt), "%%f%%c %%%lu[^\n]\n", sizeof(name)-1);
 	top = makenode("..");
 	while(fgets(buf, MAXLL, stdin)  != 0){
-		sscanf(buf, "%d %s\n", &size, n = name);
+		sscanf(buf, fmt, &z, &u, n = name);
+		switch (u) {
+		case 'P': z *= 1024;
+		case 'T': z *= 1024;
+		case 'G': z *= 1024;
+		case 'M': z *= 1024;
+		case 'K': z *= 1024;
+		case 'B': in_unit = 0;
+		default: size = z; break;
+		}
 		if('/' == *n) {
 			if ( strlen(name) > MAXPATH ) {
 				fprintf(stderr, "too long path\n");
installed
/opt/local/bin/du2ps
/opt/local/man/man1/du2ps.1

fonts/cid/oreilly-cid-2004

preparation
if [ ! -f oreilly-cid-2004.tar.bz2 ]; then
[ -d oreilly-cid-2004 ] || mkdir oreilly-cid-2004
(cd oreilly-cid-2004 &&
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MOEKai-Regular
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MOESung-Regular
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/WadaGo-Bold
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/WadaMaruGo-Regular
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/WadaMaruGo-RegularH
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/WadaMin-Bold
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/WadaMin-Regular
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/WadaMin-RegularH
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/Munhwa-Bold
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/Munhwa-Regular
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaGothic-Bold
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaGothic-Regular
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaGungSeo-Bold
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaGungSeo-Light
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaGungSeoHeulim-Bold
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaGungSeoHeulim-Light
curl -O -C - ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaHoonMin-Regular
)
tar cvjf oreilly-cid-2004.tar.bz2 oreilly-cid-2004
else
tar xvjf oreilly-cid-2004.tar.bz2
fi
build
echo nothing to be done 
installation
mkdir -p /opt/local/X11R6/lib/X11/fonts/cidkeyed && cp * /opt/local/X11R6/lib/X11/fonts/cidkeyed
installed
/opt/local/X11R6/lib/X11/fonts/cidkeyed/MOEKai-Regular
/opt/local/X11R6/lib/X11/fonts/cidkeyed/MOESung-Regular
/opt/local/X11R6/lib/X11/fonts/cidkeyed/Munhwa-Bold
/opt/local/X11R6/lib/X11/fonts/cidkeyed/Munhwa-Regular
/opt/local/X11R6/lib/X11/fonts/cidkeyed/MunhwaGothic-Bold
/opt/local/X11R6/lib/X11/fonts/cidkeyed/MunhwaGothic-Regular
/opt/local/X11R6/lib/X11/fonts/cidkeyed/MunhwaGungSeo-Bold
/opt/local/X11R6/lib/X11/fonts/cidkeyed/MunhwaGungSeo-Light
/opt/local/X11R6/lib/X11/fonts/cidkeyed/MunhwaGungSeoHeulim-Bold
/opt/local/X11R6/lib/X11/fonts/cidkeyed/MunhwaGungSeoHeulim-Light
/opt/local/X11R6/lib/X11/fonts/cidkeyed/MunhwaHoonMin-Regular
/opt/local/X11R6/lib/X11/fonts/cidkeyed/WadaGo-Bold
/opt/local/X11R6/lib/X11/fonts/cidkeyed/WadaMaruGo-Regular
/opt/local/X11R6/lib/X11/fonts/cidkeyed/WadaMaruGo-RegularH
/opt/local/X11R6/lib/X11/fonts/cidkeyed/WadaMin-Bold
/opt/local/X11R6/lib/X11/fonts/cidkeyed/WadaMin-Regular
/opt/local/X11R6/lib/X11/fonts/cidkeyed/WadaMin-RegularH

fonts/tt/macosx-u-ttf-2007

preparation
LN(){
  [ -f "$1" ] && ln -f "$1" "$2"
}
evallines(){
  while read line; do
    eval $line
  done
}
[ -d macosx-u-ttf-2007 ] || mkdir -p macosx-u-ttf-2007
(cd macosx-u-ttf-2007 &&
cat <<EOF | iconv -f EUC-JP -t UTF-8-MAC | evallines
#LN "$HOME/Library/Fonts/Batang.ttf"	.
#LN "$HOME/Library/Fonts/Gulim.ttf"	.
LN "$HOME/Library/Fonts/HGRGE.TTC"	.
LN "$HOME/Library/Fonts/HGRGM.TTC"	.
LN "$HOME/Library/Fonts/HGRGY.TTC"	.
LN "$HOME/Library/Fonts/HGRPP1.TTC"	.
LN "$HOME/Library/Fonts/HGRSGU.TTC"	.
LN "$HOME/Library/Fonts/MS Gothic.ttf"		msgothic.ttf
LN "$HOME/Library/Fonts/MS Mincho.ttf"		msmincho.ttf
LN "$HOME/Library/Fonts/MS PGothic.ttf"		mspgothic.ttf
LN "$HOME/Library/Fonts/MS PMincho.ttf"		mspmincho.ttf
LN "$HOME/Library/Fonts/msgothic.ttc"	.
LN "$HOME/Library/Fonts/msmincho.ttc"	.
LN "$HOME/Library/Fonts/meiryo.ttc"	.
LN "$HOME/Library/Fonts/meiryob.ttc"	.
LN "$HOME/Library/Fonts/PMingLiU.ttf"	.
LN "$HOME/Library/Fonts/SimSun.ttf"	.
EOF
patch -p0 < ../macosx-u-ttf-2007-ubagami.patch
)
build
sh fonts.dir-out.sh 
patch
--- ./fonts.dir-out.sh~	2005-09-03 02:23:22.000000000 +0900
+++ ./fonts.dir-out.sh	2005-09-03 02:34:04.000000000 +0900
@@ -0,0 +1,68 @@
+#!/bin/sh
+countline(){
+  wc -l | sed -e 's/^[ 	]*//'
+}
+fonts_dir_org=/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
+fonts_dir=fonts.dir
+cp /dev/null $fonts_dir
+for phase in 1 2; do
+  case $phase in
+  1)
+    filter=countline
+    ;;
+  2)
+    filter=cat
+    ;;
+  esac
+  ([ -f "$fonts_dir_org" ] && sed -ne '2,$p' "$fonts_dir_org" | grep -v 'ms-p*\(gothic\|mincho\)'
+  for ttf in\
+	msgothic.ttf\
+	msmincho.ttf\
+	mspgothic.ttf\
+	mspmincho.ttf\
+; do
+    case $ttf in
+	msgothic.ttf)	f_f='ms-gothic'		; spc=c	;;
+	msmincho.ttf)	f_f='ms-mincho'		; spc=c	;;
+	mspgothic.ttf)	f_f='ms-pgothic'	; spc=p	;;
+	mspmincho.ttf)	f_f='ms-pmincho'	; spc=p	;;
+    esac
+    wgt=normal
+    for kind in\
+	normal\
+	slant\
+; do
+    case $kind in
+    normal)
+      ai=
+      [ $spc = c ] && bw='bw=0.5:' || bw=
+      s=r
+      ;;
+    slant)
+      ai='ai=0.2:'
+      [ $spc = c ] && bw='bw=0.5:' || bw=
+      s=s
+      ;;
+    esac
+    cat <<EOF
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-iso8859-1
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-iso8859-2
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-iso8859-3
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-iso8859-4
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-iso8859-5
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-iso8859-9
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-iso8859-10
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-iso8859-13
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-koi8-r
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-koi8-u
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-koi8-e
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-adobe-standard
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-ibm-cp437
+${ai}${bw}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-jisx0201.1976-0
+${ai}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-jisx0208.1983-0
+${ai}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-jisx0208.1990-0
+${ai}${ttf} -${f_f}-medium-${s}-${wgt}--0-0-0-0-${spc}-0-iso10646-1
+EOF
+    done
+  done) | $filter >> $fonts_dir
+done
installation
LN(){
  [ -f "$1" ] && ln -f "$1" "$2"
}
evallines(){
  while read line; do
    eval $line
  done
}
[ ! -d /opt/local/X11R6/lib/X11/fonts/truetype ] && mkdir -p /opt/local/X11R6/lib/X11/fonts/truetype
(cd /opt/local/X11R6/lib/X11/fonts/truetype &&
cat <<EOF | iconv -f UTF-8 -t UTF-8-MAC | evallines
#LN "$HOME/Library/Fonts/Batang.ttf"	.
#LN "$HOME/Library/Fonts/Gulim.ttf"	.
LN "$HOME/Library/Fonts/HGRGE.TTC"	.
LN "$HOME/Library/Fonts/HGRGM.TTC"	.
LN "$HOME/Library/Fonts/HGRGY.TTC"	.
LN "$HOME/Library/Fonts/HGRPP1.TTC"	.
LN "$HOME/Library/Fonts/HGRSGU.TTC"	.
LN "$HOME/Library/Fonts/MS Gothic.ttf"		msgothic.ttf
LN "$HOME/Library/Fonts/MS Mincho.ttf"		msmincho.ttf
LN "$HOME/Library/Fonts/MS PGothic.ttf"		mspgothic.ttf
LN "$HOME/Library/Fonts/MS PMincho.ttf"		mspmincho.ttf
LN "$HOME/Library/Fonts/msgothic.ttc"	.
LN "$HOME/Library/Fonts/msmincho.ttc"	.
LN "$HOME/Library/Fonts/meiryo.ttc"	.
LN "$HOME/Library/Fonts/meiryob.ttc"	.
LN "$HOME/Library/Fonts/PMingLiU.ttf"	.
LN "$HOME/Library/Fonts/SimSun.ttf"	.
EOF
)
cp fonts.dir /opt/local/X11R6/lib/X11/fonts/truetype
installed
/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
data_installed
/opt/local/X11R6/lib/X11/fonts/truetype/HGRGE.TTC
/opt/local/X11R6/lib/X11/fonts/truetype/HGRGM.TTC
/opt/local/X11R6/lib/X11/fonts/truetype/HGRGY.TTC
/opt/local/X11R6/lib/X11/fonts/truetype/HGRPP1.TTC
/opt/local/X11R6/lib/X11/fonts/truetype/HGRSGU.TTC
/opt/local/X11R6/lib/X11/fonts/truetype/meiryo.ttc
/opt/local/X11R6/lib/X11/fonts/truetype/meiryob.ttc
/opt/local/X11R6/lib/X11/fonts/truetype/msgothic.ttc
/opt/local/X11R6/lib/X11/fonts/truetype/msgothic.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/msmincho.ttc
/opt/local/X11R6/lib/X11/fonts/truetype/msmincho.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/mspgothic.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/mspmincho.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/PMingLiU.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/SimSun.ttf

fonts/tt/macosx-c-ttf-2007

preparation
LN(){
  [ -f "$1" ] && ln -sf "$1" "$2"
}
evallines(){
  while read line; do
    eval $line
  done
}
[ -d macosx-c-ttf-2007 ] || mkdir -p macosx-c-ttf-2007
(cd macosx-c-ttf-2007 &&
cat <<EOF | iconv -f UTF-8 -t UTF-8-MAC | evallines
LN "/Library/Fonts/儷宋 Pro.ttf"	LiSongPro.ttf
LN "/Library/Fonts/华文仿宋.ttf"	STFangsong.ttf
LN "/Library/Fonts/华文宋体.ttf"	STSong.ttf
LN "/Library/Fonts/华文楷体.ttf"	STKaiti.ttf
LN "/System/Library/Fonts/儷黑 Pro.ttf"	LiHeiPro.ttf
LN "/System/Library/Fonts/华文细黑.ttf"	STXihei.ttf
LN "/System/Library/Fonts/华文黑体.ttf"	STHeiti.ttf
EOF
)
installation
LN(){
  [ -f "$1" ] && ln -sf "$1" "$2"
}
evallines(){
  while read line; do
    eval $line
  done
}
[ -d /opt/local/X11R6/lib/X11/fonts/truetype ] || mkdir -p /opt/local/X11R6/lib/X11/fonts/truetype
(cd /opt/local/X11R6/lib/X11/fonts/truetype &&
cat <<EOF | iconv -f UTF-8 -t UTF-8-MAC | evallines
LN "/Library/Fonts/儷宋 Pro.ttf"	LiSongPro.ttf
LN "/Library/Fonts/华文仿宋.ttf"	STFangsong.ttf
LN "/Library/Fonts/华文宋体.ttf"	STSong.ttf
LN "/Library/Fonts/华文楷体.ttf"	STKaiti.ttf
LN "/System/Library/Fonts/儷黑 Pro.ttf"	LiHeiPro.ttf
LN "/System/Library/Fonts/华文细黑.ttf"	STXihei.ttf
LN "/System/Library/Fonts/华文黑体.ttf"	STHeiti.ttf
EOF
)
installed
/opt/local/X11R6/lib/X11/fonts/truetype/LiHeiPro.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/LiSongPro.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/STFangsong.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/STHeiti.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/STKaiti.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/STSong.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/STXihei.ttf

fonts/tt/VLGothic-20090710

preparation
curl -RO -C - http://iij.dl.sourceforge.jp/vlgothic/41233/VLGothic-20090710.tar.bz2
tar xvjf VLGothic-20090710.tar.bz2
mv VLGothic VLGothic-20090710
(cd VLGothic-20090710 && patch -p0 < ../VLGothic-20090710-ubagami.patch)
build
sh fonts.dir-out.sh
patch
--- ./fonts.dir-out.sh~	2009-07-17 06:12:49.000000000 +0900
+++ ./fonts.dir-out.sh	2009-07-17 06:13:19.000000000 +0900
@@ -0,0 +1,61 @@
+#!/bin/sh
+countline(){
+  wc -l | sed -e 's/^[ 	]*//'
+}
+fonts_dir_org=/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
+fonts_dir=fonts.dir
+cp /dev/null $fonts_dir
+for phase in 1 2; do
+  case $phase in
+  1)
+    filter=countline
+    ;;
+  2)
+    filter=cat
+    ;;
+  esac
+  ([ -f "$fonts_dir_org" ] && sed -ne '2,$p' "$fonts_dir_org" | fgrep -v vl-
+  for f_f in\
+	vl-gothic\
+	vl-pgothic\
+; do
+    case $f_f in
+	vl-gothic)	ttf=VL-Gothic-Regular.ttf	; spc=c	;;
+	vl-pgothic)	ttf=VL-PGothic-Regular.ttf	; spc=p	;;
+    esac
+    for kind in\
+	normal\
+	slant\
+; do
+    case $kind in
+    normal)
+      ai=
+      s=r
+      ;;
+    slant)
+      ai='ai=0.2:'
+      s=s
+      ;;
+    esac
+    cat <<EOF
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-1
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-2
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-3
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-4
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-5
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-9
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-10
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-13
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-koi8-r
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-koi8-u
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-koi8-e
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-adobe-standard
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-ibm-cp437
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-jisx0201.1976-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-jisx0208.1983-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-jisx0208.1990-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso10646-1
+EOF
+    done
+  done) | $filter >> $fonts_dir
+done
installation
mkdir -p /opt/local/X11R6/lib/X11/fonts/truetype && cp *.ttf fonts.dir /opt/local/X11R6/lib/X11/fonts/truetype/

installed
/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
/opt/local/X11R6/lib/X11/fonts/truetype/VL-Gothic-Regular.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/VL-PGothic-Regular.ttf

fonts/tt/monafont-ttf-2.90

preparation
curl -ROL -C - http://downloads.sourceforge.net/sourceforge/monafont/monafont-ttf-2.90.zip
mkdir monafont-ttf-2.90
(cd monafont-ttf-2.90 &&
unzip ../monafont-ttf-2.90.zip
#patch -p0 < ../monafont-ttf-2.90-ubagami.patch
)
build
echo nothing to be done
patch
--- ./fonts.dir-out.sh~	2009-07-17 06:12:49.000000000 +0900
+++ ./fonts.dir-out.sh	2009-07-17 06:13:19.000000000 +0900
@@ -0,0 +1,59 @@
+#!/bin/sh
+countline(){
+  wc -l | sed -e 's/^[ 	]*//'
+}
+fonts_dir_org=/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
+fonts_dir=fonts.dir
+cp /dev/null $fonts_dir
+for phase in 1 2; do
+  case $phase in
+  1)
+    filter=countline
+    ;;
+  2)
+    filter=cat
+    ;;
+  esac
+  ([ -f "$fonts_dir_org" ] && sed -ne '2,$p' "$fonts_dir_org" | fgrep -v -- -mona
+  for f_f in\
+	mona-pgothic\
+; do
+    case $f_f in
+	mona-pgothic)	ttf=mona.ttf	; spc=p	;;
+    esac
+    for kind in\
+	normal\
+	slant\
+; do
+    case $kind in
+    normal)
+      ai=
+      s=r
+      ;;
+    slant)
+      ai='ai=0.2:'
+      s=s
+      ;;
+    esac
+    cat <<EOF
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-1
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-2
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-3
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-4
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-5
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-9
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-10
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-13
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-koi8-r
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-koi8-u
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-koi8-e
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-adobe-standard
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-ibm-cp437
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-jisx0201.1976-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-jisx0208.1983-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-jisx0208.1990-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso10646-1
+EOF
+    done
+  done) | $filter >> $fonts_dir
+done
installation
mkdir -p /opt/local/X11R6/lib/X11/fonts/truetype && cp *.ttf /opt/local/X11R6/lib/X11/fonts/truetype/

installed
/opt/local/X11R6/lib/X11/fonts/truetype/mona.ttf

fonts/tt/opfc-ModuleHP-1.1.1_withIPAMonaFonts-1.0.8

preparation
tar xvzf opfc-ModuleHP-1.1.1_withIPAMonaFonts-1.0.8.tar.gz '*/fonts'
#(cd opfc-ModuleHP-1.1.1_withIPAMonaFonts-1.0.8 && patch -p0 < ../opfc-ModuleHP-1.1.1_withIPAMonaFonts-1.0.8-ubagami.patch)
build
#(cd fonts && sh fonts.dir-out.sh)
echo nothing to be done
patch
--- ./fonts/fonts.dir-out.sh~	2005-09-02 23:07:44.000000000 +0900
+++ ./fonts/fonts.dir-out.sh	2005-09-02 23:03:23.000000000 +0900
@@ -0,0 +1,67 @@
+#!/bin/sh
+countline(){
+  wc -l | sed -e 's/^[ 	]*//'
+}
+fonts_dir_org=/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
+fonts_dir=fonts.dir
+cp /dev/null $fonts_dir
+for phase in 1 2; do
+  case $phase in
+  1)
+    filter=countline
+    ;;
+  2)
+    filter=cat
+    ;;
+  esac
+  ([ -f "$fonts_dir_org" ] && sed -ne '2,$p' "$fonts_dir_org" | fgrep -v ipamona
+  for f_f in\
+	ipamona-mincho\
+	ipamona-pmincho\
+	ipamona-gothic\
+	ipamona-pgothic\
+	ipamona-uigothic\
+; do
+    case $f_f in
+	ipamona-mincho)	ttf=ipam-mona.ttf	; spc=c	;;
+	ipamona-pmincho)	ttf=ipamp-mona.ttf	; spc=p	;;
+	ipamona-gothic)	ttf=ipag-mona.ttf	; spc=c	;;
+	ipamona-pgothic)	ttf=ipagp-mona.ttf	; spc=p	;;
+	ipamona-uigothic)	ttf=ipagui-mona.ttf	; spc=p	;;
+    esac
+    for kind in\
+	normal\
+	slant\
+; do
+    case $kind in
+    normal)
+      ai=
+      s=r
+      ;;
+    slant)
+      ai='ai=0.2:'
+      s=s
+      ;;
+    esac
+    cat <<EOF
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-1
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-2
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-3
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-4
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-5
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-9
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-10
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-13
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-koi8-r
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-koi8-u
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-koi8-e
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-adobe-standard
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-ibm-cp437
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-jisx0201.1976-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-jisx0208.1983-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-jisx0208.1990-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso10646-1
+EOF
+    done
+  done) | $filter >> $fonts_dir
+done
installation
#(cd fonts && mkdir -p /opt/local/X11R6/lib/X11/fonts/truetype && cp *.ttf fonts.dir /opt/local/X11R6/lib/X11/fonts/truetype)
(cd fonts && mkdir -p /opt/local/X11R6/lib/X11/fonts/truetype && chmod go+r *.ttf && cp *.ttf /opt/local/X11R6/lib/X11/fonts/truetype)
installed
/opt/local/X11R6/lib/X11/fonts/truetype/ipag-mona.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/ipagp-mona.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/ipagui-mona.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/ipam-mona.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/ipamp-mona.ttf

fonts/tt/IPAfont00203

preparation
unzip IPAfont00203.zip
(cd IPAfont00203 && patch -p0 < ../IPAfont00203-ubagami.patch)
build
sh fonts.dir-out.sh
patch
--- ./fonts.dir-out.sh~	2009-07-17 06:12:49.000000000 +0900
+++ ./fonts.dir-out.sh	2009-07-17 06:13:19.000000000 +0900
@@ -0,0 +1,67 @@
+#!/bin/sh
+countline(){
+  wc -l | sed -e 's/^[ 	]*//'
+}
+fonts_dir_org=/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
+fonts_dir=fonts.dir
+cp /dev/null $fonts_dir
+for phase in 1 2; do
+  case $phase in
+  1)
+    filter=countline
+    ;;
+  2)
+    filter=cat
+    ;;
+  esac
+  ([ -f "$fonts_dir_org" ] && sed -ne '2,$p' "$fonts_dir_org" | fgrep -v ipa
+  for f_f in\
+	ipa-mincho\
+	ipa-pmincho\
+	ipa-gothic\
+	ipa-pgothic\
+	ipa-uigothic\
+; do
+    case $f_f in
+	ipa-mincho)	ttf=ipam.ttf	; spc=c	;;
+	ipa-pmincho)	ttf=ipamp.ttf	; spc=p	;;
+	ipa-gothic)	ttf=ipag.ttf	; spc=c	;;
+	ipa-pgothic)	ttf=ipagp.ttf	; spc=p	;;
+	ipa-uigothic)	ttf=ipagui.ttf	; spc=p	;;
+    esac
+    for kind in\
+	normal\
+	slant\
+; do
+    case $kind in
+    normal)
+      ai=
+      s=r
+      ;;
+    slant)
+      ai='ai=0.2:'
+      s=s
+      ;;
+    esac
+    cat <<EOF
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-1
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-2
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-3
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-4
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-5
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-9
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-10
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso8859-13
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-koi8-r
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-koi8-u
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-koi8-e
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-adobe-standard
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-ibm-cp437
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-jisx0201.1976-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-jisx0208.1983-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-jisx0208.1990-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-${spc}-0-iso10646-1
+EOF
+    done
+  done) | $filter >> $fonts_dir
+done
installation
mkdir -p /opt/local/X11R6/lib/X11/fonts/truetype && cp *.ttf fonts.dir /opt/local/X11R6/lib/X11/fonts/truetype/

installed
/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
/opt/local/X11R6/lib/X11/fonts/truetype/ipag.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/ipagp.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/ipagui.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/ipam.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/ipamp.ttf

fonts/tt/sazanami-20040629

preparation
curl -RO -C - http://osdn.dl.sourceforge.jp/efont/10087/sazanami-20040629.tar.bz2
tar xvjf sazanami-20040629.tar.bz2
(cd sazanami-20040629 && patch -p0 < ../sazanami-20040629-ubagami.patch)
build
sh fonts.dir-out.sh 
patch
--- ./fonts.dir-out.sh~	2005-09-02 23:10:54.000000000 +0900
+++ ./fonts.dir-out.sh	2005-09-02 23:10:09.000000000 +0900
@@ -0,0 +1,58 @@
+#!/bin/sh
+countline(){
+  wc -l | sed -e 's/^[ 	]*//'
+}
+fonts_dir_org=/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
+fonts_dir=fonts.dir
+cp /dev/null $fonts_dir
+for phase in 1 2; do
+  case $phase in
+  1)
+    filter=countline
+    ;;
+  2)
+    filter=cat
+    ;;
+  esac
+  ([ -f "$fonts_dir_org" ] && sed -ne '2,$p' "$fonts_dir_org" | fgrep -v sazanami
+  for f_f in\
+	sazanami-mincho\
+	sazanami-gothic\
+; do
+    ttf=${f_f}.ttf
+    for kind in\
+	normal\
+	slant\
+; do
+    case $kind in
+    normal)
+      ai=
+      s=r
+      ;;
+    slant)
+      ai='ai=0.2:'
+      s=s
+      ;;
+    esac
+    cat <<EOF
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-iso8859-1
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-iso8859-2
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-iso8859-3
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-iso8859-4
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-iso8859-5
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-iso8859-9
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-iso8859-10
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-iso8859-13
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-koi8-r
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-koi8-u
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-koi8-e
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-adobe-standard
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-ibm-cp437
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-jisx0201.1976-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-jisx0208.1983-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-jisx0208.1990-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-iso10646-1
+EOF
+    done
+  done) | $filter >> $fonts_dir
+done
installation
mkdir -p /opt/local/X11R6/lib/X11/fonts/truetype && cp *.ttf fonts.dir /opt/local/X11R6/lib/X11/fonts/truetype
installed
/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
/opt/local/X11R6/lib/X11/fonts/truetype/sazanami-gothic.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/sazanami-mincho.ttf

fonts/tt/baekmuk-2002

preparation
curl -O -C - ftp://ftp.mizi.com/pub/baekmuk/baekmuk-ttf-2.1.tar.gz
[ ! -d baekmuk-2002 ] && mkdir baekmuk-2002
(cd baekmuk-2002 && tar xvzf ../baekmuk-ttf-2.1.tar.gz)
(cd baekmuk-2002 && patch -p0 < ../baekmuk-2002-ubagami.patch)
build
sh fonts.dir-out.sh 
patch
--- ./fonts.dir-out.sh~	2005-09-02 22:57:23.000000000 +0900
+++ ./fonts.dir-out.sh	2005-09-02 22:56:48.000000000 +0900
@@ -0,0 +1,51 @@
+#!/bin/sh
+countline(){
+  wc -l | sed -e 's/^[ 	]*//'
+}
+fonts_dir_org=/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
+fonts_dir=fonts.dir
+cp /dev/null $fonts_dir
+for phase in 1 2; do
+  case $phase in
+  1)
+    filter=countline
+    ;;
+  2)
+    filter=cat
+    ;;
+  esac
+  ([ -f "$fonts_dir_org" ] && sed -ne '2,$p' "$fonts_dir_org" | fgrep -v baekmuk
+  for f_f in\
+	baekmuk-batang\
+	baekmuk-dotum\
+	baekmuk-gulim\
+	baekmuk-headline\
+; do
+    case $f_f in
+	baekmuk-batang)		ttf=batang.ttf	;;
+	baekmuk-dotum)		ttf=dotum.ttf	;;
+	baekmuk-gulim)		ttf=gulim.ttf	;;
+	baekmuk-headline)	ttf=hline.ttf	;;
+    esac
+    for kind in\
+	normal\
+	slant\
+; do
+    case $kind in
+    normal)
+      ai=
+      s=r
+      ;;
+    slant)
+      ai='ai=0.2:'
+      s=s
+      ;;
+    esac
+    cat <<EOF
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-iso8859-1
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-ksx1001.1998-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-iso10646-1
+EOF
+    done
+  done) | $filter >> $fonts_dir
+done
installation
mkdir -p /opt/local/X11R6/lib/X11/fonts/truetype && cp *.ttf fonts.dir /opt/local/X11R6/lib/X11/fonts/truetype
installed
/opt/local/X11R6/lib/X11/fonts/truetype/batang.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/dotum.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
/opt/local/X11R6/lib/X11/fonts/truetype/gulim.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/hline.ttf

fonts/tt/arphic-1999

preparation
if [ ! -f arphic-1999.tar.bz2 ]; then
[ ! -d arphic-1999 ] && mkdir arphic-1999
(cd arphic-1999 &&
curl -O -C - ftp://ftp.gnu.org/pub/non-gnu/chinese-fonts-truetype/bkai00mp.ttf.gz
curl -O -C - ftp://ftp.gnu.org/pub/non-gnu/chinese-fonts-truetype/bsmi00lp.ttf.gz
curl -O -C - ftp://ftp.gnu.org/pub/non-gnu/chinese-fonts-truetype/gbsn00lp.ttf.gz
curl -O -C - ftp://ftp.gnu.org/pub/non-gnu/chinese-fonts-truetype/gkai00mp.ttf.gz
)
tar cvjf arphic-1999.tar.bz2 arphic-1999
else
tar xvjf arphic-1999.tar.bz2
fi
(cd arphic-1999 && patch -p0 < ../arphic-1999-ubagami.patch)
build
gunzip *.ttf.gz 
sh fonts.dir-out.sh 
patch
--- ./fonts.dir-out.sh~	2005-09-02 22:53:50.000000000 +0900
+++ ./fonts.dir-out.sh	2005-09-02 22:55:37.000000000 +0900
@@ -0,0 +1,60 @@
+#!/bin/sh
+countline(){
+  wc -l | sed -e 's/^[ 	]*//'
+}
+fonts_dir_org=/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
+fonts_dir=fonts.dir
+cp /dev/null $fonts_dir
+for phase in 1 2; do
+  case $phase in
+  1)
+    filter=countline
+    ;;
+  2)
+    filter=cat
+    ;;
+  esac
+  ([ -f "$fonts_dir_org" ] && sed -ne '2,$p' "$fonts_dir_org" | fgrep -v arphic
+  for f_f in\
+	arphic-zenkai\
+	arphic-shanheisun\
+	arphic-bousungeg\
+	arphic-gbzenkai\
+; do
+    case $f_f in
+	arphic-zenkai)		ttf=bkai00mp.ttf	;;
+	arphic-shanheisun)	ttf=bsmi00lp.ttf	;;
+	arphic-bousungeg)	ttf=gbsn00lp.ttf	;;
+	arphic-gbzenkai)	ttf=gkai00mp.ttf	;;
+    esac
+    for kind in\
+	normal\
+	slant\
+; do
+    case $kind in
+    normal)
+      ai=
+      s=r
+      ;;
+    slant)
+      ai='ai=0.2:'
+      s=s
+      ;;
+    esac
+    cat <<EOF
+${ai}bw=0.5:${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-iso8859-1
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-big5.eten-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-cns11643.1992-1
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-cns11643.1992-2
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-cns11643.1992-3
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-cns11643.1992-4
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-cns11643.1992-5
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-cns11643.1992-6
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-cns11643.1992-7
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-gb2312.80&gb8565.88-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-gb2312.1980-0
+${ai}${ttf} -${f_f}-medium-${s}-normal--0-0-0-0-c-0-iso10646-1
+EOF
+    done
+  done) | $filter >> $fonts_dir
+done
installation
mkdir -p /opt/local/X11R6/lib/X11/fonts/truetype && cp *.ttf fonts.dir /opt/local/X11R6/lib/X11/fonts/truetype/
installed
/opt/local/X11R6/lib/X11/fonts/truetype/bkai00mp.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/bsmi00lp.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/fonts.dir
/opt/local/X11R6/lib/X11/fonts/truetype/gbsn00lp.ttf
/opt/local/X11R6/lib/X11/fonts/truetype/gkai00mp.ttf

fonts/ot/IPAfont00301

preparation
unzip IPAfont00301.zip
build
echo nothing to be done

installation
mkdir -p /opt/local/X11R6/lib/X11/fonts/opentype && cp *.otf /opt/local/X11R6/lib/X11/fonts/opentype
installed
/opt/local/X11R6/lib/X11/fonts/opentype/ipag.otf
/opt/local/X11R6/lib/X11/fonts/opentype/ipagp.otf
/opt/local/X11R6/lib/X11/fonts/opentype/ipam.otf
/opt/local/X11R6/lib/X11/fonts/opentype/ipamp.otf

fonts/ot/oreilly-otf-2004

preparation
if [ ! -f oreilly-otf-2004.tar.bz2 ]; then
[ ! -d oreilly-otf-2004 ] && mkdir oreilly-otf-2004
(cd oreilly-otf-2004
wget -N ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaGothicStd-Bold.otf
wget -N ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaGothicStd-Regular.otf
wget -N ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaHoonminStd-Regular.otf
wget -N ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaMyungjoStd-Bold.otf
wget -N ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaMyungjoStd-Regular.otf
wget -N ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaScriptFreestyleStd-Bold.otf
wget -N ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaScriptFreestyleStd-Light.otf
wget -N ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaScriptStd-Bold.otf
wget -N ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/samples/MunhwaScriptStd-Light.otf
)
tar cvjf oreilly-otf-2004.tar.bz2 oreilly-otf-2004
else
tar xvjf oreilly-otf-2004.tar.bz2
fi
build
echo nothing to be done
installation
mkdir -p /opt/local/X11R6/lib/X11/fonts/opentype && cp *.otf /opt/local/X11R6/lib/X11/fonts/opentype
installed
/opt/local/X11R6/lib/X11/fonts/opentype/MunhwaGothicStd-Bold.otf
/opt/local/X11R6/lib/X11/fonts/opentype/MunhwaGothicStd-Regular.otf
/opt/local/X11R6/lib/X11/fonts/opentype/MunhwaHoonminStd-Regular.otf
/opt/local/X11R6/lib/X11/fonts/opentype/MunhwaMyungjoStd-Bold.otf
/opt/local/X11R6/lib/X11/fonts/opentype/MunhwaMyungjoStd-Regular.otf
/opt/local/X11R6/lib/X11/fonts/opentype/MunhwaScriptFreestyleStd-Bold.otf
/opt/local/X11R6/lib/X11/fonts/opentype/MunhwaScriptFreestyleStd-Light.otf
/opt/local/X11R6/lib/X11/fonts/opentype/MunhwaScriptStd-Bold.otf
/opt/local/X11R6/lib/X11/fonts/opentype/MunhwaScriptStd-Light.otf

fonts/ot/macosx-j-otf-2007

preparation
LN(){
  [ -f "$1" ] && ln -f "$1" "$2"
}
evallines(){
  while read line; do
    eval $line
  done
}
if [ ! -f macosx-j-otf-2007.tar.xz ]; then
[ ! -d macosx-j-otf-2007 ] && mkdir -p macosx-j-otf-2007
(cd macosx-j-otf-2007 &&
cat <<EOF | iconv -f EUC-JP -t UTF-8-MAC | evallines
#LN "/System/Library/Fonts/AquaKanaBold.otf"		AquaKana-Bold.otf
#LN "/System/Library/Fonts/AquaKanaRegular.otf"		AquaKana.otf
#
LN "/System/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf"	HiraMaruPro-W4.otf
LN "/System/Library/Fonts/ヒラギノ明朝 Pro W3.otf"	HiraMinPro-W3.otf
LN "/System/Library/Fonts/ヒラギノ明朝 Pro W6.otf"	HiraMinPro-W6.otf
LN "/System/Library/Fonts/ヒラギノ角ゴ Pro W3.otf"	HiraKakuPro-W3.otf
LN "/System/Library/Fonts/ヒラギノ角ゴ Pro W6.otf"	HiraKakuPro-W6.otf
LN "/System/Library/Fonts/ヒラギノ角ゴ Std W8.otf"	HiraKakuStd-W8.otf
#
LN "/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf"	HiraMinProN-W3.otf
LN "/System/Library/Fonts/ヒラギノ明朝 ProN W6.otf"	HiraMinProN-W6.otf
LN "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"	HiraKakuProN-W3.otf
LN "/System/Library/Fonts/ヒラギノ角ゴ ProN W6.otf"	HiraKakuProN-W6.otf
LN "/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf"	HiraMaruPro-W4.otf
LN "/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf"	HiraMaruProN-W4.otf
LN "/Library/Fonts/ヒラギノ明朝 Pro W3.otf"	HiraMinPro-W3.otf
LN "/Library/Fonts/ヒラギノ明朝 Pro W6.otf"	HiraMinPro-W6.otf
LN "/Library/Fonts/ヒラギノ角ゴ Pro W3.otf"	HiraKakuPro-W3.otf
LN "/Library/Fonts/ヒラギノ角ゴ Pro W6.otf"	HiraKakuPro-W6.otf
LN "/Library/Fonts/ヒラギノ角ゴ Std W8.otf"	HiraKakuStd-W8.otf
LN "/Library/Fonts/ヒラギノ角ゴ StdN W8.otf"	HiraKakuStdN-W8.otf
EOF
)
else
xzcat macosx-j-otf-2007.tar.xz | tar xvf -
fi
build
echo nothing to be done
installation
LN(){
  [ -f "$1" ] && ln -f "$1" "$2"
}
evallines(){
  while read line; do
    eval $line
  done
}
[ -d /opt/local/X11R6/lib/X11/fonts/opentype ] || mkdir -p /opt/local/X11R6/lib/X11/fonts/opentype
ln -f * /opt/local/X11R6/lib/X11/fonts/opentype/
(cd /opt/local/X11R6/lib/X11/fonts/opentype &&
cat <<EOF | iconv -f EUC-JP -t UTF-8-MAC | evallines
#LN "/System/Library/Fonts/AquaKanaBold.otf"		AquaKana-Bold.otf
#LN "/System/Library/Fonts/AquaKanaRegular.otf"		AquaKana.otf
#
LN "/System/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf"	HiraMaruPro-W4.otf
LN "/System/Library/Fonts/ヒラギノ明朝 Pro W3.otf"	HiraMinPro-W3.otf
LN "/System/Library/Fonts/ヒラギノ明朝 Pro W6.otf"	HiraMinPro-W6.otf
LN "/System/Library/Fonts/ヒラギノ角ゴ Pro W3.otf"	HiraKakuPro-W3.otf
LN "/System/Library/Fonts/ヒラギノ角ゴ Pro W6.otf"	HiraKakuPro-W6.otf
LN "/System/Library/Fonts/ヒラギノ角ゴ Std W8.otf"	HiraKakuStd-W8.otf
#
LN "/System/Library/Fonts/ヒラギノ明朝 ProN W3.otf"	HiraMinProN-W3.otf
LN "/System/Library/Fonts/ヒラギノ明朝 ProN W6.otf"	HiraMinProN-W6.otf
LN "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"	HiraKakuProN-W3.otf
LN "/System/Library/Fonts/ヒラギノ角ゴ ProN W6.otf"	HiraKakuProN-W6.otf
LN "/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf"	HiraMaruPro-W4.otf
LN "/Library/Fonts/ヒラギノ丸ゴ ProN W4.otf"	HiraMaruProN-W4.otf
LN "/Library/Fonts/ヒラギノ明朝 Pro W3.otf"	HiraMinPro-W3.otf
LN "/Library/Fonts/ヒラギノ明朝 Pro W6.otf"	HiraMinPro-W6.otf
LN "/Library/Fonts/ヒラギノ角ゴ Pro W3.otf"	HiraKakuPro-W3.otf
LN "/Library/Fonts/ヒラギノ角ゴ Pro W6.otf"	HiraKakuPro-W6.otf
LN "/Library/Fonts/ヒラギノ角ゴ Std W8.otf"	HiraKakuStd-W8.otf
LN "/Library/Fonts/ヒラギノ角ゴ StdN W8.otf"	HiraKakuStdN-W8.otf
EOF
)
installed
data_installed
/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuPro-W3.otf
/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuPro-W6.otf
/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuProN-W3.otf
/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuProN-W6.otf
/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuStd-W8.otf
/opt/local/X11R6/lib/X11/fonts/opentype/HiraKakuStdN-W8.otf
/opt/local/X11R6/lib/X11/fonts/opentype/HiraMaruPro-W4.otf
/opt/local/X11R6/lib/X11/fonts/opentype/HiraMaruProN-W4.otf
/opt/local/X11R6/lib/X11/fonts/opentype/HiraMinPro-W3.otf
/opt/local/X11R6/lib/X11/fonts/opentype/HiraMinPro-W6.otf
/opt/local/X11R6/lib/X11/fonts/opentype/HiraMinProN-W3.otf
/opt/local/X11R6/lib/X11/fonts/opentype/HiraMinProN-W6.otf

utils/findutils-4.4.2

preparation
curl -RO -C - http://ftp.gnu.org/pub/gnu/findutils/findutils-4.4.2.tar.gz
tar xvzf findutils-4.4.2.tar.gz
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CPP=cpp' --prefix=/opt/local --disable-nls 
make 
installed
/opt/local/bin/find
/opt/local/bin/locate
/opt/local/bin/oldfind
/opt/local/bin/updatedb
/opt/local/bin/xargs
/opt/local/libexec/bigram
/opt/local/libexec/code
/opt/local/libexec/frcode
/opt/local/share/info/find-maint.info
/opt/local/share/info/find.info
/opt/local/share/man/man1/find.1
/opt/local/share/man/man1/locate.1
/opt/local/share/man/man1/updatedb.1
/opt/local/share/man/man1/xargs.1
/opt/local/share/man/man5/locatedb.5

text/nkf-20090708

preparation
if [ ! -f nkf-20090708.tar.bz2 ]; then

if [ ! -d nkf ]; then
git clone git://git.sourceforge.jp/gitroot/nkf/nkf.git
else
(cd nkf &&
git pull
)
fi

[ ! -d nkf-20090708 ] && mkdir nkf-20090708
(cd nkf &&
tar cf - . | (cd ../nkf-20090708 && tar xf -)
)
tar cvjf nkf-20090708.tar.bz2 nkf-20090708

else

tar xvjf nkf-20090708.tar.bz2

fi

(cd nkf-20090708 &&
[ ! -f INSTALL ] || mv INSTALL INSTALL.txt
)
build
make CC='gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' prefix=/opt/local 
installation
make CC='gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' prefix=/opt/local install 
installed
/opt/local/bin/nkf
/opt/local/man/man1/nkf.1

pagers/lv451

preparation
curl -RO -C - http://www.ff.iij4u.or.jp/~nrt/freeware/lv451.tar.gz
tar xvzf lv451.tar.gz
build
env CC='gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp ./src/configure --prefix=/opt/local 
make 
installed
/opt/local/bin/lgrep
/opt/local/bin/lv
/opt/local/lib/lv/lv.hlp
/opt/local/man/man1/lv.1

pagers/less-382

preparation
curl -RO -C - http://www25.big.jp/~jam/less/less-382.tar.gz
curl -RO -C - http://www25.big.jp/~jam/less/less-382-iso258.patch.gz
tar xvzf less-382.tar.gz
(cd less-382 &&
gzcat ../less-382-iso258.patch.gz | patch -p1)
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local 
make 
installed
/opt/local/bin/less
/opt/local/bin/lessecho
/opt/local/bin/lesskey
/opt/local/man/man1/less.1
/opt/local/man/man1/lesskey.1

media/cdrdao-1.2.2

preparation
curl -RO -C - http://jaist.dl.sourceforge.net/sourceforge/cdrdao/cdrdao-1.2.2.tar.bz2
tar xvjf cdrdao-1.2.2.tar.bz2
(cd cdrdao-1.2.2 &&
patch -p0 -b -z.org < ../cdrdao-1.2.2-ubagami.patch
)
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local 
make 
patch
--- ./dao/ScsiIf-lib.cc~	2006-09-19 18:07:11.000000000 +0900
+++ ./dao/ScsiIf-lib.cc	2009-07-07 20:24:29.000000000 +0900
@@ -430,7 +430,7 @@
 #include "ScsiIf-common.cc"
 //<<<<<<< ScsiIf-lib.cc
 
-#ifndef linux
+#if !defined(linux) && !defined(__APPLE__)
 
 /* Function for mapping any SCSI device to the corresponding SG device.
  * Taken from D. Gilbert's example code.
--- ./scsilib/RULES/i386-darwin-cc.rul~	2002-10-18 02:51:13.000000000 +0900
+++ ./scsilib/RULES/i386-darwin-cc.rul	2009-07-07 20:10:44.000000000 +0900
@@ -0,0 +1,78 @@
+#ident "@(#)power-macintosh-darwin-cc.rul	1.7 02/10/17 "
+###########################################################################
+# Written 1996 by J. Schilling
+###########################################################################
+#
+# Platform dependent MACROS for Darwin-1.2 ff. (Apple MacOS X) PPC (GCC)
+#
+###########################################################################
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; see the file COPYING.  If not, write to
+# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+###########################################################################
+include $(SRCROOT)/$(RULESDIR)/rules.prg
+###########################################################################
+
+CPPFLAGS=	$(CPPOPTS) $(CPPOPTX)
+CFLAGS=		$(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX)
+
+CPPOPTS=	-I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
+COPTS=
+CWOPTS=		-Wall -Wtraditional \
+		-Wshadow -Wmissing-prototypes -Wstrict-prototypes
+COPTOPT=	-O
+KDEFINES=	-DKERNEL -D_KERNEL
+COPTDYN=	-fpic
+COPTGPROF=	-pg
+
+LIB_PREFIX=	lib
+LIB_SUFFIX=	.a
+SHL_SUFFIX=	.so.1.0
+
+LIB_SOCKET=
+LIB_MATH=	-lm
+LIB_KVM=	
+
+LIBS_PATH=	-L$(OLIBSDIR)
+
+LDFLAGS=	$(LDOPTS) $(LDOPTX)
+LDLIBS=		$(LIBS) $(LIBX)
+
+#LDOPTS=		$(LIBS_PATH) $(LDPATH) $(RUNPATH)
+LDOPTS=		$(LIBS_PATH) $(LDPATH) -framework IOKit -framework CoreFoundation
+LDOPTDYN=
+LNDYNLIB=	@
+
+FLOAT_OPTIONS=	
+
+CC=		@echo "	==> COMPILING \"$@\""; cc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
+LDCC=		@echo "	==> LINKING \"$@\""; cc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
+DYNLD=		@echo "	==> LINKING dynamic library \"$@\""; /usr/bin/libtool -dynamic
+RANLIB=		@echo "	==> RANDOMIZING ARCHIVE \"$@\""; ranlib
+ARFLAGS=	cr
+
+#
+# lorder seems not to work on some versions because Apple installed
+# a broken /bin/sh that is not POSIX cimpliant an will not
+# be able to run the /usr/bin/lorder script. The error messages are:
+#	type: not found
+#	type: not found
+#	lorder: nm: not found
+# ... disable it
+#
+LORDER=		echo
+TSORT=		cat
+
+RMDEP=		:
+MKDEP=		@echo "	==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -M
+MKDEP_OUT=
installed
/opt/local/bin/cdrdao
/opt/local/bin/cue2toc
/opt/local/bin/toc2cddb
/opt/local/bin/toc2cue
/opt/local/bin/toc2mp3
/opt/local/man/man1/cdrdao.1
/opt/local/man/man1/cue2toc.1
/opt/local/share/cdrdao/drivers

media/cdrtools-2.01.01a61

preparation
curl -O -C - ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-2.01.01a61.tar.bz2
tar xvjf cdrtools-2.01.01a61.tar.bz2
mv cdrtools-2.01.01 cdrtools-2.01.01a61
(cd cdrtools-2.01.01a61 &&
patch -p0 -b -z.org < ../cdrtools-2.01.01a61-ubagami.patch
)
build
make INS_BASE=/opt/local DEFINSUSR=root DEFINSGRP=wheel 
patch
--- ./RULES/i386-darwin-cc.rul~	2008-12-28 04:21:15.000000000 +0900
+++ ./RULES/i386-darwin-cc.rul	2009-07-07 19:14:53.000000000 +0900
@@ -0,0 +1,65 @@
+#ident "@(#)power-macintosh-darwin-cc.rul	1.14 08/12/27 "
+###########################################################################
+# Written 1996 by J. Schilling
+###########################################################################
+#
+# Platform dependent MACROS for Darwin-1.2 ff. (Apple MacOS X) PPC (GCC)
+#
+###########################################################################
+# Copyright (c) J. Schilling
+###########################################################################
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License, Version 1.0 only
+# (the "License").  You may not use this file except in compliance
+# with the License.
+#
+# See the file CDDL.Schily.txt in this distribution for details.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file CDDL.Schily.txt from this distribution.
+###########################################################################
+include $(SRCROOT)/$(RULESDIR)/rules.prg
+###########################################################################
+include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul
+
+OSDEFS +=
+
+KDEFINES=	-DKERNEL -D_KERNEL
+
+COPTDYN=	-fPIC
+
+LIB_PREFIX=	lib
+LIB_SUFFIX=	.a
+SHL_SUFFIX=	.dylib
+
+LIB_SOCKET=
+LIB_MATH=	-lm
+LIB_KVM=	
+
+#LDOPTS=		$(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%)
+LDOPTS=		$(LIBS_PATH) $(LDPATH) -framework IOKit -framework CoreFoundation
+LDOPTDYN=	-install_name $(INSBASE)/lib/$(TARGET)
+LDLIBDYN=	-lgcc
+LNDYNLIB=	@
+
+DYNLD=		@echo "	==> LINKING dynamic library \"$@\""; /usr/bin/libtool -dynamic
+RANLIB=		@echo "	==> RANDOMIZING ARCHIVE \"$@\""; ranlib
+
+#
+# lorder seems not to work on some versions because Apple installed
+# a broken /bin/sh that is not POSIX cimpliant an will not
+# be able to run the /usr/bin/lorder script. The error messages are:
+#	type: not found
+#	type: not found
+#	lorder: nm: not found
+# ... disable it
+#
+LORDER=		echo
+TSORT=		cat
+
+####
+# XXX Better use something like CC=cc
+####
+CC=		@echo "	==> COMPILING \"$@\""; cc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
+LDCC=		@echo "	==> LINKING \"$@\""; cc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
+MKDEP=		@echo "	==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); cc -M
installation
make INS_BASE=/opt/local DEFINSUSR=root DEFINSGRP=wheel install 
installed
/opt/local/bin/btcflash
/opt/local/bin/cdda2wav
/opt/local/bin/cdrecord
/opt/local/bin/devdump
/opt/local/bin/isodebug
/opt/local/bin/isodump
/opt/local/bin/isoinfo
/opt/local/bin/isovfy
/opt/local/bin/mkhybrid
/opt/local/bin/mkisofs
/opt/local/bin/readcd
/opt/local/bin/scgcheck
/opt/local/bin/scgskeleton
/opt/local/include/scg/aspi-dos.h
/opt/local/include/scg/aspi-win32.h
/opt/local/include/scg/scgcmd.h
/opt/local/include/scg/scgio.h
/opt/local/include/scg/scgops.h
/opt/local/include/scg/scsicdb.h
/opt/local/include/scg/scsidefs.h
/opt/local/include/scg/scsireg.h
/opt/local/include/scg/scsisense.h
/opt/local/include/scg/scsitransp.h
/opt/local/include/scg/spti-wnt.h
/opt/local/include/scg/srb_os2.h
/opt/local/include/schily/align.h
/opt/local/include/schily/alloca.h
/opt/local/include/schily/archdefs.h
/opt/local/include/schily/avoffset.h
/opt/local/include/schily/btorder.h
/opt/local/include/schily/ccomdefs.h
/opt/local/include/schily/checkerr.h
/opt/local/include/schily/deflts.h
/opt/local/include/schily/device.h
/opt/local/include/schily/dirent.h
/opt/local/include/schily/dlfcn.h
/opt/local/include/schily/errno.h
/opt/local/include/schily/fcntl.h
/opt/local/include/schily/fetchdir.h
/opt/local/include/schily/find.h
/opt/local/include/schily/fnmatch.h
/opt/local/include/schily/fstream.h
/opt/local/include/schily/getargs.h
/opt/local/include/schily/getcwd.h
/opt/local/include/schily/hostname.h
/opt/local/include/schily/i386-darwin-cc/align.h
/opt/local/include/schily/i386-darwin-cc/avoffset.h
/opt/local/include/schily/i386-darwin-cc/xconfig.h
/opt/local/include/schily/iconv.h
/opt/local/include/schily/idcache.h
/opt/local/include/schily/intcvt.h
/opt/local/include/schily/ioctl.h
/opt/local/include/schily/jmpdefs.h
/opt/local/include/schily/libport.h
/opt/local/include/schily/librmt.h
/opt/local/include/schily/limits.h
/opt/local/include/schily/locale.h
/opt/local/include/schily/maxpath.h
/opt/local/include/schily/mconfig.h
/opt/local/include/schily/md4.h
/opt/local/include/schily/md5.h
/opt/local/include/schily/mman.h
/opt/local/include/schily/mtio.h
/opt/local/include/schily/nlsdefs.h
	:

av/libquicktime-1.1.2

preparation
curl -ROL -C - http://downloads.sourceforge.net/libquicktime/libquicktime-1.1.2.tar.gz
tar xvzf libquicktime-1.1.2.tar.gz
build
./configure 'CC=gcc -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local --with-x --with-libdv --without-doxygen 
make 
installed
/opt/local/bin/lqt-config
/opt/local/bin/lqt_transcode
/opt/local/bin/lqtplay
/opt/local/bin/qt2text
/opt/local/bin/qtdechunk
/opt/local/bin/qtdump
/opt/local/bin/qtinfo
/opt/local/bin/qtrechunk
/opt/local/bin/qtstreamize
/opt/local/bin/qtyuv4toyuv
/opt/local/include/lqt/colormodels.h
/opt/local/include/lqt/lqt.h
/opt/local/include/lqt/lqt_atoms.h
/opt/local/include/lqt/lqt_codecapi.h
/opt/local/include/lqt/lqt_codecinfo.h
/opt/local/include/lqt/lqt_qtvr.h
/opt/local/include/lqt/lqt_version.h
/opt/local/include/lqt/quicktime.h
/opt/local/lib/libquicktime/lqt_audiocodec.la
/opt/local/lib/libquicktime/lqt_audiocodec.so
/opt/local/lib/libquicktime/lqt_dv.la
/opt/local/lib/libquicktime/lqt_dv.so
/opt/local/lib/libquicktime/lqt_ffmpeg.la
/opt/local/lib/libquicktime/lqt_ffmpeg.so
/opt/local/lib/libquicktime/lqt_lame.la
/opt/local/lib/libquicktime/lqt_lame.so
/opt/local/lib/libquicktime/lqt_mjpeg.la
/opt/local/lib/libquicktime/lqt_mjpeg.so
/opt/local/lib/libquicktime/lqt_png.la
/opt/local/lib/libquicktime/lqt_png.so
/opt/local/lib/libquicktime/lqt_rtjpeg.la
/opt/local/lib/libquicktime/lqt_rtjpeg.so
/opt/local/lib/libquicktime/lqt_videocodec.la
/opt/local/lib/libquicktime/lqt_videocodec.so
/opt/local/lib/libquicktime.0.dylib
/opt/local/lib/libquicktime.dylib
/opt/local/lib/libquicktime.la
/opt/local/lib/pkgconfig/libquicktime.pc
/opt/local/share/aclocal/lqt.m4
/opt/local/share/locale/de/LC_MESSAGES/libquicktime.mo
/opt/local/share/man/man1/lqtplay.1

av/libsamplerate-0.1.7

preparation
curl -RO -C - http://www.mega-nerd.com/SRC/libsamplerate-0.1.7.tar.gz
tar xvzf libsamplerate-0.1.7.tar.gz
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local --disable-fftw 
make 
installed
/opt/local/bin/sndfile-resample
/opt/local/include/samplerate.h
/opt/local/lib/libsamplerate.0.dylib
/opt/local/lib/libsamplerate.a
/opt/local/lib/libsamplerate.dylib
/opt/local/lib/libsamplerate.la
/opt/local/lib/pkgconfig/samplerate.pc

devel/pkg-config-0.23

preparation
curl -RO -C - http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz
tar xvzf pkg-config-0.23.tar.gz
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' --prefix=/opt/local 
make 
installed
/opt/local/bin/pkg-config
/opt/local/share/aclocal/pkg.m4
/opt/local/share/man/man1/pkg-config.1

av/twolame-0.3.12

preparation
curl -ROL -C - http://downloads.sourceforge.net/twolame/twolame-0.3.12.tar.gz
tar xvzf twolame-0.3.12.tar.gz
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local 
make 
installed
/opt/local/bin/twolame
/opt/local/include/twolame.h
/opt/local/lib/libtwolame.0.0.0.dylib
/opt/local/lib/libtwolame.0.dylib
/opt/local/lib/libtwolame.a
/opt/local/lib/libtwolame.dylib
/opt/local/lib/libtwolame.la
/opt/local/lib/pkgconfig/twolame.pc
/opt/local/share/doc/twolame/api.txt
/opt/local/share/doc/twolame/html/api.html
/opt/local/share/doc/twolame/html/authors.html
/opt/local/share/doc/twolame/html/changelog.html
/opt/local/share/doc/twolame/html/doxygen.css
/opt/local/share/doc/twolame/html/doxygen.png
/opt/local/share/doc/twolame/html/index.html
/opt/local/share/doc/twolame/html/psycho.html
/opt/local/share/doc/twolame/html/readme.html
/opt/local/share/doc/twolame/html/todo.html
/opt/local/share/doc/twolame/html/twolame-manpage.css
/opt/local/share/doc/twolame/html/twolame-quirks.css
/opt/local/share/doc/twolame/html/twolame.1.html
/opt/local/share/doc/twolame/html/twolame.css
/opt/local/share/doc/twolame/html/twolame_8h-source.html
/opt/local/share/doc/twolame/html/twolame_8h.html
/opt/local/share/doc/twolame/html/vbr.html
/opt/local/share/doc/twolame/psycho.txt
/opt/local/share/doc/twolame/vbr.txt
/opt/local/share/man/man1/twolame.1

av/libsndfile-1.0.20

preparation
curl -RO -C - http://www.mega-nerd.com/libsndfile/libsndfile-1.0.20.tar.gz
tar xvzf libsndfile-1.0.20.tar.gz
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_i386/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O executable"*)	;;
      *"ar archive random library"*)	;;
      *"Mach-O dynamically linked shared library"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
./configure --host=i686-apple-darwin 'CC=gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -) &&
  make clean distclean
} &&
./configure --host=powerpc-apple-darwin 'CC=gcc -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/bin/sndfile-cmp
/opt/local/bin/sndfile-convert
/opt/local/bin/sndfile-info
/opt/local/bin/sndfile-jackplay
/opt/local/bin/sndfile-metadata-get
/opt/local/bin/sndfile-metadata-set
/opt/local/bin/sndfile-play
/opt/local/bin/sndfile-regtest
/opt/local/include/sndfile.h
/opt/local/include/sndfile.hh
/opt/local/lib/libsndfile.1.dylib
/opt/local/lib/libsndfile.a
/opt/local/lib/libsndfile.dylib
/opt/local/lib/libsndfile.la
/opt/local/lib/pkgconfig/sndfile.pc
/opt/local/share/doc/libsndfile1-dev/html/api.html
/opt/local/share/doc/libsndfile1-dev/html/bugs.html
/opt/local/share/doc/libsndfile1-dev/html/command.html
/opt/local/share/doc/libsndfile1-dev/html/dither.html
/opt/local/share/doc/libsndfile1-dev/html/embedded_files.html
/opt/local/share/doc/libsndfile1-dev/html/FAQ.html
/opt/local/share/doc/libsndfile1-dev/html/index.html
/opt/local/share/doc/libsndfile1-dev/html/libsndfile.css
/opt/local/share/doc/libsndfile1-dev/html/libsndfile.jpg
/opt/local/share/doc/libsndfile1-dev/html/lists.html
/opt/local/share/doc/libsndfile1-dev/html/new_file_type.HOWTO
/opt/local/share/doc/libsndfile1-dev/html/octave.html
/opt/local/share/doc/libsndfile1-dev/html/pkgconfig.html
/opt/local/share/doc/libsndfile1-dev/html/sndfile_info.html
/opt/local/share/doc/libsndfile1-dev/html/tutorial.html
/opt/local/share/doc/libsndfile1-dev/html/win32.html
/opt/local/share/man/man1/sndfile-convert.1
/opt/local/share/man/man1/sndfile-info.1
/opt/local/share/man/man1/sndfile-play.1

db/sqlite-3.6.16

preparation
curl -RO -C - http://www.sqlite.org/sqlite-3.6.16.tar.gz
tar xvzf sqlite-3.6.16.tar.gz
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local --disable-tcl 
make 
installed
/opt/local/bin/sqlite3
/opt/local/include/sqlite3.h
/opt/local/include/sqlite3ext.h
/opt/local/lib/libsqlite3.0.dylib
/opt/local/lib/libsqlite3.a
/opt/local/lib/libsqlite3.dylib
/opt/local/lib/libsqlite3.la
/opt/local/lib/pkgconfig/sqlite3.pc

av/libdca-20090708

preparation
if [ ! -f libdca-20090708.tar.bz2 ]; then

if [ ! -d libdca ]; then
svn checkout svn://svn.videolan.org/libdca/trunk libdca
else
(cd libdca &&
svn update
)
fi

[ ! -d libdca-20090708 ] && mkdir libdca-20090708
(cd libdca &&
tar cf - . | (cd ../libdca-20090708 && tar xf -)
)
tar cvjf libdca-20090708.tar.bz2 libdca-20090708

else

tar xvjf libdca-20090708.tar.bz2

fi
build
autoreconf -i 
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local 
make 
installed
/opt/local/bin/dcadec
/opt/local/bin/dtsdec
/opt/local/bin/extract_dca
/opt/local/bin/extract_dts
/opt/local/include/dca.h
/opt/local/include/dts.h
/opt/local/lib/libdca.0.dylib
/opt/local/lib/libdca.a
/opt/local/lib/libdca.dylib
/opt/local/lib/libdca.la
/opt/local/lib/libdts.a
/opt/local/lib/pkgconfig/libdca.pc
/opt/local/lib/pkgconfig/libdts.pc
/opt/local/share/man/man1/dcadec.1
/opt/local/share/man/man1/dtsdec.1
/opt/local/share/man/man1/extract_dca.1
/opt/local/share/man/man1/extract_dts.1

av/libdv-1.0.0

preparation
curl -RO -C - http://jaist.dl.sourceforge.net/sourceforge/libdv/libdv-1.0.0.tar.gz
tar xvzf libdv-1.0.0.tar.gz
build
./configure 'CC=gcc -std=gnu99 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CPPFLAGS=-I/opt/local/include -Dsched_setscheduler=pthread_setschedparam' LDFLAGS=-L/opt/local/lib --prefix=/opt/local --enable-sdl --disable-gtk --without-x --disable-asm &&
make 
installed
/opt/local/bin/dubdv
/opt/local/bin/dvconnect
/opt/local/bin/encodedv
/opt/local/include/libdv/dv.h
/opt/local/include/libdv/dv_types.h
/opt/local/lib/libdv.4.0.3.dylib
/opt/local/lib/libdv.4.dylib
/opt/local/lib/libdv.a
/opt/local/lib/libdv.dylib
/opt/local/lib/libdv.la
/opt/local/lib/pkgconfig/libdv.pc
/opt/local/share/man/man1/dubdv.1
/opt/local/share/man/man1/dvconnect.1
/opt/local/share/man/man1/encodedv.1

libs/popt-1.14

preparation
curl -RO -C - http://rpm5.org/files/popt/popt-1.14.tar.gz
tar xvzf popt-1.14.tar.gz
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' --prefix=/opt/local --disable-nls 
make 
installed
/opt/local/include/popt.h
/opt/local/lib/libpopt.0.0.0.dylib
/opt/local/lib/libpopt.0.dylib
/opt/local/lib/libpopt.a
/opt/local/lib/libpopt.dylib
/opt/local/lib/libpopt.la
/opt/local/share/man/man3/popt.3

av/libdvdnav-4.1.3

preparation
curl -ROL -C - http://www.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdnav-4.1.3.tar.bz2
tar xvjf libdvdnav-4.1.3.tar.bz2
(cd libdvdnav-4.1.3 &&
patch -p0 -b -z.org < ../libdvdnav-4.1.3-ubagami.patch
)
build
./autogen.sh noconfig 
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local 
make 
patch
--- ./configure.ac.org	2008-08-30 22:02:17.000000000 +0900
+++ ./configure.ac	2009-07-08 15:22:56.000000000 +0900
@@ -178,19 +178,17 @@
 dnl ---------------------------------------------
 dnl libdvdread
 dnl ---------------------------------------------
-AC_ARG_WITH([dvdread-config],
-  [AS_HELP_STRING([--with-dvdread-config=PROG],
-    [dvdread-config program to use @<:@default=from PATH@:>@])],
-  [DVDREAD_CONFIG="$withval"],
-  [dnl User didn't specify program, search PATH
-  AC_PATH_PROG([DVDREAD_CONFIG], [dvdread-config], [no])
-  test "x$DVDREAD_CONFIG" = xno && \
-    AC_MSG_ERROR([dvdread-config required to link with libdvdread])
-  ])
-DVDREAD_CFLAGS=`$DVDREAD_CONFIG --cflags` || \
-  AC_MSG_ERROR([Could not get libdvdread CFLAGS from $DVDREAD_CONFIG])
-DVDREAD_LIBS=`$DVDREAD_CONFIG --libs` || \
-  AC_MSG_ERROR([Could not get libdvdread LIBS from $DVDREAD_CONFIG])
+dnl AC_ARG_WITH([dvdread-config],
+dnl   [AS_HELP_STRING([--with-dvdread-config=PROG],
+dnl     [dvdread-config program to use @<:@default=from PATH@:>@])],
+dnl   [DVDREAD_CONFIG="$withval"],
+dnl   [dnl User didn't specify program, search PATH
+dnl   AC_PATH_PROG([DVDREAD_CONFIG], [dvdread-config], [no])
+dnl   test "x$DVDREAD_CONFIG" = xno && \
+dnl     AC_MSG_ERROR([dvdread-config required to link with libdvdread])
+dnl   ])
+DVDREAD_CFLAGS=-I/opt/local/include
+DVDREAD_LIBS="-L/opt/local/lib -ldvdread"
 AC_SUBST([DVDREAD_CFLAGS])
 AC_SUBST([DVDREAD_LIBS])
 
installed
/opt/local/bin/dvdnav-config
/opt/local/include/dvdnav/dvd_types.h
/opt/local/include/dvdnav/dvdnav.h
/opt/local/include/dvdnav/dvdnav_events.h
/opt/local/lib/libdvdnav.4.dylib
/opt/local/lib/libdvdnav.dylib
/opt/local/lib/libdvdnav.la
/opt/local/lib/libdvdnavmini.4.dylib
/opt/local/lib/libdvdnavmini.dylib
/opt/local/lib/libdvdnavmini.la
/opt/local/lib/pkgconfig/dvdnav.pc
/opt/local/lib/pkgconfig/dvdnavmini.pc
/opt/local/share/aclocal/dvdnav.m4

av/dvdauthor-0.6.14

preparation
curl -ROL -C - http://downloads.sourceforge.net/dvdauthor/dvdauthor-0.6.14.tar.gz
tar xvzf dvdauthor-0.6.14.tar.gz
(cd dvdauthor-0.6.14 &&
patch -p0 -b -z.org < ../dvdauthor-0.6.14-ubagami.patch
)
build
#./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local 
./configure 'CC=gcc -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CPPFLAGS=-I/opt/local/include -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include' 'LDFLAGS=-L/opt/local/lib -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib' --prefix=/opt/local 
make 
patch
--- ./src/readxml.c~	2007-01-11 10:43:37.000000000 +0900
+++ ./src/readxml.c	2009-07-08 14:10:07.000000000 +0900
@@ -26,6 +26,10 @@
 #include <errno.h>
 #include <fcntl.h>
 
+#ifdef HAVE_ICONV
+#include <iconv.h>
+#endif
+
 #include <libxml/xmlreader.h>
 
 #include "readxml.h"
installed
/opt/local/bin/dvdauthor
/opt/local/bin/dvddirdel
/opt/local/bin/dvdunauthor
/opt/local/bin/mpeg2desc
/opt/local/bin/spumux
/opt/local/bin/spuunmux
/opt/local/share/dvdauthor/dvdauthor.xsd
/opt/local/share/dvdauthor/spumux.xsd
/opt/local/share/man/man1/dvdauthor.1
/opt/local/share/man/man1/dvddirdel.1
/opt/local/share/man/man1/dvdunauthor.1
/opt/local/share/man/man1/mpeg2desc.1
/opt/local/share/man/man1/spumux.1
/opt/local/share/man/man1/spuunmux.1

av/vobcopy-1.2.0

preparation
curl -RO -C - http://lpn.rnbhq.org/download/vobcopy-1.2.0.tar.bz2
tar xvjf vobcopy-1.2.0.tar.bz2
build
./configure.sh --prefix=/opt/local --with-dvdread-libs=/opt/local --with-lfs 
make 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 
installed
/opt/local/bin/vobcopy
/opt/local/man/de/man1/vobcopy.1
/opt/local/man/man1/vobcopy.1
/opt/local/share/doc/vobcopy/Changelog
/opt/local/share/doc/vobcopy/COPYING
/opt/local/share/doc/vobcopy/README
/opt/local/share/doc/vobcopy/Release-Notes
/opt/local/share/doc/vobcopy/TODO

av/dvdbackup-0.4.1

preparation
curl -ROL -C - http://downloads.sourceforge.net/dvdbackup/dvdbackup-0.4.1.tar.bz2
tar xvjf dvdbackup-0.4.1.tar.bz2
(cd dvdbackup-0.4.1 &&
patch -p0 -b -z.org < ../dvdbackup-0.4.1-ubagami.patch
)
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local --disable-nls 
make 
patch
--- ./src/dvdbackup.c~	2009-06-09 07:25:29.000000000 +0900
+++ ./src/dvdbackup.c	2009-07-08 02:27:46.000000000 +0900
@@ -1627,6 +1627,13 @@
 
 	vts_title = titles_info->titles[titles - 1].vts_title;
 
+	if (start_chapter > titles_info->titles[titles - 1].chapters &&
+	    end_chapter > titles_info->titles[titles - 1].chapters) {
+		fprintf(stderr, _("Overflowed the start_chapter; only %d chapters in %d title\n"), start_chapter,titles);
+		fprintf(stderr, _("Overflowed the end_chapter; only %d chapters in %d title\n"), end_chapter,titles);
+		return(1);
+	}
+
 	if (end_chapter > titles_info->titles[titles - 1].chapters) {
 		end_chapter = titles_info->titles[titles - 1].chapters;
 		fprintf(stderr, _("Truncated the end_chapter; only %d chapters in %d title\n"), end_chapter,titles);
@@ -1634,7 +1641,7 @@
 
 	if (start_chapter > titles_info->titles[titles - 1].chapters) {
 		start_chapter = titles_info->titles[titles - 1].chapters;
-		fprintf(stderr, _("Truncated the end_chapter; only %d chapters in %d title\n"), end_chapter,titles);
+		fprintf(stderr, _("Truncated the start_chapter; only %d chapters in %d title\n"), start_chapter,titles);
 	}
 
 
installed
/opt/local/bin/dvdbackup
/opt/local/share/doc/dvdbackup/NEWS
/opt/local/share/doc/dvdbackup/README
/opt/local/share/man/man1/dvdbackup.1

av/libdvdread-0.9.7

preparation
curl -RO -C - http://www.dtek.chalmers.se/groups/dvd/dist/libdvdread-0.9.7.tar.gz
curl -RO -C - http://ftp.de.debian.org/debian/pool/main/libd/libdvdread/libdvdread_0.9.7-11.diff.gz
tar xvzf libdvdread-0.9.7.tar.gz
(cd libdvdread-0.9.7 &&
gzcat ../libdvdread_0.9.7-11.diff.gz | patch -p1 -b -z.orig &&
for p in debian/patches/*-kfreebsd.dpatch debian/patches/*-udf.dpatch; do
  patch -p1 -b -z.orig < "$p"
done &&
patch -p0 -b -z.org < ../libdvdread-0.9.7-ubagami.patch
)
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local --with-libdvdcss 
make 
patch
--- ./dvdread/dvd_input.c~	2005-09-19 22:43:08.000000000 +0900
+++ ./dvdread/dvd_input.c	2007-09-19 23:28:04.000000000 +0900
@@ -74,6 +74,11 @@
   int fd;
 };
 
+#if defined(__DARWIN__)
+#define SHLIBDVD_SUFFIX "2.dylib"
+#else
+#define SHLIBDVD_SUFFIX "so.2"
+#endif
 
 /**
  * initialize and open a DVD device or file.
@@ -332,7 +337,7 @@
 
 #else
 
-  dvdcss_library = dlopen("libdvdcss.so.2", RTLD_LAZY);
+  dvdcss_library = dlopen("libdvdcss."SHLIBDVD_SUFFIX, RTLD_LAZY);
 
   if(dvdcss_library != NULL) {
 #if defined(__OpenBSD__) && !defined(__ELF__)
@@ -367,7 +372,7 @@
     } else if(!DVDcss_open  || !DVDcss_close || !DVDcss_title || !DVDcss_seek
               || !DVDcss_read || !DVDcss_error || !dvdcss_version) {
       if(verbose >= 0) {
-        fprintf(stderr,  "libdvdread: Missing symbols in libdvdcss.so.2, "
+        fprintf(stderr,  "libdvdread: Missing symbols in libdvdcss."SHLIBDVD_SUFFIX", "
                 "this shouldn't happen !\n");
       }
       dlclose(dvdcss_library);
installed
/opt/local/include/dvdread/cmd_print.h
/opt/local/include/dvdread/dvd_reader.h
/opt/local/include/dvdread/ifo_print.h
/opt/local/include/dvdread/ifo_read.h
/opt/local/include/dvdread/ifo_types.h
/opt/local/include/dvdread/nav_print.h
/opt/local/include/dvdread/nav_read.h
/opt/local/include/dvdread/nav_types.h
/opt/local/lib/libdvdread.3.2.1.dylib
/opt/local/lib/libdvdread.3.dylib
/opt/local/lib/libdvdread.a
/opt/local/lib/libdvdread.dylib
/opt/local/lib/libdvdread.la

av/libdvdcss-1.2.9

preparation
curl -RO -C - http://download.videolan.org/pub/libdvdcss/1.2.9/libdvdcss-1.2.9.tar.bz2
tar xvjf libdvdcss-1.2.9.tar.bz2
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' --prefix=/opt/local 
make 
installed
/opt/local/include/dvdcss/dvdcss.h
/opt/local/lib/libdvdcss.2.0.8.dylib
/opt/local/lib/libdvdcss.2.dylib
/opt/local/lib/libdvdcss.a
/opt/local/lib/libdvdcss.dylib
/opt/local/lib/libdvdcss.la

av/mpeg2/mpeg2dec-0.4.1

preparation
curl -RO -C - http://libmpeg2.sourceforge.net/files/mpeg2dec-0.4.1.tar.gz
tar xvzf mpeg2dec-0.4.1.tar.gz
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_i386/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O executable"*)	;;
      *"ar archive random library"*)	;;
      *"Mach-O dynamically linked shared library"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
./configure --host=i686-apple-darwin8 CC='gcc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CXX='g++ -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXCPP='g++ -E' CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local --enable-shared &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -) &&
  make clean distclean
} &&
./configure --host=powerpc-apple-darwin8 CC='gcc -arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CXX='g++ -arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXCPP='g++ -E' CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local --enable-shared &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
patch
--- ./libmpeg2/cpu_accel.c~	2003-10-06 11:31:52.000000000 +0900
+++ ./libmpeg2/cpu_accel.c	2005-08-21 07:54:39.000000000 +0900
@@ -29,9 +29,12 @@
 #include "attributes.h"
 #include "mpeg2_internal.h"
 
+/*#define INLINE inline*/
+#define INLINE
+
 #ifdef ACCEL_DETECT
 #ifdef ARCH_X86
-static inline uint32_t arch_accel (void)
+static INLINE uint32_t arch_accel (void)
 {
     uint32_t eax, ebx, ecx, edx;
     int AMD;
@@ -127,7 +130,7 @@
 }
 
 #ifdef ARCH_PPC
-static inline uint32_t arch_accel (void)
+static INLINE uint32_t arch_accel (void)
 {
     static RETSIGTYPE (* oldsig) (int);
 
@@ -157,7 +160,7 @@
 #endif /* ARCH_PPC */
 
 #ifdef ARCH_SPARC
-static inline uint32_t arch_accel (void)
+static INLINE uint32_t arch_accel (void)
 {
     static RETSIGTYPE (* oldsig) (int);
 
@@ -193,7 +196,7 @@
 #endif /* ARCH_PPC || ARCH_SPARC */
 
 #ifdef ARCH_ALPHA
-static inline uint32_t arch_accel (void)
+static INLINE uint32_t arch_accel (void)
 {
     uint64_t no_mvi;
 
installed
/opt/local/bin/corrupt_mpeg2
/opt/local/bin/extract_mpeg2
/opt/local/bin/mpeg2dec
/opt/local/include/mpeg2dec/mpeg2.h
/opt/local/include/mpeg2dec/mpeg2convert.h
/opt/local/lib/libmpeg2.0.0.0.dylib
/opt/local/lib/libmpeg2.0.dylib
/opt/local/lib/libmpeg2.a
/opt/local/lib/libmpeg2.dylib
/opt/local/lib/libmpeg2.la
/opt/local/lib/libmpeg2convert.0.0.0.dylib
/opt/local/lib/libmpeg2convert.0.dylib
/opt/local/lib/libmpeg2convert.a
/opt/local/lib/libmpeg2convert.dylib
/opt/local/lib/libmpeg2convert.la
/opt/local/lib/pkgconfig/libmpeg2.pc
/opt/local/lib/pkgconfig/libmpeg2convert.pc
/opt/local/man/man1/extract_mpeg2.1
/opt/local/man/man1/mpeg2dec.1

av/mpeg2/mpeg2vidcodec_v12

preparation
curl -O -C - ftp://ftp.mpegtv.com/pub/mpeg/mssg/mpeg2vidcodec_v12.tar.gz
tar xvzf mpeg2vidcodec_v12.tar.gz
mv mpeg2 mpeg2vidcodec_v12
build
make CC='gcc -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' INCLUDEDIR=-I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include LIBRARYDIR=-L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib USE_DISP=-DDISPLAY 'LIBS=-lXext -lX11' USE_SHMEM=-DSH_MEM 
installation
cp src/mpeg2dec/mpeg2decode src/mpeg2enc/mpeg2encode /opt/local/bin 
installed
/opt/local/bin/mpeg2decode
/opt/local/bin/mpeg2encode

av/players/mplayer/ffmpeg-20090704

preparation
if [ ! -f ffmpeg-20090704.tar.bz2 ]; then

if [ ! -d ffmpeg ]; then
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
else
(cd ffmpeg &&
svn update
)
fi

[ ! -d ffmpeg-20090704 ] && mkdir ffmpeg-20090704
(cd ffmpeg &&
tar cf - . | (cd ../ffmpeg-20090704 && tar xf -)
)
tar cvjf ffmpeg-20090704.tar.bz2 ffmpeg-20090704

else

tar xvjf ffmpeg-20090704.tar.bz2

fi
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_i386/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O executable"*)	;;
      *"ar archive random library"*)	;;
      *"Mach-O dynamically linked shared library"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
configure_args='--prefix=/opt/local --enable-libfaad --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libopenjpeg --enable-shared --enable-pthreads --enable-gpl --enable-nonfree'
configure_args="$configure_args --enable-avfilter --enable-avfilter-lavf --enable-x11grab"
./configure --arch=i386 --extra-cflags='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include' --extra-ldflags='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -L/opt/local/lib' $configure_args &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -) &&
  make clean distclean
} &&
./configure --arch=ppc --extra-cflags='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include' --extra-ldflags='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -L/opt/local/lib' $configure_args &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/bin/ffmpeg
/opt/local/bin/ffplay
/opt/local/bin/ffserver
/opt/local/include/libavcodec/avcodec.h
/opt/local/include/libavcodec/opt.h
/opt/local/include/libavcodec/vdpau.h
/opt/local/include/libavcodec/xvmc.h
/opt/local/include/libavdevice/avdevice.h
/opt/local/include/libavfilter/avfilter.h
/opt/local/include/libavformat/avformat.h
/opt/local/include/libavformat/avio.h
/opt/local/include/libavutil/adler32.h
/opt/local/include/libavutil/avstring.h
/opt/local/include/libavutil/avutil.h
/opt/local/include/libavutil/base64.h
/opt/local/include/libavutil/common.h
/opt/local/include/libavutil/crc.h
/opt/local/include/libavutil/fifo.h
/opt/local/include/libavutil/intfloat_readwrite.h
/opt/local/include/libavutil/log.h
/opt/local/include/libavutil/lzo.h
/opt/local/include/libavutil/mathematics.h
/opt/local/include/libavutil/md5.h
/opt/local/include/libavutil/mem.h
/opt/local/include/libavutil/pixfmt.h
/opt/local/include/libavutil/rational.h
/opt/local/include/libavutil/sha1.h
/opt/local/include/libswscale/swscale.h
/opt/local/lib/libavcodec.52.32.0.dylib
/opt/local/lib/libavcodec.52.dylib
/opt/local/lib/libavcodec.a
/opt/local/lib/libavcodec.dylib
/opt/local/lib/libavdevice.52.2.0.dylib
/opt/local/lib/libavdevice.52.dylib
/opt/local/lib/libavdevice.a
/opt/local/lib/libavdevice.dylib
/opt/local/lib/libavfilter.0.5.0.dylib
/opt/local/lib/libavfilter.0.dylib
/opt/local/lib/libavfilter.a
/opt/local/lib/libavfilter.dylib
/opt/local/lib/libavformat.52.36.0.dylib
/opt/local/lib/libavformat.52.dylib
/opt/local/lib/libavformat.a
/opt/local/lib/libavformat.dylib
/opt/local/lib/libavutil.50.3.0.dylib
/opt/local/lib/libavutil.50.dylib
/opt/local/lib/libavutil.a
/opt/local/lib/libavutil.dylib
/opt/local/lib/libswscale.0.7.1.dylib
/opt/local/lib/libswscale.0.dylib
/opt/local/lib/libswscale.a
/opt/local/lib/libswscale.dylib
/opt/local/lib/pkgconfig/libavcodec.pc
/opt/local/lib/pkgconfig/libavdevice.pc
/opt/local/lib/pkgconfig/libavfilter.pc
/opt/local/lib/pkgconfig/libavformat.pc
/opt/local/lib/pkgconfig/libavutil.pc
/opt/local/lib/pkgconfig/libswscale.pc
/opt/local/share/ffmpeg/libx264-baseline.ffpreset
/opt/local/share/ffmpeg/libx264-default.ffpreset
/opt/local/share/ffmpeg/libx264-fastfirstpass.ffpreset
/opt/local/share/ffmpeg/libx264-hq.ffpreset
/opt/local/share/ffmpeg/libx264-ipod320.ffpreset
/opt/local/share/ffmpeg/libx264-ipod640.ffpreset
	:

av/lame-398-2

preparation
curl -ROL -C - http://downloads.sourceforge.net/lame/lame-398-2.tar.gz
tar xvzf lame-398-2.tar.gz
build
./configure CC='gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CXX='g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXCPP='g++ -E' CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local 
make 
installed
/opt/local/bin/lame
/opt/local/include/lame/lame.h
/opt/local/lib/libmp3lame.0.0.0.dylib
/opt/local/lib/libmp3lame.0.dylib
/opt/local/lib/libmp3lame.a
/opt/local/lib/libmp3lame.dylib
/opt/local/lib/libmp3lame.la
/opt/local/share/doc/lame/html/basic.html
/opt/local/share/doc/lame/html/contributors.html
/opt/local/share/doc/lame/html/examples.html
/opt/local/share/doc/lame/html/history.html
/opt/local/share/doc/lame/html/id3.html
/opt/local/share/doc/lame/html/index.html
/opt/local/share/doc/lame/html/lame.css
/opt/local/share/doc/lame/html/modes.html
/opt/local/share/doc/lame/html/node6.html
/opt/local/share/doc/lame/html/switchs.html
/opt/local/share/man/man1/lame.1

av/x264-20090704

preparation
if [ ! -f x264-20090704.tar.bz2 ]; then

if [ ! -d x264 ]; then
git clone git://git.videolan.org/x264.git
else
(cd x264 &&
git pull
)
fi

[ -d x264-20090704 ] || mkdir x264-20090704
(cd x264 &&
tar cf - . | (cd ../x264-20090704 && tar xf -)
)
tar cvjf x264-20090704.tar.bz2 x264-20090704

else

tar xvjf x264-20090704.tar.bz2

fi
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_i386/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O executable"*)	;;
      *"ar archive random library"*)	;;
      *"Mach-O dynamically linked shared library"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
./configure --host=i686-apple-darwin8 --extra-cflags='-arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include' --extra-ldflags='-arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -L/opt/local/lib -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib' --prefix=/opt/local --enable-asm --enable-visualize --enable-pic --enable-shared &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -) &&
  make clean distclean
} &&
./configure --host=powerpc-apple-darwin8 --extra-cflags='-arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include' --extra-ldflags='-arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -L/opt/local/lib -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib' --prefix=/opt/local --enable-asm --enable-visualize --enable-pic --enable-shared &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/bin/x264
/opt/local/include/x264.h
/opt/local/lib/libx264.67.dylib
/opt/local/lib/libx264.a
/opt/local/lib/libx264.dylib
/opt/local/lib/pkgconfig/x264.pc

lang/asm/yasm-0.8.0

preparation
curl -RO -C - http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz
tar xvzf yasm-0.8.0.tar.gz
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local 
make 
installed
/opt/local/bin/yasm
/opt/local/bin/ytasm
/opt/local/include/libyasm/arch.h
/opt/local/include/libyasm/assocdat.h
/opt/local/include/libyasm/bitvect.h
/opt/local/include/libyasm/bytecode.h
/opt/local/include/libyasm/compat-queue.h
/opt/local/include/libyasm/coretype.h
/opt/local/include/libyasm/dbgfmt.h
/opt/local/include/libyasm/errwarn.h
/opt/local/include/libyasm/expr.h
/opt/local/include/libyasm/file.h
/opt/local/include/libyasm/floatnum.h
/opt/local/include/libyasm/hamt.h
/opt/local/include/libyasm/insn.h
/opt/local/include/libyasm/intnum.h
/opt/local/include/libyasm/inttree.h
/opt/local/include/libyasm/linemap.h
/opt/local/include/libyasm/listfmt.h
/opt/local/include/libyasm/md5.h
/opt/local/include/libyasm/module.h
/opt/local/include/libyasm/objfmt.h
/opt/local/include/libyasm/parser.h
/opt/local/include/libyasm/phash.h
/opt/local/include/libyasm/preproc.h
/opt/local/include/libyasm/section.h
/opt/local/include/libyasm/symrec.h
/opt/local/include/libyasm/valparam.h
/opt/local/include/libyasm/value.h
/opt/local/include/libyasm-stdint.h
/opt/local/include/libyasm.h
/opt/local/lib/libyasm.a
/opt/local/share/man/man1/yasm.1
/opt/local/share/man/man7/yasm_arch.7
/opt/local/share/man/man7/yasm_dbgfmts.7
/opt/local/share/man/man7/yasm_objfmts.7
/opt/local/share/man/man7/yasm_parsers.7

libs/libsdl/SDL-1.2.13

preparation
curl -RO -C - http://www.libsdl.org/release/SDL-1.2.13.tar.gz
tar xvzf SDL-1.2.13.tar.gz
build
listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_i386/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O executable"*)	;;
      *"ar archive random library"*)	;;
      *"Mach-O dynamically linked shared library"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
#
./configure --host=i686-apple-darwin8 CC='gcc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CXX='g++ -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXCPP='g++ -E' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -) &&
  make clean distclean
} &&
./configure --host=powerpc-apple-darwin8 CC='gcc -arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CXX='g++ -arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXCPP='g++ -E' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}
installed
/opt/local/bin/sdl-config
/opt/local/include/SDL/begin_code.h
/opt/local/include/SDL/close_code.h
/opt/local/include/SDL/SDL.h
/opt/local/include/SDL/SDL_active.h
/opt/local/include/SDL/SDL_audio.h
/opt/local/include/SDL/SDL_byteorder.h
/opt/local/include/SDL/SDL_cdrom.h
/opt/local/include/SDL/SDL_config.h
/opt/local/include/SDL/SDL_cpuinfo.h
/opt/local/include/SDL/SDL_endian.h
/opt/local/include/SDL/SDL_error.h
/opt/local/include/SDL/SDL_events.h
/opt/local/include/SDL/SDL_getenv.h
/opt/local/include/SDL/SDL_joystick.h
/opt/local/include/SDL/SDL_keyboard.h
/opt/local/include/SDL/SDL_keysym.h
/opt/local/include/SDL/SDL_loadso.h
/opt/local/include/SDL/SDL_main.h
/opt/local/include/SDL/SDL_mouse.h
/opt/local/include/SDL/SDL_mutex.h
/opt/local/include/SDL/SDL_name.h
/opt/local/include/SDL/SDL_opengl.h
/opt/local/include/SDL/SDL_platform.h
/opt/local/include/SDL/SDL_quit.h
/opt/local/include/SDL/SDL_rwops.h
/opt/local/include/SDL/SDL_stdinc.h
/opt/local/include/SDL/SDL_syswm.h
/opt/local/include/SDL/SDL_thread.h
/opt/local/include/SDL/SDL_timer.h
/opt/local/include/SDL/SDL_types.h
/opt/local/include/SDL/SDL_version.h
/opt/local/include/SDL/SDL_video.h
/opt/local/lib/libSDL-1.2.0.11.2.dylib
/opt/local/lib/libSDL-1.2.0.dylib
/opt/local/lib/libSDL.a
/opt/local/lib/libSDL.dylib
/opt/local/lib/libSDL.la
/opt/local/lib/libSDLmain.a
/opt/local/lib/pkgconfig/sdl.pc
/opt/local/share/aclocal/sdl.m4
/opt/local/share/man/man3/SDL_ActiveEvent.3
/opt/local/share/man/man3/SDL_AddTimer.3
/opt/local/share/man/man3/SDL_AudioCVT.3
/opt/local/share/man/man3/SDL_AudioSpec.3
/opt/local/share/man/man3/SDL_BlitSurface.3
/opt/local/share/man/man3/SDL_BuildAudioCVT.3
/opt/local/share/man/man3/SDL_CD.3
/opt/local/share/man/man3/SDL_CDClose.3
/opt/local/share/man/man3/SDL_CDEject.3
/opt/local/share/man/man3/SDL_CDName.3
/opt/local/share/man/man3/SDL_CDNumDrives.3
/opt/local/share/man/man3/SDL_CDOpen.3
/opt/local/share/man/man3/SDL_CDPause.3
/opt/local/share/man/man3/SDL_CDPlay.3
/opt/local/share/man/man3/SDL_CDPlayTracks.3
/opt/local/share/man/man3/SDL_CDResume.3
/opt/local/share/man/man3/SDL_CDStatus.3
/opt/local/share/man/man3/SDL_CDStop.3
/opt/local/share/man/man3/SDL_CDtrack.3
/opt/local/share/man/man3/SDL_CloseAudio.3
/opt/local/share/man/man3/SDL_Color.3
/opt/local/share/man/man3/SDL_CondBroadcast.3
/opt/local/share/man/man3/SDL_CondSignal.3
	:

av/faac-1.28

preparation
curl -ROL -C - http://downloads.sourceforge.net/faac/faac-1.28.tar.bz2
tar xvjf faac-1.28.tar.bz2
(cd faac-1.28 &&
patch -p0 -b -z.org < ../faac-1.28-ubagami.patch
)
build
sh bootstrap 
./configure CC='gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CXX='g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXCPP='g++ -E' --prefix=/opt/local --with-mp4v2 
make 
patch
--- ./bootstrap~	2004-07-28 17:18:20.000000000 +0900
+++ ./bootstrap	2009-07-04 19:22:26.000000000 +0900
@@ -3,7 +3,8 @@
 aclocal -I .
 autoheader
 if test "`uname -s`" = Darwin; then
-    glibtoolize --automake
+#    glibtoolize --automake
+    /opt/local/bin/libtoolize --automake
 else
     libtoolize --automake
 fi
installed
/opt/local/bin/faac
/opt/local/include/faac.h
/opt/local/include/faaccfg.h
/opt/local/lib/libfaac.0.dylib
/opt/local/lib/libfaac.a
/opt/local/lib/libfaac.dylib
/opt/local/lib/libfaac.la
/opt/local/share/man/man1/faac.1

av/faad2-2.7

preparation
curl -ROL -C - http://downloads.sourceforge.net/faac/faad2-2.7.tar.bz2
tar xvjf faad2-2.7.tar.bz2
(cd faad2-2.7 &&
patch -p0 -b -z.org < ../faad2-2.7-ubagami.patch
)
build
sh bootstrap 
./configure CC='gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CXX='g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CXXCPP='g++ -E' --prefix=/opt/local 
make 
patch
--- ./bootstrap~	2004-07-27 18:02:46.000000000 +0900
+++ ./bootstrap	2009-07-04 17:10:12.000000000 +0900
@@ -2,7 +2,8 @@
 
 case $OSTYPE in
 	darwin*)
-	LIBTOOLIZE=glibtoolize
+#	LIBTOOLIZE=glibtoolize
+	LIBTOOLIZE=/opt/local/bin/libtoolize
 	;;
 	*)
 	LIBTOOLIZE=libtoolize
installed
/opt/local/bin/faad
/opt/local/include/faad.h
/opt/local/include/mp4ff.h
/opt/local/include/mp4ffint.h
/opt/local/include/neaacdec.h
/opt/local/lib/libfaad.2.dylib
/opt/local/lib/libfaad.a
/opt/local/lib/libfaad.dylib
/opt/local/lib/libfaad.la
/opt/local/lib/libmp4ff.a
/opt/local/share/man/manm/faad.man

av/a52dec-0.7.4

preparation
curl -RO -C - http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
tar xvzf a52dec-0.7.4.tar.gz
(cd a52dec-0.7.4 && patch -p0 -b -z.org < ../a52dec-0.7.4-ubagami.patch)
build
./bootstrap
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local --enable-shared 
make 
patch
--- ./libao/audio_out.c.org	2002-05-22 14:35:22.000000000 +0900
+++ ./libao/audio_out.c	2005-08-22 20:48:09.000000000 +0900
@@ -45,8 +45,10 @@
 extern ao_open_t ao_wavdolby_open;
 extern ao_open_t ao_aif_open;
 extern ao_open_t ao_aifdolby_open;
+extern ao_open_t ao_aifindiv_open;
 extern ao_open_t ao_peak_open;
 extern ao_open_t ao_peakdolby_open;
+extern ao_open_t ao_peakindiv_open;
 extern ao_open_t ao_null_open;
 extern ao_open_t ao_null4_open;
 extern ao_open_t ao_null6_open;
@@ -77,8 +79,10 @@
     {"wavdolby", ao_wavdolby_open},
     {"aif", ao_aif_open},
     {"aifdolby", ao_aifdolby_open},
+    {"aifindiv", ao_aifindiv_open},
     {"peak", ao_peak_open},
     {"peakdolby", ao_peakdolby_open},
+    {"peakindiv", ao_peakindiv_open},
     {"null", ao_null_open},
     {"null4", ao_null4_open},
     {"null6", ao_null6_open},
--- ./libao/audio_out_aif.c.org	2002-04-28 19:23:02.000000000 +0900
+++ ./libao/audio_out_aif.c	2005-08-22 22:03:38.000000000 +0900
@@ -40,6 +40,16 @@
     int size;
 } aif_instance_t;
 
+typedef struct indiv_instance_s {
+    ao_instance_t ao;
+    int sample_rate;
+    int set_params;
+    int flags;
+    int size;
+    int exist;
+    FILE * fp[6];
+} indiv_instance_t;
+
 static uint8_t aif_header[] = {
     'F', 'O', 'R', 'M', 0xff, 0xff, 0xff, 0xfe, 'A', 'I', 'F', 'F',
     'C', 'O', 'M', 'M', 0, 0, 0, 18,
@@ -47,6 +57,13 @@
     'S', 'S', 'N', 'D', 0xff, 0xff, 0xff, 0xd8, 0, 0, 0, 0, 0, 0, 0, 0
 };
 
+static uint8_t indiv_header[] = {
+    'F', 'O', 'R', 'M', 0xff, 0xff, 0xff, 0xfe, 'A', 'I', 'F', 'F',
+    'C', 'O', 'M', 'M', 0, 0, 0, 18,
+    0, 1, 0x7f, 0xff, 0xff, 0xe8, 0, 16, 0x40, 0x0e, -1, -1, 0, 0, 0, 0, 0, 0,
+    'S', 'S', 'N', 'D', 0xff, 0xff, 0xff, 0xd8, 0, 0, 0, 0, 0, 0, 0, 0
+};
+
 static int aif_setup (ao_instance_t * _instance, int sample_rate, int * flags,
 		      sample_t * level, sample_t * bias)
 {
@@ -77,7 +94,7 @@
     buf[1] = value;
 }
 
-static int aif_play (ao_instance_t * _instance, int flags, sample_t * _samples)
+/*static */int aif_play (ao_instance_t * _instance, int flags, sample_t * _samples)
 {
     aif_instance_t * instance = (aif_instance_t *) _instance;
     int16_t int16_samples[256*2];
@@ -107,6 +124,233 @@
     return 0;
 }
 
+int aif_lpcm (ao_instance_t * _instance, sample_t gain, uint8_t * samples, size_t size)
+{
+    aif_instance_t * instance = (aif_instance_t *) _instance;
+
+    if (instance->set_params) {
+	instance->set_params = 0;
+	store2 (aif_header + 30, instance->sample_rate);
+	fwrite (aif_header, sizeof (aif_header), 1, stdout);
+    }
+
+    if (gain) {
+	int16_t * p;
+	int16_t sample;
+	size_t i;
+	sample_t f;
+
+	p = (int16_t *) samples;
+	for (i = 0; i < size; i += 2) {
+	    f = (sample_t) *p * gain;
+	    if (f < 0) {
+		f -= 0.5;
+		if (f < -32768.) f = -32768.;
+	    } else {
+		f += 0.5;
+		if (f > 32767.) f = 32767.;
+	    }
+	    sample = f;
+	    fwrite (&sample, 2, 1, stdout);
+	    p++;
+	}
+    } else {
+	fwrite (samples, size, 1, stdout);
+    }
+
+    instance->size += size;
+    return 0;
+}
+
+
+static inline int16_t convert (int32_t i)
+{
+    if (i > 0x43c07fff)
+	return 32767;
+    else if (i < 0x43bf8000)
+	return -32768;
+    else
+	return i - 0x43c00000;
+}
+
+enum {
+    chLFE = 0x01,
+    chLf = 0x02,
+    chC = 0x04,
+    chRf = 0x08,
+    chLs = 0x10,
+    chRs = 0x20
+};
+
+static void float_to_int (float * _f, int16_t * s16, int flags, int * exist)
+{
+    int i;
+    int32_t * f = (int32_t *) _f;
+
+    switch (flags) {
+    case A52_MONO:
+        *exist |= chC;
+	for (i = 0; i < 256; i++) {
+	    s16[i] = s16[i+256] = 0;
+	    s16[i+512] = convert (f[i]);
+	    s16[i+768] = s16[i+1024] = s16[i+1280] = 0;
+	}
+	s16_BE (&s16[i+512], 1);
+	break;
+    case A52_CHANNEL:
+    case A52_STEREO:
+    case A52_DOLBY:
+        *exist |= chLf | chRf;
+	for (i = 0; i < 256; i++) {
+	    s16[i] = 0;
+	    s16[i+256] = convert (f[i]);
+	    s16[i+512] = 0;
+	    s16[i+768] = convert (f[i+256]);
+	    s16[i+1024] = s16[i+1280] = 0;
+	}
+	s16_BE (&s16[i+256], 1);
+	s16_BE (&s16[i+768], 1);
+	break;
+    case A52_3F:
+        *exist |= chLf | chC | chRf;
+	for (i = 0; i < 256; i++) {
+	    s16[i] = 0;
+	    s16[i+256] = convert (f[i]);
+	    s16[i+512] = convert (f[i+256]);
+	    s16[i+768] = convert (f[i+512]);
+	    s16[i+1024] = s16[i+1280] = 0;
+	}
+	s16_BE (&s16[i+256], 3);
+	break;
+    case A52_2F2R:
+        *exist |= chLf | chRf | chLs | chRs;
+        for (i = 0; i < 256; i++) {
+	    s16[i] = 0;
+	    s16[i+256] = convert (f[i]);
+	    s16[i+512] = 0;
+	    s16[i+768] = convert (f[i+256]);
+	    s16[i+1024] = convert (f[i+512]);
+	    s16[i+1280] = convert (f[i+768]);
+	}
+	s16_BE (&s16[i+256], 1);
+	s16_BE (&s16[i+768], 3);
+	break;
+    case A52_3F2R:
+        *exist |= chLf | chC | chRf | chLs | chRs;
+	for (i = 0; i < 256; i++) {
+	    s16[i] = 0;
+	    s16[i+256] = convert (f[i]);
+	    s16[i+512] = convert (f[i+256]);
+	    s16[i+768] = convert (f[i+512]);
+	    s16[i+1024] = convert (f[i+768]);
+	    s16[i+1280] = convert (f[i+1024]);
+	}
+	s16_BE (&s16[i+256], 5);
+	break;
+    case A52_MONO | A52_LFE:
+        *exist |= chLFE | chC;
+	for (i = 0; i < 256; i++) {
+	    s16[i] = convert (f[i]);
+	    s16[i+256] = 0;
+	    s16[i+512] = convert (f[i+256]);
+	    s16[i+768] = s16[i+1024] = s16[i+1280] = 0;
+	}
+	s16_BE (s16, 1);
+	s16_BE (&s16[i+512], 1);
+	break;
+    case A52_CHANNEL | A52_LFE:
+    case A52_STEREO | A52_LFE:
+    case A52_DOLBY | A52_LFE:
+        *exist |= chLFE | chLf | chRf;
+	for (i = 0; i < 256; i++) {
+	    s16[i] = convert (f[i]);
+	    s16[i+256] = convert (f[i+256]);
+	    s16[i+512] = 0;
+	    s16[i+768] = convert (f[i+512]);
+	    s16[i+1024] = s16[i+1280] = 0;
+	}
+	s16_BE (s16, 2);
+	s16_BE (&s16[i+768], 1);
+	break;
+    case A52_3F | A52_LFE:
+        *exist |= chLFE | chLf | chC | chRf;
+	for (i = 0; i < 256; i++) {
+	    s16[i] = convert (f[i]);
+	    s16[i+256] = convert (f[i+256]);
+	    s16[i+512] = convert (f[i+512]);
+	    s16[i+768] = convert (f[i+768]);
+	    s16[i+1024] = s16[i+1280] = 0;
+	}
+	s16_BE (s16, 4);
+	break;
+    case A52_2F2R | A52_LFE:
+        *exist |= chLFE | chLf | chRf | chLs | chRs;
+	for (i = 0; i < 256; i++) {
+	    s16[i] = convert (f[i]);
+	    s16[i+256] = convert (f[i+256]);
+	    s16[i+512] = 0;
+	    s16[i+768] = convert (f[i+512]);
+	    s16[i+1024] = convert (f[i+768]);
+	    s16[i+1280] = convert (f[i+1024]);
+	}
+	s16_BE (s16, 2);
+	s16_BE (&s16[i+768], 3);
+	break;
+    case A52_3F2R | A52_LFE:
+        *exist |= chLFE | chLf | chC | chRf | chLs | chRs;
+	for (i = 0; i < 256; i++) {
+	    s16[i] = convert (f[i]);
+	    s16[i+256] = convert (f[i+256]);
+	    s16[i+512] = convert (f[i+512]);
+	    s16[i+768] = convert (f[i+768]);
+	    s16[i+1024] = convert (f[i+1024]);
+	    s16[i+1280] = convert (f[i+1280]);
+	}
+	s16_BE (s16, 6);
+	break;
+    }
+}
+
+int indiv_play (ao_instance_t * _instance, int flags, sample_t * _samples)
+{
+    indiv_instance_t * instance = (indiv_instance_t *) _instance;
+    int16_t int16_samples[256*6];
+    int i;
+    FILE *fp;
+
+#ifdef LIBA52_DOUBLE
+    float samples[256 * 6];
+
+    for (i = 0; i < 256 * 6; i++)
+	samples[i] = _samples[i];
+#else
+    float * samples = _samples;
+#endif
+
+    flags &= A52_CHANNEL_MASK | A52_LFE;
+
+    if (instance->set_params) {
+	instance->set_params = 0;
+	store2 (indiv_header + 30, instance->sample_rate);
+	fp = instance->fp[0];
+	for (i = 0; i < 6; i++) {
+	    fwrite (indiv_header, sizeof (indiv_header), 1, fp);
+	    fp++;
+	}
+    }
+
+    float_to_int (samples, int16_samples, flags, &instance->exist);
+    fp = instance->fp[0];
+    for (i = 0; i < 6; i++) {
+        fwrite (&int16_samples[i*256], sizeof (int16_t) * 256, 1, fp);
+	fp++;
+    }
+
+    instance->size += 256 * sizeof (int16_t);
+
+    return 0;
+}
+
 static void aif_close (ao_instance_t * _instance)
 {
     aif_instance_t * instance = (aif_instance_t *) _instance;
@@ -149,3 +393,70 @@
 {
     return aif_open (A52_DOLBY);
 }
+
+void indiv_close (ao_instance_t * _instance)
+{
+    indiv_instance_t * instance = (indiv_instance_t *) _instance;
+    FILE *fp;
+    int i, j;
+    char str[15];
+
+    for (i = 0; i < 6; i++) {
+	fp = instance->fp[i];
+	if (fseek (fp, 0, SEEK_SET) < 0) {
+	    fclose (fp);
+	    continue;
+	}
+
+	store4 (indiv_header + 4, instance->size + 46);
+	store4 (indiv_header + 22, instance->size / 2);
+	store4 (indiv_header + 42, instance->size + 8);
+	fwrite (indiv_header, sizeof (indiv_header), 1, fp);
+	fclose (fp);
+    }
+
+    j = 1;
+    for (i = 0; i < 6; i++) {
+        if (!(instance->exist & j)) {
+            sprintf(str, "a52_out_%d.aiff", i);
+            remove(str);
+        }
+        j <<= 1;
+    }
+}
+
+ao_instance_t * ao_aifindiv_open (void)
+{
+    indiv_instance_t * instance;
+    int i, j;
+    char str[15];
+
+    instance = malloc (sizeof (indiv_instance_t));
+    if (instance == NULL)
+	return NULL;
+
+    instance->ao.setup = aif_setup;
+    instance->ao.play = indiv_play;
+    instance->ao.close = indiv_close;
+
+    instance->sample_rate = 0;
+    instance->set_params = 1;
+    instance->flags = A52_3F2R | A52_LFE;
+    instance->size = 0;
+    instance->exist = 0;
+
+    for (i = 0; i < 6; i++) {
+	sprintf(str, "a52_out_%d.aiff", i);
+	instance->fp[i] = fopen(str, "w+b");
+	if (!instance->fp[i]) {
+	    for (j = 0; j < i; j++) {
+		fclose(instance->fp[j]);
+	    }
+	    fprintf (stderr, "Can not open work file: %s\n", str);
+	    free (instance);
+	    return NULL;
+	}
+    }
+
+    return (ao_instance_t *) instance;
+}
--- ./libao/audio_out_peak.c.org	2002-05-22 14:35:22.000000000 +0900
+++ ./libao/audio_out_peak.c	2005-08-23 14:32:55.000000000 +0900
@@ -27,7 +27,7 @@
     return 0;
 }
 
-static int peak_play (ao_instance_t * _instance, int flags, sample_t * samples)
+/*static */int peak_play (ao_instance_t * _instance, int flags, sample_t * samples)
 {
     peak_instance_t * instance = (peak_instance_t *) _instance;
     int i;
@@ -40,6 +40,64 @@
     return 0;
 }
 
+/*static */int peak_lpcm (ao_instance_t * _instance, sample_t * samples, int size)
+{
+    peak_instance_t * instance = (peak_instance_t *) _instance;
+    sample_t * p;
+    sample_t sample;
+    int i;
+
+    p = samples;
+    for (i = 0; i < size; i += 2) {
+        sample = *p;
+	if (instance->peak < fabs(sample))
+	    instance->peak = fabs(sample);
+	p++;
+    }
+
+    return 0;
+}
+
+#define compare256(p) do {\
+    int i;\
+    sample_t * samples = p;\
+    for (i = 0; i < 256; i++)\
+        if (instance->peak < fabs(samples[i]))\
+            instance->peak = fabs(samples[i]);\
+} while (0)
+
+/*static */int peakindiv_play (ao_instance_t * _instance, int flags, sample_t * samples)
+{
+    peak_instance_t * instance = (peak_instance_t *) _instance;
+
+    flags &= A52_CHANNEL_MASK | A52_LFE;
+
+    switch (flags) {    /* don't break */
+    case A52_3F2R | A52_LFE:
+      compare256 (&samples[1280]);
+    case A52_3F2R:
+    case A52_2F2R | A52_LFE:
+        compare256 (&samples[1024]);
+    case A52_2F2R:
+    case A52_3F | A52_LFE:
+        compare256 (&samples[768]);
+    case A52_3F:
+    case A52_CHANNEL | A52_LFE:
+    case A52_STEREO | A52_LFE:
+    case A52_DOLBY | A52_LFE:
+        compare256 (&samples[512]);
+    case A52_CHANNEL:
+    case A52_STEREO:
+    case A52_DOLBY:
+    case A52_MONO | A52_LFE:
+        compare256 (&samples[256]);
+    case A52_MONO:
+        compare256 (samples);
+    }
+
+    return 0;
+}
+
 static void peak_close (ao_instance_t * _instance)
 {
     peak_instance_t * instance = (peak_instance_t *) _instance;
@@ -74,3 +132,16 @@
 {
     return peak_open (A52_DOLBY);
 }
+
+ao_instance_t * ao_peakindiv_open (void)
+{
+    peak_instance_t * instance;
+
+    instance = (peak_instance_t *) peak_open(A52_3F2R | A52_LFE);
+    if (instance == NULL)
+	return NULL;
+
+    instance->ao.play = peakindiv_play;
+
+    return (ao_instance_t *) instance;
+}
--- ./src/a52dec.c.org	2002-06-28 12:11:49.000000000 +0900
+++ ./src/a52dec.c	2005-08-22 22:11:02.000000000 +0900
@@ -261,7 +261,7 @@
 
 		length = a52_syncinfo (buf, &flags, &sample_rate, &bit_rate);
 		if (!length) {
-		    fprintf (stderr, "skip\n");
+		    fprintf (stderr, "skip\r");
 		    for (bufptr = buf; bufptr < buf + 6; bufptr++)
 			bufptr[0] = bufptr[1];
 		    continue;
@@ -299,6 +299,19 @@
     }
 }
 
+int aif_play (ao_instance_t * _instance, int flags, sample_t * _samples);
+int aif_lpcm (ao_instance_t * _instance, sample_t gain, uint8_t * samples, size_t size);
+int peak_play (ao_instance_t * _instance, int flags, sample_t * _samples);
+int peak_lpcm (ao_instance_t * _instance, uint8_t * samples, size_t size);
+
+void decode_lpcm (uint8_t * samples, size_t size)
+{
+    if (output->play == aif_play)
+	aif_lpcm (output, gain, samples, size);
+    else if (output->play == peak_play)
+	peak_lpcm (output, samples, size);
+}
+
 #define DEMUX_PAYLOAD_START 1
 static int demux (uint8_t * buf, uint8_t * end, int flags)
 {
@@ -325,6 +338,7 @@
 #define DEMUX_HEADER 0
 #define DEMUX_DATA 1
 #define DEMUX_SKIP 2
+#define DEMUX_LPCM 3
     static int state = DEMUX_SKIP;
     static int state_bytes = 0;
     static uint8_t head_buf[268];
@@ -390,6 +404,16 @@
 	}
 	buf += state_bytes;
 	break;
+    case DEMUX_LPCM:
+	if (demux_pid || (state_bytes > end - buf)) {
+	    decode_lpcm (buf, end - buf);
+	    state_bytes -= end - buf;
+	    return 0;
+	}
+	decode_lpcm (buf, state_bytes);
+	buf += state_bytes;
+	print_fps (0);
+	break;
     }
 
     while (1) {
@@ -468,11 +492,44 @@
 		/* header points to the mpeg1 pes header */
 	    }
 	    if ((!demux_pid) && ((header-1)[len] != demux_track)) {
-		DONEBYTES (len);
-		bytes = 6 + (header[4] << 8) + header[5] - len;
-		if (bytes <= 0)
-		    continue;
-		goto skip;
+		if ((header-1)[len] == (demux_track | 0x20)) {
+		    len += 6;
+		    NEEDBYTES (len);
+
+		    if ((output->play == aif_play || output->play == peak_play)
+		      && (header[len - 2] & 0xf0) <= 0x10
+		      && (header[len - 2] & 0x07) == 0x01
+		      && header[len - 1] == 0x80) {
+			int sample_rate;
+			sample_t level, bias;
+
+			if (header[len - 2] & 0x10) sample_rate = 96000;
+			else sample_rate = 48000;
+			if (!ao_setup (output, sample_rate, &flags, &level, &bias)) {
+			    DONEBYTES (len);
+			    bytes = 6 + (header[4] << 8) + header[5] - len;
+			    if (bytes > end - buf) {
+				decode_lpcm (buf, end - buf);
+				state = DEMUX_LPCM;
+				state_bytes = bytes - (end - buf);
+				return 0;
+			    } else if (bytes <= 0)
+				continue;
+			    decode_lpcm (buf, bytes);
+			    buf += bytes;
+			    print_fps (0);
+			    break;
+			}
+		    }
+		    goto next;
+		} else {
+		next:
+		    DONEBYTES (len);
+		    bytes = 6 + (header[4] << 8) + header[5] - len;
+		    if (bytes <= 0)
+			continue;
+		    goto skip;
+		}
 	    }
 	    len += 3;
 	    NEEDBYTES (len);
installed
/opt/local/bin/a52dec
/opt/local/bin/extract_a52
/opt/local/include/a52dec/a52.h
/opt/local/include/a52dec/attributes.h
/opt/local/include/a52dec/audio_out.h
/opt/local/include/a52dec/mm_accel.h
/opt/local/lib/liba52.0.dylib
/opt/local/lib/liba52.a
/opt/local/lib/liba52.dylib
/opt/local/lib/liba52.la
/opt/local/share/man/man1/a52dec.1
/opt/local/share/man/man1/extract_a52.1

devel/asciidoc-8.4.5

preparation
curl -ROL -C - http://downloads.sourceforge.net/sourceforge/asciidoc/asciidoc-8.4.5.tar.gz
tar xvzf asciidoc-8.4.5.tar.gz
build
./configure --prefix=/opt/local 
make 
installation
make install docs 
installed
/opt/local/bin/a2x
/opt/local/bin/asciidoc
/opt/local/bin/asciidoc.py
/opt/local/etc/asciidoc/asciidoc.conf
/opt/local/etc/asciidoc/dblatex/asciidoc-dblatex.sty
/opt/local/etc/asciidoc/dblatex/asciidoc-dblatex.xsl
/opt/local/etc/asciidoc/docbook-xsl/chunked.xsl
/opt/local/etc/asciidoc/docbook-xsl/common.xsl
/opt/local/etc/asciidoc/docbook-xsl/fo.xsl
/opt/local/etc/asciidoc/docbook-xsl/htmlhelp.xsl
/opt/local/etc/asciidoc/docbook-xsl/manpage.xsl
/opt/local/etc/asciidoc/docbook-xsl/text.xsl
/opt/local/etc/asciidoc/docbook-xsl/xhtml.xsl
/opt/local/etc/asciidoc/docbook.conf
/opt/local/etc/asciidoc/filters/code/code-filter.conf
/opt/local/etc/asciidoc/filters/code/code-filter.py
/opt/local/etc/asciidoc/filters/graphviz/graphviz-filter.conf
/opt/local/etc/asciidoc/filters/graphviz/graphviz2png.py
/opt/local/etc/asciidoc/filters/music/music-filter.conf
/opt/local/etc/asciidoc/filters/music/music2png.py
/opt/local/etc/asciidoc/filters/source/source-highlight-filter.conf
/opt/local/etc/asciidoc/help.conf
/opt/local/etc/asciidoc/html4.conf
/opt/local/etc/asciidoc/images/icons/callouts/1.png
/opt/local/etc/asciidoc/images/icons/callouts/10.png
/opt/local/etc/asciidoc/images/icons/callouts/11.png
/opt/local/etc/asciidoc/images/icons/callouts/12.png
/opt/local/etc/asciidoc/images/icons/callouts/13.png
/opt/local/etc/asciidoc/images/icons/callouts/14.png
/opt/local/etc/asciidoc/images/icons/callouts/15.png
/opt/local/etc/asciidoc/images/icons/callouts/2.png
/opt/local/etc/asciidoc/images/icons/callouts/3.png
/opt/local/etc/asciidoc/images/icons/callouts/4.png
/opt/local/etc/asciidoc/images/icons/callouts/5.png
/opt/local/etc/asciidoc/images/icons/callouts/6.png
/opt/local/etc/asciidoc/images/icons/callouts/7.png
/opt/local/etc/asciidoc/images/icons/callouts/8.png
/opt/local/etc/asciidoc/images/icons/callouts/9.png
/opt/local/etc/asciidoc/images/icons/caution.png
/opt/local/etc/asciidoc/images/icons/example.png
/opt/local/etc/asciidoc/images/icons/home.png
/opt/local/etc/asciidoc/images/icons/important.png
/opt/local/etc/asciidoc/images/icons/next.png
/opt/local/etc/asciidoc/images/icons/note.png
/opt/local/etc/asciidoc/images/icons/prev.png
/opt/local/etc/asciidoc/images/icons/README
/opt/local/etc/asciidoc/images/icons/tip.png
/opt/local/etc/asciidoc/images/icons/up.png
/opt/local/etc/asciidoc/images/icons/warning.png
/opt/local/etc/asciidoc/javascripts/ASCIIMathML.js
/opt/local/etc/asciidoc/javascripts/LaTeXMathML.js
/opt/local/etc/asciidoc/javascripts/toc.js
/opt/local/etc/asciidoc/lang-de.conf
/opt/local/etc/asciidoc/lang-en.conf
/opt/local/etc/asciidoc/lang-es.conf
/opt/local/etc/asciidoc/lang-fr.conf
/opt/local/etc/asciidoc/lang-hu.conf
/opt/local/etc/asciidoc/lang-ru.conf
/opt/local/etc/asciidoc/latex.conf
/opt/local/etc/asciidoc/stylesheets/docbook-xsl.css
/opt/local/etc/asciidoc/stylesheets/xhtml11-manpage.css
/opt/local/etc/asciidoc/stylesheets/xhtml11-quirks.css
/opt/local/etc/asciidoc/stylesheets/xhtml11.css
/opt/local/etc/asciidoc/text.conf
	:

devel/xmlto-0.0.22

preparation
verify_digest(){	# $0 method file string
  case "$1" in
  *)
    DIGEST=`echo "$1" | tr a-z A-Z`
    [ "$DIGEST($2)= $3" = "`openssl $1 $2`" ]
    ;;
  esac
}
verify_signature(){	# $0 url|id ... sig
  while [ "$1" != "" ]; do
    case "$1" in
    0x*)
      gpg --recv-keys "$1" || return $?
      ;;
    http:*|ftp:*)
      curl "$1" | gpg --import || return $?
      ;;
    *)
      gpg --verify "$1"
      return $?
    esac
    shift
  done
}
error_out(){	# $0 message ...
  echo "$@" 1>&2
  exit 1
}

curl -RO -C - --insecure https://fedorahosted.org/releases/x/m/xmlto/xmlto-0.0.22.tar.bz2
curl -RO -C - --insecure https://fedorahosted.org/releases/x/m/xmlto/xmlto-0.0.22.tar.bz2.sig

verify_signature 0xE4226034 xmlto-0.0.22.tar.bz2.sig || error_out "$0: stopped at line $LINENO"

tar xvjf xmlto-0.0.22.tar.bz2

curl -ROL -C - http://downloads.sourceforge.net/sourceforge/docbook/docbook-xsl-1.75.1.tar.bz2
tar xvjf docbook-xsl-1.75.1.tar.bz2

curl -RO -C - http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip
[ ! -d docbook-xml-4.5 ] && mkdir docbook-xml-4.5
(cd docbook-xml-4.5 &&
unzip ../docbook-xml-4.5.zip
)

(cd xmlto-0.0.22 &&
patch -p0 -b -z.org < ../xmlto-0.0.22-ubagami.patch
)
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local 
env SGML_CATALOG_FILES=`pwd`/../docbook-xml-4.5/catalog.xml:`pwd`/../docbook-xsl-1.75.1/catalog.xml make 
patch
--- ./xmlto.in.org	2009-03-24 23:54:31.000000000 +0900
+++ ./xmlto.in	2009-07-04 01:18:39.000000000 +0900
@@ -205,7 +205,8 @@
 export VERBOSE
 
 # Disable network entities
-XSLTOPTS="$XSLTOPTS --nonet"
+#XSLTOPTS="$XSLTOPTS --nonet"
+XSLTOPTS="$XSLTOPTS --catalogs"
 
 # The names parameter for the XSLT stylesheet
 XSLTPARAMS=""
installed
/opt/local/bin/xmlif
/opt/local/bin/xmlto
/opt/local/share/man/man1/xmlif.1
/opt/local/share/man/man1/xmlto.1
/opt/local/share/xmlto/format/docbook/awt
/opt/local/share/xmlto/format/docbook/dvi
/opt/local/share/xmlto/format/docbook/fo
/opt/local/share/xmlto/format/docbook/html
/opt/local/share/xmlto/format/docbook/html-nochunks
/opt/local/share/xmlto/format/docbook/htmlhelp
/opt/local/share/xmlto/format/docbook/javahelp
/opt/local/share/xmlto/format/docbook/man
/opt/local/share/xmlto/format/docbook/mif
/opt/local/share/xmlto/format/docbook/pcl
/opt/local/share/xmlto/format/docbook/pdf
/opt/local/share/xmlto/format/docbook/ps
/opt/local/share/xmlto/format/docbook/svg
/opt/local/share/xmlto/format/docbook/txt
/opt/local/share/xmlto/format/docbook/xhtml
/opt/local/share/xmlto/format/docbook/xhtml-nochunks
/opt/local/share/xmlto/format/fo/awt
/opt/local/share/xmlto/format/fo/dvi
/opt/local/share/xmlto/format/fo/mif
/opt/local/share/xmlto/format/fo/pcl
/opt/local/share/xmlto/format/fo/pdf
/opt/local/share/xmlto/format/fo/ps
/opt/local/share/xmlto/format/fo/svg
/opt/local/share/xmlto/format/fo/txt
/opt/local/share/xmlto/format/xhtml1/awt
/opt/local/share/xmlto/format/xhtml1/dvi
/opt/local/share/xmlto/format/xhtml1/fo
/opt/local/share/xmlto/format/xhtml1/mif
/opt/local/share/xmlto/format/xhtml1/pcl
/opt/local/share/xmlto/format/xhtml1/pdf
/opt/local/share/xmlto/format/xhtml1/ps
/opt/local/share/xmlto/format/xhtml1/svg
/opt/local/share/xmlto/format/xhtml1/txt
/opt/local/share/xmlto/xmlto.mak

devel/getopt-1.1.4

preparation
curl -RO -C - http://software.frodo.looijaard.name/getopt/files/getopt-1.1.4.tar.gz
tar xvzf getopt-1.1.4.tar.gz
build
make prefix=/opt/local LIBCGETOPT=0 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -I/opt/local/include' 'LDFLAGS=-L/opt/local/lib -lintl' 
installation
make prefix=/opt/local install install_doc 
installed
/opt/local/bin/getopt
/opt/local/lib/getopt/getopt-parse.bash
/opt/local/lib/getopt/getopt-parse.tcsh
/opt/local/lib/getopt/getopt-test.bash
/opt/local/lib/getopt/getopt-test.tcsh
/opt/local/man/man1/getopt.1

secure/gnupg-1.4.9

preparation
verify_digest(){	# $0 method file string
  case "$1" in
  *)
    DIGEST=`echo "$1" | tr a-z A-Z`
    [ "$DIGEST($2)= $3" = "`openssl $1 $2`" ]
    ;;
  esac
}
verify_signature(){	# $0 url|id ... sig
  while [ "$1" != "" ]; do
    case "$1" in
    0x*)
      gpg --recv-keys "$1" || return $?
      ;;
    http:*|ftp:*)
      curl "$1" | gpg --import || return $?
      ;;
    *)
      gpg --verify "$1"
      return $?
    esac
    shift
  done
}
error_out(){	# $0 message ...
  echo "$@" 1>&2
  exit 1
}

curl -O -C - ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.9.tar.bz2
curl -O -C - ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.9.tar.bz2.sig

#verify_digest md5 gnupg-1.4.9.tar.bz2 cc52393087480ac8d245625004a6a30c || error_out "$0: stopped at line $LINENO"
verify_digest sha1 gnupg-1.4.9.tar.bz2 826f4bef1effce61c3799c8f7d3cc8313b340b55 || error_out "$0: stopped at line $LINENO"

tar xvjf gnupg-1.4.9.tar.bz2
build
if false; then

./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local --disable-asm 
make 

else

listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_i386/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O executable"*)	;;
      *"ar archive random library"*)	;;
      *"Mach-O dynamically linked shared library"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
./configure --host=i686-apple-darwin8 'CC=gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -) &&
  make clean distclean
} &&
./configure --host=powerpc-apple-darwin8 'CC=gcc -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}

fi
installed
/opt/local/bin/gpg
/opt/local/bin/gpg-zip
/opt/local/bin/gpgsplit
/opt/local/bin/gpgv
/opt/local/libexec/gnupg/gpgkeys_curl
/opt/local/libexec/gnupg/gpgkeys_finger
/opt/local/libexec/gnupg/gpgkeys_hkp
/opt/local/libexec/gnupg/gpgkeys_ldap
/opt/local/share/gnupg/FAQ
/opt/local/share/gnupg/faq.html
/opt/local/share/gnupg/options.skel
/opt/local/share/info/gnupg1.info
/opt/local/share/locale/be/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/ca/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/cs/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/da/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/de/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/el/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/en@boldquot/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/en@quot/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/eo/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/es/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/et/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/fi/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/fr/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/gl/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/hu/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/id/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/it/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/ja/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/nb/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/nl/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/pl/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/pt/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/pt_BR/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/ro/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/ru/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/sk/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/sv/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/tr/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/zh_CN/LC_MESSAGES/gnupg.mo
/opt/local/share/locale/zh_TW/LC_MESSAGES/gnupg.mo
/opt/local/share/man/man1/gpg.1
/opt/local/share/man/man1/gpg.ru.1
/opt/local/share/man/man1/gpgv.1
/opt/local/share/man/man7/gnupg.7

devel/intltool-0.40.6

preparation
curl -RO -C - http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.bz2
tar xvjf intltool-0.40.6.tar.bz2
build
./configure --prefix=/opt/local 
make 
installed
/opt/local/bin/intltool-extract
/opt/local/bin/intltool-merge
/opt/local/bin/intltool-prepare
/opt/local/bin/intltool-update
/opt/local/bin/intltoolize
/opt/local/share/aclocal/intltool.m4
/opt/local/share/intltool/Makefile.in.in
/opt/local/share/man/man8/intltool-extract.8
/opt/local/share/man/man8/intltool-merge.8
/opt/local/share/man/man8/intltool-prepare.8
/opt/local/share/man/man8/intltool-update.8
/opt/local/share/man/man8/intltoolize.8

input/anthy-9100h

preparation
curl -RO -C - http://iij.dl.sourceforge.jp/anthy/37536/anthy-9100h.tar.gz
tar xvzf anthy-9100h.tar.gz
build
if false; then	# cannot build libdiclib.a

./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local 
make 

else

listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_i386/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O executable"*)	;;
      *"ar archive random library"*)	;;
      *"Mach-O dynamically linked shared library"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
./configure --host=i686-apple-darwin8 'CC=gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local &&
make &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -) &&
  make clean distclean
} &&
./configure --host=powerpc-apple-darwin8 'CC=gcc -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --prefix=/opt/local &&
make &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}

fi
installed
/opt/local/bin/anthy-agent
/opt/local/bin/anthy-dic-tool
/opt/local/bin/anthy-morphological-analyzer
/opt/local/etc/anthy-conf
/opt/local/include/anthy/anthy.h
/opt/local/include/anthy/dicutil.h
/opt/local/include/anthy/input.h
/opt/local/lib/libanthy.0.1.0.dylib
/opt/local/lib/libanthy.0.dylib
/opt/local/lib/libanthy.a
/opt/local/lib/libanthy.dylib
/opt/local/lib/libanthy.la
/opt/local/lib/libanthydic.0.1.0.dylib
/opt/local/lib/libanthydic.0.dylib
/opt/local/lib/libanthydic.a
/opt/local/lib/libanthydic.dylib
/opt/local/lib/libanthydic.la
/opt/local/lib/libanthyinput.0.0.0.dylib
/opt/local/lib/libanthyinput.0.dylib
/opt/local/lib/libanthyinput.a
/opt/local/lib/libanthyinput.dylib
/opt/local/lib/libanthyinput.la
/opt/local/lib/pkgconfig/anthy.pc
/opt/local/share/anthy/anthy.dic
/opt/local/share/anthy/dic-tool-usage.txt
/opt/local/share/anthy/typetab
/opt/local/share/anthy/zipcode.t
/opt/local/share/emacs/site-lisp/anthy/anthy-azik.el
/opt/local/share/emacs/site-lisp/anthy/anthy-azik.elc
/opt/local/share/emacs/site-lisp/anthy/anthy-conf.el
/opt/local/share/emacs/site-lisp/anthy/anthy-conf.elc
/opt/local/share/emacs/site-lisp/anthy/anthy-dic.el
/opt/local/share/emacs/site-lisp/anthy/anthy-dic.elc
/opt/local/share/emacs/site-lisp/anthy/anthy-isearch.el
/opt/local/share/emacs/site-lisp/anthy/anthy-isearch.elc
/opt/local/share/emacs/site-lisp/anthy/anthy-kyuri.el
/opt/local/share/emacs/site-lisp/anthy/anthy-kyuri.elc
/opt/local/share/emacs/site-lisp/anthy/anthy.el
/opt/local/share/emacs/site-lisp/anthy/anthy.elc
/opt/local/share/emacs/site-lisp/anthy/leim-list.el

editors/intlfonts-1.2.1

preparation
curl -RO -C - http://ftp.gnu.org/gnu/intlfonts/intlfonts-1.2.1.tar.gz
tar xvzf intlfonts-1.2.1.tar.gz
build
./configure --prefix=/opt/local --disable-compress --with-pcf --without-bdf --without-type1 --without-truetype
make
installed
/opt/local/share/emacs/fonts/12x24rk.pcf
/opt/local/share/emacs/fonts/8x16rk.pcf
/opt/local/share/emacs/fonts/a18rk.pcf
/opt/local/share/emacs/fonts/a18rkb.pcf
/opt/local/share/emacs/fonts/a18rki.pcf
/opt/local/share/emacs/fonts/arab16-0-etl.pcf
/opt/local/share/emacs/fonts/arab16-1-etl.pcf
/opt/local/share/emacs/fonts/arab16-2-etl.pcf
/opt/local/share/emacs/fonts/arab24-0-etl.pcf
/opt/local/share/emacs/fonts/arab24-1-etl.pcf
/opt/local/share/emacs/fonts/arab24-2-etl.pcf
/opt/local/share/emacs/fonts/bmp16-etl.pcf
/opt/local/share/emacs/fonts/cc40s.pcf
/opt/local/share/emacs/fonts/cc48s.pcf
/opt/local/share/emacs/fonts/cns1-16.pcf
/opt/local/share/emacs/fonts/cns1-24.pcf
/opt/local/share/emacs/fonts/cns1-40.pcf
/opt/local/share/emacs/fonts/cns2-16.pcf
/opt/local/share/emacs/fonts/cns2-24.pcf
/opt/local/share/emacs/fonts/cns2-40.pcf
/opt/local/share/emacs/fonts/cns3-16.pcf
/opt/local/share/emacs/fonts/cns3-24.pcf
/opt/local/share/emacs/fonts/cns3-40.pcf
/opt/local/share/emacs/fonts/cns4-16.pcf
/opt/local/share/emacs/fonts/cns4-24.pcf
/opt/local/share/emacs/fonts/cns4-40.pcf
/opt/local/share/emacs/fonts/cns5-16.pcf
/opt/local/share/emacs/fonts/cns5-24.pcf
/opt/local/share/emacs/fonts/cns5-40.pcf
/opt/local/share/emacs/fonts/cns6-16.pcf
/opt/local/share/emacs/fonts/cns6-24.pcf
/opt/local/share/emacs/fonts/cns6-40.pcf
/opt/local/share/emacs/fonts/cns7-16.pcf
/opt/local/share/emacs/fonts/cns7-24.pcf
/opt/local/share/emacs/fonts/cns7-40.pcf
/opt/local/share/emacs/fonts/cyr14-etl.pcf
/opt/local/share/emacs/fonts/cyr16-etl.pcf
/opt/local/share/emacs/fonts/cyr24-etl.pcf
/opt/local/share/emacs/fonts/ethio16f-uni.pcf
/opt/local/share/emacs/fonts/ethio24f-uni.pcf
/opt/local/share/emacs/fonts/fonts.alias
/opt/local/share/emacs/fonts/fonts.dir
/opt/local/share/emacs/fonts/gb16fs.pcf
/opt/local/share/emacs/fonts/gb16st.pcf
/opt/local/share/emacs/fonts/gb24st.pcf
/opt/local/share/emacs/fonts/grk14-etl.pcf
/opt/local/share/emacs/fonts/grk16-etl.pcf
/opt/local/share/emacs/fonts/grk24-etl.pcf
/opt/local/share/emacs/fonts/guob16.pcf
/opt/local/share/emacs/fonts/hanglg16.pcf
/opt/local/share/emacs/fonts/hanglm16.pcf
/opt/local/share/emacs/fonts/hanglm24.pcf
/opt/local/share/emacs/fonts/heb14-etl.pcf
/opt/local/share/emacs/fonts/heb16-etl.pcf
/opt/local/share/emacs/fonts/heb24-etl.pcf
/opt/local/share/emacs/fonts/ind16-mule.pcf
/opt/local/share/emacs/fonts/ind16-uni.pcf
/opt/local/share/emacs/fonts/ind1c16-mule.pcf
/opt/local/share/emacs/fonts/ind1c24-mule.pcf
/opt/local/share/emacs/fonts/ind24-mule.pcf
/opt/local/share/emacs/fonts/ind24-uni.pcf
/opt/local/share/emacs/fonts/ipa14-etl.pcf
/opt/local/share/emacs/fonts/ipa16-etl.pcf
/opt/local/share/emacs/fonts/ipa24-etl.pcf
	:

fonts/bm/monafont-2.90

preparation
curl -RO -C - http://jaist.dl.sourceforge.net/sourceforge/monafont/monafont-2.90.tar.bz2
tar xvjf monafont-2.90.tar.bz2
build
make X11FONTDIR=/opt/local/X11R6/lib/X11/fonts/local
installation
make X11FONTDIR=/opt/local/X11R6/lib/X11/fonts/local install
installed
/opt/local/X11R6/lib/X11/fonts/local/fonts.dir
/opt/local/X11R6/lib/X11/fonts/local/mona6x12a.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona6x12aB.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona6x12aBI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona6x12aI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona6x12r.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona6x12rB.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona6x12rBI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona6x12rI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona7x14a.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona7x14aB.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona7x14aBI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona7x14aI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona7x14r.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona7x14rB.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona7x14rBI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona7x14rI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona8x16a.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona8x16aB.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona8x16aBI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona8x16aI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona8x16r.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona8x16rB.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona8x16rBI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/mona8x16rI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monak12.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monak12B.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monak12BI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monak12I.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monak14.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monak14B.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monak14BI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monak14I.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monak16.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monak16B.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monak16BI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monak16I.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monau12.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monau12B.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monau12BI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monau12I.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monau14.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monau14B.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monau14BI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monau14I.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monau16.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monau16B.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monau16BI.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/monau16I.pcf.gz

fonts/bm/ayu-20050827

preparation
curl -RO -C - http://keihanna.dl.sourceforge.jp/x-tt/8536/ayu20gothic-1.7a.tar.gz
curl -RO -C - http://keihanna.dl.sourceforge.jp/x-tt/8494/ayu18mincho-1.1.tar.gz
curl -RO -C - http://keihanna.dl.sourceforge.jp/x-tt/8535/ayu18gothic-1.3a.tar.gz
mkdir ayu-20050827 && (cd ayu-20050827 && tar xvzf ../ayu18gothic-1.3a.tar.gz && tar xvzf ../ayu18mincho-1.1.tar.gz && tar xvzf ../ayu20gothic-1.7a.tar.gz)
build
for bdf in *.bdf; do
  bdftopcf "$bdf" | gzip -9 > `dirname "$bdf"`/`basename "$bdf" .bdf`.pcf.gz
done
installation
cp *.pcf* /opt/local/X11R6/lib/X11/fonts/local
(cd /opt/local/X11R6/lib/X11/fonts/local && mkfontdir .)
installed
/opt/local/X11R6/lib/X11/fonts/local/10x20gm.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20grkm.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/9x18gm.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/9x18grkm.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/9x18m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/9x18rkm.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/fonts.dir
/opt/local/X11R6/lib/X11/fonts/local/k18gm.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/k18m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/k20gm.pcf.gz

fonts/bm/Kappa20-0.396

preparation
curl -RO -C - http://khdd.net/20dot.fonts/Kappa20-0.396.tar.bz2
tar xvjf Kappa20-0.396.tar.bz2
build
make TARGETDIR=/opt/local/X11R6/lib/X11/fonts/local all 
installation
make TARGETDIR=/opt/local/X11R6/lib/X11/fonts/local install 
installed
/opt/local/X11R6/lib/X11/fonts/local/10x20b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L10b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L10m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L2b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L2m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L3b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L3m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L4b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L4m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L5b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L5m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L6b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L6m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L7b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L7m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L8b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L8m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L9b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20L9m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20rkb.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/10x20rkm.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/fonts.alias
/opt/local/X11R6/lib/X11/fonts/local/fonts.dir
/opt/local/X11R6/lib/X11/fonts/local/ipa-10x20b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/ipa-10x20m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/k20b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/k20m.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/nk20b-1.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/vk20b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/local/vk20m.pcf.gz

fonts/bm/japanese+fonts-20050721

preparation
if [ ! -f japanese+fonts-20050721.tar.bz2 ]; then
[ ! -d japanese+fonts-20050721 ] && mkdir japanese+fonts-20050721
(cd japanese+fonts-20050721
curl -RO -C - http://hp.vector.co.jp/authors/VA013391/fonts/knj10-1.1.tar.gz
tar xvzf knj10-1.1.tar.gz
curl -RO -C - http://khdd.net/kanou/fonts/k14.patch
curl -RO -C - http://www12.ocn.ne.jp/~imamura/K12-1.bdf.gz
curl -RO -C - http://www12.ocn.ne.jp/~imamura/K12-2.bdf.gz
curl -RO -C - http://www12.ocn.ne.jp/~imamura/K14-2004-1.bdf.gz
curl -RO -C - http://www12.ocn.ne.jp/~imamura/K14-2000-1.bdf.gz
curl -RO -C - http://www12.ocn.ne.jp/~imamura/K14-2000-2.bdf.gz
curl -RO -C - http://www12.ocn.ne.jp/~imamura/jiskan16-2004-1.bdf.gz
curl -RO -C - http://www12.ocn.ne.jp/~imamura/jiskan16-2000-1.bdf.gz
curl -RO -C - http://www12.ocn.ne.jp/~imamura/jiskan16-2000-2.bdf.gz
curl -RO -C - http://www12.ocn.ne.jp/~imamura/A12.bdf.gz
curl -RO -C - http://www12.ocn.ne.jp/~imamura/A14.bdf.gz
curl -RO -C - http://gitatsu.hp.infoseek.co.jp/bdf/jiskan24-2000-1.bdf.gz
curl -RO -C - http://gitatsu.hp.infoseek.co.jp/bdf/jiskan24-2000-2.bdf.gz
curl -RO -C - http://gitatsu.hp.infoseek.co.jp/bdf/jiskan24-2003-1.bdf.gz
curl -RO -C - http://www.gelgoog.org/warabi12/archives/warabi12-0.19a.tar.gz
tar xvzf warabi12-0.19a.tar.gz
curl -RO -C - http://www.geocities.co.jp/SiliconValley-Oakland/7410/arc/misaki/mskbdb09.tar.gz
[ ! -d mskbdb09 ] && mkdir mskbdb09
tar xvzf mskbdb09.tar.gz -C mskbdb09
curl -RO -C - http://www.tea.forus.or.jp/toshi/exhibition/elisat10.tar.gz
[ ! -d elisat10 ] && mkdir elisat10
tar xvzf elisat10.tar.gz -C elisat10
curl -RO -C - http://www.vector.co.jp/pack/data/writing/font/elisa/elisau10.tgz
[ ! -d elisau10 ] && mkdir elisau10
tar xvzf elisau10.tgz -C elisau10
curl -RO -C - http://www.tsg.ne.jp/GANA/S/pcf2bdf/pcf2bdf-1.04.tgz
[ ! -d pcf2bdf-1.04 ] && mkdir pcf2bdf-1.04
tar xvzf pcf2bdf-1.04.tgz -C pcf2bdf-1.04
)
tar cvjf japanese+fonts-20050721.tar.bz2 japanese+fonts-20050721
else
tar xvjf japanese+fonts-20050721.tar.bz2
fi
build
(cd pcf2bdf-1.04
make -f Makefile.gcc CC=g++ PREFIX=/opt/local
)
(
cp -p /usr/X11R6/lib/X11/fonts/misc/k14.pcf.gz .
gunzip k14.pcf.gz
./pcf2bdf-1.04/pcf2bdf k14.pcf -o k14.bdf
rm k14.pcf
patch -p0 < k14.patch
)
(cd knj10-1.1
patch -p0 -o maru10.bdf < maru10.bdf.diff
patch -p0 -o min10.bdf < min10.bdf.diff
)
(cd elisau10
gzip -dc /usr/X11R6/lib/X11/fonts/misc/clR5x8.pcf.gz > clR5x8.pcf
../pcf2bdf-1.04/pcf2bdf clR5x8.pcf -o clR5x8.bdf
sed '
s/^\(FONT -[^-]*-\)/\1Descent2/;
s/^\(FONTBOUNDINGBOX [-0-9]* [-0-9]* [-0-9]* \)[-0-9]*/\1-2/;
s/^\(FAMILY_NAME "\)/\1Descent2/;
s/^\(FONT_ASCENT \)[-0-9]*/\16/;
s/^\(FONT_DESCENT \)[-0-9]*/\12/;
s/^\(BBX [-0-9]* [-0-9]* [-0-9]* \)[-0-9]*/\1-2/
' clR5x8.bdf > s5x8.bdf && rm clR5x8.bdf
)
(cd mskbdb09
patch -o misakimn.bdf < misakimn.diff
)

for bz in `find . -name \*.bdf.gz`; do
  b=`dirname $bz`/`basename $bz .gz`
  p=`basename $b .bdf`.pcf
  pz=$p.gz
  gunzip $bz && bdftopcf -o $p $b && gzip -f $p && gzip -f $b
done
for b in `find . -name \*.bdf`; do
  p=`basename $b .bdf`.pcf
  pz=$p.gz
  bdftopcf -o $p $b && gzip -f $p
done
cat `find . -mindepth 2 -name fonts.alias` | sort | uniq > fonts.alias
installation
prefix=/opt/local
fontdir=$prefix/X11R6/lib/X11/fonts/japanese+
[ ! -d "$fontdir" ] && mkdir "$fontdir"
cp *.pcf.gz fonts.alias "$fontdir" && (cd "$fontdir" && mkfontdir .)
installed
/opt/local/X11R6/lib/X11/fonts/japanese+/4x8.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/4x8_8859.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/5x10a.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/5x10B.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/5x10rk.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/A12.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/A14.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/elisat10.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/elisau10.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/fonts.alias
/opt/local/X11R6/lib/X11/fonts/japanese+/fonts.dir
/opt/local/X11R6/lib/X11/fonts/japanese+/jiskan16-2000-1.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/jiskan16-2000-2.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/jiskan16-2004-1.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/jiskan24-2000-1.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/jiskan24-2000-2.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/jiskan24-2003-1.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/jpnhn4-iso.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/jpnhn4-jis.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/K12-1.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/K12-2.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/K14-2000-1.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/K14-2000-2.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/K14-2004-1.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/k14.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/knj10.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/knj10B.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/maru10.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/min10.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/misaki.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/misakimn.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/s5x8.pcf.gz
/opt/local/X11R6/lib/X11/fonts/japanese+/warabi12-1.pcf.gz

fonts/bm/shinonome-0.9.11

preparation
curl -RO -C - http://openlab.ring.gr.jp/efont/dist/shinonome/shinonome-0.9.11p1.tar.bz2
tar xvjf shinonome-0.9.11p1.tar.bz2
build
./configure --prefix=/opt/local --disable-compress --with-pcf --without-bdf
make
installation
make install
#make install-alias
installed
/opt/local/X11R6/lib/X11/fonts/japanese/fonts.dir
/opt/local/X11R6/lib/X11/fonts/japanese/shnm6x12a.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm6x12ab.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm6x12abi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm6x12ai.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm6x12r.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm6x12rb.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm6x12rbi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm6x12ri.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm7x14a.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm7x14ab.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm7x14abi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm7x14ai.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm7x14r.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm7x14rb.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm7x14rbi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm7x14ri.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm8x16a.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm8x16ab.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm8x16abi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm8x16ai.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm8x16r.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm8x16rb.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm8x16rbi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm8x16ri.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm9x18a.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm9x18ab.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm9x18abi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm9x18ai.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm9x18r.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm9x18rb.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm9x18rbi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnm9x18ri.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12b.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12bi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12i.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12maru.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12marub.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12marubi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12marui.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12min.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12minb.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12minbi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12mini.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12p.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12pb.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12pbi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk12pi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk14.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk14b.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk14bi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk14i.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk14min.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk14minb.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk14minbi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk14mini.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk16.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk16b.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk16bi.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk16i.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk16min.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk16minb.pcf
/opt/local/X11R6/lib/X11/fonts/japanese/shnmk16minbi.pcf
	:

fonts/bm/mplus_bitmap_fonts-2.2.4

preparation
curl -RO -C - http://jaist.dl.sourceforge.jp/mplus-fonts/5030/mplus_bitmap_fonts-2.2.4.tar.gz
tar xvzf mplus_bitmap_fonts-2.2.4.tar.gz
build
installation
env DESTDIR=/opt/local/X11R6/lib/X11/fonts/mplus ./install_mplus_fonts
installed
/opt/local/X11R6/lib/X11/fonts/mplus/fonts.alias
/opt/local/X11R6/lib/X11/fonts/mplus/fonts.dir
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_f10b-euro.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_f10b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_f10r-euro.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_f10r.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_f12b-euro.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_f12b-jisx0201.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_f12b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_f12r-euro.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_f12r-jisx0201.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_f12r.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h10b-euro.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h10b-jisx0201.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h10b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h10r-euro.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h10r-jisx0201.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h10r.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h12b-euro.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h12b-jisx0201.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h12b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h12r-euro.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h12r-jisx0201.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h12r.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h12rw-euro.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_h12rw.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_j10b-iso.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_j10b-jisx0201.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_j10b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_j10r-iso.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_j10r-jisx0201.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_j10r.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_j12b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_j12r.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_q06r-euro.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_q06r.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_s10b-euro.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_s10b.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_s10r-euro.pcf.gz
/opt/local/X11R6/lib/X11/fonts/mplus/mplus_s10r.pcf.gz

editors/site-lisp/mew-6.2.51

preparation
curl -ROL -C - http://www.mew.org/Beta/mew-6.2.51.tar.gz
tar xvzf mew-6.2.51.tar.gz
build
./configure 'CC=gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp LDFLAGS=-L/opt/local/lib --prefix=/opt/local 
make 
installation
make install 
installed
/opt/local/bin/cmew
/opt/local/bin/incm
/opt/local/bin/mew-pinentry
/opt/local/bin/mewcat
/opt/local/bin/mewdecode
/opt/local/bin/mewencode
/opt/local/bin/mewest
/opt/local/bin/mewl
/opt/local/bin/smew
/opt/local/share/emacs/site-lisp/mew/etc/etc/COLOR
/opt/local/share/emacs/site-lisp/mew/etc/etc/mew-curr.xpm
/opt/local/share/emacs/site-lisp/mew/etc/etc/mew-folder.xpm
/opt/local/share/emacs/site-lisp/mew/etc/etc/mew-inc2.xpm
/opt/local/share/emacs/site-lisp/mew/etc/etc/mew-kill.xpm
/opt/local/share/emacs/site-lisp/mew/etc/etc/mew-Plain.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-attach.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-Audio.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-Blank.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-cite.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-External.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-Folder.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-forward.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-Image.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-inc.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-lock.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-next.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-Octet-Stream.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-pgp-enc.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-pgp-sigenc.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-pgp-sign.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-Postscript.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-prev.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-queue.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-refile.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-reply.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-Rfc822.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-send.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-sep.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-show.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-Text.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-Unknown.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-Video.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-write.xpm
/opt/local/share/emacs/site-lisp/mew/etc/mew-yank.xpm
/opt/local/share/emacs/site-lisp/mew/etc/Mew.img
/opt/local/share/emacs/site-lisp/mew/etc/Mew.png
/opt/local/share/emacs/site-lisp/mew/etc/Mew.xbm
/opt/local/share/emacs/site-lisp/mew/etc/Mew.xpm
/opt/local/share/emacs/site-lisp/mew/mew-addrbook.el
/opt/local/share/emacs/site-lisp/mew/mew-addrbook.elc
/opt/local/share/emacs/site-lisp/mew/mew-attach.el
/opt/local/share/emacs/site-lisp/mew/mew-attach.elc
/opt/local/share/emacs/site-lisp/mew/mew-auth.el
/opt/local/share/emacs/site-lisp/mew/mew-auth.elc
/opt/local/share/emacs/site-lisp/mew/mew-blvs.el
/opt/local/share/emacs/site-lisp/mew/mew-blvs.elc
/opt/local/share/emacs/site-lisp/mew/mew-bq.el
/opt/local/share/emacs/site-lisp/mew/mew-bq.elc
/opt/local/share/emacs/site-lisp/mew/mew-cache.el
/opt/local/share/emacs/site-lisp/mew/mew-cache.elc
/opt/local/share/emacs/site-lisp/mew/mew-complete.el
/opt/local/share/emacs/site-lisp/mew/mew-complete.elc
/opt/local/share/emacs/site-lisp/mew/mew-config.el
/opt/local/share/emacs/site-lisp/mew/mew-config.elc
	:

editors/site-lisp/tamago-20090601

preparation
if [ ! -f tamago-20090601.tar.bz2 ]; then
cvs -d:pserver:anonymous@cvs.m17n.org:/cvs/tamago login
cvs -d:pserver:anonymous@cvs.m17n.org:/cvs/tamago co tamago
[ -d tamago-20090601 ] || mkdir tamago-20090601
(cd tamago && tar cf - .) | (cd tamago-20090601 && tar xvf -)
tar cvjf tamago-20090601.tar.bz2 tamago-20090601
else
tar xvjf tamago-20090601.tar.bz2
fi
curl -ROL -C - http://www.meadowy.org/~shirai/elips/egg-anthy.tar.gz
tar xvzf egg-anthy.tar.gz
mv egg-anthy-20070606/* tamago-20090601/egg && rm -rf egg-anthy-20070606
(cd tamago-20090601 &&
patch -p0 < ../tamago-20090601-emacs23.patch
)
build
./configure --prefix=/opt/local 
make 
installation
make INSTALL=/usr/bin/install install 
installed
/opt/local/share/emacs/site-lisp/egg/egg/anthy.el
/opt/local/share/emacs/site-lisp/egg/egg/anthy.elc
/opt/local/share/emacs/site-lisp/egg/egg/anthyipc.el
/opt/local/share/emacs/site-lisp/egg/egg/anthyipc.elc
/opt/local/share/emacs/site-lisp/egg/egg/canna.el
/opt/local/share/emacs/site-lisp/egg/egg/canna.elc
/opt/local/share/emacs/site-lisp/egg/egg/cannarpc.el
/opt/local/share/emacs/site-lisp/egg/egg/cannarpc.elc
/opt/local/share/emacs/site-lisp/egg/egg/sj3.el
/opt/local/share/emacs/site-lisp/egg/egg/sj3.elc
/opt/local/share/emacs/site-lisp/egg/egg/sj3rpc.el
/opt/local/share/emacs/site-lisp/egg/egg/sj3rpc.elc
/opt/local/share/emacs/site-lisp/egg/egg/wnn.el
/opt/local/share/emacs/site-lisp/egg/egg/wnn.elc
/opt/local/share/emacs/site-lisp/egg/egg/wnnrpc.el
/opt/local/share/emacs/site-lisp/egg/egg/wnnrpc.elc
/opt/local/share/emacs/site-lisp/egg/egg-cnv.el
/opt/local/share/emacs/site-lisp/egg/egg-cnv.elc
/opt/local/share/emacs/site-lisp/egg/egg-com.el
/opt/local/share/emacs/site-lisp/egg/egg-com.elc
/opt/local/share/emacs/site-lisp/egg/egg-edep.el
/opt/local/share/emacs/site-lisp/egg/egg-edep.elc
/opt/local/share/emacs/site-lisp/egg/egg-mlh.el
/opt/local/share/emacs/site-lisp/egg/egg-mlh.elc
/opt/local/share/emacs/site-lisp/egg/egg-sim.el
/opt/local/share/emacs/site-lisp/egg/egg-sim.elc
/opt/local/share/emacs/site-lisp/egg/egg.el
/opt/local/share/emacs/site-lisp/egg/egg.elc
/opt/local/share/emacs/site-lisp/egg/eggrc
/opt/local/share/emacs/site-lisp/egg/its/ascii.el
/opt/local/share/emacs/site-lisp/egg/its/ascii.elc
/opt/local/share/emacs/site-lisp/egg/its/aynu.el
/opt/local/share/emacs/site-lisp/egg/its/aynu.elc
/opt/local/share/emacs/site-lisp/egg/its/bixing.el
/opt/local/share/emacs/site-lisp/egg/its/bixing.elc
/opt/local/share/emacs/site-lisp/egg/its/erpin.el
/opt/local/share/emacs/site-lisp/egg/its/erpin.elc
/opt/local/share/emacs/site-lisp/egg/its/greek.el
/opt/local/share/emacs/site-lisp/egg/its/greek.elc
/opt/local/share/emacs/site-lisp/egg/its/hangul.el
/opt/local/share/emacs/site-lisp/egg/its/hangul.elc
/opt/local/share/emacs/site-lisp/egg/its/hankata.el
/opt/local/share/emacs/site-lisp/egg/its/hankata.elc
/opt/local/share/emacs/site-lisp/egg/its/hira.el
/opt/local/share/emacs/site-lisp/egg/its/hira.elc
/opt/local/share/emacs/site-lisp/egg/its/jeonkak.el
/opt/local/share/emacs/site-lisp/egg/its/jeonkak.elc
/opt/local/share/emacs/site-lisp/egg/its/kata.el
/opt/local/share/emacs/site-lisp/egg/its/kata.elc
/opt/local/share/emacs/site-lisp/egg/its/pinyin.el
/opt/local/share/emacs/site-lisp/egg/its/pinyin.elc
/opt/local/share/emacs/site-lisp/egg/its/quanjiao.el
/opt/local/share/emacs/site-lisp/egg/its/quanjiao.elc
/opt/local/share/emacs/site-lisp/egg/its/thai.el
/opt/local/share/emacs/site-lisp/egg/its/thai.elc
/opt/local/share/emacs/site-lisp/egg/its/zenkaku.el
/opt/local/share/emacs/site-lisp/egg/its/zenkaku.elc
/opt/local/share/emacs/site-lisp/egg/its/zhuyin.el
/opt/local/share/emacs/site-lisp/egg/its/zhuyin.elc
/opt/local/share/emacs/site-lisp/egg/its-keydef.el
/opt/local/share/emacs/site-lisp/egg/its-keydef.elc
/opt/local/share/emacs/site-lisp/egg/its.el
/opt/local/share/emacs/site-lisp/egg/its.elc
/opt/local/share/emacs/site-lisp/egg/leim-list.el
	:

editors/site-lisp/mule-ucs-20061127-1

preparation
curl -ROL -C - http://www.meadowy.org/~shirai/elips/mule-ucs.tar.gz
tar xvzf mule-ucs.tar.gz
build
/opt/local/bin/emacs -q --no-site-file -batch -l mucs-comp.el 
(cd lisp/jisx0213 && /opt/local/bin/emacs -q --no-site-file -batch -l x0213-comp.el)
(cd lisp/big5conv && /opt/local/bin/emacs -q --no-site-file -batch -l big5-comp.el)
installation
rm -rf /opt/local/share/emacs/site-lisp/mule-ucs
cp -RL lisp /opt/local/share/emacs/site-lisp/mule-ucs
installed
/opt/local/share/emacs/site-lisp/mule-ucs/big5conv/big5-comp.el
/opt/local/share/emacs/site-lisp/mule-ucs/big5conv/big5c-cns.el
/opt/local/share/emacs/site-lisp/mule-ucs/big5conv/big5c-ucs.el
/opt/local/share/emacs/site-lisp/mule-ucs/big5conv/big5conv.el
/opt/local/share/emacs/site-lisp/mule-ucs/big5conv/big5conv.elc
/opt/local/share/emacs/site-lisp/mule-ucs/big5conv/big5type.el
/opt/local/share/emacs/site-lisp/mule-ucs/big5conv/big5type.elc
/opt/local/share/emacs/site-lisp/mule-ucs/big5conv/README
/opt/local/share/emacs/site-lisp/mule-ucs/ChangeLog
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/ChangeLog
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/egg-sim-jisx0213.el
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/jisx0213.el
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/readme.txt
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/ujisx0213.el
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/x0213-cdef.el
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/x0213-cdef.elc
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/x0213-char.el
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/x0213-comp.el
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/x0213-csys.el
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/x0213-font.el
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/x0213-font.elc
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/x0213-mime.el
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/x0213-mime.elc
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/x0213-sjis.el
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/x0213-udef.el
/opt/local/share/emacs/site-lisp/mule-ucs/jisx0213/x0213-util.el
/opt/local/share/emacs/site-lisp/mule-ucs/mccl-font.el
/opt/local/share/emacs/site-lisp/mule-ucs/mccl-font.elc
/opt/local/share/emacs/site-lisp/mule-ucs/mucs-ccl.el
/opt/local/share/emacs/site-lisp/mule-ucs/mucs-ccl.elc
/opt/local/share/emacs/site-lisp/mule-ucs/mucs-error.el
/opt/local/share/emacs/site-lisp/mule-ucs/mucs-error.elc
/opt/local/share/emacs/site-lisp/mule-ucs/mucs-type.el
/opt/local/share/emacs/site-lisp/mule-ucs/mucs-type.elc
/opt/local/share/emacs/site-lisp/mule-ucs/mucs.el
/opt/local/share/emacs/site-lisp/mule-ucs/mucs.elc
/opt/local/share/emacs/site-lisp/mule-ucs/mule-uni.el
/opt/local/share/emacs/site-lisp/mule-ucs/mule-uni.elc
/opt/local/share/emacs/site-lisp/mule-ucs/MuleUni.txt
/opt/local/share/emacs/site-lisp/mule-ucs/README
/opt/local/share/emacs/site-lisp/mule-ucs/README.Unicode
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/u-cns-1.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/u-cns-2.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/u-cns-3.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/u-cns-4.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/u-cns-5.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/u-cns-6.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/u-cns-7.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uascii.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/ubig5.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uethiopic.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/ugb2312.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uipa.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uiscii.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uiso8859-1.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uiso8859-14.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uiso8859-15.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uiso8859-2.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uiso8859-3.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uiso8859-4.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uiso8859-5.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uiso8859-6.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uiso8859-7.el
/opt/local/share/emacs/site-lisp/mule-ucs/reldata/uiso8859-8.el
	:

wm/blackbox-0.70.1+themes

build

installation
cp JapaneseTraditionalColorsB JapaneseTraditionalColorsG JapaneseTraditionalColorsO JapaneseTraditionalColorsR JapaneseTraditionalColorsY /opt/local/share/blackbox/styles/ 
installed
/opt/local/share/blackbox/styles/JapaneseTraditionalColorsB
/opt/local/share/blackbox/styles/JapaneseTraditionalColorsG
/opt/local/share/blackbox/styles/JapaneseTraditionalColorsO
/opt/local/share/blackbox/styles/JapaneseTraditionalColorsR
/opt/local/share/blackbox/styles/JapaneseTraditionalColorsY

wm/blackbox-0.70.1

preparation
curl -RO -C - http://jaist.dl.sourceforge.net/sourceforge/blackboxwm/blackbox-0.70.1.tar.bz2
tar xvjf blackbox-0.70.1.tar.bz2
build
./configure 'CC=gcc -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp 'CXX=g++ -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 'CXXCPP=g++ -E' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local 
make 
installed
/opt/local/bin/blackbox
/opt/local/bin/bsetbg
/opt/local/bin/bsetroot
/opt/local/bin/bstyleconvert
/opt/local/include/bt/Application.hh
/opt/local/include/bt/Bitmap.hh
/opt/local/include/bt/Color.hh
/opt/local/include/bt/Display.hh
/opt/local/include/bt/EventHandler.hh
/opt/local/include/bt/EWMH.hh
/opt/local/include/bt/Font.hh
/opt/local/include/bt/Image.hh
/opt/local/include/bt/Menu.hh
/opt/local/include/bt/Pen.hh
/opt/local/include/bt/PixmapCache.hh
/opt/local/include/bt/Rect.hh
/opt/local/include/bt/Resource.hh
/opt/local/include/bt/Texture.hh
/opt/local/include/bt/Timer.hh
/opt/local/include/bt/Unicode.hh
/opt/local/include/bt/Util.hh
/opt/local/include/bt/XDG.hh
/opt/local/lib/libbt.a
/opt/local/lib/libbt.la
/opt/local/lib/pkgconfig/libbt.pc
/opt/local/man/man1/blackbox.1
/opt/local/man/man1/bsetbg.1
/opt/local/man/man1/bsetroot.1
/opt/local/share/blackbox/menu
/opt/local/share/blackbox/styles/Blue
/opt/local/share/blackbox/styles/Gray
/opt/local/share/blackbox/styles/Green
/opt/local/share/blackbox/styles/Purple
/opt/local/share/blackbox/styles/Red

x11/input/mac/kinput2-v3.1

preparation
curl -O -C - ftp://ftp.sra.co.jp/pub/x11/kinput2/kinput2-v3.1.tar.gz
curl -RO -C - http://canna.sourceforge.jp/canna37patches/kinput2-v3.1-canna37.diff
curl -RO -C - http://homepage1.nifty.com/daemon/MachTen/sonoda/kinput2.fix4.macim.0.2.patch.gz
curl -RO -C - http://homepage1.nifty.com/daemon/MachTen/sonoda/Kinput2-MacIM.README.gz
curl -RO -C - http://www.sol.dti.ne.jp/~kikuyan/macosx/patches/kinput2-v3.1-macim-20050629.patch.gz
tar xvzf kinput2-v3.1.tar.gz
(cd kinput2-v3.1 &&
patch -p1 < ../kinput2-v3.1-canna37.diff &&
gzcat ../kinput2.fix4.macim.0.2.patch.gz | sed -n -e '143,549p' -e '581,$p' | patch -p1 &&
gzcat ../kinput2-v3.1-macim-20050629.patch.gz | patch -p0
)
(cd kinput2-v3.1; patch -p0 < ../kinput2-v3.1-ubagami.patch)
build
xmkmf -a 
make 'CC=gcc -arch ppc -arch i386 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 
patch
diff -uN -r --exclude=Makefile --exclude='*.exe' --exclude='*.o' --exclude='*.a' --exclude='*.Plo' --exclude='*~' --exclude='*.org' --exclude='*.orig' --exclude='*.bak' --exclude='*.rej' --exclude=config.cache --exclude=config.status --exclude=config.h --exclude='*.log' --exclude=CVS --exclude=.cvsignore --exclude=.DS_Store ../kinput2-v3.1.org/Kinput2.conf ./Kinput2.conf
--- ../kinput2-v3.1.org/Kinput2.conf	2009-06-24 08:08:43.000000000 +0900
+++ ./Kinput2.conf	2009-06-23 20:17:39.000000000 +0900
@@ -15,12 +15,12 @@
  **	command line option.
  **/
 
-/* #define UseWnn */	/* define if you are going to use Wnn (v4, v6 or v7) */
+#define UseWnn	/* define if you are going to use Wnn (v4, v6 or v7) */
 /* #define UseWnn6 */	/* define if you are going to use Wnn6 or above */
-/* #define UseCanna */	/* define if you are going to use Canna */
+#define UseCanna	/* define if you are going to use Canna */
 /* #define UseSj3 */	/* define if you are going to use Sj3 */
 /* #define UseAtok */	/* define if you are going to use Atok */
-#define UseMacIM		/* define if you are going to use MacIM */
+#define UseMacIM		/* define if you are going to use MacIM */
 
 
 XCOMM Wnn configuration
@@ -35,7 +35,7 @@
  * You have to define WnnLibDir if Wnn4 configuration files
  * are not installed in /usr/local/lib/wnn (which is the default).
  */
-/* #define WnnLibDir /some/peculiar/directory/wnn */
+#define WnnLibDir /opt/local/lib/wnn
 
 /* for convenience.. */
 #if defined(UseWnn6) && !defined(UseWnn)
@@ -53,17 +53,17 @@
  * WnnLibDir above.
  */
 XCOMM use installed header files
-XCOMM WNNINCDIR = /usr/X11R6/include/wnn
+WNNINCDIR = /opt/local/include/wnn
 XCOMM use installed library
-XCOMM WNNLIB = -lwnn
+WNNLIB = -L/opt/local/lib -lwnn
 
 /*
  * Or, use library in the source tree..
  */
 XCOMM use library in the source tree
-WNNSRC = $(CONTRIBSRC)/programs/Xsi/Wnn
-WNNINCDIR = $(WNNSRC)/include
-WNNLIB = $(WNNSRC)/jlib/libwnn.a
+XCOMM WNNSRC = $(CONTRIBSRC)/programs/Xsi/Wnn
+XCOMM WNNINCDIR = $(WNNSRC)/include
+XCOMM WNNLIB = $(WNNSRC)/jlib/libwnn.a
 
 
 XCOMM Canna configuration
@@ -79,17 +79,17 @@
  * If you have already installed Canna header files and libraries..
  */
 XCOMM use installed headers/libraries
-XCOMM CANNAINSTDIR = /usr/local/canna
-XCOMM CANNASRC = $(CANNAINSTDIR)/include
-XCOMM CANNALIB = -lcanna16
+CANNAINSTDIR = /opt/local/canna
+CANNASRC = $(CANNAINSTDIR)/include
+CANNALIB = -L$(CANNAINSTDIR)/lib -lcanna16
 
 /*
  * If you have compiled Canna that came with X11R6 (contrib/programs/Canna),
  * but not installed yet..
  */
 XCOMM use headers/libraries in the source tree
-CANNASRC = $(CONTRIBSRC)/programs/Canna32
-CANNALIB = -L$(CANNASRC)/lib/canna16 -lcanna16
+XCOMM CANNASRC = $(CONTRIBSRC)/programs/Canna32
+XCOMM CANNALIB = -L$(CANNASRC)/lib/canna16 -lcanna16
 
 
 XCOMM SJ3 configuration
@@ -111,15 +111,15 @@
  */
 XCOMM use installed header/library
 XCOMM specify the directory where libsj3.h resides as SJ3SRC.
-XCOMM SJ3SRC = /usr/local/include
-XCOMM SJ3LIB = -lsj3lib
+SJ3SRC = /opt/local/include
+SJ3LIB = -L/opt/local/lib -lsj3lib
 
 /*
  * Use compiled library in the source tree..
  */
 XCOMM use library in the source tree
-SJ3SRC = $(CONTRIBSRC)/programs/sj3
-SJ3LIB = $(SJ3SRC)/sj3lib/libsj3lib.a
+XCOMM SJ3SRC = $(CONTRIBSRC)/programs/sj3
+XCOMM SJ3LIB = $(SJ3SRC)/sj3lib/libsj3lib.a
 
 
 XCOMM Atok configuration
diff -uN -r --exclude=Makefile --exclude='*.exe' --exclude='*.o' --exclude='*.a' --exclude='*.Plo' --exclude='*~' --exclude='*.org' --exclude='*.orig' --exclude='*.bak' --exclude='*.rej' --exclude=config.cache --exclude=config.status --exclude=config.h --exclude='*.log' --exclude=CVS --exclude=.cvsignore --exclude=.DS_Store ../kinput2-v3.1.org/lib/wnnlib.c ./lib/wnnlib.c
--- ../kinput2-v3.1.org/lib/wnnlib.c	2002-10-03 18:35:28.000000000 +0900
+++ ./lib/wnnlib.c	2009-06-23 20:15:54.000000000 +0900
@@ -1367,7 +1367,7 @@
 
 	/* $BJQ49J8;zNs$ND9$5$N%A%'%C%/(B */
 	clp = buf->clauseInfo + cl;
-	len = jl_kanji_len(buf->wnn, cl);
+	len = jl_kanji_len(buf->wnn, cl, 0);
 	diff = len - ((clp + 1)->dispp - clp->dispp);
 	newlen = (buf->displayEnd - buf->displayBuf) + diff;
 	if (newlen > buf->bufferSize) {
installed
/usr/X11R6/bin/kinput2
/usr/X11R6/lib/X11/ccdef/ccdef.kinput2
/usr/X11R6/lib/X11/ccdef/ccdef.kinput2.egg
/usr/X11R6/lib/X11/ccdef/rule.eggfunc
/usr/X11R6/lib/X11/ccdef/rule.func
/usr/X11R6/lib/X11/ccdef/rule.greek
/usr/X11R6/lib/X11/ccdef/rule.hiragana.egg
/usr/X11R6/lib/X11/ccdef/rule.kana
/usr/X11R6/lib/X11/ccdef/rule.kana2
/usr/X11R6/lib/X11/ccdef/rule.katakana.egg
/usr/X11R6/lib/X11/ccdef/rule.kigou.egg
/usr/X11R6/lib/X11/ccdef/rule.roma
/usr/X11R6/lib/X11/ccdef/rule.wnnroma
/usr/X11R6/lib/X11/ccdef/rule.zascii
/usr/X11R6/man/man1/kinput2.1
/etc/X11/app-defaults/Kinput2

input/Canna37p3

preparation
curl -RO -C - http://keihanna.dl.sourceforge.jp/canna/9565/Canna37p3.tar.bz2
tar xvjf Canna37p3.tar.bz2
(cd Canna37p3 && patch -b -z.org -p0 < ../Canna37p3-ubagami.patch)
build
xmkmf -a 
make CC='gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp canna 
patch
--- ./canna/widedef.h.org	2003-12-28 02:15:20.000000000 +0900
+++ ./canna/widedef.h	2005-07-23 01:53:04.000000000 +0900
@@ -32,7 +32,7 @@
 #endif
 
 #if (defined(__FreeBSD__) && __FreeBSD_version < 500000) \
-    || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+    || defined(__NetBSD__) || defined(__OpenBSD__)/* || defined(__APPLE__)*/
 # include <machine/ansi.h>
 #endif
 
--- ./Canna.conf.org	2004-05-20 00:48:47.000000000 +0900
+++ ./Canna.conf	2005-07-23 01:53:28.000000000 +0900
@@ -109,7 +109,7 @@
 # define DefErrDir $(cannaPrefix)/log
 # define DefLibCannaDir $(cannaExecPrefix)/lib
 #else 
-# define DefCannaPrefix /usr/local/canna
+# define DefCannaPrefix /opt/local/canna
 # ifdef ObsoleteInstallDir
 #  define DefErrDir /usr/spool/canna
 #  define DefLibCannaDir /usr/lib
@@ -169,8 +169,8 @@
 #define ModernElfLink NO /* experimental */
 
 
-cannaOwner = bin
-cannaGroup = bin
+cannaOwner = nobody
+cannaGroup = nobody
 
 #ifdef InstallAsUser
 cannaOwnerGroup =
installed
/opt/local/canna/bin/addwords
/opt/local/canna/bin/canlisp
/opt/local/canna/bin/cannacheck
/opt/local/canna/bin/cannastat
/opt/local/canna/bin/catdic
/opt/local/canna/bin/chkconc
/opt/local/canna/bin/chmoddic
/opt/local/canna/bin/cpdic
/opt/local/canna/bin/crfreq
/opt/local/canna/bin/crxdic
/opt/local/canna/bin/crxgram
/opt/local/canna/bin/cshost
/opt/local/canna/bin/ctow
/opt/local/canna/bin/delwords
/opt/local/canna/bin/dicar
/opt/local/canna/bin/dpbindic
/opt/local/canna/bin/dpromdic
/opt/local/canna/bin/dpxdic
/opt/local/canna/bin/forcpp
/opt/local/canna/bin/forsort
/opt/local/canna/bin/kpdic
/opt/local/canna/bin/lsdic
/opt/local/canna/bin/mergeword
/opt/local/canna/bin/mkbindic
/opt/local/canna/bin/mkdic
/opt/local/canna/bin/mkromdic
/opt/local/canna/bin/mvdic
/opt/local/canna/bin/rmdic
/opt/local/canna/bin/splitword
/opt/local/canna/bin/syncdic
/opt/local/canna/bin/wtoc
/opt/local/canna/include/canna/jrkanji.h
/opt/local/canna/include/canna/keydef.h
/opt/local/canna/include/canna/mfdef.h
/opt/local/canna/include/canna/pubconf.h
/opt/local/canna/include/canna/RK.h
/opt/local/canna/include/canna/sysdep.h
/opt/local/canna/lib/libcanna.1.2.dylib
/opt/local/canna/lib/libcanna.1.dylib
/opt/local/canna/lib/libcanna.a
/opt/local/canna/lib/libcanna.dylib
/opt/local/canna/lib/libcanna16.1.2.dylib
/opt/local/canna/lib/libcanna16.1.dylib
/opt/local/canna/lib/libcanna16.a
/opt/local/canna/lib/libcanna16.dylib
/opt/local/canna/lib/libRKC.1.2.dylib
/opt/local/canna/lib/libRKC.1.dylib
/opt/local/canna/lib/libRKC.a
/opt/local/canna/lib/libRKC.dylib
/opt/local/canna/lib/libRKC16.1.2.dylib
/opt/local/canna/lib/libRKC16.1.dylib
/opt/local/canna/lib/libRKC16.a
/opt/local/canna/lib/libRKC16.dylib
/opt/local/canna/man/ja/man1/addwords.1
/opt/local/canna/man/ja/man1/cannacheck.1
/opt/local/canna/man/ja/man1/cannakill.1
/opt/local/canna/man/ja/man1/cannaserver.1
/opt/local/canna/man/ja/man1/cannastat.1
/opt/local/canna/man/ja/man1/catdic.1
/opt/local/canna/man/ja/man1/chmoddic.1
/opt/local/canna/man/ja/man1/cpdic.1
/opt/local/canna/man/ja/man1/cshost.1
/opt/local/canna/man/ja/man1/ctow.1
/opt/local/canna/man/ja/man1/delwords.1
	:
host_configuration
if false; then
if [ ! -f /Library/LaunchDaemons/jp.sourceforge.cannaserver.plist ]; then
  cat <<EOF > /Library/LaunchDaemons/jp.sourceforge.cannaserver.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Disabled</key>
	<true/>
	<key>Label</key>
	<string>jp.sourceforge.cannaserver</string>
	<key>OnDemand</key>
	<false/>
	<key>Program</key>
	<string>/opt/local/canna/sbin/cannaserver</string>
	<key>ProgramArguments</key>
	<array>
		<string>cannaserver</string>
		<string>-u</string>
		<string>nobody</string>
		<string>-g</string>
		<string>nobody</string>
		<string>-inet</string>
	</array>
	<key>ServiceIPC</key>
	<false/>
</dict>
</plist>
EOF
fi
#launchctl load -w /Library/LaunchDaemons/jp.sourceforge.cannaserver.plist
else
[ ! -d /Library/StartupItems/CannaServer ] && \
mkdir /Library/StartupItems/CannaServer
if [ ! -f /Library/StartupItems/CannaServer/CannaServer ]; then
  cat <<EOF > /Library/StartupItems/CannaServer/CannaServer
#!/bin/sh

##
# Canna Server
##

. /etc/rc.common

StartService ()
{
	[ -S /tmp/.iroha_unix/IROHA ] && /opt/local/canna/sbin/cannakill
	rm -f /tmp/.iroha_unix/IROHA
	touch /var/log/CANNA0msgs
	chown nobody /var/log/CANNA0msgs
	chgrp nobody /var/log/CANNA0msgs
	/opt/local/canna/sbin/cannaserver -u nobody -g nobody -inet
}

StopService ()
{
	/opt/local/canna/sbin/cannakill
}

RestartService () { StopService; StartService; }

RunService "\$1"
EOF
  chmod +x /Library/StartupItems/CannaServer/CannaServer
fi
if [ ! -f /Library/StartupItems/CannaServer/StartupParameters.plist ]; then
  cat <<EOF > /Library/StartupItems/CannaServer/StartupParameters.plist
{
  Description     = "Canna Server";
  Provides        = ("Canna Server");
}
EOF
fi
#/Library/StartupItems/CannaServer/CannaServer start
fi
host_unconfiguration
if false; then
launchctl unload -w /Library/LaunchDaemons/jp.sourceforge.cannaserver.plist &&
echo rm -f /Library/LaunchDaemons/jp.sourceforge.cannaserver.plist
else
/Library/StartupItems/CannaServer/CannaServer stop &&
rm -rf /Library/StartupItems/CannaServer
fi

input/FreeWnn-20090623

preparation
if [ ! -f FreeWnn-20090623.tar.bz2 ]; then
cvs -d:pserver:anonymous@cvs.sourceforge.jp:/cvsroot/freewnn login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.jp:/cvsroot/freewnn co FreeWnn
[ ! -d FreeWnn-20090623 ] && mkdir FreeWnn-20090623
(cd FreeWnn; tar cf - .) | (cd FreeWnn-20090623; tar xvf -)
tar cvjf FreeWnn-20090623.tar.bz2 FreeWnn-20090623
else
tar xvjf FreeWnn-20090623.tar.bz2
fi
build
if false; then	# cannot build shared libraries at single-stage build

./configure 'CC=gcc -arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local --with-libwrap --disable-shared &&
make WNNOWNER=nobody 
   
else

listup_binaries(){
  find . -type f | while read o; do
    case "$o" in
    ./.arch_ppc/*|./.arch_i386/*) continue	;;
    *)
      t="`file -b \"$o\"`"
      case "$t" in
      *"Mach-O executable"*)	;;
      *"ar archive random library"*)	;;
      *"Mach-O dynamically linked shared library"*)	;;
      *) continue	;;
      esac
      ;;
    esac
    echo "$o"
  done
}
./configure --host=i686-apple-darwin8 'CC=gcc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local --with-libwrap &&
make WNNOWNER=nobody &&
{
  [ -d .arch_i386 ] || mkdir .arch_i386 &&
  tar cf - `listup_binaries` | (cd .arch_i386 && tar xf -) &&
  make clean distclean
} &&
./configure --host=powerpc-apple-darwin 'CC=gcc -arch ppc -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' CPP=cpp --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local --with-libwrap &&
make WNNOWNER=nobody &&
{
  [ -d .arch_ppc ] || mkdir .arch_ppc &&
  tar cf - `listup_binaries` | (cd .arch_ppc && tar xf -) &&
  listup_binaries | while read o; do
    echo lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o"
    lipo -create -output "$o" -arch ppc .arch_ppc/"$o" -arch i386 .arch_i386/"$o" &&
    touch -r .arch_ppc/"$o" "$o"
  done
}

fi
installation
make WNNOWNER=nobody install install.man 
installed
/opt/local/bin/cWnn4/catod
/opt/local/bin/cWnn4/catof
/opt/local/bin/cWnn4/cdtoa
/opt/local/bin/cWnn4/cserver
/opt/local/bin/cWnn4/cwddel
/opt/local/bin/cWnn4/cwdreg
/opt/local/bin/cWnn4/cwnnkill
/opt/local/bin/cWnn4/cwnnstat
/opt/local/bin/cWnn4/cwnntouch
/opt/local/bin/cWnn4/tserver
/opt/local/bin/kWnn4/katod
/opt/local/bin/kWnn4/katof
/opt/local/bin/kWnn4/kdtoa
/opt/local/bin/kWnn4/kserver
/opt/local/bin/kWnn4/kwddel
/opt/local/bin/kWnn4/kwdreg
/opt/local/bin/kWnn4/kwnnkill
/opt/local/bin/kWnn4/kwnnstat
/opt/local/bin/kWnn4/kwnntouch
/opt/local/bin/Wnn4/atod
/opt/local/bin/Wnn4/atof
/opt/local/bin/Wnn4/dtoa
/opt/local/bin/Wnn4/jserver
/opt/local/bin/Wnn4/oldatonewa
/opt/local/bin/Wnn4/wddel
/opt/local/bin/Wnn4/wdreg
/opt/local/bin/Wnn4/wnnkill
/opt/local/bin/Wnn4/wnnstat
/opt/local/bin/Wnn4/wnntouch
/opt/local/include/cwnn/commonhd.h
/opt/local/include/cwnn/cplib.h
/opt/local/include/cwnn/jllib.h
/opt/local/include/cwnn/jslib.h
/opt/local/include/cwnn/msg.h
/opt/local/include/cwnn/rk_spclval.h
/opt/local/include/cwnn/wnnerror.h
/opt/local/include/kwnn/commonhd.h
/opt/local/include/kwnn/cplib.h
/opt/local/include/kwnn/jllib.h
/opt/local/include/kwnn/jslib.h
/opt/local/include/kwnn/msg.h
/opt/local/include/kwnn/rk_spclval.h
/opt/local/include/kwnn/wnnerror.h
/opt/local/include/wnn/commonhd.h
/opt/local/include/wnn/config.h
/opt/local/include/wnn/cplib.h
/opt/local/include/wnn/jlib.h
/opt/local/include/wnn/jllib.h
/opt/local/include/wnn/jslib.h
/opt/local/include/wnn/msg.h
/opt/local/include/wnn/rk_spclval.h
/opt/local/include/wnn/wnn_config.h
/opt/local/include/wnn/wnnerror.h
/opt/local/lib/libcwnn.0.0.0.dylib
/opt/local/lib/libcwnn.0.dylib
/opt/local/lib/libcwnn.a
/opt/local/lib/libcwnn.dylib
/opt/local/lib/libcwnn.la
/opt/local/lib/libjd.0.0.0.dylib
/opt/local/lib/libjd.0.dylib
/opt/local/lib/libjd.a
/opt/local/lib/libjd.dylib
/opt/local/lib/libjd.la
/opt/local/lib/libkwnn.0.0.0.dylib
	:
host_configuration
cjkwnntouch(){
  [ -f "$1" ] || return 1 &&
  case "$1" in
  */zh_CN/*|*/zh_TW/*|*/ja_JP/*|*/ko_KR/*)
    touch_r_file="`mktemp /tmp/cjkwnntouch.XXXXXX`"
    touch -r "$1" "$touch_r_file"
    ;;
  *) return 1;;
  esac &&
  case "$1" in
  */zh_CN/*|*/zh_TW/*)	/opt/local/bin/cWnn4/cwnntouch "$1"	;;
  */ja_JP/*)		/opt/local/bin/Wnn4/wnntouch "$1"	;;
  */ko_KR/*)		/opt/local/bin/kWnn4/kwnntouch "$1"	;;
  esac &&
  touch -r "$touch_r_file" "$1" &&
  rm -f "$touch_r_file"
}
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/pubdic/bio.dic
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/pubdic/chimei.dic
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/pubdic/computer.dic
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/pubdic/jinmei.dic
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/pubdic/kihon.dic
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/pubdic/koyuu.dic
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/pubdic/setsuji.dic
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/pubdic/special.dic
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/pubdic/symbol.dic
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/pubdic/tankan.dic
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/pubdic/full.fzk
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/pubdic/kougo.fzk
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/pubdic/std.fzk
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/wnncons/tankan2.dic
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/wnncons/tankan3.dic
cjkwnntouch /opt/local/lib/wnn/ja_JP/dic/gerodic/g-jinmei.dic
cjkwnntouch /opt/local/lib/wnn/zh_CN/dic/sys/full.con
cjkwnntouch /opt/local/lib/wnn/zh_CN/dic/sys/full.conR
cjkwnntouch /opt/local/lib/wnn/zh_CN/dic/sys/basic.dic
cjkwnntouch /opt/local/lib/wnn/zh_CN/dic/sys/level_1.dic
cjkwnntouch /opt/local/lib/wnn/zh_CN/dic/sys/level_2.dic
cjkwnntouch /opt/local/lib/wnn/zh_CN/dic/sys/computer.dic
cjkwnntouch /opt/local/lib/wnn/zh_CN/dic/sys/cwnn.dic
cjkwnntouch /opt/local/lib/wnn/zh_CN/dic/sys/WuBi.dic
cjkwnntouch /opt/local/lib/wnn/zh_CN/dic/sys/QianMa.dic
cjkwnntouch /opt/local/lib/wnn/zh_TW/dic/sys/full.con
cjkwnntouch /opt/local/lib/wnn/zh_TW/dic/sys/full.conR
cjkwnntouch /opt/local/lib/wnn/zh_TW/dic/sys/cns_ch.dic
cjkwnntouch /opt/local/lib/wnn/zh_TW/dic/sys/cns_wd.dic
cjkwnntouch /opt/local/lib/wnn/ko_KR/dic/sys/full.fzk
cjkwnntouch /opt/local/lib/wnn/ko_KR/dic/sys/single.dic
cjkwnntouch /opt/local/lib/wnn/ko_KR/dic/sys/hword.dic

if false; then
if [ ! -f /Library/LaunchDaemons/org.freewnn.jserver.plist ]; then
  cat <<EOF > /Library/LaunchDaemons/org.freewnn.jserver.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Disabled</key>
	<true/>
	<key>Label</key>
	<string>org.freewnn.jserver</string>
	<key>OnDemand</key>
	<false/>
	<key>Program</key>
	<string>/opt/local/bin/Wnn4/jserver</string>
	<key>ProgramArguments</key>
	<array>
		<string>jserver</string>
	</array>
	<key>ServiceIPC</key>
	<false/>
</dict>
</plist>
EOF
fi
#launchctl load -w /Library/LaunchDaemons/org.freewnn.jserver.plist
else
[ ! -d /Library/StartupItems/FreeWnnJServer ] && \
mkdir /Library/StartupItems/FreeWnnJServer
if [ ! -f /Library/StartupItems/FreeWnnJServer/FreeWnnJServer ]; then
  cat <<EOF > /Library/StartupItems/FreeWnnJServer/FreeWnnJServer
#!/bin/sh

##
# FreeWnn JServer
##

. /etc/rc.common

StartService ()
{
	/opt/local/bin/Wnn4/jserver
}

StopService ()
{
	/opt/local/bin/Wnn4/wnnkill localhost
}

RestartService () { StopService; StartService; }

RunService "\$1"
EOF
  chmod +x /Library/StartupItems/FreeWnnJServer/FreeWnnJServer
fi
if [ ! -f /Library/StartupItems/FreeWnnJServer/StartupParameters.plist ]; then
  cat <<EOF > /Library/StartupItems/FreeWnnJServer/StartupParameters.plist
{
  Description     = "FreeWnn JServer";
  Provides        = ("FreeWnn JServer");
}
EOF
fi
#/Library/StartupItems/FreeWnnJServer/FreeWnnJServer start
fi
host_unconfiguration
if false; then
launchctl unload -w /Library/LaunchDaemons/org.freewnn.jserver.plist &&
echo rm -f /Library/LaunchDaemons/org.freewnn.jserver.plist
else
/Library/StartupItems/FreeWnnJServer/FreeWnnJServer stop &&
rm -rf /Library/StartupItems/FreeWnnJServer
fi

x11/terms/kterm-6.2.0

preparation
curl -O -C - ftp://ftp.ring.gr.jp/pub/X/opengroup/contrib/applications/kterm-6.2.0.tar.gz
curl -RO -C - http://www.st.rim.or.jp/~hanataka/kterm-6.2.0.ext03.patch.gz
tar xvzf kterm-6.2.0.tar.gz
(cd kterm-6.2.0 &&
gzcat ../kterm-6.2.0.ext03.patch.gz | patch -p1
patch -p0 -b -z.org < ../kterm-6.2.0-ubagami.patch
)
build
xmkmf -a 
make CC='gcc -arch ppc -arch i386 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 
patch
--- ./main.c~	2009-06-22 19:51:40.000000000 +0900
+++ ./main.c	2009-06-22 19:54:30.000000000 +0900
@@ -234,6 +234,9 @@
 #define USE_SYSV_UTMP
 #define setpgrp setpgid
 #endif
+#ifdef __DARWIN__
+#define setpgrp setpgid
+#endif
 #endif	/* } !SYSV */
 
 #ifdef _POSIX_SOURCE
installed
/usr/X11R6/bin/kterm
/usr/X11R6/man/man1/kterm.1
/etc/X11/app-defaults/KTerm

x11/misc/xdu-3.0

preparation
curl -RO -C - http://www.nn.iij4u.or.jp/~tutimura/xdu/xdu-3.0.tar.Z
curl -RO -C - http://www.nn.iij4u.or.jp/~tutimura/xdu/xdu-3.0_du-h.patch.gz
curl -RO -C - http://www.nn.iij4u.or.jp/~tutimura/xdu/xdu-3.0.dirname.patch
curl -RO -C - http://www.nn.iij4u.or.jp/~tutimura/xdu/xdu-3.0.i18n.patch
curl -RO -C - http://archive.ubuntu.com/ubuntu/pool/universe/x/xdu/xdu_3.0-17.diff.gz
[ ! -d xdu-3.0 ] && mkdir xdu-3.0
(cd xdu-3.0 &&
tar xvzf ../xdu-3.0.tar.Z
gzcat ../xdu-3.0_du-h.patch.gz | patch -p1 -b -z.org0
#cat ../xdu-3.0.dirname.patch | patch -p1 -b -z.org1
cat ../xdu-3.0.i18n.patch | patch -p1 -b -z.org2
#gzcat ../xdu_3.0-17.diff.gz | patch -p1 -b -z.org0
)
build
xmkmf -a 
make 'CC=gcc -arch ppc -arch i386 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 
installed
/usr/X11R6/bin/xdu
/usr/X11R6/man/man1/xdu.1
/etc/X11/app-defaults/XDu

x11/text/mgdiff-1.0-debian-i18n

preparation
curl -ROL -C - http://ftp.de.debian.org/debian/pool/main/m/mgdiff/mgdiff_1.0.orig.tar.gz
curl -ROL -C - http://ftp.de.debian.org/debian/pool/main/m/mgdiff/mgdiff_1.0-29.diff.gz
tar xvzf mgdiff_1.0.orig.tar.gz
mv mgdiff-1.0.orig mgdiff-1.0-debian-i18n
(cd mgdiff-1.0-debian-i18n &&
gzcat ../mgdiff_1.0-29.diff.gz | patch -p1	&&
patch -p0 -b -z.org < ../mgdiff-1.0-debian-i18n.patch
)
build
xmkmf -a 
make 'CC=gcc -arch ppc -arch i386 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' 
installed
/usr/X11R6/bin/mgdiff
/usr/X11R6/man/man1/mgdiff.1
/etc/X11/app-defaults/Mgdiff

widgets/lesstif-0.95.2

preparation
curl -RO -C - http://jaist.dl.sourceforge.net/sourceforge/lesstif/lesstif-0.95.2.tar.bz2
tar xvjf lesstif-0.95.2.tar.bz2
build
./configure CFLAGS='-arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' LDFLAGS='-arch ppc -arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' --x-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include --x-libraries=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --with-freetype-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/freetype2 --with-freetype-lib=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --with-fontconfig-includes=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/fontconfig --with-fontconfig-lib=/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib --prefix=/opt/local 
make 
installed
/opt/local/LessTif/AUTHORS
/opt/local/LessTif/BUG-REPORTING
/opt/local/LessTif/COPYING
/opt/local/LessTif/COPYING.LIB
/opt/local/LessTif/CREDITS
/opt/local/LessTif/doc/about.html
/opt/local/LessTif/doc/Advocacy.html
/opt/local/LessTif/doc/All.html
/opt/local/LessTif/doc/apps.html
/opt/local/LessTif/doc/BUG-HUNTING.html
/opt/local/LessTif/doc/bugs.html
/opt/local/LessTif/doc/bugs_frame.html
/opt/local/LessTif/doc/cdrom.html
/opt/local/LessTif/doc/Clipboard.txt
/opt/local/LessTif/doc/contents.html
/opt/local/LessTif/doc/COPYING.LIB.html
/opt/local/LessTif/doc/core.html
/opt/local/LessTif/doc/cvs.html
/opt/local/LessTif/doc/doc_frame.html
/opt/local/LessTif/doc/download.html
/opt/local/LessTif/doc/DragAndDrop.txt
/opt/local/LessTif/doc/FAQ.html
/opt/local/LessTif/doc/feedback.html
/opt/local/LessTif/doc/Form.txt
/opt/local/LessTif/doc/frames.html
/opt/local/LessTif/doc/future.html
/opt/local/LessTif/doc/Geometry.html
/opt/local/LessTif/doc/GeoUtils.txt
/opt/local/LessTif/doc/get_frame.html
/opt/local/LessTif/doc/help.html
/opt/local/LessTif/doc/html/ApplicationShell.html
/opt/local/LessTif/doc/html/Composite.html
/opt/local/LessTif/doc/html/Constraint.html
/opt/local/LessTif/doc/html/Core.html
/opt/local/LessTif/doc/html/lesstif.html
/opt/local/LessTif/doc/html/LessTifInternals.html
/opt/local/LessTif/doc/html/mwm.html
/opt/local/LessTif/doc/html/mwmrc.html
/opt/local/LessTif/doc/html/Object.html
/opt/local/LessTif/doc/html/OverrideShell.html
/opt/local/LessTif/doc/html/Rect.html
/opt/local/LessTif/doc/html/Shell.html
/opt/local/LessTif/doc/html/TopLevelShell.html
/opt/local/LessTif/doc/html/TransientShell.html
/opt/local/LessTif/doc/html/uil.html
/opt/local/LessTif/doc/html/UnNamedObj.html
/opt/local/LessTif/doc/html/VendorShell.html
/opt/local/LessTif/doc/html/VirtualBindings.html
/opt/local/LessTif/doc/html/WmShell.html
/opt/local/LessTif/doc/html/XmArrowButton.html
/opt/local/LessTif/doc/html/XmArrowButtonGadget.html
/opt/local/LessTif/doc/html/xmbind.html
/opt/local/LessTif/doc/html/XmBulletinBoard.html
/opt/local/LessTif/doc/html/XmCascadeButton.html
/opt/local/LessTif/doc/html/XmCascadeButtonGadget.html
/opt/local/LessTif/doc/html/XmClipboard.html
/opt/local/LessTif/doc/html/XmComboBox.html
/opt/local/LessTif/doc/html/XmCommand.html
/opt/local/LessTif/doc/html/XmDesktop.html
/opt/local/LessTif/doc/html/XmDialogShell.html
/opt/local/LessTif/doc/html/XmDialogShellExt.html
/opt/local/LessTif/doc/html/XmDisplay.html
/opt/local/LessTif/doc/html/XmDragContext.html
/opt/local/LessTif/doc/html/XmDragIcon.html
	:

x11/misc/x2x-1.27

preparation
curl -RO -C - http://ftp.digital.com/pub/DEC/SRC/x2x/x2x-1.27.tar.gz
curl -RO -C - http://ftp.debian.org/debian/pool/main/x/x2x/x2x_1.27-5.1.diff.gz
tar xvzf x2x-1.27.tar.gz
(cd x2x-1.27 && gzcat ../x2x_1.27-5.1.diff.gz | patch -p1)
build
xmkmf -a 
make "CC=gcc -arch ppc -arch i386 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4" 
installed
/usr/X11R6/bin/x2x

x11/misc/xclip-0.08

preparation
curl -RO -C - http://people.debian.org/~kims/xclip/xclip-0.08.tar.gz
curl -RO -C - http://ftp.debian.org/debian/pool/main/x/xclip/xclip_0.08-5.diff.gz
tar xvzf xclip-0.08.tar.gz
ln -s xclip xclip-0.08
(cd xclip-0.08 && gzcat ../xclip_0.08-5.diff.gz | patch -p1)
#(cd xclip-0.08 && patch -p1 < ../xclip-0.08-sakuya.patch)
build
xmkmf -a 
make "CC=gcc -arch ppc -arch i386 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include -L/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib -iwithsysroot /Developer/SDKs/MacOSX10.4u.sdk -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4" 
installed
/usr/X11R6/bin/xclip
/usr/X11R6/man/man1/xclip.1

x11/sys/xon-2005

installation
[ -d /opt/local/bin ] || mkdir -p /opt/local/bin && 
cp xon /opt/local/bin/ 
installed
/opt/local/bin/xon
written by yamada taiji