source: scripts/scripts/untested/blfs-scripts/blfs-cdk.sh @ 7f65c0e

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 7f65c0e was 7f65c0e, checked in by Jim Gifford <clfs@…>, 18 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • 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.