From 6211288173ca43e7f359be52e7c5decb38ab63aa Mon Sep 17 00:00:00 2001 From: jkim Date: Sat, 6 Dec 2008 00:40:05 +0000 Subject: It's often useful to be able to make real-mode x86 BIOS calls from userland. Linux lrmi provides a simple interface to this for i386 machines, but this doesn't help on other platforms. libx86 provides the Linux lrmi interface, but will also run on platforms such as amd64 and alpha. WWW: http://www.codon.org.uk/~mjg59/libx86/ --- devel/libx86/Makefile | 32 ++++++++++++++++++++++++++++++++ devel/libx86/distinfo | 3 +++ devel/libx86/files/patch-thunk.c | 12 ++++++++++++ devel/libx86/pkg-descr | 6 ++++++ 4 files changed, 53 insertions(+) create mode 100644 devel/libx86/Makefile create mode 100644 devel/libx86/distinfo create mode 100644 devel/libx86/files/patch-thunk.c create mode 100644 devel/libx86/pkg-descr (limited to 'devel/libx86') diff --git a/devel/libx86/Makefile b/devel/libx86/Makefile new file mode 100644 index 000000000000..c776174e99e4 --- /dev/null +++ b/devel/libx86/Makefile @@ -0,0 +1,32 @@ +# Ports collection makefile for: libx86 +# Date created: 2008-12-05 +# Whom: Jung-uk Kim +# +# $FreeBSD$ +# + +PORTNAME= libx86 +PORTVERSION= 1.1 +CATEGORIES= devel +MASTER_SITES= http://www.codon.org.uk/~mjg59/libx86/downloads/ +DISTNAME= ${PORTNAME}-${PORTVERSION} + +MAINTAINER= jkim@FreeBSD.org +COMMENT= A hardware-independent library for executing real-mode x86 code + +PLIST_FILES= include/libx86.h lib/libx86.a lib/libx86.so.1 lib/libx86.so + +USE_GMAKE= yes +USE_LDCONFIG= yes +USE_SUBMAKE= yes +ALL_TARGET= default +MAKE_ARGS+= LIBDIR=${PREFIX}/lib +MAKE_ENV+= BACKEND=x86emu + +do-install: + ${INSTALL_DATA} ${WRKSRC}/lrmi.h ${PREFIX}/include/libx86.h + ${INSTALL_DATA} ${WRKSRC}/libx86.a ${PREFIX}/lib + ${INSTALL_PROGRAM} ${WRKSRC}/libx86.so.1 ${PREFIX}/lib + ${LN} -sf ${PREFIX}/lib/libx86.so.1 ${PREFIX}/lib/libx86.so + +.include diff --git a/devel/libx86/distinfo b/devel/libx86/distinfo new file mode 100644 index 000000000000..b86ef86100c5 --- /dev/null +++ b/devel/libx86/distinfo @@ -0,0 +1,3 @@ +MD5 (libx86-1.1.tar.gz) = 41bee1f8e22b82d82b5f7d7ba51abc2a +SHA256 (libx86-1.1.tar.gz) = 5bf13104cb327472b5cb65643352a9138646becacc06763088d83001d832d048 +SIZE (libx86-1.1.tar.gz) = 87428 diff --git a/devel/libx86/files/patch-thunk.c b/devel/libx86/files/patch-thunk.c new file mode 100644 index 000000000000..f55155b80473 --- /dev/null +++ b/devel/libx86/files/patch-thunk.c @@ -0,0 +1,12 @@ +--- thunk.c 2008-04-02 20:48:00.000000000 -0400 ++++ thunk.c 2008-12-03 19:19:25.000000000 -0500 +@@ -11,7 +11,9 @@ + #include + #include + #include ++#if 0 + #include ++#endif + #include + #include + #include diff --git a/devel/libx86/pkg-descr b/devel/libx86/pkg-descr new file mode 100644 index 000000000000..3a2806f14131 --- /dev/null +++ b/devel/libx86/pkg-descr @@ -0,0 +1,6 @@ +It's often useful to be able to make real-mode x86 BIOS calls from userland. +Linux lrmi provides a simple interface to this for i386 machines, but this +doesn't help on other platforms. libx86 provides the Linux lrmi interface, +but will also run on platforms such as amd64 and alpha. + +WWW: http://www.codon.org.uk/~mjg59/libx86/ -- cgit