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