X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage4%2Fpkg%2Ftk;fp=stage4%2Fpkg%2Ftk;h=e91c15ce3826f2902fd278a2ee32694bf8f439b9;hb=0315072ae3bd307eee71718e1a59f923edcbdaca;hp=0000000000000000000000000000000000000000;hpb=7a56acaf393f8598e6bd8e23ba539d716177afbe;p=hvlinux.git diff --git a/stage4/pkg/tk b/stage4/pkg/tk new file mode 100644 index 0000000..e91c15c --- /dev/null +++ b/stage4/pkg/tk @@ -0,0 +1,34 @@ +#!/bin/bash + +hvconfig() +{ + cd ${LFS_TMP}/${PACKAGE}/unix + ./configure \ + --prefix=/usr \ + --enable-threads \ + --mandir=/usr/share/man +} + +hvbuild() +{ + make + + # Removes references to the build directory and replaces them with saner + # system-wide locations: + sed -i \ + -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \ + -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \ + -e "/SEARCH/s/=.*/=''/" \ + tkConfig.sh + make install +} + +hvbuild_post() +{ + make install-private-headers + + # Special case for TK + PKG_VER_BASE=$(echo ${PACKAGE} | sed "s!^tk\([0-9]*\.[0-9]*\).*!\1!g") + + ln -v -sf wish${PKG_VER_BASE} /usr/bin/wish +}