| 21 | | Инсталирайте GCC, GNU make, заглавните файлове на GNU libc (в Дебиан пакета се казва libc-dev, но е най-лесно направо да се инсталира build-essential), autoconf, automake, libtool и Git. |
| 22 | | |
| 23 | | {{{ |
| 24 | | $ sudo aptitude install build-essential autoconf automake libtool git-core |
| | 21 | Инсталирайте GCC, GNU make, заглавните файлове на GNU libc (в Дебиан пакета се казва libc-dev, но е най-лесно направо да се инсталира build-essential), autoconf, automake, libtool, waf и Git. |
| | 22 | |
| | 23 | {{{ |
| | 24 | $ sudo aptitude install build-essential autoconf automake libtool git-core waf |
| 97 | | modules = [ 'meta-gnome-desktop', 'meta-gnome-proposed', 'gedit-plugins', |
| 98 | | 'epiphany-extensions', 'gst-plugins-bad', 'gst-plugins-ugly' ] |
| | 97 | modules = [ 'meta-gnome-desktop', 'meta-gnome-proposed', 'eog-plugins', |
| | 98 | 'epiphany-extensions', 'gedit-plugins', 'gst-plugins-bad', |
| | 99 | 'gst-plugins-ugly', 'dia', 'gnumeric' ] |
| 111 | | 'libmusicbrainz', 'autogen', 'perl-net-dbus' ] |
| | 112 | 'libmusicbrainz', 'autogen', 'perl-net-dbus', 'gtk-vnc', 'libcroco', |
| | 113 | 'libgdiplus', 'libnice', 'libnotify', 'ndesk-dbus', 'gssdp', 'gupnp', |
| | 114 | 'gupnp-av', 'ndesk-dbus-glib', 'pysqlite2', 'pyxdg', 'raptor', |
| | 115 | 'libnl', 'mono-addins' ] |
| 128 | | module_autogenargs['devhelp'] = autogenargs + ' CFLAGS=-Wno-error' |
| 129 | | module_autogenargs['nautilus'] = autogenargs + ' CFLAGS=-Wno-error' |
| | 132 | module_autogenargs['empathy'] = autogenargs + ' CFLAGS=-Wno-error' |
| | 133 | |
| | 134 | # --enable-python е за приставките на Питон. --disable-nm е без поддръжка на |
| | 135 | # NetworkManager (иначе трябва да се инсталира). |
| | 136 | module_autogenargs['evolution'] = autogenargs + ' --with-openldap --enable-python --disable-nm' |
| | 137 | |
| | 138 | # Това ни трябва за да тестваме всички низове касаещи LDAP в e-d-s. |
| | 139 | module_autogenargs['evolution-data-server'] = autogenargs + ' --with-openldap=yes' |
| | 140 | |
| | 141 | module_autogenargs['epiphany'] = autogenargs + ' --disable-introspection' |
| | 142 | module_autogenargs['epiphany-extensions'] = autogenargs + ' --with-extensions=really-all' |
| 134 | | # Това ни трябва за да тестваме всички низове касаещи LDAP в e-d-s. |
| 135 | | module_autogenargs['evolution-data-server'] = autogenargs + ' --with-openldap=yes' |
| 136 | | |
| 137 | | # --enable-python е за приставките на Питон. --disable-nm е без поддръжка на |
| 138 | | # NetworkManager (иначе трябва да се инсталира). За LDFLAGS е нужно малко повече |
| 139 | | # обяснение... Когато някои от зависимите библиотеки са инсталирани в /usr/lib или |
| | 147 | module_autogenargs['gobject-introspection'] = autogenargs + ' --disable-gtk-doc' |
| | 148 | module_autogenargs['gnome-bluetooth'] = autogenargs + ' --disable-introspection' |
| | 149 | module_autogenargs['gnome-utils'] = autogenargs + ' CFLAGS=-Wno-error' |
| | 150 | module_autogenargs['librsvg'] = autogenargs + ' --disable-mozilla-plugin' |
| | 151 | module_autogenargs['nautilus'] = autogenargs + ' CFLAGS=-Wno-error' |
| | 152 | |
| | 153 | # Ако използвате системен пакет на dbus (а не компилиран чрез JHBuild), |
| | 154 | # Tracker се опитва да инсталира org.freedesktop.Tracker*.service в |
| | 155 | # системната директория, където няма права (а и не желаем това). |
| | 156 | module_autogenargs['tracker'] = autogenargs + ' --with-session-bus-services-dir=/home/yavor/gnome-trunk/share/dbus-1/services' |
| | 157 | module_autogenargs['NetworkManager'] = autogenargs + ' --with-udev-dir=/home/yavor/gnome-trunk/lib/udev' |
| | 158 | |
| | 159 | # Коментирайте този ред, ако машината ви не е с многоядрен процесор. |
| | 160 | os.environ['MAKE'] = 'make -j2' |
| | 161 | |
| | 162 | # Използване на програмата install-check от дистрибуцията на JHBuild. |
| | 163 | os.environ['INSTALL'] = os.path.expanduser('~/bin/install-check') |
| | 164 | }}} |
| | 165 | |
| | 166 | Ето и един пример за gNewSense DeltaH, която е по-стара дистрибуция (базирана на Ubuntu Hardy). Тук не могат да се използват доста модули като пакети на дистрибуцията, понеже са с много стари версии. Налага се и доста по-често да се прибягва до трика с LDFLAGS, защото версията на GLib е още по-стара (2.16.3). |
| | 167 | |
| | 168 | {{{ |
| | 169 | # -*- mode: python -*- |
| | 170 | |
| | 171 | repos['git.gnome.org'] = 'git://git.gnome.org/' |
| | 172 | |
| | 173 | moduleset = 'gnome-2.30' |
| | 174 | |
| | 175 | use_local_modulesets = True |
| | 176 | |
| | 177 | modules = [ 'meta-gnome-desktop', 'meta-gnome-proposed', 'eog-plugins', |
| | 178 | 'epiphany-extensions', 'gedit-plugins', 'gst-plugins-bad', |
| | 179 | 'gst-plugins-ugly', 'dia', 'gnumeric' ] |
| | 180 | |
| | 181 | skip = [ 'libgpg-error', 'expat', 'fontconfig', 'audiofile', |
| | 182 | 'desktop-file-utils', 'libdaemon', 'avahi', 'libtasn1', 'liboil', |
| | 183 | 'mozilla', 'enchant', 'nspr', 'nss', 'iso-codes', 'libsndfile', |
| | 184 | 'libggz', 'ggz-client-libs', 'libmusicbrainz', 'autogen', |
| | 185 | 'perl-net-dbus', 'pyxdg', 'pysqlite2' ] |
| | 186 | |
| | 187 | checkoutroot = os.path.expanduser('~/src/gnome/trunk') |
| | 188 | |
| | 189 | prefix = '/home/yavor/gnome-trunk' |
| | 190 | |
| | 191 | autogenargs='--disable-static --enable-gtk-doc' |
| | 192 | |
| | 193 | # За LDFLAGS е нужно малко повече обяснение... |
| | 194 | # Когато някои от зависимите библиотеки са инсталирани в /usr/lib или |
| 147 | | module_autogenargs['evolution'] = autogenargs + ' --with-openldap --enable-python --disable-nm \ |
| 148 | | LDFLAGS=-Wl,/home/yavor/gnome-trunk/lib/libglib-2.0.so' |
| 149 | | |
| 150 | | module_autogenargs['gnome-games'] = autogenargs + ' LDFLAGS="-Wl,/home/yavor/gnome-trunk/lib/libglib-2.0.so \ |
| 151 | | -Wl,/home/yavor/gnome-trunk/lib/libgobject-2.0.so"' |
| 152 | | module_autogenargs['gnome-power-manager'] = autogenargs + ' CFLAGS=-Wno-error' |
| 153 | | module_autogenargs['epiphany-extensions'] = autogenargs + ' --with-extensions=really-all' |
| 154 | | |
| 155 | | # Приставката за Epiphany не е приспособена към WebKit. |
| 156 | | module_autogenargs['seahorse-plugins'] = autogenargs + ' --disable-epiphany' |
| 157 | | |
| 158 | | # Ако използвате системен пакет на dbus (а не компилиран чрез JHBuild), |
| 159 | | # Tracker се опитва да инсталира org.freedesktop.Tracker*.service в |
| 160 | | # системната директория, където няма права (а и не желаем това). |
| 161 | | module_autogenargs['tracker'] = autogenargs + ' --with-session-bus-services-dir=/home/yavor/gnome-trunk/share/dbus-1/services' |
| 162 | | |
| 163 | | # Коментирайте този ред, ако машината ви не е с многоядрен процесор. |
| 164 | | os.environ['MAKE'] = 'make -j2' |
| 165 | | |
| 166 | | # Използване на програмата install-check от дистрибуцията на JHBuild. |
| 167 | | os.environ['INSTALL'] = os.path.expanduser('~/bin/install-check') |
| 168 | | }}} |
| 169 | | |
| 170 | | Ето и един пример за gNewSense DeltaH, която е по-стара дистрибуция (базирана на Ubuntu Hardy). Тук не могат да се използват доста модули като пакети на дистрибуцията, понеже са с много стари версии. Налага се и доста по-често да се прибягва до трика с LDFLAGS, защото версията на GLib е още по-стара (2.16.3). |
| 171 | | |
| 172 | | {{{ |
| 173 | | # -*- mode: python -*- |
| 174 | | |
| 175 | | repos['git.gnome.org'] = 'git://git.gnome.org/' |
| 176 | | |
| 177 | | moduleset = 'gnome-2.28' |
| 178 | | |
| 179 | | use_local_modulesets = True |
| 180 | | |
| 181 | | modules = [ 'meta-gnome-desktop', 'meta-gnome-proposed', 'gedit-plugins', |
| 182 | | 'epiphany-extensions', 'gst-plugins-bad', 'gst-plugins-ugly' ] |
| 183 | | |
| 184 | | skip = [ 'libgpg-error', 'expat', 'fontconfig', 'audiofile', |
| 185 | | 'desktop-file-utils', 'libdaemon', 'avahi', 'libtasn1', 'liboil', |
| 186 | | 'mozilla', 'enchant', 'gnome-disk-utility', 'nspr', 'nss', |
| 187 | | 'iso-codes', 'libsndfile', 'ekiga', 'DeviceKit', 'libggz', |
| 188 | | 'ggz-client-libs', 'gnome-power-manager', 'gnome-user-share', |
| 189 | | 'libmusicbrainz', 'autogen', 'perl-net-dbus' ] |
| 190 | | |
| 191 | | checkoutroot = os.path.expanduser('~/src/gnome/trunk') |
| 192 | | |
| 193 | | prefix = '/home/yavor/gnome-trunk' |
| 194 | | |
| 195 | | autogenargs='--disable-static --enable-gtk-doc' |