d/ice: Updated for Slackware-13.0.
parent
df8ab07184
commit
9f89f07807
|
@ -33,15 +33,16 @@ ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
|
|||
WGET=${WGET:-http://www.zeroc.com/download/Ice/3.3/$ARCHIVE}
|
||||
|
||||
# Build infos
|
||||
NAMETGZ=${NAMETGZ:-ice}
|
||||
BUILD=${BUILD:-1GGD}
|
||||
NAMEPKG=${NAMEPKG:-ice}
|
||||
BUILD=${BUILD:-2GGD}
|
||||
ARCH=${ARCH:-i486}
|
||||
JOBS=${JOBS:-1}
|
||||
EXT=${EXT:-txz}
|
||||
|
||||
# Directories
|
||||
TMP=${TMP:-/tmp}
|
||||
OUT=${OUT:-$TMP/build}
|
||||
PKG=${PKG:-$OUT/$NAMETGZ}
|
||||
PKG=${PKG:-$OUT/$NAMEPKG}
|
||||
CWD=$(pwd)
|
||||
|
||||
set -e # Quit if a command returns non-zero
|
||||
|
@ -57,12 +58,14 @@ if [ ! -d $TMP ]; then
|
|||
fi
|
||||
|
||||
# Compilation flags
|
||||
LIBDIRSUFFIX=""
|
||||
case "$ARCH" in
|
||||
i?86)
|
||||
CPUOPT="-O2 -march=$ARCH -mtune=i686"
|
||||
;;
|
||||
x86_64)
|
||||
CPUOPT="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
;;
|
||||
*)
|
||||
CPUOPT="-O2"
|
||||
|
@ -93,6 +96,11 @@ make install \
|
|||
prefix=$PKG/usr \
|
||||
install_slicedir=$PKG/usr/share/slice \
|
||||
install_configdir=$PKG/etc/slice
|
||||
mkdir -p $PKG/usr/share/$NAME
|
||||
mv $PKG/usr/lib/ImportKey.class $PKG/usr/share/$NAME
|
||||
if [ "x$ARCH" = xx86_64 ]; then
|
||||
rmdir $PKG/usr/lib
|
||||
fi
|
||||
|
||||
# Install Python bindings
|
||||
cd ../py
|
||||
|
@ -101,27 +109,28 @@ CXXFLAGS=$CPUOPT \
|
|||
make -j $JOBS \
|
||||
prefix=/usr \
|
||||
install_slicedir=/usr/share/slice \
|
||||
install_pythondir=/usr/lib/ice-python \
|
||||
install_libdir=/usr/lib/ice-python
|
||||
mkdir -p $PKG/usr/lib/ice-python
|
||||
install_pythondir=/usr/lib$LIBDIRSUFFIX/ice-python \
|
||||
install_libdir=/usr/lib$LIBDIRSUFFIX/ice-python
|
||||
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/ice-python
|
||||
make install \
|
||||
prefix=$PKG/usr \
|
||||
install_slicedir=$PKG/usr/share/slice \
|
||||
install_pythondir=$PKG/usr/lib/ice-python \
|
||||
install_libdir=$PKG/usr/lib/ice-python
|
||||
mkdir -p $PKG/usr/lib/python2.5/site-packages
|
||||
echo /usr/lib/ice-python > $PKG/usr/lib/python2.5/site-packages/ice.pth
|
||||
install_pythondir=$PKG/usr/lib$LIBDIRSUFFIX/ice-python \
|
||||
install_libdir=$PKG/usr/lib$LIBDIRSUFFIX/ice-python
|
||||
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/python2.6/site-packages
|
||||
echo /usr/lib$LIBDIRSUFFIX/ice-python > \
|
||||
$PKG/usr/lib$LIBDIRSUFFIX/python2.6/site-packages/ice.pth
|
||||
|
||||
# Strip binaries
|
||||
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
|
||||
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
# Install the documentation
|
||||
mkdir -p $PKG/usr/doc/$NAMETGZ-$VERSION
|
||||
mv $PKG/usr/LICENSE $PKG/usr/ICE_LICENSE $PKG/usr/doc/$NAMETGZ-$VERSION
|
||||
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
|
||||
mv $PKG/usr/LICENSE $PKG/usr/ICE_LICENSE $PKG/usr/doc/$NAMEPKG-$VERSION
|
||||
cd ../cpp/doc
|
||||
make
|
||||
cp -r reference $PKG/usr/doc/$NAMETGZ-$VERSION/
|
||||
cp -r reference $PKG/usr/doc/$NAMEPKG-$VERSION/
|
||||
|
||||
# Copy slack-desc file
|
||||
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
|
||||
|
@ -131,7 +140,7 @@ cd $PKG
|
|||
mkdir -p $OUT
|
||||
PACKAGING="
|
||||
chown root:root . -R
|
||||
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
|
||||
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
|
||||
rm -rf $PKG
|
||||
rm -rf $TMP/$NAME
|
||||
"
|
||||
|
|
Loading…
Reference in New Issue