[Frugalware-git] frugalware-current: libx86-1.1-1-i686
Priyank
priyank at frugalware.org
Sun Nov 16 08:59:17 CET 2008
Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=0d125c15fed7c3bdb59efa636c706e1dd47f5deb
commit 0d125c15fed7c3bdb59efa636c706e1dd47f5deb
Author: Priyank <priyank at frugalware.org>
Date: Sun Nov 16 13:28:07 2008 +0530
libx86-1.1-1-i686
* New package / Initial import
* Needed by newer vbetool
diff --git a/source/lib-extra/libx86/FrugalBuild b/source/lib-extra/libx86/FrugalBuild
new file mode 100644
index 0000000..a0ebdb8
--- /dev/null
+++ b/source/lib-extra/libx86/FrugalBuild
@@ -0,0 +1,17 @@
+# Compiling Time: 0.01 SBU
+# Maintainer: Priyank Gosalia <priyankmg at gmail.com>
+
+pkgname=libx86
+pkgver=1.1
+pkgrel=1
+pkgdesc="A hardware-independent library for executing real-mode x86 code."
+url="http://www.codon.org.uk/~mjg59/libx86/"
+depends=()
+groups=('lib-extra')
+archs=('i686' 'x86_64')
+up2date="lynx -dump $url/downloads | grep tar.gz | Flasttar"
+source=($url/downloads/${pkgname}-${pkgver}.tar.gz $pkgname-ifmask.patch)
+sha1sums=('c55d8a428ab7f2084010c255aa8c666602544af9' \
+ 'bd03f2b7112bc46bca539d9c948fae3cb90d9041')
+
+# optimization OK
diff --git a/source/lib-extra/libx86/libx86-ifmask.patch b/source/lib-extra/libx86/libx86-ifmask.patch
new file mode 100644
index 0000000..c99eeb8
--- /dev/null
+++ b/source/lib-extra/libx86/libx86-ifmask.patch
@@ -0,0 +1,21 @@
+--- lrmi.c.orig 2008-09-06 12:24:36.070136428 +0200
++++ lrmi.c 2008-09-06 12:28:10.584287458 +0200
+@@ -55,6 +55,18 @@ OTHER DEALINGS IN THE SOFTWARE.
+ #include "x86-common.h"
+
+ #if defined(__linux__)
++#ifndef TF_MASK
++#define TF_MASK X86_EFLAGS_TF
++#endif
++#ifndef IF_MASK
++#define IF_MASK X86_EFLAGS_IF
++#endif
++#ifndef IOPL_MASK
++#define IOPL_MASK X86_EFLAGS_IOPL
++#endif
++#ifndef VIF_MASK
++#define VIF_MASK X86_EFLAGS_VIF
++#endif
+ #define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK)
+ #elif defined(__NetBSD__) || defined(__FreeBSD__)
+ #define DEFAULT_VM86_FLAGS (PSL_I | PSL_IOPL)
More information about the Frugalware-git
mailing list