Ticket #1432: libpng.diff

File libpng.diff, 1.3 KB (added by blb@…, 21 years ago)

unidiff to Portfile

  • Portfile

    old new  
    1515        attempts were made to make it as complete as possible, while \
    1616        keeping the code easy to understand.  Currently, this library \
    1717        only supports C.  Support for other languages is being considered.
    18 platforms       darwin openbsd freebsd
     18platforms       darwin openbsd freebsd sunos
    1919homepage        http://www.libpng.org/pub/png/
    2020use_bzip2       yes
    2121master_sites    sourceforge
     
    2424variant darwin {
    2525        patchfiles      patch-makefile.darwin
    2626        configure {
    27                 cd ${workpath}/${worksrcdir}
     27                cd ${worksrcpath}
    2828                file copy scripts/makefile.darwin Makefile
    29                 reinplace s|/usr/local|${prefix}| Makefile
    30                 reinplace s|(prefix)/man|(prefix)/share/man| Makefile
    3129        }
    3230}
    3331
    3432variant openbsd {
    3533        configure {
    36                 cd ${workpath}/${worksrcdir}
     34                cd ${worksrcpath}
    3735                file copy scripts/makefile.openbsd Makefile
    38                 reinplace s|/usr/local|${prefix}| Makefile
    39                 reinplace s|(prefix)/man|(prefix)/share/man| Makefile
    4036        }
    4137}
    4238
    4339variant freebsd {
    4440        configure {
    45                 cd ${workpath}/${worksrcdir}
     41                cd ${worksrcpath}
    4642                file copy scripts/makefile.freebsd Makefile
     43        }
     44}
     45
     46variant sunos {
     47        configure {
     48                cd ${worksrcpath}
     49                file copy scripts/makefile.solaris Makefile
     50        }
     51}
     52
     53post-configure {
    4754                reinplace s|/usr/local|${prefix}| Makefile
    4855                reinplace s|(prefix)/man|(prefix)/share/man| Makefile
    4956        }
    50 }
     57