# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

BUILD_DIR=${SRC_DIR}
EXECUTABLES=x264${NACL_EXEEXT}

ConfigureStep() {
  SetupCrossEnvironment

  local conf_host
  if [ "${NACL_ARCH}" = pnacl ]; then
    conf_host=nacl-pnacl
  else
    conf_host=${NACL_CROSS_PREFIX}
  fi

  LogExecute ./configure \
    --host=${conf_host} \
    --prefix=${PREFIX} \
    --cross-prefix=${NACL_CROSS_PREFIX}- \
    --disable-asm \
    --disable-thread

  LogExecute make clean
}

# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

BUILD_DIR=${SRC_DIR}
EXECUTABLES=x264${NACL_EXEEXT}
EXTRA_CONFIGURE_ARGS="--enable-static --disable-asm --disable-thread"

if [ "${NACL_SHARED}" = "1" ]; then
  EXTRA_CONFIGURE_ARGS+=" --enable-shared"
fi

ConfigureStep() {
  DefaultConfigureStep
  LogExecute make clean
}

Fix contents of x264 package after recent update.
Fix contents of x264 package after recent update.

A recent update to x264 changed that defaults such
that the libraries and headers we not being a packages.

This change re-enables them and also simplifies the
build.sh file.

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

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