xref: /haiku/build/jam/OptionalPackages (revision cda5b8808fd0262f0fac472f6cfa809f846a83cf)
1# This file defines the optional packages that can be added to the Haiku image.
2# It is directly included from HaikuImage -- all variables defined there can
3# be used
4
5# Available Optional Packages:
6#	Development
7#	Firefox
8#	Links
9#	OpenSound
10#	OpenSSL
11#	Pe
12#	Perl
13#	Vision
14#	VLC
15#	WonderBrush
16
17
18# package dependencies
19OptionalPackageDependencies Development : Perl ;
20
21
22# Development
23if [ IsOptionalHaikuImagePackageAdded Development ]
24		&& $(TARGET_ARCH) = x86 {
25	# glue code
26	AddFilesToHaikuImage develop lib x86
27		: <src!system!glue!arch!x86>crti.o <src!system!glue!arch!x86>crtn.o
28		  <src!system!glue>init_term_dyn.o <src!system!glue>start_dyn.o ;
29
30	# library symlinks
31	local lib ;
32	for lib in $(BEOS_SYSTEM_LIBS)
33		$(BEOS_SYSTEM_LIBS_LIBNETWORK_ALIASES) libglut.so {
34		AddSymlinkToHaikuImage develop lib x86 : /system/lib/$(lib:BS) ;
35	}
36
37	# static libraries
38	AddFilesToHaikuImage develop lib x86 : libncurses.a ;
39
40	# cc and c++ wrapper scripts
41	AddFilesToHaikuImage beos bin : cc c++ ;
42
43	# headers
44	AddHeaderDirectoryToHaikuImage gnu : 3rdparty ;
45	AddHeaderDirectoryToHaikuImage os ;
46	AddHeaderDirectoryToHaikuImage posix ;
47
48	# add _G_config.h to posix/
49	SEARCH on <header>_G_config.h = [ FDirName $(HAIKU_TOP) headers glibc ] ;
50	AddFilesToHaikuImage develop headers posix : <header>_G_config.h ;
51
52	# create be -> os symlink for now
53	AddSymlinkToHaikuImage develop headers : os : be ;
54
55	# BSD compatibility headers
56	AddHeaderDirectoryToHaikuImage compatibility bsd : bsd ;
57
58	# create gnu -> 3rdparty symlink
59	AddSymlinkToHaikuImage develop headers : 3rdparty : gnu ;
60		# TODO: Change BEINCLUDES and gcc to refer to 3rdparty rather than gnu.
61
62	# third party libs headers
63	AddHeaderDirectoryToHaikuImage libs ncurses : 3rdparty ;
64	AddHeaderDirectoryToHaikuImage libs png : 3rdparty ;
65	AddHeaderDirectoryToHaikuImage libs zlib : 3rdparty ;
66
67	if $(HAIKU_GCC_VERSION[1]) > 2 {
68		# gcc 4
69
70		# symlink cpp to g++'s headers
71		AddSymlinkToHaikuImage develop headers
72			: /boot/develop/tools/gnupro/include/g++ : cpp ;
73	} else {
74		# gcc 2.95.3
75
76		AddHeaderDirectoryToHaikuImage cpp ;
77
78		# gcc and binutils
79		local baseURL = http://haiku-files.org/files/optional-packages ;
80		InstallOptionalHaikuImagePackage gcc-2.95.3-haiku-080323
81			: $(baseURL)/gcc-2.95.3-haiku-080323.zip
82			: develop tools
83		;
84		AddSymlinkToHaikuImage develop tools : gcc-2.95.3-haiku-080323
85			: gnupro ;
86
87		# other tools
88		InstallOptionalHaikuImagePackage autoconf-2.61-gcc2-2008-03-24
89			: $(baseURL)/autoconf-2.61-gcc2-2008-03-24.zip
90			: home
91		;
92		InstallOptionalHaikuImagePackage automake-1.10.1-gcc2-2008-03-24-1
93			: $(baseURL)/automake-1.10.1-gcc2-2008-03-24-1.zip
94			: home
95		;
96		InstallOptionalHaikuImagePackage bison-2.3-gcc2-2008-03-28
97			: $(baseURL)/bison-2.3-gcc2-2008-03-28.zip
98			: home
99		;
100		InstallOptionalHaikuImagePackage flex-2.5.35-gcc2-2008-03-28
101			: $(baseURL)/flex-2.5.35-gcc2-2008-03-28.zip
102			: home
103		;
104		InstallOptionalHaikuImagePackage jam-haiku-gcc2-2008-03-27-1
105			: $(baseURL)/jam-haiku-gcc2-2008-03-27-1.zip
106			: .
107		;
108		InstallOptionalHaikuImagePackage libtool-1.5.26-gcc2-2008-04-07
109			: $(baseURL)/libtool-1.5.26-gcc2-2008-04-07.zip
110			: home
111		;
112		InstallOptionalHaikuImagePackage texinfo-4.11-gcc2-2008-03-24
113			: $(baseURL)/texinfo-4.11-gcc2-2008-03-24.zip
114			: home
115		;
116	}
117}
118
119
120# Firefox web browser
121if [ IsOptionalHaikuImagePackageAdded Firefox ] {
122	if $(HAIKU_GCC_VERSION[1]) >= 4 {
123		Echo "No optional package Firefox available for gcc4" ;
124	} else {
125		InstallOptionalHaikuImagePackage Firefox
126			: http://www.sheltonfamily.org/firefoxbuilds/firefox-2.0.0.12.en-US.beosR5-i586.zip
127			: apps
128		;
129		AddSymlinkToHaikuImage home config be Applications
130			: /boot/apps/firefox/firefox ;
131	}
132}
133
134
135# Links web browser
136if [ IsOptionalHaikuImagePackageAdded Links ] {
137	if $(HAIKU_GCC_VERSION[1]) >= 4 {
138		Echo "No optional package Links available for gcc4" ;
139	} else {
140		InstallOptionalHaikuImagePackage Links
141			: http://revolf.free.fr/beos/links-beos-bin.zip
142			:
143		;
144		AddSymlinkToHaikuImage home config be Applications
145			: /boot/home/config/bin/links ;
146	}
147}
148
149
150# OpenSound drivers
151if [ IsOptionalHaikuImagePackageAdded OpenSound ] {
152	if $(HAIKU_GCC_VERSION[1]) >= 4 {
153		Echo "No optional package OpenSound available for gcc4" ;
154	} else {
155		InstallOptionalHaikuImagePackage OpenSound
156			: http://revolf.free.fr/beos/oss-beos-v4.1test-bin.zip
157			:
158		;
159	}
160	#UnzipArchiveToHaikuImage home : data/vv.mp3.zip : 0 ;
161}
162
163
164# OpenSSL
165if [ IsOptionalHaikuImagePackageAdded OpenSSL ] {
166	if $(HAIKU_GCC_VERSION[1]) >= 4 {
167		Echo "No optional package OpenSSL available for gcc4" ;
168	} else {
169		local baseURL = http://haiku-files.org/files/optional-packages ;
170		InstallOptionalHaikuImagePackage openssl-0.9.8g-gcc2-2008-03-28
171			: $(baseURL)/openssl-0.9.8g-gcc2-2008-03-28.zip
172			: home
173		;
174	}
175}
176
177
178# Pe text editor
179if [ IsOptionalHaikuImagePackageAdded Pe ] {
180	if $(HAIKU_GCC_VERSION[1]) >= 4 {
181		Echo "No optional package Pe available for gcc4" ;
182	} else {
183		InstallOptionalHaikuImagePackage pe-2.4.1-x86
184			: http://dl.hirschkaefer.de/beos/pe-2.4.1-x86.zip
185			: apps
186		;
187
188		# TODO: The installation directory should probably be renamed to just
189		# "pe" (or "Pe") and the contained "(drag lpe here...)" be removed.
190		AddSymlinkToHaikuImage home config be Applications
191			: /boot/apps/pe-2.4.1-x86/pe ;
192		AddSymlinkToHaikuImage home config bin
193			: /boot/apps/pe-2.4.1-x86/lpe ;
194	}
195}
196
197
198# Perl
199if [ IsOptionalHaikuImagePackageAdded Perl ] {
200	if $(HAIKU_GCC_VERSION[1]) >= 4 {
201		Echo "No optional package Perl available for gcc4" ;
202	} else {
203		local baseURL = http://haiku-files.org/files/optional-packages ;
204		InstallOptionalHaikuImagePackage perl-5.10.0-gcc2-2008-03-24
205			: $(baseURL)/perl-5.10.0-gcc2-2008-03-24.zip
206			: home
207		;
208	}
209}
210
211
212# Vision
213if [ IsOptionalHaikuImagePackageAdded Vision ] {
214	if $(HAIKU_GCC_VERSION[1]) >= 4 {
215		Echo "No optional package Vision available for gcc4" ;
216	} else {
217		InstallOptionalHaikuImagePackage Vision
218			: http://vision.sf.net/Vision-0.9.7-H-30032008.zip
219			: apps
220		;
221		AddSymlinkToHaikuImage home config be Applications
222			: /boot/apps/Vision-0.9.7-H-30032008/Vision ;
223	}
224}
225
226# VLC media player
227if [ IsOptionalHaikuImagePackageAdded VLC ] {
228	if $(HAIKU_GCC_VERSION[1]) >= 4 {
229		Echo "No optional package VLC available for gcc4" ;
230	} else {
231		InstallOptionalHaikuImagePackage VLC
232			: http://www.yellowbites.com/downloads/vlc-0.8.6c.zip
233			: apps
234		;
235		AddSymlinkToHaikuImage home config be Applications
236			: /boot/apps/vlc-0.8.6c/vlc ;
237	}
238}
239
240
241# WonderBrush
242if [ IsOptionalHaikuImagePackageAdded WonderBrush ] {
243	if $(HAIKU_GCC_VERSION[1]) >= 4 {
244		Echo "No optional package WonderBrush available for gcc4" ;
245	} else {
246		InstallOptionalHaikuImagePackage WonderBrush
247			: http://www.yellowbites.com/downloads/WonderBrush-2.1.1-demo-x86-R5.zip
248			: apps
249		;
250		AddSymlinkToHaikuImage home config be Applications
251			: /boot/apps/WonderBrush/WonderBrush ;
252	}
253}
254