Difference between revisions of "Sunbird"
Weibullguy (talk | contribs) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 23: | Line 23: | ||
{{Mozilla-mozconfig-base|calendar/sunbird|sunbird-{{Sunbird-Version}}}} | {{Mozilla-mozconfig-base|calendar/sunbird|sunbird-{{Sunbird-Version}}}} | ||
+ | [[Category:GUI Clients]] | ||
== Non-Multilib == | == Non-Multilib == | ||
Line 37: | Line 38: | ||
=== 50-sunbird.sh === | === 50-sunbird.sh === | ||
− | If you're using the [[Bash Startup Files]] create an addition for | + | If you're using the [[Bash Startup Files]] create an addition for Sunbird with the following commands, otherwise make sure the enviornment variables are set in your profile: |
cat > /etc/profile.d/50-sunbird.sh << "EOF" | cat > /etc/profile.d/50-sunbird.sh << "EOF" | ||
Line 49: | Line 50: | ||
== Multilib == | == Multilib == | ||
− | |||
− | |||
− | |||
− | |||
=== 32Bit === | === 32Bit === | ||
Line 85: | Line 82: | ||
cat >> .mozconfig << EOF | cat >> .mozconfig << EOF | ||
− | ac_add_options --libdir=/opt/ | + | ac_add_options --libdir=/opt/sunbird-{{Sunbird-Version}}/lib64 |
export CC="gcc ${BUILD64}" | export CC="gcc ${BUILD64}" | ||
export CXX="g++ ${BUILD64}" | export CXX="g++ ${BUILD64}" | ||
Line 93: | Line 90: | ||
sed -i "s:@MOZ_GTK2_LIBS@:& -L${XORG_PREFIX}/lib64 -lX11 -lXrender:g" config/autoconf.mk.in | sed -i "s:@MOZ_GTK2_LIBS@:& -L${XORG_PREFIX}/lib64 -lX11 -lXrender:g" config/autoconf.mk.in | ||
− | + | ||
Compile the package: | Compile the package: | ||
Line 104: | Line 101: | ||
=== 50-sunbird.sh === | === 50-sunbird.sh === | ||
− | If you're using the [[Bash Startup Files]] create an addition for | + | If you're using the [[Bash Startup Files]] create an addition for Sunbird with the following commands, otherwise make sure the enviornment variables are set in your profile: |
cat > /etc/profile.d/50-sunbird.sh << "EOF" | cat > /etc/profile.d/50-sunbird.sh << "EOF" | ||
Line 119: | Line 116: | ||
= Creating the Desktop File = | = Creating the Desktop File = | ||
− | Since | + | Since Sunbird does not provide a desktop file by default below is an example one: |
cat > /usr/share/applications/sunbird.desktop << "EOF" | cat > /usr/share/applications/sunbird.desktop << "EOF" | ||
Line 133: | Line 130: | ||
EOF | EOF | ||
− | Grab the | + | Grab the Sunbird pixmap from http://cross-lfs.org/~jciccone/sunbird.png and put it in /usr/share/pixmaps. |
Latest revision as of 10:18, 7 March 2009
Download Source: | http://releases.mozilla.org/pub/mozilla.org/calendar/sunbird/releases/0.9/source/lightning-sunbird-0.9-source.tar.bz2 |
---|
Contents
Introduction to Sunbird
Mozilla Sunbird is a cross-platform calendar application, built upon Mozilla Toolkit.
Project Homepage: http://www.mozilla.org/projects/calendar/sunbird/
Dependencies
Required
Recommended
Optional
Creating a .mozconfig
The .mozconfig file contains the options that will be used to build firefox.
The first line includes the default configuration for compiling and the second line determines where the build objects are going to reside.
Having --with-system-nss and --with-system-nspr does not mean you *HAVE* to have a system installed version of nss and nspr. It makes the build system prefer to use the system installed version of nss and nspr over the internal version.
--enable-canvas enables support for the <canvas></canvas> tag.
--enable-svg enables support for rendering svg files.
--disable-tests prevents test programs from being built which saves a lot of disk space and time.
--disable-installer prevents the installer from being built. --enable-official-branding causes the installed binaries to have the official Firefox name embedded in them. Due to license restrictions, you may not distribute binaries created using this option.
cat > .mozconfig << "EOF" . $topsrcdir/calendar/sunbird/config/mozconfig mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@ ac_add_options --prefix=/opt/sunbird-0.9 ac_cv_visibility_pragma=no ac_add_options --with-nspr-prefix=/usr ac_add_options --with-nss-prefix=/usr ac_add_options --with-system-nspr ac_add_options --with-system-nss ac_add_options --with-system-bz2 ac_add_options --with-system-jpeg ac_add_options --with-system-png ac_add_options --with-system-zlib ac_add_options --disable-debug ac_add_options --disable-installer ac_add_options --disable-xprint ac_add_options --disable-tests ac_add_options --enable-canvas ac_add_options --enable-default-toolkit=cairo-gtk2 ac_add_options --enable-safe-browsing ac_add_options --enable-svg ac_add_options --enable-system-cairo ac_add_options --enable-system-sqlite EOF
If you would like dual monitor support, append your your .mozconfig with the following:
cat >> .mozconfig << "EOF" ac_add_options --enable-xinerama EOF
If you would like to render fonts with Pango, append your your .mozconfig with the following. This can significantly slow font rendering.
cat >> .mozconfig << "EOF" ac_add_options --enable-pango EOF
If you do not have JDK installed then add the following to your .mozconfig:
cat >> .mozconfig << "EOF" ac_add_options --disable-javaxpcom EOF
Non-Multilib
sed -i "s:@MOZ_GTK2_LIBS@:& -L${XORG_PREFIX}/lib -lX11 -lXrender:g" config/autoconf.mk.in
Compile the package:
make -f client.mk build
Install the package:
make -f client.mk install
50-sunbird.sh
If you're using the Bash Startup Files create an addition for Sunbird with the following commands, otherwise make sure the enviornment variables are set in your profile:
cat > /etc/profile.d/50-sunbird.sh << "EOF" # Begin /etc/profile.d/50-sunbird.sh export PATH="${PATH}:/opt/sunbird-0.9/bin" export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}/opt/sunbird-0.9/lib/pkgconfig" # End /etc/profile.d/50-sunbird.sh EOF
Multilib
32Bit
Use the following command to append your .mozconfig with 32bit specific flags:
cat >> .mozconfig << EOF export CC="gcc ${BUILD32}" export CXX="g++ ${BUILD32}" export PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" export USE_ARCH=32 ac_add_options --host=$CLFS_TARGET32 ac_add_options --build=$CLFS_TARGET32 mk_add_options CONFIG_GUESS=$CLFS_TARGET32 EOF
sed -i "s:@MOZ_GTK2_LIBS@:& -L${XORG_PREFIX}/lib -lX11 -lXrender:g" config/autoconf.mk.in
x86
Compile the package:
make -f client.mk OS_TEST=x86 build
Install the package:
make -f client.mk OS_TEST=x86 install
64Bit
Use the following command to append your .mozconfig with 64bit specific flags:
cat >> .mozconfig << EOF ac_add_options --libdir=/opt/sunbird-0.9/lib64 export CC="gcc ${BUILD64}" export CXX="g++ ${BUILD64}" export PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" export USE_ARCH=64 EOF
sed -i "s:@MOZ_GTK2_LIBS@:& -L${XORG_PREFIX}/lib64 -lX11 -lXrender:g" config/autoconf.mk.in
Compile the package:
make -f client.mk build
Install the package:
make -f client.mk install
50-sunbird.sh
If you're using the Bash Startup Files create an addition for Sunbird with the following commands, otherwise make sure the enviornment variables are set in your profile:
cat > /etc/profile.d/50-sunbird.sh << "EOF" # Begin /etc/profile.d/50-sunbird.sh export PATH="${PATH}:/opt/sunbird-0.9/bin" export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}${PKG_CONFIG_PATH32+:}/opt/sunbird-0.9/lib/pkgconfig" export PKG_CONFIG_PATHN32="${PKG_CONFIG_PATHN32}${PKG_CONFIG_PATHN32+:}/opt/sunbird-0.9/lib32/pkgconfig" export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64+:}/opt/sunbird-0.9/lib64/pkgconfig" # End /etc/profile.d/50-sunbird.sh EOF
Creating the Desktop File
Since Sunbird does not provide a desktop file by default below is an example one:
cat > /usr/share/applications/sunbird.desktop << "EOF" [Desktop Entry] Encoding=UTF-8 Name=Mozilla Sunbird Comment= Exec=sunbird Icon=sunbird.png Terminal=false Type=Application Categories=Application;Network; EOF
Grab the Sunbird pixmap from http://cross-lfs.org/~jciccone/sunbird.png and put it in /usr/share/pixmaps.