source: scripts/blfs-scripts/blfs-libpng.sh @ 617118d

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

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.1 KB
Line 
1#!/bin/sh
2
3### libpng ###
4
5cd ${SRC}
6LOG=libpng-blfs.log
7SELF=`basename ${0}`
8set_buildenv
9set_libdirname
10setup_multiarch
11
12unpack_tarball libpng-${LIBPNG_VER}
13cd ${PKGDIR}
14
15case ${LIBPNG_VER} in
16   1.2.7 )
17      apply_patch libpng-1.2.7-link_to_proper_libs-1
18   ;;
19   1.2.8 )
20      apply_patch libpng-1.2.8-link_to_proper_libs-1
21   ;;
22esac
23apply_patch libpng-1.2.7-fix_pc_for_biarch
24
25max_log_init libpng ${LIBPNG_VER} "blfs (shared)" ${BUILDLOGS} ${LOG}
26make CC="${CC-gcc} ${ARCH_CFLAGS}" \
27   prefix=/usr LIBPATH=/usr/${libdirname} \
28   ZLIBINC=/usr/include ZLIBLIB=/usr/${libdirname} \
29   -f scripts/makefile.linux \
30   >> ${LOGFILE} 2>&1 &&
31echo " o Build OK" &&
32
33min_log_init ${INSTLOGS} &&
34make CC="${CC-gcc} ${ARCH_CFLAGS}" \
35   prefix=/usr LIBPATH=/usr/${libdirname} install \
36   -f scripts/makefile.linux \
37   >> ${LOGFILE} 2>&1 &&
38echo " o ALL OK" || barf
39
40if [ "Y" = "${MULTIARCH}" ]; then
41   use_wrapper /usr/bin/libpng12-config
42   # Added as libpng-config is a symlink to libpng12-config (which uses the wrapper)
43   # so that the wrapper will find libpng-config-${BUILDENV}
44   ln -sf libpng12-config-${BUILDENV} /usr/bin/libpng-config-${BUILDENV}
45fi
Note: See TracBrowser for help on using the repository browser.