package_infos: Fold x86_gcc2/haiku into generic.

Only a few #ifdefs now required. Verified the generated packageinfos
are identical at the end.
This commit is contained in:
Augustin Cavalier 2021-09-30 14:06:32 -04:00
parent 7f4c5a1fe7
commit 2aaa4f6aad
2 changed files with 9 additions and 111 deletions

View File

@ -17,8 +17,10 @@ licenses {
flags system_package
provides {
#ifdef HAIKU_BUILD_FEATURE_x86_64_x86_64_ENABLED
#if defined(HAIKU_PACKAGING_ARCH_x86_64)
haiku=%HAIKU_VERSION% compat>=R1~alpha4_pm_hrev51198
#elif defined(HAIKU_PACKAGING_ARCH_x86_gcc2)
haiku=%HAIKU_VERSION% compat>=R1~alpha1
#else
haiku=%HAIKU_VERSION% compat>=R1~beta1
#endif
@ -48,6 +50,10 @@ provides {
cmd:useradd
cmd:watch
cmd:xres
#if defined(HAIKU_PACKAGING_ARCH_x86_gcc2)
lib:libstdc++
#endif
}
requires {
@ -67,9 +73,11 @@ requires {
cmd:unzip
#endif
#if !defined(HAIKU_PACKAGING_ARCH_x86_gcc2)
lib:libgcc_s
lib:libstdc++
lib:libsupc++
#endif
#ifdef HAIKU_BUILD_FEATURE_%HAIKU_PACKAGING_ARCH%_libedit_ENABLED
lib:libedit

View File

@ -1,110 +0,0 @@
name haiku
version %HAIKU_VERSION%
architecture x86_gcc2
summary "The Haiku base system"
description "The Haiku base system includes all system core software, like
boot loader, kernel, the system libraries, servers, and applications."
packager "The Haiku build system"
vendor "Haiku Project"
copyrights "2001-2021 Haiku, Inc. et al"
licenses {
MIT
"GNU LGPL v2.1"
}
flags system_package
provides {
haiku=%HAIKU_VERSION% compat>=R1~alpha1
cmd:arp
cmd:chop
cmd:clear
cmd:df
cmd:ftpd
cmd:hd
cmd:hey
cmd:login
cmd:more
cmd:passwd
cmd:ping
cmd:ping6
cmd:prio
cmd:ps
cmd:renice
cmd:resattr
cmd:su
cmd:telnet
cmd:telnetd
cmd:top
cmd:traceroute
cmd:trash
cmd:unchop
cmd:useradd
cmd:watch
cmd:xres
lib:libstdc++
}
requires {
haiku_datatranslators
noto >= 2.7
#ifdef HAIKU_REGULAR_BUILD
noto_sans_cjk_jp
#endif
coreutils
cmd:sh
#ifdef HAIKU_REGULAR_BUILD
cmd:bunzip2
cmd:gunzip
cmd:tar
cmd:unzip
#endif
#ifdef HAIKU_BUILD_FEATURE_%HAIKU_PACKAGING_ARCH%_libedit_ENABLED
lib:libedit
#endif
#ifdef HAIKU_BUILD_FEATURE_%HAIKU_PACKAGING_ARCH%_fontconfig_ENABLED
lib:libfontconfig
#endif
#ifdef HAIKU_BUILD_FEATURE_%HAIKU_PACKAGING_ARCH%_freetype_ENABLED
lib:libfreetype
#endif
#ifdef HAIKU_BUILD_FEATURE_%HAIKU_PACKAGING_ARCH%_icu_ENABLED
lib:libicudata >= 57
lib:libicui18n >= 57
lib:libicuio >= 57
lib:libicutest >= 57
lib:libicutu >= 57
lib:libicuuc >= 57
#endif
#ifdef HAIKU_BUILD_FEATURE_%HAIKU_PACKAGING_ARCH%_ncurses_ENABLED
lib:libncurses >= 6.0
#endif
#ifdef HAIKU_BUILD_FEATURE_%HAIKU_PACKAGING_ARCH%_libsolv_ENABLED
lib:libsolv
lib:libsolvext
#endif
#ifdef HAIKU_BUILD_FEATURE_%HAIKU_PACKAGING_ARCH%_zlib_ENABLED
lib:libz
#endif
#ifdef HAIKU_REGULAR_BUILD
#ifdef HAIKU_BUILD_FEATURE_%HAIKU_PACKAGING_ARCH%_expat_ENABLED
lib:libexpat
#endif
#ifdef HAIKU_BUILD_FEATURE_%HAIKU_PACKAGING_ARCH%_gutenprint_ENABLED
lib:libgutenprint >= 8
#endif
#ifdef HAIKU_BUILD_FEATURE_%HAIKU_PACKAGING_ARCH%_openssl_ENABLED
lib:libssl
lib:libcrypto
#endif
#ifdef HAIKU_BUILD_FEATURE_%HAIKU_PACKAGING_ARCH%_zstd_ENABLED
lib:libzstd >= 1
#endif
#endif
}