[Midnightbsd-cvs] mports: mports/devel: Add libffi
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Jul 7 21:56:07 EDT 2008
Log Message:
-----------
Add libffi
Modified Files:
--------------
mports/devel:
Makefile (r1.227 -> r1.228)
Added Files:
-----------
mports/devel/libffi:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
mports/devel/libffi/files:
patch-src_arm_sysv.S (r1.1)
-------------- next part --------------
--- /dev/null
+++ devel/libffi/pkg-descr
@@ -0,0 +1,6 @@
+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.
+
+WWW: http://sources.redhat.com/libffi/
--- /dev/null
+++ devel/libffi/pkg-plist
@@ -0,0 +1,9 @@
+lib/libffi-%%PORTVERSION%%/include/ffi.h
+lib/libffi-%%PORTVERSION%%/include/ffitarget.h
+lib/libffi.a
+lib/libffi.la
+lib/libffi.so
+lib/libffi.so.5
+libdata/pkgconfig/libffi.pc
+ at dirrm lib/libffi-%%PORTVERSION%%/include
+ at dirrm lib/libffi-%%PORTVERSION%%
--- /dev/null
+++ devel/libffi/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: libffi
+# Date created: 14, June, 1998
+# Whom: Horance Chou <horance at freedom.ie.cycu.edu.tw>
+#
+# $MidnightBSD: mports/devel/libffi/Makefile,v 1.1 2008/07/08 01:56:05 laffer1 Exp $
+# $FreeBSD: ports/devel/libffi/Makefile,v 1.25 2008/04/04 13:09:46 pav Exp $
+#
+
+PORTNAME= libffi
+PORTVERSION= 3.0.4
+CATEGORIES= devel
+MASTER_SITES= ftp://sourceware.org/pub/libffi/
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Foreign Function Interface
+LICENSE= mit
+
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+USE_GNOME= gnomehack gnometarget pkgconfig
+PLIST_SUB= PORTVERSION=${PORTVERSION}
+
+INFO= libffi
+
+MAN3= ffi.3 ffi_call.3 ffi_prep_cif.3
+
+.include <bsd.port.mk>
--- /dev/null
+++ devel/libffi/distinfo
@@ -0,0 +1,3 @@
+MD5 (libffi-3.0.4.tar.gz) = eea52a0f7929182da1f393d43ed231c5
+SHA256 (libffi-3.0.4.tar.gz) = 2f3ca5852a89115846eeff53e3cc26a1e298d2698e54c4f0671984791ab14d8a
+SIZE (libffi-3.0.4.tar.gz) = 722782
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/devel/Makefile,v
retrieving revision 1.227
retrieving revision 1.228
diff -L devel/Makefile -L devel/Makefile -u -r1.227 -r1.228
--- devel/Makefile
+++ devel/Makefile
@@ -95,6 +95,7 @@
SUBDIR += libdaemon
SUBDIR += libevent
SUBDIR += libexecinfo
+ SUBDIR += libffi
SUBDIR += libgii
SUBDIR += libglade2
SUBDIR += libglademm
--- /dev/null
+++ devel/libffi/files/patch-src_arm_sysv.S
@@ -0,0 +1,73 @@
+--- src/arm/sysv.S.orig 2008-02-15 02:15:41.000000000 +0100
++++ src/arm/sysv.S 2008-04-01 13:25:02.000000000 +0200
+@@ -83,14 +83,6 @@
+ # define call_reg(x) mov lr, pc ; mov pc, x
+ #endif
+
+-/* Conditionally compile unwinder directives. */
+-#ifdef __ARM_EABI__
+-#define UNWIND
+-#else
+-#define UNWIND @
+-#endif
+-
+-
+ #if defined(__thumb__) && !defined(__THUMB_INTERWORK__)
+ .macro ARM_FUNC_START name
+ .text
+@@ -101,7 +93,6 @@
+ bx pc
+ nop
+ .arm
+- UNWIND .fnstart
+ /* A hook to tell gdb that we've switched to ARM mode. Also used to call
+ directly from other local arm routines. */
+ _L__\name:
+@@ -112,7 +103,6 @@
+ .align 0
+ .arm
+ ENTRY(\name)
+- UNWIND .fnstart
+ .endm
+ #endif
+
+@@ -145,11 +135,8 @@
+ ARM_FUNC_START ffi_call_SYSV
+ @ Save registers
+ stmfd sp!, {r0-r3, fp, lr}
+- UNWIND .save {r0-r3, fp, lr}
+ mov fp, sp
+
+- UNWIND .setfp fp, sp
+-
+ @ Make room for all of the new args.
+ sub sp, fp, r2
+
+@@ -219,7 +206,6 @@
+ RETLDM "r0-r3,fp"
+
+ .ffi_call_SYSV_end:
+- UNWIND .fnend
+ .size CNAME(ffi_call_SYSV),.ffi_call_SYSV_end-CNAME(ffi_call_SYSV)
+
+ /*
+@@ -231,12 +217,9 @@
+ */
+
+ ARM_FUNC_START ffi_closure_SYSV
+- UNWIND .pad #16
+ add ip, sp, #16
+ stmfd sp!, {ip, lr}
+- UNWIND .save {r0, lr}
+ add r2, sp, #8
+- .pad #16
+ sub sp, sp, #16
+ str sp, [sp, #8]
+ add r1, sp, #8
+@@ -291,6 +274,5 @@
+ #endif
+
+ .ffi_closure_SYSV_end:
+- UNWIND .fnend
+ .size CNAME(ffi_closure_SYSV),.ffi_closure_SYSV_end-CNAME(ffi_closure_SYSV)
+
More information about the Midnightbsd-cvs
mailing list