clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since d1afb9e 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
|
Rev | Line | |
---|
[617118d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | ### libmikmod ###
|
---|
| 4 |
|
---|
| 5 | cd ${SRC}
|
---|
| 6 | LOG=libmikmod-blfs.log
|
---|
| 7 |
|
---|
| 8 | SELF=`basename ${0}`
|
---|
| 9 | set_buildenv
|
---|
| 10 | set_libdirname
|
---|
| 11 | setup_multiarch
|
---|
| 12 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
| 13 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
| 14 | fi
|
---|
| 15 |
|
---|
| 16 | unpack_tarball libmikmod-${LIBMIKMOD_VER}
|
---|
| 17 | cd ${PKGDIR}
|
---|
| 18 |
|
---|
| 19 | sed -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 &&
|
---|
| 24 | autoconf &&
|
---|
| 25 |
|
---|
| 26 | max_log_init libmikmod ${LIBMIKMOD_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 27 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 28 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
| 29 | CFLAGS="${TGT_CFLAGS}" \
|
---|
| 30 | CXXFLAGS="${TGT_CFLAGS}" \
|
---|
| 31 | ./configure --prefix=/usr ${extra_conf} \
|
---|
| 32 | --mandir=/usr/share/man \
|
---|
| 33 | --infodir=/usr/share/info \
|
---|
| 34 | >> ${LOGFILE} 2>&1 &&
|
---|
| 35 | echo " o Configure OK" &&
|
---|
| 36 |
|
---|
| 37 | min_log_init ${BUILDLOGS} &&
|
---|
| 38 | make \
|
---|
| 39 | >> ${LOGFILE} 2>&1 &&
|
---|
| 40 | echo " o Build OK" &&
|
---|
| 41 |
|
---|
| 42 | min_log_init ${INSTLOGS} &&
|
---|
| 43 | make install \
|
---|
| 44 | >> ${LOGFILE} 2>&1 &&
|
---|
| 45 | echo " 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 )
|
---|
| 49 | if [ "Y" = "${MULTIARCH}" ]i; then
|
---|
| 50 | use_wrapper /usr/bin/libmikmod-config
|
---|
| 51 | fi
|
---|
| 52 |
|
---|
| 53 | chmod 755 /usr/${libdir}/libmikmod.so.2.*
|
---|
Note:
See
TracBrowser
for help on using the repository browser.