summaryrefslogtreecommitdiff
path: root/devel/ffcall/Makefile
blob: 0b9fc988d5e8cc2705aecf7c2335d4201c760fa3 (plain)
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
# $NetBSD: Makefile,v 1.24 2008/06/12 02:14:22 joerg Exp $

DISTNAME=	ffcall-1.10
PKGREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	ftp://ftp.santafe.edu/pub/gnu/ \
		http://www.haible.de/bruno/gnu/ \
		${MASTER_SITE_GNUSTEP:=libs/}

MAINTAINER=	adam@NetBSD.org
HOMEPAGE=	http://www.haible.de/bruno/packages-ffcall.html
COMMENT=	Foreign function call libraries

PKG_DESTDIR_SUPPORT=	user-destdir

# the file ${WRKSRC}/avcall/avcall-${MACHINE_ARCH}.c needs to
# be added for additional port support.
ONLY_FOR_PLATFORM=	*-*-alpha *-*-arm *-*-convex *-*-hppa *-*-i386 \
			*-*-ia64 *-*-m68k *-*-m88k *-*-mips *-*-mipsel \
			*-*-mipseb *-*-mips64 *-*-mipsn32 \
			*-*-powerpc *-*-rs6000 \
			*-*-s390 *-*-sparc *-*-sparc64 \
			*-*-x86_64

USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes

CONFIGURE_ARGS+=	--enable-shared

MAKE_FLAGS+=		htmldir=${PREFIX}/share/doc/ffcall

post-patch:
	${CP} ${FILESDIR}/tramp-rs6000-netbsd.s ${WRKSRC}/callback/trampoline_r
	${CP} ${FILESDIR}/vacall-rs6000-netbsd.s ${WRKSRC}/callback/vacall_r

TEST_TARGET=		check

.include "../../mk/bsd.pkg.mk"