ports/120736: Update port: devel/libffi to 3.0.1

Björn König bkoenig at alpha-tierchen.de
Sat Feb 16 16:40:02 UTC 2008


>Number:         120736
>Category:       ports
>Synopsis:       Update port: devel/libffi to 3.0.1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 16 16:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Björn König
>Release:        
>Organization:
>Environment:
>Description:
	The patch below updates the port devel/libffi from 1.20 to 3.0.1.
	
	The maintainer Horance Chou didn't respond to my mails yet. I like
	to take the maintainership with his agreement.
>How-To-Repeat:
>Fix:

--- ports-devel-libffi.diff begins here ---
diff -ruN /usr/ports/devel/libffi/Makefile ports/devel/libffi/Makefile
--- /usr/ports/devel/libffi/Makefile	2006-02-23 10:35:52.000000000 +0000
+++ ports/devel/libffi/Makefile	2008-02-16 16:33:41.000000000 +0000
@@ -6,24 +6,22 @@
 #
 
 PORTNAME=	libffi
-PORTVERSION=	1.20
-PORTREVISION=	1
+PORTVERSION=	3.0.1
 CATEGORIES=	devel
-MASTER_SITES=	ftp://sources.redhat.com/pub/libffi/
+MASTER_SITES=	ftp://sourceware.org/pub/libffi/
 
 MAINTAINER=	horance at freera.net
 COMMENT=	Foreign Function Interface
 
-USE_AUTOTOOLS=	libtool:15
-INSTALLS_SHLIB=	yes
-CONFIGURE_TARGET=	# empty
+GNU_CONFIGURE=	yes
+USE_LDCONFIG=	yes
 
-CONFLICTS=	gcc-3*
+INFO=		libffi
 
-.include <bsd.port.pre.mk>
+PLIST_SUB=	PORTVERSION=${PORTVERSION}
 
