source: scripts/untested/blfs-scripts/blfs-tk-pm.sh@ def3913

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since def3913 was d5e4fdc0, checked in by Jim Gifford <clfs@…>, 19 years ago

r580@server (orig r578): ryan | 2005-06-09 08:57:43 -0700
Add a buildscript for the Tk perl module, and -32/-64 symlinks



  • Property mode set to 100755
File size: 1.1 KB
Line 
1#!/bin/bash
2
3### Tk perl module ###
4
5cd ${SRC}
6LOG=tk-pm-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11
12unpack_tarball Tk-${TK_PM_VER}
13cd ${PKGDIR}
14
15if [ ! "${libdirname}" = "lib" ]; then
16 # Set X11LIB to */lib64 to override search in myConfig
17 extra_conf="X11LIB=/usr/X11R6/${libdirname}"
18
19 # Recursively edit every occurance of /usr/X11R6/lib
20 echo " o Edit files to use /usr/X11R6/${libdirname}"
21 files=`grep -l -d recurse /usr/X11R6/lib * `
22 for file in ${files}; do
23 echo " - editing ${file}"
24 sed -i "s@X11R6/lib@X11R6/${libdirname}@g" ${file}
25 done
26fi
27
28max_log_init Tk-pm ${TK_PM_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
29perl Makefile.PL ${extra_conf} \
30 >> ${LOGFILE} 2>&1 &&
31echo " o Configure OK" || barf
32
33min_log_init ${BUILDLOGS} &&
34make \
35 >> ${LOGFILE} 2>&1 &&
36echo " o Build OK" || barf
37
38# Cannot run tests unless X is running...
39# TODO: Add a check to see if we have X running...
40# Disabling test for the moment
41
42#min_log_init ${TESTLOGS} &&
43#make test \
44# >> ${LOGFILE} 2>&1 &&
45#echo " o Test OK" || barf
46
47min_log_init ${INSTLOGS} &&
48make install \
49 >> ${LOGFILE} 2>&1 &&
50echo " o ALL OK" || barf
51
Note: See TracBrowser for help on using the repository browser.