source: scripts_home/scripts/untested/blfs-scripts/blfs-libmikmod.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: 1.8 KB
RevLine 
[617118d]1#!/bin/bash
2
3### libmikmod ###
4
5cd ${SRC}
6LOG=libmikmod-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13 extra_conf="--libdir=/usr/${libdirname}"
14fi
15
16unpack_tarball libmikmod-${LIBMIKMOD_VER}
17cd ${PKGDIR}
18
[0f496c0]19# Edits required for 3.1.11 and 3.2.0 beta (except the VERSION edit w 3.2.0)
20case ${LIBMIKMOD_VER} in
21 3.1.11 )
22 apply_patch libmikmod-3.1.11-a
23
24 sed -i -e "s/VERSION=10/VERSION=11/" \
25 -e "s/sys_asoundlib/alsa_asoundlib/" \
26 -e "s/snd_cards/snd_card_load/g" \
27 -e "s|sys/asoundlib.h|alsa/asoundlib.h|g" \
28 -e "s/^LIBOBJS/#LIBOBJS/g" \
29 configure.in &&
30 autoconf || barf
31 ;;
32 3.2.* )
33 sed -i -e "s/sys_asoundlib/alsa_asoundlib/" \
34 -e "s/snd_cards/snd_card_load/g" \
35 -e "s|sys/asoundlib.h|alsa/asoundlib.h|g" \
36 -e "s/^LIBOBJS/#LIBOBJS/g" \
37 configure.in &&
38 autoconf || barf
39 ;;
40esac
41
42sed -i -e "/libdir=/s@/lib*@/${libdirname}@g" \
43 libmikmod-config.in
[617118d]44
45max_log_init libmikmod ${LIBMIKMOD_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
46CC="${CC-gcc} ${ARCH_CFLAGS}" \
47CXX="${CXX-g++} ${ARCH_CFLAGS}" \
[0f496c0]48CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
49CXXFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
[617118d]50./configure --prefix=/usr ${extra_conf} \
51 --mandir=/usr/share/man \
52 --infodir=/usr/share/info \
53 >> ${LOGFILE} 2>&1 &&
54echo " o Configure OK" &&
55
56min_log_init ${BUILDLOGS} &&
57make \
58 >> ${LOGFILE} 2>&1 &&
59echo " o Build OK" &&
60
61min_log_init ${INSTLOGS} &&
62make install \
63 >> ${LOGFILE} 2>&1 &&
64echo " o ALL OK" || barf
65
[0f496c0]66if [ "Y" = "${MULTIARCH}" ]; then
[617118d]67 use_wrapper /usr/bin/libmikmod-config
68fi
69
[0f496c0]70case ${LIBMIKMOD_VER} in
71 3.1.* ) chmod 755 /usr/${libdirname}/libmikmod.so.2.* ;;
72 3.2.* ) chmod 755 /usr/${libdirname}/libmikmod.so.3.* ;;
73esac
Note: See TracBrowser for help on using the repository browser.