Ticket #12682: webdec-doc-universal.diff

File webdec-doc-universal.diff, 1.4 KB (added by nox@…, 17 years ago)
  • Portfile

     
    11# $Id$
    22
    3 PortSystem 1.0
     3PortSystem  1.0
     4
    45name            webdec
    56version         0.46.2
     7revision    1
    68categories      archivers
    79maintainers     izmir@verizon.net
    810description     Extract webshots pictures
     
    1517
    1618master_sites    http://www.jamesbarford.net/downloads/
    1719
    18 checksums       md5 14341604153c4605ecf81162b09c67fa
    19 
    20 use_configure   no
     20checksums   md5 14341604153c4605ecf81162b09c67fa \
     21            sha1 6f0d90f09627f023f71ddd30ca67edf3e62f673e \
     22            rmd160 e49877e5e9598326b319f882a877af691156f03f
     23
     24configure {
     25    reinplace -E "/^CFLAGS/s|\$| [join ${configure.cflags} " "]|" ${worksrcpath}/Makefile
     26    reinplace -E "/^LDFLAGS/s|\$| [join ${configure.ldflags} " "]|" ${worksrcpath}/Makefile
     27}
    2128
    22 destroot        {}
     29destroot {
     30    xinstall ${worksrcpath}/webdec ${destroot}${prefix}/bin
    2331
    24 post-destroot   {
    25         xinstall -m 755 -W ${worksrcpath} webdec \
    26         ${destroot}${prefix}/bin/webdec
     32    set docdir ${prefix}/share/doc/${name}-${version}
     33    xinstall -d ${destroot}${docdir}
     34    xinstall -m 0644 -W ${worksrcpath} GPL README ${destroot}${docdir}
    2735}
    2836
    29 variant debug   {
    30         build.pre_args  CFLAGS="-Wall -ansi -pedantic -DDEBUG"
     37variant debug {
     38    post-configure {
     39        reinplace -E "/^CFLAGS/s|\$| -DDEBUG|" ${worksrcpath}/Makefile
     40    }
    3141}
    3242
    33 universal_variant no
    34