Pass --no-deps when building naclports SDK bundle.

This prevents extra libraries (ones that we don't
currently ship) from being built when the bundle is
built.

This fixes the bzip2 optional dependency in freetype.  For
the ports bundle we don't ship bzip2 so we don't want
freetype to built with bzip2 supports.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1292 7dad1e8b-422e-d2af-fbf5-8013b78bd812
When installing packages replace existing version if it is not identical.

We currently write the contents of pkg_info to the stamp
folder, but we were not checking it, so requesting install
would do nothing, as long as some version was already
installed.

In addition add CONFIG=debug/release to the end of the stamp
file so that debug and release versions of a package replace
each other.

This should fix the SDK bundle builder.

R=binji@chromium.org, binji

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1293 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Disable pandas on OSX (since numpy is disabled)

R=matthewturk@gmail.com

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1294 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix detection of shared library support.

We were previously checking for '--enable-shared' in the
output of 'gcc -version', which turned out to be wrong.
Switching to using 'gcc -print-file-name=libc.so'.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3834
R=mcgrathr@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1295 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add 'uninstall' and 'list' commands to naclports.py

We now install two files in the var/npkg/ folder:
<pkg>.info and <pkg>.list.  The info file contain
the same contents as the pkg_info and the .list
contains a list of all files installed by the package
so that they can be removed.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1296 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix PNaCl install directory.

This was breaking all the builtbots as --clean was removing
the /usr folder rather than the /usr/local, which was removing
all the PNaCl system headers.

R=binji@chromium.org, binji

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1297 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Remove memory.h-releated patches now that its part of the newlib headers.

R=binji@chromium.org, binji

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1298 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add initial port of SDL2

This port was contributed largely by jirkadanek7.
For example: jirkadanek7

Although it builds there has been no testing done
on this port so its not expected to work.  This is
simply an initial commit from which we can start
work.  Since the patch is large and we will likely
be doing a lot of work on it we use github to maintain
the patch history.

R=binji@chromium.org

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

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

This change brings a some upstream fixes that fix the glibc
and PNaCl builds of SDL2.

Also make GitCloneStep a little smarter so that removing
the checkout directory will trigger a re-clone.

R=binji@chromium.org

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

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

This is the second attempt at fixing the SDL2 build.
This should fix the glibc and pnacl builds.

TBR=binji

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1301 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix pandas static linking.

The pandas build had a number of minor issues which this
corrects.  The namespace for static libraries was getting
confused with the namespace for relative imports, which this
fixes.  msgpack, which is disabled for network interface
reasons, was getting imported and breaking global import.
And finally, there were name collisions for both tokenizer.o
and parser.o, which this fixes.

R=sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1302 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Adding ipython dependency to ipython-ppapi.

R=kestert@google.com, sbc@chromium.org
BUG=

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1303 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add naclconfigure and naclmake helper scripts.

These scripts work as wrappers around make and configure
to more easily build autotools-based software in under
NaCl.

Ideally these scripts, along with nacl_env.sh (on which
the are based) will eventually end up in the main SDK.

TEST=./make_all.sh + use nacl-configure.sh to build SDL2 outside of naclports.
R=binji@chromium.org, binji

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1304 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add 'bin' folder contain wrapper scripts for executables.

Also, add a runhooks which creates these wrappers.  The
wrappers are extension-free with the intention that
developers can add this directory to their PATH and be
able to run, e.g. 'naclports' from anywhere.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1305 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Zip up each published port separately to prepare for mingn download.

Reduce verbosity until terminal apps use the new message format (to make them
usable again).

BUG=None
TEST=trybots
R=sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1306 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix recursive install of dependecies when running naclports 'install'

This change fixes two issues with automatic installation of
dependencies.  Firstly, IsInstalled() now work correctly
when given just a package name.  Secondly, we make sure that
all dependencies are installed (not just built) before
installing a package.

Also, now that we have 'uninstall' remove the
--force-install option.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1307 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add 'pattern' to bin_script hooks in DEPS file.

This is apparently a required field, but only if
svn is being used.  Since I always use git this
went unnoticed.

R=bradnelson@google.com

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1308 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Don't upload binaries from the nightly builders.

We were checking from periodic- rather than nightly-.

R=bradnelson@google.com, bradnelson

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1309 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Allow TOOLCHAIN and NACL_ARCH to be specified as command line paramaters.

Also, add some initial tests for naclports.py, and run
them as part of presubmit.

R=bradnelson@google.com, binji

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1310 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix undefined reference in naclports.py.

More unittests on the way to prevent this kind of
thing... I promise.

R=bradnelson@google.com, bradnelson

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

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