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 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
|
Rev | Line | |
---|
[617118d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | ### lcms ###
|
---|
| 4 |
|
---|
| 5 | cd ${SRC}
|
---|
| 6 | LOG=lcms-blfs.log
|
---|
| 7 |
|
---|
| 8 | SELF=`basename ${0}`
|
---|
| 9 | set_buildenv
|
---|
| 10 | set_libdirname
|
---|
| 11 | setup_multiarch
|
---|
| 12 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
| 13 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
| 14 | fi
|
---|
| 15 |
|
---|
| 16 | unpack_tarball lcms-${LCMS_VER}
|
---|
| 17 | cd ${PKGDIR}
|
---|
| 18 |
|
---|
| 19 | # TODO: need to patch python/lcms.i as SWIG_LPGAMMATABLE is not defined
|
---|
[57d97a5] | 20 |
|
---|
| 21 | sed -i 's@SWIGTYPE_LPGAMMATABLE@SWIGTYPE_p_GAMMATABLE@g' python/lcms.i
|
---|
| 22 |
|
---|
[617118d] | 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 |
|
---|
| 29 | max_log_init lcms ${LCMS_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 30 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 31 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
| 32 | CFLAGS="${TGT_CFLAGS}" \
|
---|
| 33 | CXXFLAGS="${TGT_CFLAGS}" \
|
---|
[57d97a5] | 34 | LDFLAGS="-L/usr/${libdirname}" \
|
---|
[617118d] | 35 | ./configure --prefix=/usr --with-python ${extra_conf} \
|
---|
| 36 | >> ${LOGFILE} 2>&1 &&
|
---|
| 37 | echo " o Configure OK" &&
|
---|
| 38 |
|
---|
| 39 | min_log_init ${BUILDLOGS} &&
|
---|
| 40 | make \
|
---|
| 41 | >> ${LOGFILE} 2>&1 &&
|
---|
| 42 | echo " o Build OK" &&
|
---|
| 43 |
|
---|
| 44 | min_log_init ${INSTLOGS} &&
|
---|
| 45 | make install \
|
---|
| 46 | >> ${LOGFILE} 2>&1 &&
|
---|
| 47 | echo " o ALL OK" || barf
|
---|
| 48 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.