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

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

mipsel-linux-uclib-headers: license

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