This module provides an interface to libffi which enables you to call C

functions from Pure and vice versa. It extends and complements Pure's
built-in C interface in that it also handles C structs and makes Pure
functions callable from C without writing a single line of C code.

WWW:	http://docs.pure-lang.googlecode.com/hg/pure-ffi.html

PR:		ports/156103
Submitted by:	Zhihao Yuan <lichray at gmail.com>
This commit is contained in:
Martin Wilke 2011-06-27 14:44:38 +00:00
parent 930beb2940
commit c8b2d8c562
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276502
4 changed files with 50 additions and 0 deletions

View file

@ -2801,6 +2801,7 @@
SUBDIR += pty
SUBDIR += ptypes
SUBDIR += publib
SUBDIR += pure-ffi
SUBDIR += pure-gen
SUBDIR += pushmi
SUBDIR += pwlib

41
devel/pure-ffi/Makefile Normal file
View file

@ -0,0 +1,41 @@
# New ports collection makefile for: pure-ffi
# Date created: 2011-03-18
# Whom: Zhihao Yuan <lichray@gmail.com>
#
# $FreeBSD$
#
PORTNAME= pure-ffi
PORTVERSION= 0.12
CATEGORIES= devel
MASTER_SITES= http://pure-lang.googlecode.com/files/
MAINTAINER= lichray@gmail.com
COMMENT= Pure langauge interface to libffi
LIB_DEPENDS+= pure.7:${PORTSDIR}/lang/pure \
ffi:${PORTSDIR}/devel/libffi
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GCC= 4.2+
USE_GMAKE= yes
PLIST_FILES= lib/pure/ffi.pure \
lib/pure/ffi.so
MAKE_ARGS+= prefix=${PREFIX} \
CPPFLAGS+=-I${LOCALBASE}/include \
LDFLAGS+=-L${LOCALBASE}/lib \
CFLAGS="${CFLAGS}"
PORTEXAMPLES= *
.include <bsd.port.pre.mk>
post-install:
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
.include <bsd.port.post.mk>

2
devel/pure-ffi/distinfo Normal file
View file

@ -0,0 +1,2 @@
SHA256 (pure-ffi-0.12.tar.gz) = 7aa9ce52ddc2154c22317352331afd42741830e3e00a80a7098bb7e155508282
SIZE (pure-ffi-0.12.tar.gz) = 39555

6
devel/pure-ffi/pkg-descr Normal file
View file

@ -0,0 +1,6 @@
This module provides an interface to libffi which enables you to call C
functions from Pure and vice versa. It extends and complements Pure's
built-in C interface in that it also handles C structs and makes Pure
functions callable from C without writing a single line of C code.
WWW: http://docs.pure-lang.googlecode.com/hg/pure-ffi.html