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

Last change on this file was 95195, checked in by jmr@…, 5 years ago

mipsel-linux-uclib: license

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