installcfg generator muss komplett neue gemacht werden...start ist gesetzt.
kwave und taskjuggler versucht zum laufen zu bekommen - no chance git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorMake@5134 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
56ec91e4d2
commit
a40e6686da
@ -43,74 +43,44 @@ WDIR=`pwd`
|
|||||||
source $VMAKEDIR/defsys
|
source $VMAKEDIR/defsys
|
||||||
source $VMAKEDIR/functions/functions
|
source $VMAKEDIR/functions/functions
|
||||||
|
|
||||||
|
|
||||||
|
PKGNAME=$1
|
||||||
|
TMPFILE=`mktemp`
|
||||||
|
TMPFILE2=`mktemp`
|
||||||
|
rm $TMPFILE
|
||||||
|
rm $TMPFILE2
|
||||||
|
NUMDEPSOLD=0
|
||||||
|
NUMDEPSNEW=0
|
||||||
|
|
||||||
GenDeps() {
|
GenDeps() {
|
||||||
BasePkgName=`basename $1`
|
PKGFILE=`grep "SN=$PKGNAME;" $DISTTARGET/PkgList|\
|
||||||
echo $BasePkgName
|
awk -F";" '{print $2}'|sed -e "s/PF=//"`
|
||||||
AbsPkgName=`find $DISTTARGET -name "$BasePkgName"`
|
PKGPATH=`grep "PF=$PKGFILE;" $DISTTARGET/PkgList|\
|
||||||
PkgPathName=`dirname $AbsPkgName`
|
awk -F";" '{print $3}'|\
|
||||||
DepsFile=`echo $BasePkgName|sed -e "s/.tbz$/.dep/"`
|
sed -e "s/PP=//"`
|
||||||
if [ -f $PkgPathName/$DepsFile ]; then
|
extractvarchive $DISTTARGET/$PKGPATH/$PKGFILE dep >$TMPFILE
|
||||||
cat $PkgPathName/$DepsFile|awk '{print $2".tbz"}'
|
NUMDEPSOLD=`cat $TMPFILE|wc -l`
|
||||||
fi
|
while [ ! $NUMDEPSOLD == $NUMDEPSNEW ]; do
|
||||||
}
|
echo >&2 "OLD=$NUMDEPSOLD; NEW=$NUMDEPSNEW"
|
||||||
|
NUMDEPSOLD=$NUMDEPSNEW
|
||||||
FindAllDeps() {
|
exec 3<$TMPFILE
|
||||||
DepsFound=1
|
while read <&3 FLAG SHNAME; do
|
||||||
|
grep "SN=$SHNAME;" $DISTTARGET/PkgList|awk -F";" '{print $2}'|sed -e "s/PF=//"
|
||||||
if [ -f /tmp/deps$$ ]; then
|
done > $TMPFILE2
|
||||||
rm /tmp/deps$$
|
exec 3>&-
|
||||||
fi
|
for i in `cat $TMPFILE2`; do
|
||||||
while [ "$1" ]; do
|
PKGPATH=`grep "PF=$i;" $DISTTARGET/PkgList|\
|
||||||
GenDeps $1|sort -u >>/tmp/deps$$
|
awk -F";" '{print $3}'|\
|
||||||
shift
|
sed -e "s/PP=//"`
|
||||||
|
extractvarchive $DISTTARGET/$PKGPATH/$i dep
|
||||||
|
done >>$TMPFILE
|
||||||
|
rm $TMPFILE2
|
||||||
|
cat $TMPFILE |sort -u >$TMPFILE2
|
||||||
|
mv $TMPFILE2 $TMPFILE
|
||||||
|
NUMDEPSNEW=`cat $TMPFILE|wc -l`
|
||||||
done
|
done
|
||||||
cat /tmp/deps$$|sort -u >/tmp/deps2.$$
|
cat $TMPFILE
|
||||||
mv /tmp/deps2.$$ /tmp/deps$$
|
rm $TMPFILE
|
||||||
while [ "$DepsFound" == "1" ]; do
|
}
|
||||||
DepsFound=0
|
|
||||||
for i in `cat /tmp/deps$$`; do
|
|
||||||
for j in `GenDeps $i`; do
|
|
||||||
if ! grep $j /tmp/deps$$ 2>&1 >/dev/null; then
|
|
||||||
DepsFound=1
|
|
||||||
echo $j
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done |sort -u >/tmp/deps2.$$
|
|
||||||
cat /tmp/deps2.$$ >>/tmp/deps$$
|
|
||||||
rm /tmp/deps2.$$
|
|
||||||
cat /tmp/deps$$|sort -u >/tmp/deps2.$$
|
|
||||||
mv /tmp/deps2.$$ /tmp/deps$$
|
|
||||||
done
|
|
||||||
cat /tmp/deps$$
|
|
||||||
rm /tmp/deps$$
|
|
||||||
}
|
|
||||||
|
|
||||||
FindAllDeps $* >/tmp/depends$$
|
GenDeps
|
||||||
exec 3<$DISTTARGET/../install/All.cfg
|
|
||||||
read -r <&3 CDROM PKGNAME
|
|
||||||
while [ "$CDROM" ]; do
|
|
||||||
GrepName=`echo $PKGNAME|awk -F '[' '{print $1}'`
|
|
||||||
CheckName=`basename $GrepName|sed -e "s/\.tbz$//"`
|
|
||||||
if grep $CheckName /tmp/depends$$ 2>&1 >/dev/null; then
|
|
||||||
echo "$CDROM $PKGNAME"
|
|
||||||
fi
|
|
||||||
read -r <&3 CDROM PKGNAME
|
|
||||||
done >/tmp/tmpinstall.cfg$$
|
|
||||||
exec 3>-
|
|
||||||
rm /tmp/depends$$
|
|
||||||
|
|
||||||
CFGFILE=`basename $1|sed -e "s/\.tbz$//"`.cfg
|
|
||||||
cp $DISTTARGET/../install/BaseDevel.cfg $CFGFILE
|
|
||||||
|
|
||||||
exec 3</tmp/tmpinstall.cfg$$
|
|
||||||
read -r <&3 CDROM PKGNAME
|
|
||||||
while [ "$CDROM" ]; do
|
|
||||||
if grep -F $PKGNAME $CFGFILE 2>&1 >/dev/null; then
|
|
||||||
echo -n
|
|
||||||
else
|
|
||||||
echo "$CDROM $PKGNAME" >>$CFGFILE
|
|
||||||
fi
|
|
||||||
read -r <&3 CDROM PKGNAME
|
|
||||||
done
|
|
||||||
exec 3>-
|
|
||||||
rm /tmp/tmpinstall.cfg$$
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
#dieses Framework wird im CVS Repository
|
#dieses Framework wird im CVS Repository
|
||||||
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
#
|
#
|
||||||
#Lage dieser Datei im Archiv: $HeadURL$
|
#Lage dieser Datei im Archiv: $HeadURL$
|
||||||
#
|
#
|
||||||
@ -55,13 +55,11 @@
|
|||||||
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
# Wichtig bei packeten mit postinstallroutine, die software aus dem
|
||||||
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
# frisch installierten Packet verwendet (wie z.B. postgresql)
|
||||||
# 64 : sourcetree aufräumen nach packeterstellung unterbinden.
|
# 64 : sourcetree aufrä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: http://kwave.sourceforge.net/
|
|
||||||
#Kurzbeschreibung: Wave Editor with kde
|
|
||||||
#
|
#
|
||||||
|
#Module zur Erstellung des Packetes: kwave
|
||||||
|
#Quelle der Source Archive: http://kwave.sourceforge.net/download.html
|
||||||
|
#Kurzbeschreibung:
|
||||||
|
#kde4 sound editor
|
||||||
#
|
#
|
||||||
#Letzte Änderung von: $Author$
|
#Letzte Änderung von: $Author$
|
||||||
#Datum der letzten Änderung: $Date$
|
#Datum der letzten Änderung: $Date$
|
||||||
@ -69,34 +67,77 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
SRCPATH=X11_2/KDE
|
SRCPATH=GuiBased/Apps
|
||||||
|
|
||||||
|
#Funktion wird nach dem Entpacken der Sourcen, im Tree der Sourcen
|
||||||
|
#ausgeführt (sprich unpack src; cd src; premk)
|
||||||
|
#Hier kann z.B. das Makefile gepatcht werden (SED lässt grüssen
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
echo "Nothing to do for premk()"
|
echo "Nothing do do for premk()"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mk32() {
|
||||||
|
mkdir -v build &&
|
||||||
|
cd build &&
|
||||||
|
USE_ARCH=32 \
|
||||||
|
CC="gcc $BUILDOPTIONS32 -L/opt/kde/lib" \
|
||||||
|
CXX="g++ $BUILDOPTIONS32 -L/opt/kde/lib" \
|
||||||
|
LDEMULATION="elf32_i386" \
|
||||||
|
cmake -DCMAKE_INSTALL_PREFIX=${KDEDIR} \
|
||||||
|
-DSYSCONF_INSTALL_DIR=/etc/kde \
|
||||||
|
-DLIB_INSTALL_DIR=${KDEDIR}/lib \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_C_FLAGS="${BUILDOPTIONS32}" \
|
||||||
|
-DCMAKE_CXX_FLAGS="${BUILDOPTIONS32}" \
|
||||||
|
-DX11_LIBRARY=/usr/X11R7/lib \
|
||||||
|
-DXEXT_LIBRARY=/usr/X11R7/lib \
|
||||||
|
-DOPENGL_INCLUDE_DIR=/usr/include/GL \
|
||||||
|
-DOPENGL_gl_LIBRARY=/usr/X11R7/lib \
|
||||||
|
-DOPENGL_glu_LIBRARY=/usr/X11R7/lib \
|
||||||
|
-DOPENGL_xmesa_INCLUDE_DIR=/usr/X11R7/include/GL \
|
||||||
|
-DLIB_SUFFIX= \
|
||||||
|
.. &&
|
||||||
|
for i in build.make link.txt relink.txt; do
|
||||||
|
find . -name "*$i" -exec sed -i "s/\/lib64/\/lib/g" {} \;
|
||||||
|
done
|
||||||
|
make -j $NUMCPU
|
||||||
|
find . -name cmake_install.cmake -exec sed -i "s/\/lib64/\/lib/g" {} \;
|
||||||
|
make DESTDIR=$TMPROOT install
|
||||||
|
cd ..
|
||||||
|
rm -r build
|
||||||
|
}
|
||||||
|
|
||||||
|
#Hier wird der Make Prozess der Sourcen definiert
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
ADDOPTIONS="--libdir=\${prefix}/lib64"
|
LIBSUFFIX="64"
|
||||||
|
else
|
||||||
|
LIBSUFFIX=""
|
||||||
fi
|
fi
|
||||||
ldconfig
|
mkdir -v build &&
|
||||||
export QTDIR=/usr/$LIBDIR/qt
|
cd build &&
|
||||||
export PATH=$PATH:/usr/$LIBDIR/qt/bin:/usr/X11R7/bin
|
USE_ARCH=$UARCH \
|
||||||
make CC="gcc $BUILDOPTIONS" \
|
cmake -DCMAKE_INSTALL_PREFIX=${KDEDIR} \
|
||||||
CXX="g++ $BUILDOPTIONS" \
|
-DSYSCONF_INSTALL_DIR=/etc/kde \
|
||||||
LDFLAGS="-L/$LIBDIR \
|
-DLIB_INSTALL_DIR=${KDEDIR}/$LIBDIR \
|
||||||
-L/usr/$LIBDIR \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-L/usr/X11R7/$LIBDIR \
|
-DCMAKE_C_FLAGS="${BUILDOPTIONS}" \
|
||||||
-L/usr/$LIBDIR/qt/lib \
|
-DCMAKE_CXX_FLAGS="${BUILDOPTIONS}" \
|
||||||
-L/opt/kde/$LIBDIR" \
|
-DX11_LIBRARY=/usr/X11R7/$LIBDIR \
|
||||||
CONFIGURE_OPTS=" --target=$TARGET \
|
-DXEXT_LIBRARY=/usr/X11R7/$LIBDIR \
|
||||||
--prefix=/opt/kde \
|
-DOPENGL_INCLUDE_DIR=/usr/include/GL \
|
||||||
--libdir=/opt/kde/$LIBDIR" \
|
-DOPENGL_gl_LIBRARY=/usr/X11R7/$LIBDIR \
|
||||||
-f Makefile.dist
|
-DOPENGL_glu_LIBRARY=/usr/X11R7/$LIBDIR \
|
||||||
|
-DOPENGL_xmesa_INCLUDE_DIR=/usr/X11R7/include/GL \
|
||||||
|
-DLIB_SUFFIX=${LIBSUFFIX}\
|
||||||
|
.. &&
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#Funktion wird nach Ablauf des Make Prozesses ausgeführt, und kann
|
||||||
|
#in $TMPROOT noch einiges korrigieren
|
||||||
postmk() {
|
postmk() {
|
||||||
echo "Nothing to do for postmk()"
|
GetSVN Viitor_kde $TMPROOT
|
||||||
}
|
}
|
@ -72,10 +72,12 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
SRCPATH=X11_2/Office
|
SRCPATH=GuiBased/Apps
|
||||||
|
|
||||||
premk() {
|
premk() {
|
||||||
echo "Nothing to do for premk()"
|
export QTDIR=$QT3DIR
|
||||||
|
echo "$QTDIR"
|
||||||
|
read
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
@ -83,14 +85,14 @@ mk() {
|
|||||||
ADDOPTIONS="--libdir=\${prefix}/lib64"
|
ADDOPTIONS="--libdir=\${prefix}/lib64"
|
||||||
fi
|
fi
|
||||||
ldconfig
|
ldconfig
|
||||||
export QTDIR=/usr/$LIBDIR/qt
|
export PATH=$PATH:/opt/qt-3/bin:/usr/X11R7/bin
|
||||||
export PATH=$PATH:/usr/$LIBDIR/qt/bin:/usr/X11R7/bin
|
|
||||||
CC="gcc $BUILDOPTIONS" \
|
CC="gcc $BUILDOPTIONS" \
|
||||||
CXX="g++ $BUILDOPTIONS" \
|
CXX="g++ $BUILDOPTIONS" \
|
||||||
LDFLAGS="-L/$LIBDIR -L/usr/$LIBDIR -L/usr/X11R7/$LIBDIR -L/usr/$LIBDIR/qt/lib" \
|
USE_ARCH=$UARCH \
|
||||||
|
LDFLAGS="-L/$LIBDIR -L/usr/$LIBDIR -L/usr/X11R7/$LIBDIR -L/opt/qt-3/$LIBDIR" \
|
||||||
./configure --target=$TARGET \
|
./configure --target=$TARGET \
|
||||||
$ADDOPTIONS \
|
$ADDOPTIONS \
|
||||||
--prefix=/opt/kde
|
--prefix=/usr/X11R7
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user