1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/devel/mingw32-libffi/Makefile
Gerald Pfeifer c2a92a1aea Bump PORTREVISIONs of all users of math/mpc that we just updated to
version 1.1.0 (via revision 464079).
2018-03-10 17:46:04 +00:00

38 lines
1.0 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= libffi
PORTVERSION= 3.0.13
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ftp://sourceware.org/pub/libffi/
PKGNAMEPREFIX= mingw32-
MAINTAINER= knu@FreeBSD.org
COMMENT= The libffi library cross-compiled for MinGW32
BUILD_DEPENDS= ${PKGNAMEPREFIX}gcc:devel/${PKGNAMEPREFIX}gcc \
${LOCALBASE}/mingw32/include/stdlib.h:devel/${PKGNAMEPREFIX}bin-msvcrt
SSP_UNSAFE= fails to link
GNU_CONFIGURE= yes
GNU_CONFIGURE_PREFIX= ${PREFIX}/mingw32
CONFIGURE_ARGS= --host="mingw32" --enable-shared
CC= ${PKGNAMEPREFIX}gcc
CFLAGS= -O2 # Override CFLAGS for a cross-build
USES= libtool
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>