mingw-w64-*: Fix wrksrc/build_wrksrc vars; revbump.

This commit is contained in:
davehome 2011-07-20 16:38:06 -06:00
parent b48cec94e9
commit c23ebc013e
4 changed files with 43 additions and 38 deletions

View file

@ -1,12 +1,12 @@
# Template build file for 'mingw-w64-crt'
#
_shortname=mingw-w64
pkgname=$_shortname-crt
pkgname=${_shortname}-crt
_majversion=1.0
_snapshot=20110523
version=${_majversion}.$_snapshot
revision=1
distfiles=${SOURCEFORGE_SITE}/$_shortname/$_shortname/$_shortname-v$_majversion-snapshot-$_snapshot.tar.bz2
version=${_majversion}.${_snapshot}
revision=2
distfiles=${SOURCEFORGE_SITE}/${_shortname}/${_shortname}/${_shortname}-v${_majversion}-snapshot-${_snapshot}.tar.bz2
build_style=custom-install
short_desc="The mingw-w64 cross-compiler runtime"
maintainer="davehome <davehome@redthumb.info.tm>"
@ -41,13 +41,15 @@ fi
strip_cmd=${_mingwprefix}/bin/${_mingwtriplet}-strip
wrksrc=${_shortname}-v${_majversion}-${_snapshot}
build_wrksrc=${pkgname}
do_build()
{
unset LD_LIBRARY_PATH LDLIBPATH LDFLAGS CPPFLAGS
local SAVEDPATH=$PATH
export PATH="/opt/bin:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
cd ${wrksrc}/../$_shortname-v$_majversion-$_snapshot/$pkgname && \
./configure --prefix=${_mingwprefix} --with-sysroot=${_mingwprefix} \
--host=${_mingwtriplet} ${_multilib_args} \
--bindir=${_mingwprefix}/bin --libdir=${_mingwprefix}/lib \
@ -65,7 +67,6 @@ do_install()
local SAVEDPATH=$PATH
export PATH="/opt/bin:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
cd ${wrksrc}/../$_shortname-v$_majversion-$_snapshot/$pkgname && \
make DESTDIR=${DESTDIR} install
export PATH=$SAVEDPATH

View file

@ -3,7 +3,7 @@
pkgname=mingw-w64-gcc
_majorver=4.6
version=${_majorver}.1
revision=3
revision=4
distfiles=http://ftp.gnu.org/pub/gnu/gcc/gcc-$version/gcc-$version.tar.bz2
build_style=custom-install
short_desc="The GNU C Compiler (for mingw-w64)"
@ -35,8 +35,6 @@ Add_dependency build gawk
Add_dependency full mingw-w64-binutils
Add_dependency full mingw-w64-headers
wrksrc=gcc-${version}
_mingwprefix=/opt
if [ "${xbps_machine}" = "x86_64" ]; then
@ -50,6 +48,14 @@ else
_multilib_args="--disable-multilib --disable-64bit --enable-32bit"
fi
wrksrc=gcc-${version}
build_wrksrc=${pkgname}-build
pre_configure()
{
mkdir -p ${wrksrc}/${build_wrksrc}
}
do_build()
{
# As specified in the LFS book, disable installing libiberty.
@ -57,14 +63,11 @@ do_build()
# Do not run fixincludes
sed -i 's@\./fixinc\.sh@-c true@' ${wrksrc}/gcc/Makefile.in
mkdir -p ${wrksrc}/../mingw-w64-gcc-${version}-build
unset LD_LIBRARY_PATH LDLIBPATH LDFLAGS CPPFLAGS
local SAVEDPATH=$PATH
export PATH="/opt/bin:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
cd ${wrksrc}/../mingw-w64-gcc-${version}-build && ${wrksrc}/configure \
--prefix=${_mingwprefix} --with-sysroot=${_mingwprefix} \
../configure --prefix=${_mingwprefix} --with-sysroot=${_mingwprefix} \
--bindir=${_mingwprefix}/bin --target=${_mingwtriplet} \
${_multilib_args} --enable-threads=win32 --disable-win32-registry \
--enable-version-specific-runtime-libs --enable-__cxa_atexit \
@ -83,7 +86,6 @@ do_build()
do_install()
{
cd ${wrksrc}/../mingw-w64-gcc-${version}-build && \
make DESTDIR=${DESTDIR} ${makejobs} install-gcc
# Remove useless manpages

View file

@ -1,12 +1,13 @@
# Template file for 'mingw-w64-headers'
_shortname=mingw-w64
pkgname=$_shortname-headers
pkgname=${_shortname}-headers
_majversion=1.0
_snapshot=20110523
version=${_majversion}.$_snapshot
distfiles="${SOURCEFORGE_SITE}/$_shortname/$_shortname/$_shortname-v$_majversion-snapshot-$_snapshot.tar.bz2"
version=${_majversion}.${_snapshot}
revision=1
distfiles="${SOURCEFORGE_SITE}/${_shortname}/${_shortname}/${_shortname}-v${_majversion}-snapshot-${_snapshot}.tar.bz2"
build_style=custom-install
short_desc="mingw-w64 headers"
short_desc="mingw-w64 headers, psdk, directx sdk"
maintainer="davehome <davehome@redthumb.info.tm>"
homepage="http://mingw-w64.sourceforge.net/"
license="Public Domain, BSD, LGPL, ZPL"
@ -26,10 +27,11 @@ long_desc="
nostrip=yes
noverifyrdeps=yes
wrksrc=$_shortname-v$_majversion-$_snapshot/$pkgname
_mingwprefix=/opt
wrksrc=${_shortname}-v${_majversion}-${_snapshot}
build_wrksrc=${pkgname}
do_build()
{
if [ "${xbps_machine}" = "x86_64" ]; then

View file

@ -3,6 +3,7 @@
pkgname=mingw-w64-libgcc
_majorver=4.6
version=${_majorver}.1
revision=1
distfiles=http://ftp.gnu.org/pub/gnu/gcc/gcc-$version/gcc-$version.tar.bz2
build_style=custom-install
short_desc="The GNU C Compiler (libs for mingw-w64)"
@ -35,8 +36,6 @@ Add_dependency full mingw-w64-headers
Add_dependency full mingw-w64-gcc
Add_dependency full mingw-w64-crt
wrksrc=gcc-${version}
_mingwprefix=/opt
if [ "${xbps_machine}" = "x86_64" ]; then
@ -52,6 +51,14 @@ fi
strip_cmd=${_mingwprefix}/bin/${_mingwtriplet}-strip
wrksrc=gcc-${version}
build_wrksrc=${pkgname}-build
pre_configure()
{
mkdir -p ${wrksrc}/${build_wrksrc}
}
do_build()
{
# As specified in the LFS book, disable installing libiberty.
@ -59,11 +66,6 @@ do_build()
# Do not run fixincludes
sed -i 's@\./fixinc\.sh@-c true@' ${wrksrc}/gcc/Makefile.in
[ -d ${wrksrc}/../mingw-w64-gcc-${version}-build ] && \
rm -rf ${wrksrc}/../mingw-w64-gcc-${version}-build
mkdir -p ${wrksrc}/../mingw-w64-gcc-${version}-build
unset LD_LIBRARY_PATH LDLIBPATH LDFLAGS CPPFLAGS
local SAVEDPATH=$PATH
export PATH="/opt/bin:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
@ -71,8 +73,7 @@ do_build()
# This is set just in case
export RANLIB=${_mingwprefix}/bin/${_mingwtriplet}-ranlib
cd ${wrksrc}/../mingw-w64-gcc-${version}-build && ${wrksrc}/configure \
--prefix=${_mingwprefix} --with-sysroot=${_mingwprefix} \
../configure --prefix=${_mingwprefix} --with-sysroot=${_mingwprefix} \
--bindir=${_mingwprefix}/bin --target=${_mingwtriplet} \
${_multilib_args} --enable-threads=win32 --disable-win32-registry \
--enable-version-specific-runtime-libs --enable-__cxa_atexit \
@ -97,12 +98,11 @@ do_install()
# These make targets prevent anything from all-gcc from being installed
# Therefore, no conflicts with mingw-w64-gcc package.. perfect.
cd ${wrksrc}/../mingw-w64-gcc-${version}-build && \
make DESTDIR=${DESTDIR} ${makejobs} installdirs install-target
# Run ranlib on the *.a libs
# The compile/install targets don't do this automagically
cd ${wrksrc}/../mingw-w64-gcc-${version}-build && \
cd ${wrksrc}/${build_wrksrc} && \
${RANLIB} `find | grep -E "\.a$" | xargs`
unset RANLIB