Ticket #40830: AtomicParsley.diff

File AtomicParsley.diff, 1.5 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)

proposed patch

  • Portfile

     
    66categories         multimedia
    77platforms          darwin
    88maintainers        gmail.com:cedric.luthi
     9license            GPL-2+
     10
    911description        MPEG-4 command line tool
    1012long_description   AtomicParsley is a lightweight command line program \
    1113                   for reading, parsing and setting metadata into MPEG-4 files.
    1214
    1315homepage           http://atomicparsley.sourceforge.net
    14 master_sites       sourceforge:atomicparsley
     16master_sites       sourceforge:project/atomicparsley/atomicparsley/AtomicParsley%20v${version}
    1517distname           ${name}-source-${version}
    1618use_zip            yes
    1719checksums          md5 681e6ecec2921c98e07a9262bdcd6cf2 \
     
    2325use_configure      no
    2426build.cmd          ./build
    2527
    26 pre-build {
     28variant universal {}
     29
     30post-patch {
     31    reinplace "s|g++ |${configure.cxx} [get_canonical_archflags cxx] |g" ${worksrcpath}/build
     32    reinplace "s|-O2 |${configure.optflags} |g" ${worksrcpath}/build
    2733    # fix usage of private type, b0rked in Leopard
    2834    # -eridius
    29     reinplace -locale C "s|_NSBitmapImageFileType|NSBitmapImageFileType|g" ${worksrcpath}/AP_NSImage.mm
     35    reinplace -locale en_US.ISO8859-1 "s|_NSBitmapImageFileType|NSBitmapImageFileType|g" ${worksrcpath}/AP_NSImage.mm
    3036}
    3137
    3238destroot {
    33     xinstall -m 755 -d ${destroot}${prefix}/bin
    3439    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
    3540}
    3641