#!/bin/sh # /***************************************************************/ # /* */ # /* alzam libmedia module */ # /* */ # /***************************************************************/ # LIBMEDIA_NAME="libmedia" # // allow alzam to use this module ALZAM_MODULES="$ALZAM_MODULES $LIBMEDIA_NAME" # // init env. vars for lib media LIBMEDIA_SRC_PATH="$WORK_PATH/""$LIBMEDIA_NAME""$SCOL_VERSION" LIBMEDIA_SHARED_LIB="$LIBMEDIA_NAME""$SCOL_VERSION""$SCOL_RELEASE"".so" # // module implementation function libmedia_setFlags () { LIBMEDIA_CFLAGS="-pipe -I /usr/X11R6/include/ -I $LIBMEDIA_SRC_PATH -I $USM_SRC_PATH/ -I $USM_SRC_PATH/kernel/ -I $USM_SRC_PATH/x11/ -I $LIBOS2D_SRC_PATH -I $COMMON_LIB_PATH `gtk-config --cflags`" LIBMEDIA_LFLAGS=" " } function libmedia () { libmedia_setFlags; # // env for Makefile CFLAGS="$LIBMEDIA_CFLAGS" LFLAGS="$LIBMEDIA_LFLAGS" SRC_PATH="$LIBMEDIA_SRC_PATH" TARGET_PATH="$LIBMEDIA_SRC_PATH" TARGET_SCOL_PATH="$SCOL_PLUGINS_PATH" TARGET_MAKE="gcc -shared" TARGET="$LIBMEDIA_SHARED_LIB" }