Parameterize the ar command in jpeg6b port

BUG= https://code.google.com/p/naclports/issues/detail?id=105
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/139303013

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1059 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add binutils

TEST=./make_all.sh binutils
TEST=objdump --help  # in bash
R=bradnelson@google.com

Review URL: https://codereview.chromium.org/140363003

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1060 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add gcc

As gcc spawns some processes, we should replace some functions
with nacl-spawn.

TEST=./make_all.sh gcc
TEST=Copy out/publish/gcc to bash and play with gcc.
R=bradnelson@google.com

Review URL: https://codereview.chromium.org/142913002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1061 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Do not specify names of nexes explicitly in coreutils

TEST=./make_all.sh coreutils
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/136283008

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1062 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Adding port of HDF5 to naclports.

This adds a port of HDF5-1.8.12 to naclports.  README.nacl includes some
comments about how this port was generated, including caveats about the
various file drivers that can be used.

R=sbc@chromium.org
BUG=

Review URL: https://codereview.chromium.org/135993002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1063 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Minor cleanup of naclports build system.

This change removes some of the boilerplate from
the individual build.sh file for the ports.
Specifically it removes calls to Banner which are
now handled in common.sh.  It also removes as many
of the custom PackageInstall functions as possible.
There are three remaining that still need to be
removed somehow.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/139743015

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1064 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update zlib to 1.2.8.

This enables us to build both static and shared versions
of zlib at the same time when during the glibc build.

R=bradnelson@google.com

Review URL: https://codereview.chromium.org/145083003

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1065 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update ImageMagic to 6.8.8-2

This fixes recent a breakage intruduces by the recent
zlib update.  It also allows use to completley
remove the nacl.patch file!

TEST=./make_all.sh imagemagick
R=bradnelson@google.com

Review URL: https://codereview.chromium.org/145383002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1066 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add recipe to common.sh for building using the SDK build system.

R=bradnelson@google.com

Review URL: https://codereview.chromium.org/21298002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1067 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Convert port directories to lowercase.

Almost all of them are already, this change just makes
it consistent.  All the changes under 'ports' are
purely renames.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/143883013

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1068 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix typo in common.sh:RunGitCloneStep which was causing infinite loop.

Also, remove some debugging.

TBR=bradnelson

Review URL: https://codereview.chromium.org/141803015

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1069 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update google storage url [commondatastorage -> storage]

R=binji@chromium.org

Review URL: https://codereview.chromium.org/147063002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1070 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Mount httpfs in cli_main.c

TEST=ls /mnt/http/ls.nmf
R=bradnelson@google.com

Review URL: https://codereview.chromium.org/129873008

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1071 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add GNU tar-1.15

We use an old version of GNU tar because the recent tar uses
openat, which nacl_io currently does not support.

This is only for glibc now. It seems we cannot compile this
with newlib.

TEST=./make_all.sh tar
TEST=cd /mnt/html5 && tar -xvf /mnt/http/something.tar
     # on bash.nmf
TEST=./make_all.sh libtar
R=bradnelson@google.com, sbc@chromium.org

Review URL: https://codereview.chromium.org/144003008

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1072 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add zlib to the list of known licenses

BUG=None
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/147923002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1073 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update SDL_image to v1.2.12

BUG=None
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/140433005

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1074 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update libpng to 1.6.8

BUG= https://code.google.com/p/naclports/issues/detail?id=107
TEST="./make_all.sh libpng cairo dosbox Regal SDL_image opencv DevIL ImageMagick"
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/130503014

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1075 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update pixman to 0.32.4

BUG=None
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/149403002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1076 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Move dependency information into pkg_info files.

This is a step towards removing the need for a top level
Makefile to drive building of ports.  The dependency
information for each port is now stored in the pkg_info
file.  The top level Makefile no longer contains the
information but generates it automatically using gen_deps.py.

R=binji@chromium.org, bradnelson@google.com, matthewturk@gmail.com

Review URL: https://codereview.chromium.org/143973011

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1077 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Run executables in HTML5 filesystem by nacl-spawn

Now nacl-spawn can find shared objects which are necessary to
to run the main binary when the main binary is stored in the
HTML5 filesystem. As there are no obvious default library
paths in our HTML5 filesystem, it only finds libraries in
LD_LIBRARY_PATH environment variable.

Then, nacl-spawn constructs a NMF with the result of the
dependency finder. It supports both statically linked binaries
and dynamically linked binaries.

As nacl-spawn does not know the path where the main HTML and
the JavaScript are stored, naclterm.js converts filepaths in
the NMF to fully qualified URLs.

It seems newlib lacks elf.h, so currently we do not support
spawning a new glibc process from a newlib process.

This change also introduces Makefile for nacl-spawn.

TEST=./make_all.sh nacl-spawn
TEST=Manually tested with my local environment whose set up
     script is not landed yet. The commands were:
   $ cd /mnt/html5
   $ export LD_LIBRARY_PATH=mingn/lib:mingn/usr/lib
   $ ./hello64
   $ ./hello64-newlib
   $ ./hello64-static  # glibc static binary, failed.

R=sbc@chromium.org

Review URL: https://codereview.chromium.org/145563003

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1078 7dad1e8b-422e-d2af-fbf5-8013b78bd812