From 1d24ee83028cbafa0327246a15ef8bc155376268 Mon Sep 17 00:00:00 2001 From: agc Date: Fri, 18 Jul 2003 12:39:40 +0000 Subject: Initial import of libffi-2.0beta into the NetBSD Packages Collection. 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. Some programs may not know at the time of compilation what arguments are to be passed to a function. For instance, an interpreter may be told at run-time about the number and types of arguments used to call a given function. Libffi can be used in such programs to provide a bridge from the interpreter program to compiled code. Ffi stands for Foreign Function Interface. A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language. The libffi library really only provides the lowest, machine dependent layer of a fully featured foreign function interface. A layer must exist above libffi that handles type conversions for values passed between the two languages. --- devel/libffi/DESCR | 18 ++++++++++++++++++ devel/libffi/Makefile | 18 ++++++++++++++++++ devel/libffi/PLIST | 8 ++++++++ devel/libffi/buildlink2.mk | 27 +++++++++++++++++++++++++++ devel/libffi/distinfo | 4 ++++ 5 files changed, 75 insertions(+) create mode 100644 devel/libffi/DESCR create mode 100644 devel/libffi/Makefile create mode 100644 devel/libffi/PLIST create mode 100644 devel/libffi/buildlink2.mk create mode 100644 devel/libffi/distinfo (limited to 'devel') diff --git a/devel/libffi/DESCR b/devel/libffi/DESCR new file mode 100644 index 00000000000..96a2314ed64 --- /dev/null +++ b/devel/libffi/DESCR @@ -0,0 +1,18 @@ +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. + +Some programs may not know at the time of compilation what arguments +are to be passed to a function. For instance, an interpreter may be +told at run-time about the number and types of arguments used to call +a given function. Libffi can be used in such programs to provide a +bridge from the interpreter program to compiled code. + +Ffi stands for Foreign Function Interface. A foreign function +interface is the popular name for the interface that allows code +written in one language to call code written in another language. The +libffi library really only provides the lowest, machine dependent +layer of a fully featured foreign function interface. A layer must +exist above libffi that handles type conversions for values passed +between the two languages. diff --git a/devel/libffi/Makefile b/devel/libffi/Makefile new file mode 100644 index 00000000000..3cbfc517e16 --- /dev/null +++ b/devel/libffi/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/07/18 12:39:40 agc Exp $ + +DISTNAME= gcc-3.3 +PKGNAME= libffi-2.0beta +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-3.3/} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= tech-pkg@netbsd.org +HOMEPAGE= http://sources.redhat.com/libffi/ +COMMENT= Foreign function interface + +GNU_CONFIGURE= yes +CONFIGURE_ENV+= with_target_subdir=. + +WRKSRC= ${WRKDIR}/${DISTNAME}/libffi + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/libffi/PLIST b/devel/libffi/PLIST new file mode 100644 index 00000000000..0a3de034a68 --- /dev/null +++ b/devel/libffi/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/18 12:39:40 agc Exp $ +include/ffi.h +include/ffi_mips.h +include/fficonfig.h +lib/libffi-2.00-beta.so +lib/libffi.a +lib/libffi.la +lib/libffi.so diff --git a/devel/libffi/buildlink2.mk b/devel/libffi/buildlink2.mk new file mode 100644 index 00000000000..03c25a38e45 --- /dev/null +++ b/devel/libffi/buildlink2.mk @@ -0,0 +1,27 @@ +# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/07/18 12:39:40 agc Exp $ +# +# This Makefile fragment is included by packages that use libffi. +# +# This file was created automatically using createbuildlink 2.6. +# + +.if !defined(LIBFFI_BUILDLINK2_MK) +LIBFFI_BUILDLINK2_MK= # defined + +BUILDLINK_PACKAGES+= libffi +BUILDLINK_DEPENDS.libffi?= libffi>=1.20 +BUILDLINK_PKGSRCDIR.libffi?= ../../devel/libffi + +EVAL_PREFIX+= BUILDLINK_PREFIX.libffi=libffi +BUILDLINK_PREFIX.libffi_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.libffi+= include/ffi.h +BUILDLINK_FILES.libffi+= include/ffi_mips.h +BUILDLINK_FILES.libffi+= include/fficonfig.h +BUILDLINK_FILES.libffi+= lib/libffi-2.00-beta.* +BUILDLINK_FILES.libffi+= lib/libffi.* + +BUILDLINK_TARGETS+= libffi-buildlink + +libffi-buildlink: _BUILDLINK_USE + +.endif # LIBFFI_BUILDLINK2_MK diff --git a/devel/libffi/distinfo b/devel/libffi/distinfo new file mode 100644 index 00000000000..049a45c133d --- /dev/null +++ b/devel/libffi/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/07/18 12:39:40 agc Exp $ + +SHA1 (gcc-3.3.tar.bz2) = 18e23822c6dc9cb462e0ff88bc1b8a20c53da60a +Size (gcc-3.3.tar.bz2) = 23447616 bytes -- cgit v1.2.3