#!/bin/sh # /***************************************************************/ # /* */ # /* alzam libsound module */ # /* */ # /***************************************************************/ # LIBSOUND_NAME="libsound" # // allow alzam to use this module ALZAM_MODULES="$ALZAM_MODULES $LIBSOUND_NAME" # // init lib2d env. vars LIBSOUND_SRC_PATH="$WORK_PATH/""$LIBSOUND_NAME""$SCOL_VERSION" LIBSOUND_SHARED_LIB="$LIBSOUND_NAME""$SCOL_VERSION""$SCOL_RELEASE"".so" # // module implementation function libsound_setFlags () { LIBSOUND_CFLAGS="-pipe -I /usr/X11R6/include/ -I $LIBSOUND_SRC_PATH -I $USM_SRC_PATH -I $USM_SRC_PATH/kernel -I $LIBOS2D_SRC_PATH `gtk-config --cflags`" LIBSOUND_LFLAGS=" -lpthread " } function libsound () { libsound_setFlags; # // env. for Makefile CFLAGS="$LIBSOUND_CFLAGS" LFLAGS="$LIBSOUND_LFLAGS" SRC_PATH="$LIBSOUND_SRC_PATH" TARGET_PATH="$LIBSOUND_SRC_PATH" TARGET_SCOL_PATH="$SCOL_PLUGINS_PATH" TARGET_MAKE="gcc -shared" TARGET="$LIBSOUND_SHARED_LIB" }