Lines 1-8
Link Here
|
1 |
# Created by: Horance Chou <horance@freedom.ie.cycu.edu.tw> |
1 |
# Created by: Horance Chou <horance@freedom.ie.cycu.edu.tw> |
2 |
# $FreeBSD: devel/libffi/Makefile 327724 2013-09-20 17:13:42Z bapt $ |
2 |
# $FreeBSD: head/devel/libffi/Makefile 327724 2013-09-20 17:13:42Z bapt $ |
3 |
|
3 |
|
4 |
PORTNAME= libffi |
4 |
PORTNAME= libffi |
5 |
PORTVERSION= 3.0.13 |
5 |
PORTVERSION= 3.0.13 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= devel |
7 |
CATEGORIES= devel |
7 |
MASTER_SITES= SOURCEWARE |
8 |
MASTER_SITES= SOURCEWARE |
8 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
9 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
Lines 12-41
Link Here
|
12 |
|
13 |
|
13 |
TEST_DEPENDS= runtest:${PORTSDIR}/misc/dejagnu |
14 |
TEST_DEPENDS= runtest:${PORTSDIR}/misc/dejagnu |
14 |
|
15 |
|
|
|
16 |
USES= pathfix pkgconfig |
17 |
USE_LDCONFIG= yes |
18 |
GNU_CONFIGURE= yes |
19 |
|
15 |
OPTIONS_DEFINE= TESTS |
20 |
OPTIONS_DEFINE= TESTS |
16 |
TESTS_DESC= Include tools for test suite |
21 |
TESTS_DESC= Include tools for test suite |
17 |
|
22 |
|
18 |
NO_STAGE= yes |
|
|
19 |
.include <bsd.port.options.mk> |
23 |
.include <bsd.port.options.mk> |
20 |
|
24 |
|
21 |
.if ${PORT_OPTIONS:MTESTS} |
25 |
.if ${PORT_OPTIONS:MTESTS} |
22 |
BUILD_DEPENDS:= ${TEST_DEPENDS} |
26 |
BUILD_DEPENDS:= ${TEST_DEPENDS} |
23 |
.endif |
27 |
.endif |
24 |
|
28 |
|
25 |
GNU_CONFIGURE= yes |
|
|
26 |
USE_LDCONFIG= yes |
27 |
USES= pathfix pkgconfig |
28 |
PLIST_SUB= PORTVERSION=${PORTVERSION} |
29 |
|
30 |
INFO= libffi |
29 |
INFO= libffi |
31 |
|
30 |
PLIST_SUB= PORTVERSION=${PORTVERSION} |
32 |
MAN3= ffi.3 ffi_call.3 ffi_prep_cif.3 ffi_prep_cif_var.3 |
|
|
33 |
|
31 |
|
34 |
post-install: |
32 |
post-install: |
35 |
@${LN} -sf ../lib/libffi-${PORTVERSION}/include/ffi.h \ |
33 |
@${LN} -sf ../lib/libffi-${PORTVERSION}/include/ffi.h \ |
36 |
${PREFIX}/include/ |
34 |
${STAGEDIR}${PREFIX}/include/ |
37 |
@${LN} -sf ../lib/libffi-${PORTVERSION}/include/ffitarget.h \ |
35 |
@${LN} -sf ../lib/libffi-${PORTVERSION}/include/ffitarget.h \ |
38 |
${PREFIX}/include/ |
36 |
${STAGEDIR}${PREFIX}/include/ |
39 |
|
37 |
|
40 |
regression-test: build |
38 |
regression-test: build |
41 |
@cd ${WRKSRC} && ${MAKE} check |
39 |
@cd ${WRKSRC} && ${MAKE} check |