source: scripts/untested/blfs-scripts/blfs-libmikmod.sh@ 60454e2

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

r590@server (orig r588): ryan | 2005-08-05 22:59:03 -0700
Add support to build ver 3.2, fix stupid bug


  • Property mode set to 100755
File size: 1.8 KB
Line 
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
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
44
45max_log_init libmikmod ${LIBMIKMOD_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
46CC="${CC-gcc} ${ARCH_CFLAGS}" \
47CXX="${CXX-g++} ${ARCH_CFLAGS}" \
48CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
49CXXFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
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
66if [ "Y" = "${MULTIARCH}" ]; then
67 use_wrapper /usr/bin/libmikmod-config
68fi
69
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.