summaryrefslogtreecommitdiff
path: root/devel/ffcall
diff options
context:
space:
mode:
authorjmc <jmc@pkgsrc.org>2003-05-11 07:12:49 +0000
committerjmc <jmc@pkgsrc.org>2003-05-11 07:12:49 +0000
commit17e95842a78bd1bfe15e4f9b7220dfa4ea29624e (patch)
treebae6ac7e46c715377bcc8e55c4f86716afee68b5 /devel/ffcall
parenta2a3feb0bb4b9a834e79649348114906e6a8cf34 (diff)
downloadpkgsrc-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')
-rw-r--r--devel/ffcall/Makefile18
-rw-r--r--devel/ffcall/PLIST.shared7
-rw-r--r--devel/ffcall/buildlink2.mk4
3 files changed, 26 insertions, 3 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
diff --git a/devel/ffcall/PLIST.shared b/devel/ffcall/PLIST.shared
new file mode 100644
index 00000000000..05954d9bf1c
--- /dev/null
+++ b/devel/ffcall/PLIST.shared
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST.shared,v 1.1 2003/05/11 07:12:49 jmc Exp $
+lib/libavcall.so.0.0
+lib/libavcall.so.0
+lib/libavcall.so
+lib/libcallback.so.0.0
+lib/libcallback.so.0
+lib/libcallback.so
diff --git a/devel/ffcall/buildlink2.mk b/devel/ffcall/buildlink2.mk
index 1d040dd1f15..c30008d12d8 100644
--- a/devel/ffcall/buildlink2.mk
+++ b/devel/ffcall/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.2 2002/09/27 10:36:07 rh Exp $
+# $NetBSD: buildlink2.mk,v 1.3 2003/05/11 07:12:50 jmc Exp $
#
# This Makefile fragment is included by packages that use ffcall.
#
@@ -9,7 +9,7 @@
FFCALL_BUILDLINK2_MK= # defined
BUILDLINK_PACKAGES+= ffcall
-BUILDLINK_DEPENDS.ffcall?= ffcall>=1.8.4
+BUILDLINK_DEPENDS.ffcall?= ffcall>=1.8.4nb1
BUILDLINK_PKGSRCDIR.ffcall?= ../../devel/ffcall
EVAL_PREFIX+= BUILDLINK_PREFIX.ffcall=ffcall