-.if ${ARCH} != "i386" && ${ARCH} != "alpha"
-BROKEN=		"Configure fails on !i386 and !alpha"
-.endif
+MAN3=		${ARCH}-portbld-freebsd${OSREL}-ffi.3 \
+		${ARCH}-portbld-freebsd${OSREL}-ffi_call.3 \
+		${ARCH}-portbld-freebsd${OSREL}-ffi_prep_cif.3
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN /usr/ports/devel/libffi/distinfo ports/devel/libffi/distinfo
--- /usr/ports/devel/libffi/distinfo	2006-01-22 08:28:23.000000000 +0000
+++ ports/devel/libffi/distinfo	2008-02-16 11:58:21.000000000 +0000
@@ -1,3 +1,3 @@
-MD5 (libffi-1.20.tar.gz) = e4c9c435ebdfcba6fa493fb1abce2ddc
-SHA256 (libffi-1.20.tar.gz) = 794a23a3feacc11ef431fae9ad79c33b98043cefd6b001707596ca93085dedaa
-SIZE (libffi-1.20.tar.gz) = 109484
+MD5 (libffi-3.0.1.tar.gz) = 6f6cea82a8dfe6126d207fd6113ad632
+SHA256 (libffi-3.0.1.tar.gz) = f68e16619b9eb67b1a0fbfcb4ae827f9154fece03ab35366f6896417bd021292
+SIZE (libffi-3.0.1.tar.gz) = 719044
diff -ruN /usr/ports/devel/libffi/files/patch-aa ports/devel/libffi/files/patch-aa
--- /usr/ports/devel/libffi/files/patch-aa	1999-05-31 04:58:09.000000000 +0000
+++ ports/devel/libffi/files/patch-aa	1970-01-01 00:00:00.000000000 +0000
@@ -1,11 +0,0 @@
---- configure.orig	Mon Oct  5 04:26:04 1998
-+++ configure	Sun May 30 19:01:51 1999
-@@ -1415,6 +1415,8 @@
- 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;;
-+alpha-unknown-freebsd*) TARGET=ALPHA; TARGETDIR=alpha;;
- sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
- sparc-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
- alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; TARGETDIR=alpha;;
diff -ruN /usr/ports/devel/libffi/files/patch-ab ports/devel/libffi/files/patch-ab
--- /usr/ports/devel/libffi/files/patch-ab	1998-10-24 17:14:23.000000000 +0000
+++ ports/devel/libffi/files/patch-ab	1970-01-01 00:00:00.000000000 +0000
@@ -1,11 +0,0 @@
---- src/x86/sysv.S.orig	Mon Oct  5 16:36:28 1998
-+++ src/x86/sysv.S	Sat Oct 24 00:56:07 1998
-@@ -33,7 +33,7 @@
- .globl ffi_prep_args
- 
- 	# This assumes we are using gas.
--        .balign 16
-+        .align 4
- .globl ffi_call_SYSV
-         .type    ffi_call_SYSV, at function
- 
diff -ruN /usr/ports/devel/libffi/files/patch-ad ports/devel/libffi/files/patch-ad
--- /usr/ports/devel/libffi/files/patch-ad	1999-05-31 04:58:10.000000000 +0000
+++ ports/devel/libffi/files/patch-ad	1970-01-01 00:00:00.000000000 +0000
@@ -1,20 +0,0 @@
---- src/Makefile.in.orig	Mon Oct  5 04:26:33 1998
-+++ src/Makefile.in	Sun May 30 21:48:55 1999
-@@ -164,7 +164,7 @@
- SOURCES = $(libffi_la_SOURCES) $(ffitest_SOURCES)
- OBJECTS = $(libffi_la_OBJECTS) $(ffitest_OBJECTS)
- 
--all: Makefile $(LTLIBRARIES) $(PROGRAMS)
-+all: Makefile $(LTLIBRARIES)
- 
- .SUFFIXES:
- .SUFFIXES: .S .c .lo .o .s
-@@ -296,7 +296,7 @@
- 	done
- debug.o debug.lo: debug.c ../include/ffi.h ../fficonfig.h \
- 	../include/ffi_common.h
--ffi.o ffi.lo: x86/ffi.c ../include/ffi.h ../fficonfig.h \
-+ffi.o ffi.lo: @TARGETDIR@/ffi.c ../include/ffi.h ../fficonfig.h \
- 	../include/ffi_common.h
- ffitest.o ffitest.lo: ffitest.c ../include/ffi.h ../fficonfig.h
- prep_cif.o prep_cif.lo: prep_cif.c ../include/ffi.h ../fficonfig.h \
diff -ruN /usr/ports/devel/libffi/files/patch-configure ports/devel/libffi/files/patch-configure
--- /usr/ports/devel/libffi/files/patch-configure	1970-01-01 00:00:00.000000000 +0000
+++ ports/devel/libffi/files/patch-configure	2008-02-15 17:40:55.000000000 +0000
@@ -0,0 +1,13 @@
+--- configure.orig	2008-02-15 15:29:30.000000000 +0000
++++ configure	2008-02-15 17:40:38.000000000 +0000
+@@ -20366,6 +20366,10 @@
+ 	HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
+ 	;;
+ 
++  amd64*-*-freebsd*)
++	TARGET=X86_64; TARGETDIR=x86
++	;;
++
+   arm*-*-*)
+ 	TARGET=ARM; TARGETDIR=arm
+ 	;;
diff -ruN /usr/ports/devel/libffi/pkg-plist ports/devel/libffi/pkg-plist
--- /usr/ports/devel/libffi/pkg-plist	2007-01-27 19:32:49.000000000 +0000
+++ ports/devel/libffi/pkg-plist	2008-02-15 17:31:34.000000000 +0000
@@ -1,7 +1,9 @@
-include/fficonfig.h
-include/ffi.h
-include/ffi_mips.h
-lib/libffi.a
-lib/libffi.la
+lib/libffi-%%PORTVERSION%%/include/ffi.h
+lib/libffi-%%PORTVERSION%%/include/ffitarget.h
+lib/libffi.so.5
 lib/libffi.so
-lib/libffi.so.2
+lib/libffi.la
+lib/libffi.a
+lib/pkgconfig/libffi.pc
+ at dirrm lib/pkgconfig
+ at dirrm lib/libffi-%%PORTVERSION%%/include/
--- ports-devel-libffi.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list