source: scripts_home/scripts/untested/blfs-scripts/blfs-x264.sh@ 1c9c5c3

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1c9c5c3 was 1c9c5c3, checked in by Jim Gifford <clfs@…>, 19 years ago

r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive

  • 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.