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

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

mipsel-linux-kernel-headers: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 95192 2012-07-06 16:14:53Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    mipsel-linux-kernel-headers
6version                 2.4.30
7revision                1
8categories              cross
9license                 GPL-2
10platforms               darwin
11maintainers             nomaintainer
12supported_archs noarch
13
14description             Linux kernel headers for mips-linux cross development
15long_description        ${description}
16
17homepage                http://www.kernel.org/
18master_sites    http://www.de.kernel.org/pub/linux/kernel/v2.4/
19distname                linux-${version}
20checksums               sha1 280768f529d018af44ced85b7c9d221d536ca1d7
21use_bzip2               yes
22
23dist_subdir             linux
24
25set target              mipsel-linux-uclibc
26set cprefix             ${prefix}/cross/${target}
27
28extract.post_args       "| tar -xf - ${distname}/include ${distname}/Makefile \
29                                ${distname}/Rules.make ${distname}/arch/mips/Makefile \
30                                ${distname}/scripts ${distname}/arch/mips/config*.in \
31                                ${distname}/*/*/Config.in ${distname}/*/Config.in"
32post-extract {
33        file copy ${filespath}/config ${worksrcpath}/.config
34}
35
36patch {
37        reinplace "s/@expr length/@-expr length/" ${worksrcpath}/Makefile
38}
39
40use_configure   no
41
42build.target    oldconfig
43build.args              ARCH=mips
44
45destroot {
46        xinstall -m 755 -d ${destroot}${cprefix}/include/
47        file copy ${worksrcpath} ${destroot}${cprefix}/include/
48        system "cd ${destroot}${cprefix}/include/ && ln -s ${distname} linux"
49}
50
51destroot.violate_mtree yes
Note: See TracBrowser for help on using the repository browser.