2011-01-03 10:48:06 +00:00
|
|
|
|
#!/bin/bash
|
|
|
|
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
|
|
|
|
#dieses Framework wird im CVS Repository
|
|
|
|
|
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verf<72>gung gestellt
|
|
|
|
|
#
|
2011-02-18 10:37:51 +00:00
|
|
|
|
#Lage dieser Datei im Archiv: $HeadURL: svn://svn.compuextreme.de/Viitor/V963/ViitorMake/SysBuild/network/firefox $
|
2011-01-03 10:48:06 +00:00
|
|
|
|
#
|
|
|
|
|
#(c) 2003 Harald Kueller, Germany
|
|
|
|
|
#This program is free software; you can redistribute it and/or
|
|
|
|
|
#modify ist under the terms of the GNU General Public License
|
|
|
|
|
#as published by the Free Software Foundation; either version
|
|
|
|
|
#2 of the License, or (at your option) any later version.
|
|
|
|
|
#
|
|
|
|
|
#This program is distributed in the hope that it will be useful,
|
|
|
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
#See the GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
#You should have received a copy of the GNU General Public License
|
|
|
|
|
#along with this program; if not write to the Free Software Foundation,
|
|
|
|
|
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
#
|
|
|
|
|
#Dies ist ein Module zur Verwendung mit genpkg. Die Erzeugung eines
|
|
|
|
|
#Viitor Linux Packetes wird <20>ber die Funktionen premk, mk und postmk
|
|
|
|
|
#gesteuert. premk() dient zur Vorbereitung des Sourcecodes. Hier k<>nnen
|
|
|
|
|
#diverse <20>nderungen am sourcecode (mit awk/sed usw.) vorgenommen werden
|
|
|
|
|
#mk() umfasst die source Konfiguration und das <20>bersetzten des source
|
|
|
|
|
#codes. Auch die Installation mu<6D> von mk erledigt werden. Hier gild dass
|
|
|
|
|
#die Installation immer nach $TMPROOT erfolgen soll (meisst kann das mit
|
|
|
|
|
#"make DESTDIR=$TMPROOT install" angestossen werden). postmk kann
|
|
|
|
|
#vor der packeterstellung noch einiges am installationtree <20>ndern. postmk
|
|
|
|
|
#l<>uft nachdem die Packetabh<62>ngigkeiten erstellt wurden.
|
|
|
|
|
#Das Verhalten von genpkg kann <20>ber die Variable MKPKG gesteuert werden.
|
|
|
|
|
#Hier m<>ssen FLAGS zur Steuerung gesetzt werden. Folgende Flags werden
|
|
|
|
|
#erkannt:
|
|
|
|
|
#
|
|
|
|
|
# 1 : Package Erzeugung erzwingen. Packet wird, auch wenn es schon
|
|
|
|
|
# vorhanden ist, ohne weitere r<>ckfragen neu Erzeugt.
|
|
|
|
|
# 2 : Package Installation erzwingen. Installpkg wird mit -f aufgerufen.
|
|
|
|
|
# Das bewirkt, das installpkg keine r<>ckfragen bei der installation
|
|
|
|
|
# Stellt, und das packet in jedemfall (neu) installiert.
|
|
|
|
|
# 4 : Sourcepacket nicht nach MAKEDIR entpacken. Ist dieses Flag gesetzt
|
|
|
|
|
# muss sich das Module selber um das Entpacken der sourcedateien k<>mmern.
|
|
|
|
|
# vor allem wichtig bei Packeten, f<>r die es keine source.tgz gibt
|
|
|
|
|
# (z.B. aus dem CVS generierte Packete).
|
|
|
|
|
# 8 : Erstellung des Packetes aus $TMPROOT wird unterdr<64>ckt. Dies ist bei
|
|
|
|
|
# manchen Sonderf<72>llen m<>glich - wenn sich z.B. der Packetnamen nicht
|
|
|
|
|
# aus dem Namen des sourcearchives ableiten l<>sst. Packet sollte in
|
|
|
|
|
# so einem Fall in der postmk() Funktion erstellt werden.
|
|
|
|
|
# 16 : Packet wird nicht installiert. Bei Packeten wie tar oder bash kann
|
|
|
|
|
# die installation mittelst installpkg probleme machen.
|
|
|
|
|
# 32 : Dependics File so erzeugen, das die Abh<62>ngigkeiten bei der installation
|
|
|
|
|
# erf<72>llt sein m<>ssen. installpkg bricht in so einem fall bei fehlenden
|
|
|
|
|
# packeten die installation ab, und gibt nicht "nur" warnmeldungen aus.
|
|
|
|
|
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
|
|
|
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
|
|
|
|
# 64 : sourcetree aufr<66>umen nach packeterstellung unterbinden.
|
|
|
|
|
# 128 : Patches zu den Sourcen nicht einspielen - Module muss sich darum
|
|
|
|
|
# k<>mmern
|
|
|
|
|
|
|
|
|
|
#Module zur Erstellung des Packetes:
|
|
|
|
|
#Quelle der Source Archive:
|
|
|
|
|
#Kurzbeschreibung:
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#Letzte <20>nderung von: $Author$
|
2011-02-18 10:37:51 +00:00
|
|
|
|
#Datum der letzten <20>nderung: $Date: 2011-02-08 21:01:05 +0100 (Di, 08 Feb 2011) $
|
|
|
|
|
#Version der Datei: $Rev$
|
2011-01-03 10:48:06 +00:00
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
SRCPATH=Network/Clients
|
|
|
|
|
SRCDIR=mozilla
|
|
|
|
|
|
|
|
|
|
premk() {
|
|
|
|
|
mkdir ../build-firefox
|
|
|
|
|
cd ../build-firefox
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mk32() {
|
|
|
|
|
CC="gcc $BUILDOPTIONS32" \
|
|
|
|
|
CXX="g++ $BUILDOPTIONS32" \
|
|
|
|
|
LDFLAGS="-L/lib -L/usr/lib -L/usr/X11R7/lib" \
|
|
|
|
|
USE_ARCH=$UARCH \
|
|
|
|
|
../mozilla*/configure --build=$TARGET32 \
|
|
|
|
|
--host=$TARGET \
|
|
|
|
|
--target=$TARGET32 \
|
|
|
|
|
--prefix=/opt/firefox \
|
|
|
|
|
--libexecdir=/opt/firefox/bin \
|
|
|
|
|
--sysconfdir=/etc/sysconfig/firefox \
|
|
|
|
|
--x-includes=/usr/X11R7/include \
|
|
|
|
|
--x-libraries=/usr/X11R7/lib \
|
|
|
|
|
--with-x \
|
|
|
|
|
--with-system-jpeg \
|
|
|
|
|
--with-system-zlib \
|
|
|
|
|
--with-system-bz2 \
|
|
|
|
|
--with-java-include-path=/usr/lib/jdk/include \
|
|
|
|
|
--with-java-bin-path=/usr/lib/jdk/bin \
|
|
|
|
|
--enable-application=browser \
|
|
|
|
|
--enable-startup-notification \
|
|
|
|
|
--with-qt-dir=/opt/qt-4 \
|
|
|
|
|
--enable-nativ-uconf \
|
|
|
|
|
--enable-image-decoders=all \
|
|
|
|
|
--enable-safe-browsing \
|
|
|
|
|
--enable-url-classifier \
|
|
|
|
|
--enable-svg \
|
|
|
|
|
--disable-installer \
|
|
|
|
|
--disable-debug \
|
|
|
|
|
--disable-tests \
|
|
|
|
|
--disable-updater \
|
|
|
|
|
--disable-crashreporter \
|
|
|
|
|
--enable-system-cairo \
|
|
|
|
|
--enable-default-toolkit=cairo-gtk2
|
|
|
|
|
make -j $NUMCPU
|
|
|
|
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
|
|
|
|
cd ../mozilla*
|
|
|
|
|
rm -r ../build-firefox
|
|
|
|
|
mkdir ../build-firefox
|
|
|
|
|
cd ../build-firefox
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mk() {
|
|
|
|
|
CC="gcc $BUILDOPTIONS" \
|
|
|
|
|
CXX="g++ $BUILDOPTIONS" \
|
2011-04-18 06:29:58 +00:00
|
|
|
|
LDFLAGS="-L/${LIBDIR} -L/usr/${LIBDIR} -L/usr/X11R7/${LIBDIR}" \
|
2011-01-03 10:48:06 +00:00
|
|
|
|
USE_ARCH=$UARCH \
|
|
|
|
|
../mozilla*/configure --build=$TARGET \
|
|
|
|
|
--prefix=/opt/firefox \
|
|
|
|
|
--libexecdir=/opt/firefox/bin \
|
|
|
|
|
--sysconfdir=/etc/sysconfig/firefox \
|
2011-04-18 06:29:58 +00:00
|
|
|
|
--libdir=\${prefix}/${LIBDIR} \
|
2011-01-03 10:48:06 +00:00
|
|
|
|
--x-includes=/usr/X11R7/include \
|
2011-04-18 06:29:58 +00:00
|
|
|
|
--x-libraries=/usr/X11R7/${LIBDIR} \
|
2011-01-03 10:48:06 +00:00
|
|
|
|
--with-x \
|
|
|
|
|
--with-system-jpeg \
|
|
|
|
|
--with-system-zlib \
|
|
|
|
|
--with-system-bz2 \
|
2011-04-18 06:29:58 +00:00
|
|
|
|
--with-java-include-path=/usr/${LIBDIR}/jdk/include \
|
|
|
|
|
--with-java-bin-path=/usr/${LIBDIR}/jdk/bin \
|
2011-01-03 10:48:06 +00:00
|
|
|
|
--enable-application=browser \
|
|
|
|
|
--enable-startup-notification \
|
|
|
|
|
--with-qt-dir=/opt/qt-4 \
|
|
|
|
|
--enable-nativ-uconf \
|
|
|
|
|
--enable-image-decoders=all \
|
|
|
|
|
--enable-safe-browsing \
|
|
|
|
|
--enable-url-classifier \
|
|
|
|
|
--enable-svg \
|
|
|
|
|
--disable-installer \
|
|
|
|
|
--disable-debug \
|
|
|
|
|
--disable-tests \
|
|
|
|
|
--disable-updater \
|
|
|
|
|
--disable-crashreporter \
|
|
|
|
|
--enable-system-cairo \
|
|
|
|
|
--enable-default-toolkit=cairo-gtk2
|
|
|
|
|
make -j $NUMCPU
|
|
|
|
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
postmk() {
|
|
|
|
|
GetSVN Viitor_firefox $TMPROOT
|
|
|
|
|
cd ../mozilla*
|
|
|
|
|
rm -r ../build-firefox
|
|
|
|
|
if [ "$MK64BIT" == "true" ]; then
|
|
|
|
|
cd $TMPROOT/opt/firefox/lib64
|
|
|
|
|
ln -s firefox-[0-9]* firefox
|
|
|
|
|
cd -
|
|
|
|
|
cd $TMPROOT/opt/firefox/include
|
|
|
|
|
ln -s firefox* firefox
|
|
|
|
|
cd -
|
|
|
|
|
fi
|
|
|
|
|
cd $TMPROOT/opt/firefox/lib
|
|
|
|
|
ln -s firefox-[0-9]* firefox
|
|
|
|
|
cd -
|
|
|
|
|
cd $TMPROOT/opt/firefox/include
|
|
|
|
|
ln -s firefox* firefox
|
|
|
|
|
cd -
|
|
|
|
|
echo "pref(\"network.protocol-handler.app.mailto\", \"thunderbird\");" \
|
|
|
|
|
>>$TMPROOT/opt/firefox/lib/firefox/defaults/pref/firefox.js
|
|
|
|
|
}
|