Project

General

Profile

*UPS Product Installation for freetype v2 3 5 using GCC 4 7 1

Prepare the /uboone directory structure for the new package

  • su products
  • cd /uboone
  • mkdir -p freetype/v2_3_5/Linux64bit+2.6-2.12-GCC_4_7_1

Download the package, configure, make, make install. The configure directs the install to the ups dir.

As you (you can do it on the second xterm window):

  • cd $HOME
  • mkdir -p /ups/products/install/GCC_4_7_1 (if you don't have this directory created already)
  • cd /ups/products/install/GCC_4_7_1
  • mkdir freetype
  • cd freetype
  • tar -zxvf freetype-2.3.5.tar.gz
  • cd freetype-2.3.5
  • setup intltool v0_35_5 -q GCC_4_7_1
    (pkgconfig & gcc are also setup as dependent packages of intltool)
  • ./configure --prefix=/uboone/freetype/v2_3_5/Linux64bit+2.6-2.12-GCC_4_7_1 CFLAGS="-O3 -fPIC"
  • make >& make.log &
  • su products
  • make install

Return to the ups directory to complete the installation.

  • cd /uboone/freetype/v2_3_5/
  • mkdir ups
  • cd ups
  • (create freetype.table):
[rmehdi@uboonedaq-evb ~]$ more /uboone/freetype/v2_3_5/ups/freetype.table 
File    = table
Product = freetype

# -----------------------------------------------
Group:

  Flavor        = ANY
  Qualifiers    = "" 

  Flavor        = ANY
  Qualifiers    = GCC_4_7_1

  Action = ExtraSetup
    setupRequired( gcc v4_7_1 )
    setupRequired( pkgconfig v0_23 -q GCC_4_7_1 )
    setupRequired( intltool v0_35_5 -q GCC_4_7_1 )

Common:

  Action = setup
    setupEnv()
    prodDir()
    prodDir(_LIB, lib)
    prodDir(_INC, include)
    pathPrepend(PATH, ${UPS_PROD_DIR}/bin)
    envPrepend(LD_LIBRARY_PATH, ${UPS_PROD_DIR}/lib)
    envPrepend(PKG_CONFIG_PATH, ${UPS_PROD_DIR}/lib/pkgconfig)

    exeActionRequired(ExtraSetup)

End:

  • ups declare -f Linux64bit+2.6-2.12 -q GCC_4_7_1 -r /uboone/freetype/v2_3_5/Linux64bit+2.6-2.12-GCC_4_7_1 -M /uboone/freetype/v2_3_5/ups -m freetype.table freetype v2_3_5