Update to libffi-3.0.6. From Aleksej Saushev, who's taking maintainership, with an adjustment for info file handling. Changes from 2.x appear to be large and aren't concisely anywhere I can find. Changes since 3.0.0: 3.0.6 Jul-17-08 Fix for closures on sh. Mark the sh/sh64 stack as non-executable. (both thanks to Kaz Kojima) 3.0.5 Apr-3-08 Fix libffi.pc file. Fix #define ARM for IcedTea users. Fix x86 closure bug. 3.0.4 Feb-24-08 Fix x86 OpenBSD configury. 3.0.3 Feb-22-08 Enable x86 OpenBSD thanks to Thomas Heller, and x86-64 FreeBSD thanks to Bj旦rn K旦nig and Andreas Tobler. Clean up test instruction in README. 3.0.2 Feb-21-08 Improved x86 FreeBSD support. Thanks to Bj旦rn K旦nig. 3.0.1 Feb-15-08 Fix instruction cache flushing bug on MIPS. Thanks to David Daney. 3.0.0 Feb-15-08 Many changes, mostly thanks to the GCC project. Cygnus Solutions is now Red Hat.diff -r1.7 -r1.8 pkgsrc/devel/libffi/Makefile
(dholland)
@@ -1,23 +1,23 @@ | @@ -1,23 +1,23 @@ | |||
1 | # $NetBSD: Makefile,v 1.7 2008/04/03 09:34:40 joerg Exp $ | 1 | # $NetBSD: Makefile,v 1.8 2008/10/11 22:33:56 dholland Exp $ | |
2 | # | |||
2 | 3 | |||
3 | DISTNAME= gcc-3.3.5 | 4 | DISTNAME= libffi-3.0.6 | |
4 | PKGNAME= libffi-2.0beta | |||
5 | PKGREVISION= 2 | |||
6 | CATEGORIES= devel | 5 | CATEGORIES= devel | |
7 | MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-3.3.5/} | 6 | MASTER_SITES= ftp://sourceware.org/pub/libffi/ | |
8 | EXTRACT_SUFX= .tar.bz2 | |||
9 | 7 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= asau@inbox.ru | |
11 | HOMEPAGE= http://sources.redhat.com/libffi/ | 9 | HOMEPAGE= http://sources.redhat.com/libffi/ | |
12 | COMMENT= Foreign function interface | 10 | COMMENT= Foreign function interface | |
13 | 11 | |||
14 | PKG_DESTDIR_SUPPORT= user-destdir | 12 | PKG_DESTDIR_SUPPORT= user-destdir | |
15 | 13 | |||
16 | GNU_CONFIGURE= yes | 14 | GNU_CONFIGURE= yes | |
17 | CONFIGURE_ENV+= with_target_subdir=. | 15 | CONFIGURE_ARGS= --includedir=${PREFIX}/include | |
18 | CONFIG_GUESS_OVERRIDE= ../config.guess | 16 | USE_LIBTOOL= yes | |
19 | CONFIG_SUB_OVERRIDE= ../config.sub | 17 | USE_TOOLS+= pkg-config | |
18 | USE_LANGUAGES= c c++ | |||
19 | INFO_FILES= # PLIST | |||
20 | 20 | |||
21 | WRKSRC= ${WRKDIR}/${DISTNAME}/libffi | 21 | PKGCONFIG_OVERRIDE+= libffi.pc.in | |
22 | 22 | |||
23 | .include "../../mk/bsd.pkg.mk" | 23 | .include "../../mk/bsd.pkg.mk" |
@@ -1,5 +1,9 @@ | @@ -1,5 +1,9 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.2 2004/09/22 08:09:26 jlam Exp $ | 1 | @comment $NetBSD: PLIST,v 1.3 2008/10/11 22:33:56 dholland Exp $ | |
2 | include/ffi.h | 2 | include/ffi.h | |
3 | include/ffi_mips.h | 3 | include/ffitarget.h | |
4 | include/fficonfig.h | |||
5 | lib/libffi.la | 4 | lib/libffi.la | |
5 | lib/pkgconfig/libffi.pc | |||
6 | man/man3/ffi.3 | |||
7 | man/man3/ffi_call.3 | |||
8 | man/man3/ffi_prep_cif.3 | |||
9 | info/libffi.info |
@@ -1,20 +1,21 @@ | @@ -1,20 +1,21 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.6 2006/07/08 23:10:44 jlam Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.7 2008/10/11 22:33:56 dholland Exp $ | |
2 | 2 | |||
3 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ | 3 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ | |
4 | LIBFFI_BUILDLINK3_MK:= ${LIBFFI_BUILDLINK3_MK}+ | 4 | LIBFFI_BUILDLINK3_MK:= ${LIBFFI_BUILDLINK3_MK}+ | |
5 | 5 | |||
6 | .if !empty(BUILDLINK_DEPTH:M+) | 6 | .if ${BUILDLINK_DEPTH} == "+" | |
7 | BUILDLINK_DEPENDS+= libffi | 7 | BUILDLINK_DEPENDS+= libffi | |
8 | .endif | 8 | .endif | |
9 | 9 | |||
10 | BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibffi} | 10 | BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibffi} | |
11 | BUILDLINK_PACKAGES+= libffi | 11 | BUILDLINK_PACKAGES+= libffi | |
12 | BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libffi | 12 | BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libffi | |
13 | 13 | |||
14 | .if !empty(LIBFFI_BUILDLINK3_MK:M+) | 14 | .if ${LIBFFI_BUILDLINK3_MK} == "+" | |
15 | BUILDLINK_API_DEPENDS.libffi+= libffi>=1.20 | 15 | BUILDLINK_API_DEPENDS.libffi+= libffi>=1.20 | |
16 | BUILDLINK_ABI_DEPENDS.libffi+= libffi>=2.0betanb1 | 16 | BUILDLINK_ABI_DEPENDS.libffi+= libffi>=2.0betanb1 | |
17 | #BUILDLINK_API_DEPENDS.libffi+= libffi>=3.0.6 | |||
17 | BUILDLINK_PKGSRCDIR.libffi?= ../../devel/libffi | 18 | BUILDLINK_PKGSRCDIR.libffi?= ../../devel/libffi | |
18 | .endif # LIBFFI_BUILDLINK3_MK | 19 | .endif # LIBFFI_BUILDLINK3_MK | |
19 | 20 | |||
20 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} | 21 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.8 2008/04/03 09:34:40 joerg Exp $ | 1 | $NetBSD: distinfo,v 1.9 2008/10/11 22:33:56 dholland Exp $ | |
2 | 2 | |||
3 | SHA1 (gcc-3.3.5.tar.bz2) = ab24a8690040de967c25a1fc8560d7ecc25bd460 | 3 | SHA1 (libffi-3.0.6.tar.gz) = 04a5f38c76dfe3e078767645ca89f2ff71721104 | |
4 | RMD160 (gcc-3.3.5.tar.bz2) = 34adf1a6f7ea302e9937c1a06ccf362711e25c58 | 4 | RMD160 (libffi-3.0.6.tar.gz) = da8f547209e6b13dc7be86ea29ad5fa5e85844e5 | |
5 | Size (gcc-3.3.5.tar.bz2) = 23833856 bytes | 5 | Size (libffi-3.0.6.tar.gz) = 717171 bytes | |
6 | SHA1 (patch-aa) = cef0f1fd24397665aa5120e04e8a539f75f7bf1f | 6 | SHA1 (patch-ac) = 307c08e8e3df5f079c0b2f63da58bb59fc089d30 | |
7 | SHA1 (patch-ab) = daa5322cde100b035f195dd0f445755c8285a116 | 7 | SHA1 (patch-ad) = 8901a00abe25422e3e35f321a5fb89311185fc0b |
$NetBSD: patch-ac,v 1.1 2008/10/11 22:33:56 dholland Exp $
Install header files in backwards compatible way.
--- include/Makefile.in.orig 2008-02-14 18:37:00.000000000 +0300
+++ include/Makefile.in 2008-10-09 12:34:51.000000000 +0400
@@ -182,7 +182,7 @@
AUTOMAKE_OPTIONS = foreign
DISTCLEANFILES = ffitarget.h
EXTRA_DIST = ffi.h.in ffi_common.h
-includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
+includesdir = $(includedir)
nodist_includes_HEADERS = ffi.h ffitarget.h
all: all-am
$NetBSD: patch-ad,v 1.1 2008/10/11 22:33:56 dholland Exp $
Install header files in backwards compatible way.
--- libffi.pc.in.orig 2008-10-09 12:38:02.000000000 +0400
+++ libffi.pc.in 2008-10-09 12:41:54.000000000 +0400
@@ -1,7 +1,7 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
-includedir=${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
+includedir=@includedir@
Name: @PACKAGE_NAME@
Description: Library supporting Foreign Function Interfaces