X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fpkg%2Ftcl;h=8acbdbf945e192d03fe1fb022317761dfe517f33;hb=1b6490195147ee6d1098cf255240d60f60c40108;hp=5be0be56a20357a77272f242a85f710b462eed4b;hpb=3dae4c554ec18f465eb6ee5e6efdbdbe8557e13c;p=hvlinux.git diff --git a/stage3/pkg/tcl b/stage3/pkg/tcl index 5be0be5..8acbdbf 100644 --- a/stage3/pkg/tcl +++ b/stage3/pkg/tcl @@ -1,41 +1,27 @@ -#!/bin/sh -set -o errexit +#!/bin/bash -# First argument of this script is the package name. -# Remaining arguments are additional configure options. +hvbuild() +{ + cd ${BUILD_DIR} + make -# Reading system configuration informations, functions and package versions. -source ../sysinfos -source ../functions -source ../packages-list + # Removes references to the build directory and replaces them with saner + # system-wide locations: + sed -i \ + -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \ + -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \ + -e "/SEARCH/s/=.*/=''/" \ + tclConfig.sh -PACKAGE=${1} -shift -CONFIGURE_OPTS=${*} + make install +} -# Applying patches (if any) -apply_patches ${PACKAGE} +hvbuild_post() +{ + make install-private-headers -cd ${LFS_TMP}/${PACKAGE} -cd unix -./configure --prefix=/usr \ - --enable-threads \ - --mandir=/usr/share/man -make + # Special case for TCL + PKG_VER_BASE=$(echo ${PACKAGE} | sed "s!^tcl\([0-9]*\.[0-9]*\).*!\1!g") -# removes the references to the build directory and replaces them with saner -# system-wide locations: -sed -i \ - -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \ - -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \ - -e "/SEARCH/s/=.*/=''/" \ - tclConfig.sh - -make install -make install-private-headers - -PKG_VER_BASE=$(echo ${PACKAGE} | sed "s!^tcl\([0-9]*\.[0-9]*\).*!\1!g") - -ln -svfT tclsh${PKG_VER_BASE} /usr/bin/tclsh - -exit $? + ln -svfT tclsh${PKG_VER_BASE} /usr/bin/tclsh +}