blob: e6c04189e714c690a7295ca2886e81e22d567891 (
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
42
43
44
45
46
|
PORTNAME= libffi
PORTVERSION= 3.0.13
PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= ftp://sourceware.org/pub/libffi/
PKGNAMEPREFIX= mingw32-
MAINTAINER= ports@FreeBSD.org
COMMENT= The libffi library cross-compiled for MinGW32
WWW= http://sources.redhat.com/libffi/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
DEPRECATED= Last upstream release was in 2014 and mingw32 project is defunct
EXPIRATION_DATE= 2023-11-20
BUILD_DEPENDS= ${PKGNAMEPREFIX}gcc:devel/${PKGNAMEPREFIX}gcc \
${LOCALBASE}/mingw32/include/stdlib.h:devel/${PKGNAMEPREFIX}bin-msvcrt
USES= cpe libtool
CPE_VENDOR= ${PORTNAME}_project
GNU_CONFIGURE= yes
GNU_CONFIGURE_PREFIX= ${PREFIX}/mingw32
CONFIGURE_ARGS= --host="mingw32" --enable-shared
CFLAGS= -O2 # Override CFLAGS for a cross-build
SSP_UNSAFE= fails to link
CC= ${PKGNAMEPREFIX}gcc
PLIST_SUB= PORTVERSION=${PORTVERSION}
post-patch:
${REINPLACE_CMD} -e 's,^INFO_DEPS[ \t]*=,#&,' \
-e '/^SUBDIRS[ \t]*=/s, man$$,,' \
${WRKSRC}/Makefile.in
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/mingw32/include
${INSTALL_DATA} \
${STAGEDIR}${PREFIX}/mingw32/lib/libffi-${PORTVERSION}/include/*.h \
${STAGEDIR}${PREFIX}/mingw32/include/
.include <bsd.port.mk>
|