blob: 017daba631923ea9c694542450ee5b48fce89961 (
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.11 2003/05/11 07:12:49 jmc Exp $
DISTNAME= ffcall-1.8d
PKGNAME= ffcall-1.8.4
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNUSTEP:=libs/}
MAINTAINER= packages@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"
|