source: scripts/scripts/untested/blfs-scripts/blfs-x264.sh @ 7f65c0e

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 7f65c0e was 7f65c0e, checked in by Jim Gifford <clfs@…>, 18 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100755
File size: 988 bytes
Line 
1#!/bin/bash
2
3### x264 ###
4
5cd ${SRC}
6LOG=x264-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13   extra_conf="--libdir=/usr/${libdirname}"
14   XLIBS="/usr/X11R6/${libdirname}"
15fi
16
17unpack_tarball x264-${X264_VER}
18cd ${PKGDIR}
19
20# edit configure script so we can set CC, override ARCH and set the
21# location of our X libraries
22apply_patch x264-svn-20050731-configure_fixes
23
24max_log_init x264 ${X264_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
25CC="${CC-gcc} ${ARCH_CFLAGS}" \
26XLIBS="${XLIBS}" \
27TGT_ARCH="${TGT_ARCH}" \
28./configure --prefix=/usr ${extra_conf} \
29 --extra-cflags="-pipe ${TGT_CFLAGS}" \
30 --enable-mp4-output \
31 --enable-pthread \
32 --enable-visualize \
33   >> ${LOGFILE} 2>&1 &&
34echo " o Configure OK" &&
35
36min_log_init ${BUILDLOGS} &&
37make \
38   >> ${LOGFILE} 2>&1 &&
39echo " o Build OK" &&
40
41min_log_init ${INSTLOGS} &&
42make DESTDIR=/tmp/${PKGDIR}-${BUILDENV} install \
43   >> ${LOGFILE} 2>&1 &&
44echo " o ALL OK" || barf
45
Note: See TracBrowser for help on using the repository browser.