source: scripts/untested/blfs-scripts/blfs-libmikmod.sh@ b67b7ca

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

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.2 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
19sed -i -e "s/VERSION=10/VERSION=11/" \
20 -e "s/sys_asoundlib/alsa_asoundlib/" \
21 -e "s/snd_cards/snd_card_load/g" \
22 -e "s|sys/asoundlib.h|alsa/asoundlib.h|g" \
23 configure.in &&
24autoconf &&
25
26max_log_init libmikmod ${LIBMIKMOD_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
27CC="${CC-gcc} ${ARCH_CFLAGS}" \
28CXX="${CXX-g++} ${ARCH_CFLAGS}" \
29CFLAGS="${TGT_CFLAGS}" \
30CXXFLAGS="${TGT_CFLAGS}" \
31./configure --prefix=/usr ${extra_conf} \
32 --mandir=/usr/share/man \
33 --infodir=/usr/share/info \
34 >> ${LOGFILE} 2>&1 &&
35echo " o Configure OK" &&
36
37min_log_init ${BUILDLOGS} &&
38make \
39 >> ${LOGFILE} 2>&1 &&
40echo " o Build OK" &&
41
42min_log_init ${INSTLOGS} &&
43make install \
44 >> ${LOGFILE} 2>&1 &&
45echo " o ALL OK" || barf
46
47# TODO: Need to edit /usr/bin/mxmkmf to set the correct libdir ...
48# (it really should be setup fom --libdir )
49if [ "Y" = "${MULTIARCH}" ]i; then
50 use_wrapper /usr/bin/libmikmod-config
51fi
52
53chmod 755 /usr/${libdir}/libmikmod.so.2.*
Note: See TracBrowser for help on using the repository browser.