diff options
author | steve <steve@FreeBSD.org> | 1998-08-10 08:08:48 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-08-10 08:08:48 +0800 |
commit | 661c558d39b3fb9e073a78396dae1337cb316b3a (patch) | |
tree | 711e93ba1ae595cf4d36b24bbdbdeece73b7a177 /devel/libffi-devel | |
parent | 4114923080f4774e2d873db7296f861f27b821d0 (diff) | |
download | freebsd-ports-graphics-661c558d39b3fb9e073a78396dae1337cb316b3a.tar.gz freebsd-ports-graphics-661c558d39b3fb9e073a78396dae1337cb316b3a.tar.zst freebsd-ports-graphics-661c558d39b3fb9e073a78396dae1337cb316b3a.zip |
Initial import of libffi version 1.18.
Foreign Function Interface.
PR: 6943
Submitted by: Horance Chou <horance@freedom.ie.cycu.edu.tw>
Diffstat (limited to 'devel/libffi-devel')
-rw-r--r-- | devel/libffi-devel/Makefile | 19 | ||||
-rw-r--r-- | devel/libffi-devel/distinfo | 1 | ||||
-rw-r--r-- | devel/libffi-devel/files/patch-aa | 10 | ||||
-rw-r--r-- | devel/libffi-devel/files/patch-ab | 44 | ||||
-rw-r--r-- | devel/libffi-devel/pkg-comment | 1 | ||||
-rw-r--r-- | devel/libffi-devel/pkg-descr | 4 | ||||
-rw-r--r-- | devel/libffi-devel/pkg-plist | 9 |
7 files changed, 88 insertions, 0 deletions
diff --git a/devel/libffi-devel/Makefile b/devel/libffi-devel/Makefile new file mode 100644 index 00000000000..e510528aa76 --- /dev/null +++ b/devel/libffi-devel/Makefile @@ -0,0 +1,19 @@ +# New ports collection makefile for: libffi +# Version required: 1.18 +# Date created: 14, June, 1998 +# Whom: Horance Chou <horance@freedom.ie.cycu.edu.tw> +# +# $Id$ +# + +DISTNAME= libffi-1.18 +CATEGORIES= devel +MASTER_SITES= ftp://ftp.cygnus.com:/pub/green/ + +MAINTAINER= horance@freedom.ie.cycu.edu.tw + +GNU_CONFIGURE= yes +WRKSRC= ${WRKDIR}/${PKGNAME} +ALL_TARGET= test + +.include <bsd.port.mk> diff --git a/devel/libffi-devel/distinfo b/devel/libffi-devel/distinfo new file mode 100644 index 00000000000..1de8ff6d9b9 --- /dev/null +++ b/devel/libffi-devel/distinfo @@ -0,0 +1 @@ +MD5 (libffi-1.18.tar.gz) = e8d8fa118c52cae8eb8aec6b01090238 diff --git a/devel/libffi-devel/files/patch-aa b/devel/libffi-devel/files/patch-aa new file mode 100644 index 00000000000..832b44066d5 --- /dev/null +++ b/devel/libffi-devel/files/patch-aa @@ -0,0 +1,10 @@ +--- configure.orig Sun Jun 14 14:42:47 1998 ++++ configure Sun Jun 14 14:33:17 1998 +@@ -1234,6 +1234,7 @@ + case "$host" in + mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;; + i*86-pc-linux*) TARGET=X86; TARGETDIR=x86;; ++i*86-unknown-freebsd*) TARGET=X86; TARGETDIR=x86;; + sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;; + sparc-sun-*) TARGET=SPARC; TARGETDIR=sparc;; + alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; TARGETDIR=alpha;; diff --git a/devel/libffi-devel/files/patch-ab b/devel/libffi-devel/files/patch-ab new file mode 100644 index 00000000000..01d32630e0f --- /dev/null +++ b/devel/libffi-devel/files/patch-ab @@ -0,0 +1,44 @@ +--- src/x86/sysv.S.orig Sun Jun 14 14:43:22 1998 ++++ src/x86/sysv.S Sun Jun 14 14:48:35 1998 +@@ -30,14 +30,14 @@ + + .text + +-.globl ffi_prep_args ++.globl _ffi_prep_args + + # This assumes we are using gas. +- .balign 16 +-.globl ffi_call_SYSV +- .type ffi_call_SYSV,@function ++ .align 4 ++.globl _ffi_call_SYSV ++ .type _ffi_call_SYSV,@function + +-ffi_call_SYSV: ++_ffi_call_SYSV: + pushl %ebp + movl %esp,%ebp + +@@ -47,10 +47,10 @@ + + movl %esp,%eax + +- # Place all of the ffi_prep_args in position ++ # Place all of the _ffi_prep_args in position + pushl 12(%ebp) + pushl %eax +- call ffi_prep_args ++ call _ffi_prep_args + + # Return stack to previous state and call the function + addl $8,%esp +@@ -110,6 +110,6 @@ + movl %ebp,%esp + popl %ebp + ret +-.ffi_call_SYSV_end: +- .size ffi_call_SYSV,.ffi_call_SYSV_end-ffi_call_SYSV ++._ffi_call_SYSV_end: ++ .size _ffi_call_SYSV,._ffi_call_SYSV_end-_ffi_call_SYSV + diff --git a/devel/libffi-devel/pkg-comment b/devel/libffi-devel/pkg-comment new file mode 100644 index 00000000000..58a9956dad5 --- /dev/null +++ b/devel/libffi-devel/pkg-comment @@ -0,0 +1 @@ +Foreign Function Interface. diff --git a/devel/libffi-devel/pkg-descr b/devel/libffi-devel/pkg-descr new file mode 100644 index 00000000000..c26c491b2f4 --- /dev/null +++ b/devel/libffi-devel/pkg-descr @@ -0,0 +1,4 @@ +The libffi library provides a portable, high level programming +interface to various calling conventions. This allows a programmer to +call any function specified by a call interface description at run +time. diff --git a/devel/libffi-devel/pkg-plist b/devel/libffi-devel/pkg-plist new file mode 100644 index 00000000000..3a8e0e27777 --- /dev/null +++ b/devel/libffi-devel/pkg-plist @@ -0,0 +1,9 @@ +include/fficonfig.h +include/ffi.h +include/ffi_mips.h +lib/libffi.la +lib/libffi.a +lib/libffi.so +lib/libffi.so.2.1 +@exec /sbin/ldconfig -m %B +@unexec /sbin/ldconfig -R |