[Frugalware-darcs] frugalware-current: mingw-runtime-3.8-1-i686

VMiklos vmiklos at frugalware.org
Sat Oct 15 21:48:43 CEST 2005


Sat Oct 15 20:41:28 CEST 2005  VMiklos <vmiklos at frugalware.org>
  * mingw-runtime-3.8-1-i686
  new package
diff -rN -u old-frugalware-current/extra/source/devel/mingw-runtime/FrugalBuild new-frugalware-current-1/extra/source/devel/mingw-runtime/FrugalBuild
--- old-frugalware-current/extra/source/devel/mingw-runtime/FrugalBuild	1970-01-01 01:00:00.000000000 +0100
+++ new-frugalware-current-1/extra/source/devel/mingw-runtime/FrugalBuild	2005-10-15 20:49:19.000000000 +0200
@@ -0,0 +1,44 @@
+# Last Modified: Sat, 15 Oct 2005 20:37:51 +0200
+# Compiling Time: 0.01 SBU
+# Maintainer: VMiklos <vmiklos at frugalware.org>
+
+pkgname=mingw-runtime
+pkgver=3.8
+pkgrel=1
+pkgdesc="Free Win32 runtime and import library definitions"
+url="http://www.mingw.org"
+depends=('mingw-w32api')
+groups=('devel-extra')
+archs=('i686')
+up2date="lynx -dump http://sourceforge.net/project/showfiles.php?group_id=2435|grep runtime-|sed 's/.*e-\(.*\)-s.*/\1/;s/-/_/g;q'"
+source=(http://dl.sourceforge.net/sourceforge/mingw/$pkgname-$pkgver-src.tar.gz)
+sha1sums=('bf35e6f204b8a55d9929d2da74559af4b319b422')
+
+# if compilation fails with:
+# "could not read symbols: Archive has no index; run ranlib to add one"
+# try running sudo chroot $CHROOTDIR /usr/bin/find /usr/lib/mingw/{lib,i386-mingw32msvc/lib}/ -name *.a -exec /usr/lib/mingw/bin/i386-mingw32msvc-ranlib {} \;
+
+build()
+{
+	export PATH=$PATH:/usr/lib/mingw/bin:/usr/lib/mingw/i386-mingw32msvc/bin
+	Fprefix=/usr/lib/mingw/i386-mingw32msvc
+	Fcd
+	RANLIB=i386-mingw32msvc-ranlib AR=i386-mingw32msvc-ar \
+	AS=i386-mingw32msvc-as CC=i386-mingw32msvc-gcc \
+		./configure --target=i386-mingw32msvc \
+		--prefix=/usr/lib/mingw/i386-mingw32msvc || return 1
+	cd mingwex
+	make W32API_INCLUDE=-I/usr/lib/mingw/i386-mingw32msvc/include || return 1
+	cd ..
+	make W32API_INCLUDE=-I/usr/lib/mingw/i386-mingw32msvc/include || return 1
+	Fmakeinstall
+	Fmkdir /usr/share/doc/
+	Fmv /usr/lib/mingw/i386-mingw32msvc/doc/$pkgname \
+		/usr/share/doc/$pkgname-$pkgver
+	# mingw-runtime-headers is a separate package
+	Frm /usr/lib/mingw/i386-mingw32msvc/include
+}
+
+# optimalization OK
+
+# vim: ft=sh



More information about the Frugalware-darcs mailing list