blob: 53ac5fde6b2e6cdcacd3daa264680e4c4e2b57bc (
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
39
40
41
42
43
44
45
|
# $NetBSD: Makefile,v 1.14 2003/07/21 16:43:20 martti Exp $
DISTNAME= ffcall-1.8d
PKGNAME= ffcall-1.8.4
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNUSTEP:=libs/}
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.haible.de/bruno/packages-ffcall.html
COMMENT= Foreign function call libraries
# the file ${WRKDIR}/ffcall-1.8/avcall/avcall-${MACHINE_ARCH}.c needs to
# be added for additional port support.
ONLY_FOR_PLATFORM= *-*-alpha *-*-arm *-*-i386 *-*-m68k *-*-sparc *-*-sparc64 *-*-powerpc
GNU_CONFIGURE= yes
USE_BUILDLINK2= yes
.include "../../mk/bsd.prefs.mk"
# Gnustep requires this by linking ffcall libs into libgnustep-base.so
# Only tested on powerpc.
.if (${MACHINE_ARCH} == "powerpc" && ${OPSYS} == "NetBSD")
CONFIGURE_ARGS+= --enable-shared
PLIST_SRC+= PLIST.shared
post-install:
${LN} -sf ../lib/libavcall.so.0.0 ${PREFIX}/lib/libavcall.so.0
${LN} -sf ../lib/libavcall.so.0.0 ${PREFIX}/lib/libavcall.so
${LN} -sf ../lib/libcallback.so.0.0 ${PREFIX}/lib/libcallback.so.0
${LN} -sf ../lib/libcallback.so.0.0 ${PREFIX}/lib/libcallback.so
.endif
post-patch:
${CP} files/tramp-rs6000-netbsd.s ${WRKSRC}/callback/trampoline_r
${CP} files/vacall-rs6000-netbsd.s ${WRKSRC}/callback/vacall_r
#
# Run the supplied tests to sanity check everything
#
post-build:
cd ${WRKSRC} && ${MAKE} check
.include "../../mk/bsd.pkg.mk"
|