#!/bin/sh COMP_DEPENDENCIES="autoconf automake libtool" COMP_SOURCES="${BUILD_ROOT}/src/linux/libuuid" function component_gather { rsync -a --exclude=.svn ${COMP_SOURCES}/ ${GATHER_DIR}/ } function _setup_build_env { set_compiler_env cd ${BUILDING_ROOT}/. exit_on_error $? CPPFLAGS="${_cppflags} $(libtool_staging_cppflags)" CFLAGS="${_cflags}" LDFLAGS="${_ldflags} $(libtool_staging_ldflags)" export PATH CPPFLAGS LDFLAGS CFLAGS CC } function component_configure { _setup_build_env ./configure \ --prefix=${PREFIX_DIR} \ --libdir=${PREFIX_DIR}/${_lib} } function component_build { _setup_build_env ${MAKE} ${_mflags} all } function component_stage { _setup_build_env ${MAKE} DESTDIR=${STAGING_ROOT_DIR} install libtool_rewrite_staging } function component_populate { COMP_NAME=libuuid COMP_PREFIX_DIR=`get_comp_staging_prefix_dir ${COMP_NAME}` COMP_ROOT_DIR=`get_comp_staging_root_dir ${COMP_NAME}` mkdir -p ${POPULATE_ROOT_DIR} rsync -a ${COMP_ROOT_DIR}/ ${POPULATE_ROOT_DIR}/ libtool_rewrite_populate }