ef66b98821
3.0.13 Mar-17-13 Add Meta support. Add missing Moxie bits. Fix stack alignment bug on 32-bit x86. Build fix for m68000 targets. Build fix for soft-float Power targets. Fix the install dir location for some platforms when building with GCC (OS X, Solaris). Fix Cygwin regression.
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.21 2013/04/06 12:41:23 obache Exp $
|
|
#
|
|
|
|
DISTNAME= libffi-3.0.13
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://sourceware.org/pub/libffi/
|
|
|
|
MAINTAINER= asau@inbox.ru
|
|
HOMEPAGE= http://sources.redhat.com/libffi/
|
|
COMMENT= Foreign function interface
|
|
LICENSE= mit
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --includedir=${PREFIX}/include
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= pkg-config
|
|
USE_LANGUAGES= c c++
|
|
INFO_FILES= yes
|
|
|
|
PKGCONFIG_OVERRIDE+= libffi.pc.in
|
|
|
|
.include "../../mk/compiler.mk"
|
|
# The Compaq C frontend groks .s, but not .S. Assemble osf.S directly w/ as(1).
|
|
pre-build:
|
|
.if !empty(PKGSRC_COMPILER:Mccc)
|
|
cd ${WRKSRC} && ./libtool --mode=compile --tag=CC as -I. -Iinclude -o src/alpha/osf.lo -c src/alpha/osf.S
|
|
.endif
|
|
|
|
# Since we don't have "TEST_DEPENDS", we implement it as a hack:
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
|
|
TEST_TARGET= check
|
|
TEST_ENV=
|
|
BUILD_DEPENDS+= dejagnu-[0-9]*:../../devel/dejagnu
|
|
.endif
|
|
|
|
# patch-aj uses m68k_sync_icache(2)
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-*-m68k)
|
|
LIBS+= -lm68k
|
|
.endif
|
|
|
|
# fix http://gnats.netbsd.org/42865
|
|
.if !empty(MACHINE_PLATFORM:MSunOS-*-i386) && !empty(CC_VERSION:Mgcc-[23]*)
|
|
CPPFLAGS += -D__PIC__
|
|
.endif
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|