source: scripts/target-scripts/target-portmap.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: 992 bytes
Line 
1#!/bin/sh
2
3# cross-lfs target portmap build
4# ------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=portmap-target.log
13
14set_libdirname
15setup_multiarch
16
17# TODO: should probably just install into
18#       ${LFS} and be done with it
19if [ "${USE_SYSROOT}" = "Y" ]; then
20   BASEDIR=${LFS}
21else
22   BASEDIR=${TGT_TOOLS}
23fi
24
25unpack_tarball portmap_${PORTMAP_VER}
26cd ${PKGDIR}
27apply_patch portmap-5beta-compilation_fixes-3
28apply_patch portmap-5beta-glibc_errno_fix-1
29
30# Do not strip during install
31chmod 644 Makefile
32if [ ! -f Makefile-ORIG ]; then cp Makefile Makefile-ORIG ; fi
33sed '/install.*-s /s@-s @@g' Makefile-ORIG > Makefile
34
35max_log_init portmap ${PORTMAP_VER} "target (shared)" ${BUILDLOGS} ${LOG}
36make CC="${TARGET}-gcc ${ARCH_CFLAGS} ${TGT_CFLAGS}" \
37   >> ${LOGFILE} 2>&1 &&
38echo " o Build OK" &&
39
40min_log_init ${INSTLOGS} &&
41su -c "make BASEDIR=${BASEDIR} install" \
42   >> ${LOGFILE} 2>&1 &&
43echo " o ALL OK" || barf
44
Note: See TracBrowser for help on using the repository browser.