d/binutils-mingw32:

d/gcc-mingw32:
l/mingw32-libs:  Updated for Slackware-13.0.
slackware-14.2
Damien Goutte-Gattat 13 years ago
parent 6df6258559
commit 0959654838
  1. 20
      d/binutils-mingw32/binutils-mingw32.SlackBuild
  2. 27
      d/gcc-mingw32/gcc-mingw32.SlackBuild
  3. 2
      l/mingw32-libs/checksums
  4. 19
      l/mingw32-libs/mingw32-libs.SlackBuild

@ -22,7 +22,8 @@
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest binutils-mingw32 sourcecode is available at: <http://www.mingw.org/>.
# Latest binutils-mingw32 sourcecode is available at:
# <http://www.mingw.org/>.
# Source package infos
NAMESRC=${NAMESRC:-binutils}
@ -31,16 +32,17 @@ ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-src.tar.gz}
WGET=${WGET:-http://ovh.dl.sourceforge.net/mingw/$ARCHIVE}
# Build infos
NAMETGZ=${NAMETGZ:-binutils-mingw32}
BUILD=${BUILD:-1GGD}
NAMEPKG=${NAMEPKG:-binutils-mingw32}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-i486}
TARGET=${TARGET:-$ARCH-pc-mingw32}
TARGET=${TARGET:-i686-pc-mingw32}
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
@ -70,7 +72,6 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
rm -f $ARCHIVE.part
wget -vc "$WGET" -O $ARCHIVE.part
mv $ARCHIVE.part $ARCHIVE
fi
@ -95,13 +96,16 @@ make -j $JOBS
make install DESTDIR=$PKG
# 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
# Delete man and info pages, since we already have those of
# the native binutils in /usr
rm -rf $PKG/opt/mingw32/{info,man}
# Delete unused library file
rm -rf $PKG/opt/mingw32/lib{,64}
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -110,7 +114,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
"

@ -31,16 +31,17 @@ VERSION=${VERSION:-3.4.5}
BASEURL=${BASEURL:-http://ovh.dl.sourceforge.net/mingw}
# Build infos
NAMETGZ=${NAMETGZ:-gcc-mingw32}
BUILD=${BUILD:-1GGD}
NAMEPKG=${NAMEPKG:-gcc-mingw32}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-i486}
TARGET=${TARGET:-$ARCH-pc-mingw32}
TARGET=${TARGET:-i686-pc-mingw32}
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
@ -67,9 +68,6 @@ case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
@ -78,8 +76,7 @@ esac
# Get and verify the source archive
for archive in $(cut -d' ' -f3 checksums); do
if [ ! -r $archive ]; then
rm -f $archive.part
wget -vc "$BASEURL/$archive" -O $archive.part
wget -c -O $archive.part "$BASEURL/$archive"
mv $archive.part $archive
fi
done
@ -112,16 +109,16 @@ make -j $JOBS
make install DESTDIR=$PKG
# 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
# libiberty is already installed by binutils-mingw32
rm $PKG/opt/mingw32/lib/libiberty.a
# Remove man and info pages (we already have those of the
# Delete man and info pages (we already have those of the
# native GCC in /usr)
rm -rf $PKG/opt/mingw32/{info,man}
# Delete unused library file
rm -rf $PKG/opt/mingw32/lib{,64}/libiberty.a
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -130,7 +127,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/mingw32
"

@ -1,3 +1,3 @@
75d59049f26dc62f3732d11abbf056efc7bc8e95 gcc-core-3.4.5-20060117-2-src.tar.gz
c75afe81bffb2cb7b924dcae3b5c76921d32f297 w32api-3.13-mingw32-src.tar.gz
6e7079968a3a7a819a7dd482950eddd6483c0ef6 mingwrt-3.15.2-mingw32-src.tar.gz
9bc72640404b87e4c7a31d15c24600e516285e59 mingwrt-3.16-mingw32-src.tar.gz

@ -27,20 +27,21 @@
# Depends: d/mingw32-binutils
# Source packages infos (checksums and filenames in `checksums' file)
VERSION=${VERSION:-3.15.2} # MinGW runtime's version
VERSION=${VERSION:-3.16} # MinGW runtime's version
BASEURL=${BASEURL:-http://ovh.dl.sourceforge.net/mingw}
# Build infos
NAMETGZ=${NAMETGZ:-mingw32-libs}
BUILD=${BUILD:-1GGD}
NAMEPKG=${NAMEPKG:-mingw32-libs}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-i486}
TARGET=${TARGET:-$ARCH-pc-mingw32}
TARGET=${TARGET:-i686-pc-mingw32}
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
@ -67,9 +68,6 @@ case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
@ -78,8 +76,7 @@ esac
# Get and verify the source archive
for archive in $(cut -d' ' -f3 checksums); do
if [ ! -r $archive ]; then
rm -f $archive.part
wget -vc "$BASEURL/$archive" -O $archive.part
wget -c -O $ARCHIVE.part "$BASEURL/$archive"
mv $archive.part $archive
fi
done
@ -156,7 +153,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/mingw32
"

Loading…
Cancel
Save