Changeset 93208


Ignore:
Timestamp:
May 17, 2012, 7:53:54 PM (7 years ago)
Author:
ryandesign@…
Message:

ttyrec: make universal variant actually build universal, and therefore increase revision; simplify destroot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/ttyrec/Portfile

    r93204 r93208  
    66name                ttyrec
    77version             1.0.8
     8revision            1
    89categories          sysutils
    910maintainers         cal openmaintainer
     
    2425
    2526use_configure       no
    26 universal_variant   yes
     27
     28variant universal {}
    2729
    2830build.args          CC='${configure.cc}' \
    29                     CFLAGS='${configure.cflags} [get_canonical_archflags]' \
    30                     LDFLAGS='${configure.ldflags} [get_canonical_archflags]'
     31                    CFLAGS='${configure.cflags} [get_canonical_archflags cc]' \
     32                    LDFLAGS='${configure.ldflags} [get_canonical_archflags ld]'
    3133
    3234destroot {
    33     set bin {ttyrec ttyplay ttytime}
    34     set man {ttyrec.1 ttyplay.1 ttytime.1}
    35     set share {README}
    36     foreach binfile $bin {
    37         xinstall -m 755 "${worksrcpath}/${binfile}" "${destroot}${prefix}/bin/"
    38     }
    39     foreach manfile $man {
    40         xinstall -m 644 "${worksrcpath}/${manfile}" "${destroot}${prefix}/share/man/man1/"
    41     }
    42     xinstall -d -m 755 "${destroot}${prefix}/share/doc"
    43     xinstall -d -m 755 "${destroot}${prefix}/share/doc/${name}"
    44     foreach sharefile $share {
    45         xinstall -m 644 "${worksrcpath}/${sharefile}" "${destroot}${prefix}/share/doc/${name}/"
    46     }
     35    xinstall -m 755 -W ${worksrcpath} ttyrec ttyplay ttytime ${destroot}${prefix}/bin
     36    xinstall -m 644 -W ${worksrcpath} ttyrec.1 ttyplay.1 ttytime.1 ${destroot}${prefix}/share/man/man1
     37   
     38    set docdir ${prefix}/share/doc/${name}
     39    xinstall -d ${destroot}${docdir}
     40    xinstall -m 644 -W ${worksrcpath} README ${destroot}${docdir}
    4741}
    4842
Note: See TracChangeset for help on using the changeset viewer.