source: scripts/untested/blfs-scripts/blfs-cdk.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 1c379e4, checked in by Jim Gifford <clfs@…>, 19 years ago

r589@server (orig r587): ryan | 2005-08-05 22:57:16 -0700
Add a pile of new scripts, and add -32 and -64 symlinks



  • Property mode set to 100755
File size: 941 bytes
Line 
1#!/bin/bash
2
3### cdk ###
4# http://dickey.his.com/cdk/cdk.html
5
6cd ${SRC}
7LOG=cdk-blfs.log
8
9SELF=`basename ${0}`
10set_buildenv
11set_libdirname
12setup_multiarch
13if [ ! "${libdirname}" = "lib" ]; then
14 extra_conf="--libdir=/usr/${libdirname}"
15fi
16
17unpack_tarball cdk-${CDK_VER}
18cd ${PKGDIR}
19
20if [ ! -f Makefile.in-orig ]; then
21 cp -p Makefile.in Makefile.in-orig
22
23 sed 's@gcc@$(CC)@g' Makefile.in-orig > Makefile.in
24fi
25
26max_log_init cdk ${CDK_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
27CC="${CC-gcc} ${ARCH_CFLAGS}" \
28CFLAGS="-O2 -pipe ${TGT_CFLAGS} -fPIC" \
29./configure --prefix=/usr ${extra_conf} \
30 --mandir=/usr/share/man --infodir=/usr/share/info \
31 >> ${LOGFILE} 2>&1 &&
32echo " o Configure OK" &&
33
34min_log_init ${BUILDLOGS} &&
35(
36 make all
37 make cdkshlib
38) >> ${LOGFILE} 2>&1 &&
39echo " o Build OK" &&
40
41min_log_init ${INSTLOGS} &&
42(
43 make install &&
44 make installCDKSHLibrary
45) >> ${LOGFILE} 2>&1 &&
46echo " o ALL OK" || barf
47
Note: See TracBrowser for help on using the repository browser.