source: scripts/untested/blfs-scripts/blfs-xvid.sh@ 57d97a5

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

r589@server (orig r587): ryan | 2005-08-05 22:57:16 -0700
Add a pile of new scripts, and add -32 and -64 symlinks



  • Property mode set to 100755
File size: 1.3 KB
Line 
1#!/bin/bash
2
3### xvid ###
4
5cd ${SRC}
6LOG=xvid-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13 extra_conf="--libdir=/usr/${libdirname}"
14fi
15
16if [ "${MULTIARCH}" = "Y" ]; then
17 case ${TGT_ARCH} in
18 x86_64 )
19 if [ "${BUILDENV}" = "32" ]; then
20 extra_conf="${extra_conf} --build=${ALT_TGT}"
21 extra_conf="${extra_conf} --host=${ALT_TGT}"
22 extra_conf="${extra_conf} --target=${ALT_TGT}"
23 fi
24 ;;
25 esac
26fi
27
28unpack_tarball xvidcore-${XVID_VER}
29cd ${PKGDIR}/build/generic
30
31max_log_init xvid ${XVID_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
32CC="${CC-gcc} ${ARCH_CFLAGS}" \
33CFLAGS="-O3 -pipe ${TGT_CFLAGS}" \
34./configure --prefix=/usr ${extra_conf} \
35 --mandir=/usr/share/man --infodir=/usr/share/info \
36 >> ${LOGFILE} 2>&1 &&
37echo " o Configure OK" &&
38
39min_log_init ${BUILDLOGS} &&
40(
41 make list-cflags &&
42 make list-install-path &&
43 make list-targets &&
44 make
45) >> ${LOGFILE} 2>&1 &&
46echo " o Build OK" &&
47
48min_log_init ${INSTLOGS} &&
49(
50 make install &&
51 ln -v -sf libxvidcore.so.4.? /usr/${libdirname}/libxvidcore.so.4 &&
52 ln -v -sf libxvidcore.so.4 /usr/${libdirname}/libxvidcore.so &&
53 chmod -v 644 /usr/${libdirname}/libxvidcore.a
54) >> ${LOGFILE} 2>&1 &&
55echo " o ALL OK" || barf
56
Note: See TracBrowser for help on using the repository browser.