Improve sharding between buildbots.

The first two shards are now explicit lists while the third
shard will build everything not list on the first two.

This means the naclports buildbots will always have 100%
build coverage.

Also, check that each shard includes all its recursive
dependencies and add a presubmit check for this.

BUG=None
R=binji@chromium.org

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

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

Make buildbot_selector correctly return non-zero when it
fails.

Add failure annotations to sharding failure cases.

Remove old/redundant dependency between nethack and ncurses.
nethack is only currently building for newlib and ncurses
only builds for glibc.

BUG=
R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@776 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Added libav and bumped lame to 3.99.5

R=sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@777 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix warning in glibc-compat build

R=binji@chromium.org
BUG=

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

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

ImageMagick needs at least JPEG and PNG libraries
to be actually usable.

R=sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@781 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Implement SDLmain for nacl.

Using -lSDLmain allows unmodified SDL application to run
on NaCl.  SDLmain take case of creating the instance and
enqueuing SDL event as well as creating a thread on which
to run the application's main function.

Also, fix sdl-config to report correct libraries for
linking with SDL

Also, enable building and publishing of SDL test
applications.

Fix crash in SDL_quit.

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

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@782 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix dosbox build by removing SDLmain from link.

doxbox doesn't use SDLmain, if implemented that startup
code itself.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@783 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add initial SDL opengl support based on Regal.

This is non-functional at the momemt but is needed to fix
the build.  Without this the SDL opengl tests will detect
and use the mese headers which are also part of naclports,
but fail to link.

Also, add Regal to the same build shard as SDL.

R=binji@chromium.org

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

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

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

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@785 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix giflib buildbot failures.

For now, skip the sel_ldr tests under glibc pending
further investigation.

TBR=binji

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@786 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Implement OpenGL support in SDL.

This is don't by implemented the few OpenGL setup routines
needed by SDL, and relying on Regal to translate desktop
GL calls to GLES2.

This has only been tested so far with the simple SDL
testgl example.

BUG= https://code.google.com/p/naclports/issues/detail?id=74
TEST=run testgl example in chrome
R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@787 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Remove old/legacy examples from naclports.

life and earth are now part of the nacl SDK repo.

Also remove the tutorials which are not currently built
or used anywhere AFAIK.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@788 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Disable assembly for libav.

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

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@789 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Detect Regal during SDL configure and enable OpenGL accordingly.

This fixes the pnacl build of SDL where Regal is not yet
available.

TBR=binji

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@790 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add build script and patch for libhangul in naclports

R=sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@791 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update sdk bot to use ~/.boto instead of the site-config boto.

This is necessary to have write access to gs://nativeclient-mirror

BUG=none
R=sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@792 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add missing backslash accidentally removed in r792.

BUG=none
TBR=sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@793 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Change ~ -> ${HOME} in naclports-linux-sdk-bundle.sh

BUG=none
TBR=sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@794 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Refresh protobuf to 2.5.0.

BUG=
R=sbc@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@795 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Switched nethack to hterm.

Updated pinned revision of hterm. Removed use of nacl-mounts terminal.
Switched link order of nacl-mounts and ncurses to ensure ncurses is
used in place of nacl-mounts termcap. Eliminated links/docs from
html to give hterm the entire window.

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

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

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