| @@ -1,33 +1,37 @@ | | | @@ -1,33 +1,37 @@ |
1 | # $NetBSD: Makefile,v 1.29 2016/11/03 11:40:28 maya Exp $ | | 1 | # $NetBSD: Makefile,v 1.30 2017/01/28 15:33:25 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= libffi-3.2.1 | | 3 | DISTNAME= libffi-3.2.1 |
4 | PKGREVISION= 2 | | 4 | PKGREVISION= 2 |
5 | CATEGORIES= devel | | 5 | CATEGORIES= devel |
6 | MASTER_SITES= ftp://sourceware.org/pub/libffi/ | | 6 | MASTER_SITES= ftp://sourceware.org/pub/libffi/ |
7 | | | 7 | |
8 | MAINTAINER= asau@inbox.ru | | 8 | MAINTAINER= asau@inbox.ru |
9 | HOMEPAGE= https://www.sourceware.org/libffi/ | | 9 | HOMEPAGE= https://www.sourceware.org/libffi/ |
10 | COMMENT= Foreign function interface | | 10 | COMMENT= Foreign function interface |
11 | LICENSE= mit | | 11 | LICENSE= mit |
12 | | | 12 | |
| | | 13 | BUILD_DEPENDS+= dejagnu-[0-9]*:../../devel/dejagnu |
| | | 14 | |
13 | USE_LANGUAGES= c c++ | | 15 | USE_LANGUAGES= c c++ |
14 | USE_LIBTOOL= yes | | 16 | USE_LIBTOOL= yes |
15 | USE_TOOLS+= pkg-config | | 17 | USE_TOOLS+= pkg-config |
16 | GNU_CONFIGURE= yes | | 18 | GNU_CONFIGURE= yes |
17 | CONFIGURE_ARGS= --includedir=${PREFIX}/include | | 19 | CONFIGURE_ARGS= --includedir=${PREFIX}/include |
18 | PKGCONFIG_OVERRIDE+= libffi.pc.in | | 20 | PKGCONFIG_OVERRIDE+= libffi.pc.in |
19 | INFO_FILES= yes | | 21 | INFO_FILES= yes |
20 | | | 22 | |
| | | 23 | TEST_TARGET= check |
| | | 24 | |
21 | .include "../../mk/compiler.mk" | | 25 | .include "../../mk/compiler.mk" |
22 | # The Compaq C frontend groks .s, but not .S. Assemble osf.S directly w/ as(1). | | 26 | # The Compaq C frontend groks .s, but not .S. Assemble osf.S directly w/ as(1). |
23 | pre-build: | | 27 | pre-build: |
24 | .if !empty(PKGSRC_COMPILER:Mccc) | | 28 | .if !empty(PKGSRC_COMPILER:Mccc) |
25 | cd ${WRKSRC} && ./libtool --mode=compile --tag=CC as -I. -Iinclude -o src/alpha/osf.lo -c src/alpha/osf.S | | 29 | cd ${WRKSRC} && ./libtool --mode=compile --tag=CC as -I. -Iinclude -o src/alpha/osf.lo -c src/alpha/osf.S |
26 | .endif | | 30 | .endif |
27 | | | 31 | |
28 | # Since we don't have "TEST_DEPENDS", we implement it as a hack: | | 32 | # Since we don't have "TEST_DEPENDS", we implement it as a hack: |
29 | .include "../../mk/bsd.prefs.mk" | | 33 | .include "../../mk/bsd.prefs.mk" |
30 | | | 34 | |
31 | .if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss]) | | 35 | .if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss]) |
32 | TEST_TARGET= check | | 36 | TEST_TARGET= check |
33 | TEST_ENV= # empty? | | 37 | TEST_ENV= # empty? |