clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since b15e4602 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
|
Rev | Line | |
---|
[d5e4fdc0] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | ### Tk perl module ###
|
---|
| 4 |
|
---|
| 5 | cd ${SRC}
|
---|
| 6 | LOG=tk-pm-blfs.log
|
---|
| 7 |
|
---|
| 8 | SELF=`basename ${0}`
|
---|
| 9 | set_buildenv
|
---|
| 10 | set_libdirname
|
---|
| 11 |
|
---|
| 12 | unpack_tarball Tk-${TK_PM_VER}
|
---|
| 13 | cd ${PKGDIR}
|
---|
| 14 |
|
---|
| 15 | if [ ! "${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
|
---|
| 26 | fi
|
---|
| 27 |
|
---|
| 28 | max_log_init Tk-pm ${TK_PM_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 29 | perl Makefile.PL ${extra_conf} \
|
---|
| 30 | >> ${LOGFILE} 2>&1 &&
|
---|
| 31 | echo " o Configure OK" || barf
|
---|
| 32 |
|
---|
| 33 | min_log_init ${BUILDLOGS} &&
|
---|
| 34 | make \
|
---|
| 35 | >> ${LOGFILE} 2>&1 &&
|
---|
| 36 | echo " 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 |
|
---|
| 47 | min_log_init ${INSTLOGS} &&
|
---|
| 48 | make install \
|
---|
| 49 | >> ${LOGFILE} 2>&1 &&
|
---|
| 50 | echo " o ALL OK" || barf
|
---|
| 51 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.