Changeset 29070


Ignore:
Timestamp:
Sep 14, 2007, 12:55:55 PM (12 years ago)
Author:
nox@…
Message:

webdec (closes #12682):

  • Added standard doc installation.
  • Added universal support.
  • Added sha1 and rmd160 checksums.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/archivers/webdec/Portfile

    r28070 r29070  
    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
     
    1618master_sites    http://www.jamesbarford.net/downloads/
    1719
    18 checksums       md5 14341604153c4605ecf81162b09c67fa
     20checksums   md5 14341604153c4605ecf81162b09c67fa \
     21            sha1 6f0d90f09627f023f71ddd30ca67edf3e62f673e \
     22            rmd160 e49877e5e9598326b319f882a877af691156f03f
    1923
    20 use_configure   no
    21 
    22 destroot        {}
    23 
    24 post-destroot   {
    25         xinstall -m 755 -W ${worksrcpath} webdec \
    26         ${destroot}${prefix}/bin/webdec
     24configure {
     25    reinplace -E "/^CFLAGS/s|\$| [join ${configure.cflags} " "]|" ${worksrcpath}/Makefile
     26    reinplace -E "/^LDFLAGS/s|\$| [join ${configure.ldflags} " "]|" ${worksrcpath}/Makefile
    2727}
    2828
    29 variant debug   {
    30         build.pre_args  CFLAGS="-Wall -ansi -pedantic -DDEBUG"
     29destroot {
     30    xinstall ${worksrcpath}/webdec ${destroot}${prefix}/bin
     31
     32    set docdir ${prefix}/share/doc/${name}-${version}
     33    xinstall -d ${destroot}${docdir}
     34    xinstall -m 0644 -W ${worksrcpath} GPL README ${destroot}${docdir}
    3135}
    3236
    33 universal_variant no
     37variant debug {
     38    post-configure {
     39        reinplace -E "/^CFLAGS/s|\$| -DDEBUG|" ${worksrcpath}/Makefile
     40    }
     41}
    3442
Note: See TracChangeset for help on using the changeset viewer.