1local architecture = $(HAIKU_PACKAGING_ARCHS[1]) ; 2 3 4local haikuPackage = haiku.hpkg ; 5HaikuPackage $(haikuPackage) ; 6 7 8# wifi firmware 9for driver in $(SYSTEM_ADD_ONS_DRIVERS_NET) { 10 local package = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_PACKAGE) ] ; 11 local archive = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_ARCHIVE) ] ; 12 local extract = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_DO_EXTRACT) ] ; 13 if $(archive) { 14 AddWifiFirmwareToPackage $(driver) : $(package) : $(archive) 15 : $(extract) ; 16 } 17 local packages = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_PACKAGES) ] ; 18 local archives = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_ARCHIVES) ] ; 19 for archive in $(archives) { 20 AddWifiFirmwareToPackage $(driver) : $(packages[1]) : $(archive) 21 : $(extract) ; 22 packages = $(packages[2-]) ; 23 } 24} 25 26 27# modules 28AddFilesToPackage add-ons kernel bus_managers : $(SYSTEM_ADD_ONS_BUS_MANAGERS) ; 29AddFilesToPackage add-ons kernel busses agp_gart : <agp_gart>intel@x86,x86_64 ; 30 31if $(HAIKU_ATA_STACK) = 1 { 32 AddFilesToPackage add-ons kernel busses ata 33 : generic_ide_pci it8211 legacy_sata silicon_image_3112 ide_isa@x86 ; 34} else { 35 AddFilesToPackage add-ons kernel busses ide 36 : generic_ide_pci it8211 legacy_sata silicon_image_3112 ide_isa@x86 ; 37} 38 39AddFilesToPackage add-ons kernel busses random : virtio_rng ; 40AddFilesToPackage add-ons kernel busses scsi : ahci virtio_scsi ; 41AddFilesToPackage add-ons kernel busses usb : <usb>uhci <usb>ohci <usb>ehci ; 42AddFilesToPackage add-ons kernel busses virtio : virtio_pci ; 43AddFilesToPackage add-ons kernel console : vga_text ; 44AddFilesToPackage add-ons kernel debugger 45 : <kdebug>demangle <kdebug>disasm@x86 <kdebug>hangman 46 <kdebug>invalidate_on_exit <kdebug>usb_keyboard <kdebug>qrencode@libqrencode 47 <kdebug>run_on_exit ; 48AddFilesToPackage add-ons kernel file_systems : $(SYSTEM_ADD_ONS_FILE_SYSTEMS) ; 49AddFilesToPackage add-ons kernel generic 50 : ata_adapter@ata bios@x86,x86_64 dpc ide_adapter@ide 51 locked_pool mpu401 scsi_periph <module>tty ; 52AddFilesToPackage add-ons kernel partitioning_systems 53 : amiga_rdb apple efi_gpt intel session ; 54AddFilesToPackage add-ons kernel interrupt_controllers : openpic@ppc ; 55AddFilesToPackage add-ons kernel power cpufreq : intel_pstates@x86,x86_64 ; 56AddFilesToPackage add-ons kernel power cpuidle : intel_cstates@x86,x86_64 ; 57 58if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 { 59 AddFilesToPackage add-ons kernel cpu : generic_x86 ; 60} 61 62# drivers 63AddNewDriversToPackage disk scsi : scsi_cd scsi_disk ; 64AddNewDriversToPackage disk virtual : virtio_block ; 65AddNewDriversToPackage power : $(SYSTEM_ADD_ONS_DRIVERS_POWER) ; 66#AddNewDriversToPackage display : display_controls@x86 ; 67 68# legacy drivers 69AddDriversToPackage : console dprintf null <driver>tty zero ; 70AddDriversToPackage audio hmulti : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO) ; 71AddDriversToPackage audio old : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD) ; 72AddDriversToPackage midi : $(SYSTEM_ADD_ONS_DRIVERS_MIDI) ; 73AddDriversToPackage bus : usb_raw fw_raw@x86 ; 74AddDriversToPackage disk floppy : pc_floppy@x86 ; 75AddDriversToPackage disk usb : usb_disk ; 76AddDriversToPackage disk usb : usb_floppy ; 77AddDriversToPackage printer usb : usb_printer ; 78AddDriversToPackage disk virtual : nbd ; 79AddDriversToPackage dvb : cx23882 ; 80AddDriversToPackage graphics : $(SYSTEM_ADD_ONS_DRIVERS_GRAPHICS) ; 81AddDriversToPackage input : ps2_hid usb_hid wacom ; 82AddDriversToPackage misc : <driver>poke <driver>mem ; 83AddDriversToPackage net : $(SYSTEM_ADD_ONS_DRIVERS_NET) ; 84AddDriversToPackage ports : usb_serial ; 85 86# kernel 87AddFilesToPackage : <revisioned>kernel_$(TARGET_ARCH) ; 88 89# libs 90AddLibrariesToPackage lib 91 : [ HaikuImageGetSystemLibs ] [ HaikuImageGetPrivateSystemLibs ] ; 92 93# libnetwork.so replaces quite a few libraries 94if $(HAIKU_GCC_VERSION_$(architecture)[1]) = 2 { 95 local libNetworkAliases = libsocket.so libbind.so libnet.so ; 96 local lib ; 97 for lib in $(libNetworkAliases) { 98 AddSymlinkToPackage lib : libnetwork.so : $(lib) ; 99 } 100 101 AddSymlinkToPackage lib : libbnetapi.so : libnetapi.so ; 102} 103 104 105# TODO: Remove when the packages have been rebuilt! 106AddSymlinkToPackage lib : libbe.so : liblocale.so ; 107 108# servers 109AddFilesToPackage servers : $(SYSTEM_SERVERS) ; 110 111# apps 112AddFilesToPackage : runtime_loader Deskbar Tracker ; 113AddFilesToPackage bin : $(SYSTEM_BIN) consoled ; 114AddFilesToPackage apps : $(SYSTEM_APPS) ; 115AddFilesToPackage preferences : $(SYSTEM_PREFERENCES) ; 116AddFilesToPackage demos : $(SYSTEM_DEMOS) ; 117 118SEARCH on install-wifi-firmwares.sh = [ FDirName $(HAIKU_TOP) data bin ] ; 119AddFilesToPackage bin : install-wifi-firmwares.sh ; 120 121AddSymlinkToPackage bin : bash : sh ; 122AddSymlinkToPackage bin : trash : untrash ; 123AddSymlinkToPackage bin : less : more ; 124AddSymlinkToPackage bin : gzip : gunzip ; 125AddSymlinkToPackage bin : gzip : zcat ; 126AddSymlinkToPackage bin : zdiff : zcmp ; 127AddSymlinkToPackage bin : unzip : zipinfo ; 128 129# scripts and data files 130local bootScripts = Bootscript Bootscript.cd SetupEnvironment Netscript 131 InstallerInitScript InstallerFinishScript ; 132SEARCH on $(bootScripts) = [ FDirName $(HAIKU_TOP) data system boot ] ; 133AddFilesToPackage boot : $(bootScripts) ; 134 135# post install scripts 136local postInstallFiles = add_catalog_entry_attributes.sh 137 default_deskbar_items.sh ; 138postInstallFiles = $(postInstallFiles:G=post-install) ; 139SEARCH on $(postInstallFiles) 140 = [ FDirName $(HAIKU_TOP) data system boot post_install ] ; 141AddFilesToPackage boot post-install : $(postInstallFiles) ; 142 143# artwork and sounds 144local logoArtwork = 145 $(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - big.png" 146 $(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - normal.png" ; 147SEARCH on $(logoArtwork) = [ FDirName $(HAIKU_TOP) data artwork ] ; 148AddFilesToPackage data artwork : $(logoArtwork) ; 149 150# Mail spell check dictionaries 151local spellFiles = words geekspeak ; 152spellFiles = $(spellFiles:G=spell) ; 153SEARCH on $(spellFiles) = [ FDirName $(HAIKU_TOP) src apps mail ] ; 154AddFilesToPackage data spell_check word_dictionary : $(spellFiles) ; 155 156local fortuneFiles = [ Glob $(HAIKU_TOP)/data/system/data/fortunes 157 : [a-zA-Z0-9]* ] ; 158fortuneFiles = $(fortuneFiles:G=data!fortunes) ; 159AddFilesToPackage data fortunes : $(fortuneFiles) ; 160 161local fontDir = [ FDirName $(HAIKU_TOP) data system data fonts ] ; 162local psFonts = [ Glob $(fontDir)/psfonts : *.afm *.pfb ] ; 163local ttFonts = [ Glob $(fontDir)/ttfonts : *.ttf ] ; 164AddFilesToPackage data fonts psfonts : $(psFonts) ; 165AddFilesToPackage data fonts ttfonts : $(ttFonts) ; 166 167local cannaDir = [ FDirName $(HAIKU_TOP) data system data Canna ] ; 168local cannaDefault = [ Glob $(cannaDir)/default : *.canna *.gz ] ; 169local cannaDic = [ Glob $(cannaDir)/dic : *.cbp ] ; 170local cannaDicCanna = [ Glob $(cannaDir)/dic/canna 171 : *.cld *.ctd *.cbd *.dir ] ; 172AddFilesToPackage data Canna default : $(cannaDefault) ; 173AddFilesToPackage data Canna dic : $(cannaDic) ; 174AddFilesToPackage data Canna dic canna : $(cannaDicCanna) ; 175#AddDirectoryToPackage data Canna dic group ; 176#AddDirectoryToPackage data Canna dic user ; 177 # TODO: If those serve any purpose, they should probably live in a writable 178 # subtree. 179 180# keymaps 181AddFilesToPackage data Keymaps : $(HAIKU_KEYMAP_FILES) ; 182local keymapAlias ; 183for keymapAlias in $(HAIKU_KEYMAP_ALIASES) { 184 local aliasedTo = [ on $(keymapAlias) return $(HAIKU_KEYMAP_FILE) ] ; 185 AddSymlinkToPackage data Keymaps : $(aliasedTo:BSM) : $(keymapAlias:BSM) ; 186} 187 188# keyboard layouts 189AddFilesToPackage data KeyboardLayouts 190 : $(HAIKU_KEYBOARD_LAYOUT_FILES) ; 191AddFilesToPackage data KeyboardLayouts Apple\ Aluminum 192 : $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) ; 193AddFilesToPackage data KeyboardLayouts ThinkPad 194 : $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) ; 195 196# boot module links 197AddBootModuleSymlinksToPackage 198 acpi@x86,x86_64 ahci ata@ata ata_adapter@ata 199 bfs 200 config_manager 201 dpc 202 efi_gpt 203 generic_ide_pci 204 ide@ide ide_adapter@ide ide_isa@x86 isa@x86,x86_64 intel it8211 205 legacy_sata locked_pool 206 openpic@ppc 207 packagefs pci 208 scsi scsi_cd scsi_disk scsi_periph silicon_image_3112 209 usb usb_disk <usb>ehci <usb>ohci <usb>uhci 210 virtio virtio_block virtio_pci virtio_scsi 211; 212 213# add-ons 214AddFilesToPackage add-ons accelerants : $(SYSTEM_ADD_ONS_ACCELERANTS) ; 215AddFilesToPackage add-ons Translators : $(SYSTEM_ADD_ONS_TRANSLATORS) ; 216AddFilesToPackage add-ons locale catalogs : $(SYSTEM_ADD_ONS_LOCALE_CATALOGS) ; 217 218AddFilesToPackage add-ons mail_daemon inbound_protocols : POP3 IMAP ; 219AddFilesToPackage add-ons mail_daemon outbound_protocols : SMTP ; 220AddFilesToPackage add-ons mail_daemon inbound_filters 221 : MatchHeader SpamFilter NewMailNotification ; 222AddFilesToPackage add-ons mail_daemon outbound_filters : Fortune ; 223 224AddFilesToPackage add-ons media : $(SYSTEM_ADD_ONS_MEDIA) ; 225AddFilesToPackage add-ons media plugins : $(SYSTEM_ADD_ONS_MEDIA_PLUGINS) ; 226 227AddFilesToPackage add-ons Tracker 228 : FileType Mark\ as… Mark\ as\ Read Open\ Target\ Folder 229 Open\ Terminal ZipOMatic ; 230AddSymlinkToPackage add-ons Tracker 231 : /boot/system/preferences/Backgrounds : Background ; 232AddSymlinkToPackage add-ons Tracker 233 : /boot/system/apps/TextSearch : TextSearch ; 234AddSymlinkToPackage add-ons Tracker 235 : /boot/system/apps/DiskUsage : DiskUsage ; 236 237AddFilesToPackage add-ons input_server devices 238 : <input>keyboard <input>mouse <input>tablet <input>wacom ; 239AddFilesToPackage add-ons input_server filters 240 : screen_saver shortcut_catcher ; 241 242AddFilesToPackage add-ons kernel network : <net>notifications stack ; 243AddFilesToPackage add-ons kernel network : dns_resolver ; 244AddFilesToPackage add-ons kernel network devices : $(SYSTEM_NETWORK_DEVICES) ; 245AddFilesToPackage add-ons kernel network datalink_protocols 246 : $(SYSTEM_NETWORK_DATALINK_PROTOCOLS) ; 247AddFilesToPackage add-ons kernel network ppp: $(SYSTEM_NETWORK_PPP) ; 248AddFilesToPackage add-ons kernel network protocols 249 : $(SYSTEM_NETWORK_PROTOCOLS) ; 250 251AddFilesToPackage add-ons Print : $(SYSTEM_ADD_ONS_PRINT) ; 252AddFilesToPackage add-ons Print transport 253 : $(SYSTEM_ADD_ONS_PRINT_TRANSPORT) ; 254AddFilesToPackage add-ons Screen\ Savers : $(SYSTEM_ADD_ONS_SCREENSAVERS) ; 255 256AddFilesToPackage add-ons disk_systems 257 : <disk_system>intel <disk_system>gpt <disk_system>bfs <disk_system>ntfs ; 258 259 260# the MIME DB 261CopyDirectoryToPackage data : <mimedb>mime_db : : : isTarget ; 262 263 264# Deskbar menu symlinks 265 266# "Applications" links 267local linkTarget ; 268for linkTarget in $(DESKBAR_APPLICATIONS) { 269 AddSymlinkToPackage data deskbar menu Applications 270 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 271} 272 273# "Desktop applets" links 274for linkTarget in $(DESKBAR_DESKTOP_APPLETS) { 275 AddSymlinkToPackage data deskbar menu Desktop\ applets 276 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 277} 278 279# "Preferences" links 280AddDirectoryToPackage data deskbar menu Preferences ; 281DESKBAR_PREFERENCES = $(SYSTEM_PREFERENCES:B) ; 282for linkTarget in $(DESKBAR_PREFERENCES) { 283 AddSymlinkToPackage data deskbar menu Preferences 284 : ../../../../preferences/$(linkTarget) 285 : $(linkTarget) ; 286} 287 288# "Demo" links 289AddDirectoryToPackage data deskbar menu Demos ; 290for linkTarget in $(SYSTEM_DEMOS) { 291 AddSymlinkToPackage data deskbar menu Demos 292 : ../../../../demos/$(linkTarget) : $(linkTarget) ; 293} 294 295# Deskbar menu entries file 296AddFilesToPackage data deskbar : <deskbar>menu_entries ; 297 298 299# optional 300# TODO: We should probably build another package (including the data files 301# above) that can be installed, if desired. 302AddFilesToPackage optional add-ons input_server methods : canna ; 303 304 305# PDF Writer enconding files 306CopyDirectoryToPackage data 307 : [ FDirName $(HAIKU_TOP) src add-ons print drivers pdf encoding ] 308 : "PDF Writer" : -x Jamfile ; 309 310# licenses 311CopyDirectoryToPackage data 312 : [ FDirName $(HAIKU_TOP) data system data licenses ] 313 : licenses ; 314 315# Copy documentation as per DiskUsage's license requirement. 316CopyDirectoryToPackage documentation 317 : [ FDirName $(HAIKU_TOP) docs apps diskusage ] 318 : diskusage ; 319 320# Copy documentation and sample programs as per PDFlib Lite's license 321# requirement. 322CopyDirectoryToPackage documentation 323 : [ FDirName $(HAIKU_TOP) src libs pdflib doc ] 324 : pdflib ; 325CopyDirectoryToPackage develop sample-code 326 : [ FDirName $(HAIKU_TOP) src libs pdflib bind pdflib ] 327 : pdflib ; 328 329 330# empty directory 331AddDirectoryToPackage data empty ; 332 333 334BuildHaikuPackage $(haikuPackage) : haiku ; 335