blob: 87baf15943adfefbb5424fd6633fc389a308401b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Created by: Horance Chou <horance@freedom.ie.cycu.edu.tw>
# $FreeBSD$
PORTNAME= libffi
PORTVERSION= 3.0.11
CATEGORIES= devel
MASTER_SITES= ftp://sourceware.org/pub/libffi/ \
http://www.mirrorservice.org/sites/sourceware.org/pub/libffi/
MAINTAINER= ports@FreeBSD.org
COMMENT= Foreign Function Interface
OPTIONS_DEFINE= TEST
TEST_DESC= Run regression test suite
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTEST}
BUILD_DEPENDS= runtest:${PORTSDIR}/misc/dejagnu
.endif
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_GNOME= gnomehack
USE_PKGCONFIG= build
PLIST_SUB= PORTVERSION=${PORTVERSION}
INFO= libffi
MAN3= ffi.3 ffi_call.3 ffi_prep_cif.3 ffi_prep_cif_var.3
.if ${PORT_OPTIONS:MTEST}
post-build:
@cd ${WRKSRC} && ${GMAKE} check
.endif
post-install:
@${LN} -sf ../lib/libffi-${PORTVERSION}/include/ffi.h ${PREFIX}/include/
@${LN} -sf ../lib/libffi-${PORTVERSION}/include/ffitarget.h ${PREFIX}/include/
.include <bsd.port.mk>
|