source: trunk/dports/cross/mipsel-linux-uclib/Portfile @ 22478

Last change on this file since 22478 was 22478, checked in by pipping@…, 13 years ago
  • Spring-cleaning @opendarwin.org addresses

see #11465
see http://www.mail-archive.com/macports-dev@lists.macosforge.org/msg00309.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
2
3PortSystem 1.0
4
5name                    mipsel-linux-uclib
6version                 0.9.27
7categories              cross
8platforms               darwin
9maintainers             nomaintainer@macports.org
10description             uClib library for mipsel-linux cross development
11long_description        ${description}
12
13homepage                http://www.uclibc.org/
14master_sites    http://www.uclibc.org/downloads/
15distname                uClibc-${version}
16checksums               sha1 e0de53949998253e25e6b946b564062babb723b4
17use_bzip2               yes
18
19patchfiles              patch-Makefile 100-gcc4_fix.patch \
20                                110-inet6_hosts_resolve.patch 120-more_standard_math.patch
21
22dist_subdir             uclib
23
24depends_build   port:coreutils
25depends_lib             port:mipsel-linux-binutils port:mipsel-linux-gcc34
26
27set target              mipsel-linux-uclibc
28set htarget             mipsel-linux
29set cprefix             ${prefix}/cross/${target}
30
31extract.post_args       "| tar -xf - --exclude '.cvsignore'"
32
33post-extract {
34        file copy ${filespath}/config.mips ${worksrcpath}/.config
35}
36
37patch.pre_args  -p1
38post-patch {
39        reinplace "s|.*UCLIBC_HAS_LFS.*|UCLIBC_HAS_LFS=n|g" ${worksrcpath}/.config
40        reinplace "s|.*UCLIBC_HAS_WCHAR.*|UCLIBC_HAS_WCHAR=y|g" ${worksrcpath}/.config
41        reinplace "s|^KERNEL_SOURCE=.*|KERNEL_SOURCE=${prefix}/cross/mipsel-linux-uclibc/include/linux/|g" \
42                ${worksrcpath}/.config
43}
44
45use_configure   no
46
47build.env               PATH=${cprefix}/bin:$env(PATH)
48build.args              PREFIX= DEVEL_PREFIX=/ RUNTIME_PREFIX=/ \
49                                HOSTCC=/usr/bin/gcc CROSS=${target}-
50build.target    all
51
52pre-destroot {
53        xinstall -m 755 -d ${destroot}${cprefix}/uclibc/usr/lib
54}
55destroot.target install_runtime install_dev
56destroot.args   PREFIX=${destroot}${cprefix}/uclibc DEVEL_PREFIX=/usr/ \
57                                RUNTIME_PREFIX=/ HOSTCC=gcc
58destroot.destdir
59post-destroot {
60        file delete -force ${destroot}${cprefix}/uclibc/usr/include
61}
62
Note: See TracBrowser for help on using the repository browser.