source: scripts/untested/blfs-scripts/blfs-lcms.sh@ e5345f18

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

r594@server (orig r592): ryan | 2005-08-05 23:05:33 -0700
Add sed to fix python/lcms.i as SWIG_LPGAMMATABLE is not defined
Add LDFLAGS pointing at /usr/${libdirname} to get around libtool issues



  • Property mode set to 100755
File size: 1.2 KB
Line 
1#!/bin/bash
2
3### lcms ###
4
5cd ${SRC}
6LOG=lcms-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13 extra_conf="--libdir=/usr/${libdirname}"
14fi
15
16unpack_tarball lcms-${LCMS_VER}
17cd ${PKGDIR}
18
19# TODO: need to patch python/lcms.i as SWIG_LPGAMMATABLE is not defined
20
21sed -i 's@SWIGTYPE_LPGAMMATABLE@SWIGTYPE_p_GAMMATABLE@g' python/lcms.i
22
23# TODO: check python output what it defines for site-packeages during
24# bi-arch builds... python script dir is always lib, not lib64
25# ( thio could be an issue with the python build ).
26# Also, produced .la files need editing, and for some reason
27# libtool brings in /usr/lib64/lib{jpeg,tiff}.la during 32bit builds
28
29max_log_init lcms ${LCMS_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
30CC="${CC-gcc} ${ARCH_CFLAGS}" \
31CXX="${CXX-g++} ${ARCH_CFLAGS}" \
32CFLAGS="${TGT_CFLAGS}" \
33CXXFLAGS="${TGT_CFLAGS}" \
34LDFLAGS="-L/usr/${libdirname}" \
35./configure --prefix=/usr --with-python ${extra_conf} \
36 >> ${LOGFILE} 2>&1 &&
37echo " o Configure OK" &&
38
39min_log_init ${BUILDLOGS} &&
40make \
41 >> ${LOGFILE} 2>&1 &&
42echo " o Build OK" &&
43
44min_log_init ${INSTLOGS} &&
45make install \
46 >> ${LOGFILE} 2>&1 &&
47echo " o ALL OK" || barf
48
Note: See TracBrowser for help on using the repository browser.