diff options
author | jmc <jmc@pkgsrc.org> | 2003-05-11 07:12:49 +0000 |
---|---|---|
committer | jmc <jmc@pkgsrc.org> | 2003-05-11 07:12:49 +0000 |
commit | 17e95842a78bd1bfe15e4f9b7220dfa4ea29624e (patch) | |
tree | bae6ac7e46c715377bcc8e55c4f86716afee68b5 /devel/ffcall/Makefile | |
parent | a2a3feb0bb4b9a834e79649348114906e6a8cf34 (diff) | |
download | pkgsrc-17e95842a78bd1bfe15e4f9b7220dfa4ea29624e.tar.gz |
Bump PKGREVISION and add option to make shared libraries out of avcall
and callback. This is needed for GNUStep as it links against these libraries
with it's shared lib. Only tested/enabled on powerpc right now as it's the
only platform I've seen stumble across this (x86 isn't affected due to
differing reloc type restrictions in code/libraries).
Diffstat (limited to 'devel/ffcall/Makefile')
-rw-r--r-- | devel/ffcall/Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/devel/ffcall/Makefile b/devel/ffcall/Makefile index 2ec64502729..017daba6319 100644 --- a/devel/ffcall/Makefile +++ b/devel/ffcall/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.10 2003/03/06 23:50:51 jmc Exp $ +# $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/} @@ -16,6 +17,21 @@ ONLY_FOR_PLATFORM= *-*-alpha *-*-arm *-*-i386 *-*-m68k *-*-sparc *-*-sparc64 *-* 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 |