Ticket #25489: amarok-Portfile_try1.diff

File amarok-Portfile_try1.diff, 1.1 KB (added by michaelld (Michael Dickens), 14 years ago)

Portfile diff for amarok to resolve 32/64 bit pointer issue, try 1.

  • Portfile

     
    2626                    port:loudmouth port:qca port:libmtp port:libgpod \
    2727                    path:bin/mysql_config5:mysql5
    2828
    29 patchfiles          patch-src-app-mac.patch
    30 patch.dir           ${workpath}/${distname}
    31 patch.pre_args      -p1
     29#patchfiles          patch-src-app-mac.patch
     30#patch.dir           ${workpath}/${distname}
     31#patch.pre_args      -p1
    3232
    3333pre-configure {
    3434    if {![file exists ${prefix}/lib/mysql5/mysql/libmysqld.a]} {
     
    3737    }
    3838}
    3939
     40post-patch {
     41    # fix 32/64-bit pointer for 'this' in AE
     42    reinplace "s@long@URefCon@g" ${workpath}/${distname}/src/app_mac.cpp
     43    reinplace "/setupEventHandler_mac/s@long@URefCon@g" \
     44        ${workpath}/${distname}/src/App.cpp
     45}
     46
    4047# have to include the various paths to the header and library manually
    4148# for libusb-legacy since libmtp doesn't provide them
    4249compiler.cpath        ${prefix}/include/libusb-legacy:${compiler.cpath}