Added XZ-Utils as an optional package.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35721 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matt Madia 2010-03-02 14:42:30 +00:00
parent ce811940ba
commit f8b1bf84a2
2 changed files with 23 additions and 0 deletions

View File

@ -19,3 +19,5 @@ OptionalPackageDependencies Git : Expat Curl OpenSSL ;
OptionalPackageDependencies Curl : OpenSSL ;
OptionalPackageDependencies NetFS : UserlandFS ;
OptionalPackageDependencies Vim : LibIconv ;
OptionalPackageDependencies XZ-Utils : Tar ;

View File

@ -1172,6 +1172,27 @@ if [ IsOptionalHaikuImagePackageAdded WonderBrush ] {
}
# XZ-Utils
if [ IsOptionalHaikuImagePackageAdded XZ-Utils ] {
if $(TARGET_ARCH) != x86 {
Echo "No optional package XZ-Utils available for $(TARGET_ARCH)" ;
} else {
InstallOptionalHaikuImagePackage xz-utils-4.999.9-x86-gcc4-2010-02-25.zip
: $(baseURL)/xz-utils-4.999.9-x86-gcc4-2010-02-25.zip
:
;
AddExpanderRuleToHaikuImage "application/x-xz" : .tar.xz
: "xz -dc \\0045s | tar tvf -"
: "xz -dc \\0045s | tar xvf -"
;
AddExpanderRuleToHaikuImage "application/x-xz" : .txz
: "echo \\0045s | sed 's/.xz\\\$//g'"
: "xz -df \\0045s"
;
}
}
# Yasm
if [ IsOptionalHaikuImagePackageAdded Yasm ] {
if $(TARGET_ARCH) != x86 {