Print this page
Other packages up to gcc51 runtime


  16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17 # If applicable, add the following below this CDDL HEADER, with the
  18 # fields enclosed by brackets "[]" replaced with your own identifying
  19 # information: Portions Copyright [yyyy] [name of copyright owner]
  20 #
  21 # CDDL HEADER END
  22 #
  23 #
  24 # Copyright 2011-2012 OmniTI Computer Consulting, Inc.  All rights reserved.
  25 # Use is subject to license terms.
  26 #
  27 # Load support functions
  28 . ../../lib/functions.sh
  29 
  30 PROG=libxml2        # App name
  31 VER=2.9.1           # App version
  32 PKG=library/libxml2 # Package name (without prefix)
  33 SUMMARY="$PROG - XML C parser and toolkit"
  34 DESC="$SUMMARY"
  35 
  36 DEPENDS_IPS="compress/xz@5.0 system/library/gcc-4-runtime library/zlib@1.2.8"
  37 BUILD_DEPENDS_IPS="$DEPENDS_IPS developer/sunstudio12.1"
  38 
  39 fix_python_install() {
  40     logcmd mkdir -p $DESTDIR/usr/lib/python2.6/vendor-packages
  41     logcmd mv $DESTDIR/usr/lib/python2.6/site-packages/* $DESTDIR/usr/lib/python2.6/vendor-packages/ || logerr "failed relocating python install"
  42     logcmd rm -f $DESTDIR/usr/lib/python2.6/vendor-packages/64/drv_libxml2.py
  43     logcmd rm -rf $DESTDIR/usr/lib/python2.6/site-packages || logerr "failed removing bad python install"
  44     logcmd rm -rf $DESTDIR/usr/include/amd64 || logerr "failed removing bad includes install"
  45 }
  46 
  47 install_license(){
  48     logcmd cp $TMPDIR/$BUILDDIR/COPYING $DESTDIR/license
  49 }
  50 
  51 make_prog64() {
  52     logcmd perl -pi -e 's#(\$CC.*\$compiler_flags)#$1 -nostdlib#g;' libtool ||
  53         logerr "libtool patch failed"
  54     logcmd gmake || logerr "Make failed"
  55 }
  56 




  16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17 # If applicable, add the following below this CDDL HEADER, with the
  18 # fields enclosed by brackets "[]" replaced with your own identifying
  19 # information: Portions Copyright [yyyy] [name of copyright owner]
  20 #
  21 # CDDL HEADER END
  22 #
  23 #
  24 # Copyright 2011-2012 OmniTI Computer Consulting, Inc.  All rights reserved.
  25 # Use is subject to license terms.
  26 #
  27 # Load support functions
  28 . ../../lib/functions.sh
  29 
  30 PROG=libxml2        # App name
  31 VER=2.9.1           # App version
  32 PKG=library/libxml2 # Package name (without prefix)
  33 SUMMARY="$PROG - XML C parser and toolkit"
  34 DESC="$SUMMARY"
  35 
  36 DEPENDS_IPS="compress/xz@5.0 system/library/gcc-5-runtime library/zlib@1.2.8"
  37 BUILD_DEPENDS_IPS="$DEPENDS_IPS developer/sunstudio12.1"
  38 
  39 fix_python_install() {
  40     logcmd mkdir -p $DESTDIR/usr/lib/python2.6/vendor-packages
  41     logcmd mv $DESTDIR/usr/lib/python2.6/site-packages/* $DESTDIR/usr/lib/python2.6/vendor-packages/ || logerr "failed relocating python install"
  42     logcmd rm -f $DESTDIR/usr/lib/python2.6/vendor-packages/64/drv_libxml2.py
  43     logcmd rm -rf $DESTDIR/usr/lib/python2.6/site-packages || logerr "failed removing bad python install"
  44     logcmd rm -rf $DESTDIR/usr/include/amd64 || logerr "failed removing bad includes install"
  45 }
  46 
  47 install_license(){
  48     logcmd cp $TMPDIR/$BUILDDIR/COPYING $DESTDIR/license
  49 }
  50 
  51 make_prog64() {
  52     logcmd perl -pi -e 's#(\$CC.*\$compiler_flags)#$1 -nostdlib#g;' libtool ||
  53         logerr "libtool patch failed"
  54     logcmd gmake || logerr "Make failed"
  55 }
  56