#!/bin/sh # First argument of this script is the package name. # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Saves CFLAGS and CXXFLAGS, and clears them. save_flags_no_optimizations CFLAGS="-pipe -O2 -fomit-frame-pointer -march=athlon-xp" # Applying patches (if any) apply_patches ${1} && CODECS_PATH=/usr/lib/mplayer/codecs SKIN_PATH=/usr/share/mplayer/Skin # First, install skins install -v -d -m755 ${SKIN_PATH} && cp -v -a ${LFS_TMP}/${1}/Skin/* ${SKIN_PATH} && chown -v -R root:root ${SKIN_PATH} && chmod -v 755 ${SKIN_PATH}/Blue{,/icons} && ln -sfv Blue ${SKIN_PATH}/default && cd ${LFS_TMP}/${1} && ./configure \ --prefix=/usr \ --confdir=/etc/mplayer \ --enable-largefiles \ --enable-dynamic-plugins \ --enable-gui \ --with-codecsdir=${CODECS_PATH} && make && make install && install -v -m755 -d /usr/share/doc/${1} && cp -v -R DOCS/* /usr/share/doc/${1} && install -m644 etc/codecs.conf /etc/mplayer && install -m644 etc/*.conf /etc/mplayer && # MPlayer requires that the RTC run at a frequency of 1024 Hz. # Make this setting change at boot-time by adding a line to /etc/sysctl.conf: if [ ! -f /etc/sysctl.conf ]; then touch /etc/sysctl.conf || exit 1 fi && string_add "dev.rtc.max-user-freq=1024" /etc/sysctl.conf && ldconfig && # Restore original CFLAGS and CXXFLAGS values. restore_flags # Return last error exit $?