freebsd-ports/devel/mingw32-libffi/Makefile
Akinori MUSHA e790fc308f Man pages were erroneously installed.
Pointed out by:	pointyhat
Feature safe:	yes
2011-12-09 01:03:47 +00:00

38 lines
1 KiB
Makefile

# New ports collection makefile for: mingw32-libffi
# Date created: 5 December 2011
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= libffi
PORTVERSION= 3.0.9
PORTREVISION= 1
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:${PORTSDIR}/devel/${PKGNAMEPREFIX}gcc \
${LOCALBASE}/mingw32/include/stdlib.h:${PORTSDIR}/devel/${PKGNAMEPREFIX}bin-msvcrt
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
PLIST_SUB= PORTVERSION=${PORTVERSION}
post-patch:
${REINPLACE_CMD} -e 's,^INFO_DEPS[ \t]*=,#&,' \
-e '/^SUBDIRS[ \t]*=/s, man$$,,' \
${WRKSRC}/Makefile.in
post-install:
${INSTALL_DATA} \
${PREFIX}/mingw32/lib/libffi-${PORTVERSION}/include/*.h \
${PREFIX}/mingw32/include/
.include <bsd.port.mk>