Ticket #5508: wip-OP-XZ-Utils.patch

File wip-OP-XZ-Utils.patch, 1.3 KB (added by mmadia, 10 years ago)

updated to use AddExpanderRuleToHaikuImage

  • build/jam/OptionalPackages

     
    11771172}
    11781173
    11791174
     1175# XZ-Utils
     1176if [ IsOptionalHaikuImagePackageAdded XZ-Utils ] {
     1177    if $(TARGET_ARCH) != x86 {
     1178        Echo "No optional package XZ-Utils available for $(TARGET_ARCH)" ;
     1179    } else {
     1180        InstallOptionalHaikuImagePackage xz-utils-4.999.9-x86-gcc4-2010-02-25.zip
     1181            : $(baseURL)/xz-utils-4.999.9-x86-gcc4-2010-02-25.zip
     1182            :
     1183        ;
     1184        AddExpanderRuleToHaikuImage "application/x-xz" : .tar.xz
     1185            : "xz -dc \\0045s | tar tvf -"
     1186            : "xz -dc \\0045s | tar xvf -"
     1187        ;
     1188        AddExpanderRuleToHaikuImage "application/x-xz" : .txz
     1189            : "echo \\0045s | sed 's/.xz\\\$//g'"
     1190            : "xz -df \\0045s"
     1191        ;
     1192    }
     1193}
     1194
     1195
    11801196# Yasm
    11811197if [ IsOptionalHaikuImagePackageAdded Yasm ] {
    11821198    if $(TARGET_ARCH) != x86 {
  • build/jam/OptionalPackageDependencies

     
    1919OptionalPackageDependencies Curl : OpenSSL ;
    2020OptionalPackageDependencies NetFS : UserlandFS ;
    2121OptionalPackageDependencies Vim : LibIconv ;
     22OptionalPackageDependencies XZ-Utils : Tar ;
     23