Changeset 0f496c0


Ignore:
Timestamp:
Feb 21, 2006, 8:21:40 AM (19 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
fdfb73b
Parents:
1c379e4
Message:

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


File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/untested/blfs-scripts/blfs-libmikmod.sh

    r1c379e4 r0f496c0  
    1717cd ${PKGDIR}
    1818
    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 &&
     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
    2544
    2645max_log_init libmikmod ${LIBMIKMOD_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
    2746CC="${CC-gcc} ${ARCH_CFLAGS}" \
    2847CXX="${CXX-g++} ${ARCH_CFLAGS}" \
    29 CFLAGS="${TGT_CFLAGS}" \
    30 CXXFLAGS="${TGT_CFLAGS}" \
     48CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
     49CXXFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
    3150./configure --prefix=/usr ${extra_conf} \
    3251   --mandir=/usr/share/man \
     
    4564echo " o ALL OK" || barf
    4665
    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
     66if [ "Y" = "${MULTIARCH}" ]; then
    5067   use_wrapper /usr/bin/libmikmod-config
    5168fi
    5269
    53 chmod 755 /usr/${libdir}/libmikmod.so.2.*
     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 TracChangeset for help on using the changeset viewer.