Changeset 90442


Ignore:
Timestamp:
Mar 5, 2012, 8:07:01 PM (8 years ago)
Author:
jmr@…
Message:

cc65: simplify build and destroot phases, add docs variant (#28834), disable parallel build since it fails for me

Location:
trunk/dports/lang/cc65
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/cc65/Portfile

    r68763 r90442  
    1717homepage        http://www.cc65.org/
    1818distfiles       cc65-sources-${version}.tar.bz2
    19 worksrcdir      ${name}-${version}/src
    2019use_bzip2       yes
    2120
     
    2524                ftp://ftp.musoftware.de/pub/uz/cc65/old/
    2625
    27 patchfiles      patch-makefiles.diff
    28 
    2926checksums       md5 cbf9e25db21002371222ae025a6a1850
    3027
     
    3229use_configure   no
    3330
    34 build.args      -f make/gcc.mak \
    35                 CC=${configure.cc}
    36 build.env       PREFIX=${prefix}
     31build.target    bins libs
     32build.args      -f make/gcc.mak prefix=${prefix}
     33use_parallel_build no
    3734
    38 post-build {
    39     system "cd ${worksrcpath}/../libsrc && make"
     35destroot.args   -f make/gcc.mak prefix=${destroot}${prefix}
     36
     37post-patch {
     38    foreach file [glob ${worksrcpath}/src/*/make/gcc.mak] {
     39        reinplace -E "s|^CC\[\[:space:\]\]*=\[\[:space:\]\]*gcc|CC=${configure.cc}|" $file
     40    }
    4041}
    4142
    42 destroot {
    43     set _d ${destroot}${prefix}
    44     file delete ${_d}/man
    45     system "mkdir -p ${_d}/lib/cc65/{asminc,cfg,emd,joy,lib,mou,obj,ser,tgi}"
    46     system "mkdir -p ${_d}/lib/cc65/include/{em,geos,joystick,mouse,sys,tgi}"
    47     system "install -s -m 755 ${worksrcpath}/ar65/ar65 ${_d}/bin"
    48     system "install -s -m 755 ${worksrcpath}/ca65/ca65 ${_d}/bin"
    49     system "install -s -m 755 ${worksrcpath}/ca65html/ca65html ${_d}/bin"
    50     system "install -s -m 755 ${worksrcpath}/cc65/cc65 ${_d}/bin"
    51     system "install -s -m 755 ${worksrcpath}/cl65/cl65 ${_d}/bin"
    52     system "install -s -m 755 ${worksrcpath}/co65/co65 ${_d}/bin"
    53     system "install -s -m 755 ${worksrcpath}/da65/da65 ${_d}/bin"
    54     system "install -s -m 755 ${worksrcpath}/grc/grc ${_d}/bin"
    55     system "install -s -m 755 ${worksrcpath}/ld65/ld65 ${_d}/bin"
    56     system "install -s -m 755 ${worksrcpath}/od65/od65 ${_d}/bin"
    57     system "install -m 644 ${worksrcpath}/../asminc/*.inc ${_d}/lib/cc65/asminc"
    58     system "install -m 644 ${worksrcpath}/ld65/cfg/*-*.cfg ${_d}/lib/cc65/cfg"
    59     system "install -m 644 ${worksrcpath}/../libsrc/*.emd ${_d}/lib/cc65/emd"
    60     system "install -m 644 ${worksrcpath}/../include/*.h ${_d}/lib/cc65/include"
    61     system "install -m 644 ${worksrcpath}/../include/em/*.h ${_d}/lib/cc65/include/em"
    62     system "install -m 644 ${worksrcpath}/../include/geos/*.h ${_d}/lib/cc65/include/geos"
    63     system "install -m 644 ${worksrcpath}/../include/joystick/*.h ${_d}/lib/cc65/include/joystick"
    64     system "install -m 644 ${worksrcpath}/../include/mouse/*.h ${_d}/lib/cc65/include/mouse"
    65     system "install -m 644 ${worksrcpath}/../include/sys/*.h ${_d}/lib/cc65/include/sys"
    66     system "install -m 644 ${worksrcpath}/../include/tgi/*.h ${_d}/lib/cc65/include/tgi"
    67     system "install -m 644 ${worksrcpath}/../libsrc/*.joy ${_d}/lib/cc65/joy"
    68     system "install -m 644 ${worksrcpath}/../libsrc/*.lib ${_d}/lib/cc65/lib"
    69     system "install -m 644 ${worksrcpath}/../libsrc/*.mou ${_d}/lib/cc65/mou"
    70     system "install -m 644 ${worksrcpath}/../libsrc/*.o ${_d}/lib/cc65/obj"
    71     system "install -m 644 ${worksrcpath}/../libsrc/*.ser ${_d}/lib/cc65/ser"
    72     system "install -m 644 ${worksrcpath}/../libsrc/*.tgi ${_d}/lib/cc65/tgi"
     43variant docs description {Install extra documentation} {
     44    depends_build-append port:linuxdoc-tools
     45    build.target-append docs
     46    post-destroot {
     47        set docdir ${destroot}${prefix}/share/doc/${name}
     48        file mkdir "${docdir}/html"
     49        foreach file [glob -directory ${docdir} *.htm*] {
     50            move ${file} "${docdir}/html"
     51        }
     52    }
    7353}
Note: See TracChangeset for help on using the changeset viewer.