- add missing dependencies
- extend platform ifdefs to fix build on mip64(el), and several others too
This commit is contained in:
parent
f5a0b77fbe
commit
472039e4f4
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/12/20 18:04:16 jeremy Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2010/12/27 18:58:40 jasper Exp $
|
||||
|
||||
COMMENT = cross-platform dynamic library loading for ruby
|
||||
|
||||
DISTNAME = ffi-0.6.3
|
||||
REVISION = 0
|
||||
CATEGORIES = devel
|
||||
|
||||
HOMEPAGE= http://github.com/ffi/ffi
|
||||
@ -17,6 +18,9 @@ PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MODULES = lang/ruby
|
||||
|
||||
BUILD_DEPENDS = ${RUN_DEPENDS}
|
||||
RUN_DEPENDS = ${MODRUBY_RAKE_DEPENDS}
|
||||
|
||||
CONFIGURE_STYLE = ruby gem ext
|
||||
|
||||
post-install:
|
||||
|
16
devel/ruby-ffi/patches/patch-ext_ffi_c_Platform_c
Normal file
16
devel/ruby-ffi/patches/patch-ext_ffi_c_Platform_c
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-ext_ffi_c_Platform_c,v 1.1 2010/12/27 18:58:40 jasper Exp $
|
||||
--- ext/ffi_c/Platform.c.orig Mon Dec 27 17:18:02 2010
|
||||
+++ ext/ffi_c/Platform.c Mon Dec 27 17:20:35 2010
|
||||
@@ -24,6 +24,12 @@ static VALUE PlatformModule = Qnil;
|
||||
#define CPU "sparc"
|
||||
#elif defined(__sparcv9__)
|
||||
#define CPU "sparcv9"
|
||||
+#elif defined(__arm__)
|
||||
+#define CPU "arm"
|
||||
+#elif defined(__mips__)
|
||||
+#define CPU "mips"
|
||||
+#elif defined(__hppa__)
|
||||
+#define CPU "hppa"
|
||||
#else
|
||||
#error "Unknown cpu type"
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user