2013-03-11 06:50:00 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2013/03/11 10:50:29 espie Exp $
|
2010-12-20 13:04:16 -05:00
|
|
|
|
|
|
|
COMMENT = cross-platform dynamic library loading for ruby
|
|
|
|
|
2013-03-08 05:41:26 -05:00
|
|
|
DISTNAME = ffi-1.2.0
|
2010-12-20 13:04:16 -05:00
|
|
|
CATEGORIES = devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://github.com/ffi/ffi
|
|
|
|
|
|
|
|
MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
|
|
|
|
|
|
|
|
# LPGLv3
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
|
|
|
MODULES = lang/ruby
|
|
|
|
|
2010-12-27 13:58:40 -05:00
|
|
|
BUILD_DEPENDS = ${RUN_DEPENDS}
|
|
|
|
RUN_DEPENDS = ${MODRUBY_RAKE_DEPENDS}
|
|
|
|
|
2011-01-02 08:20:53 -05:00
|
|
|
WANTLIB = ffi
|
|
|
|
|
|
|
|
LIB_DEPENDS = devel/libffi
|
|
|
|
|
2010-12-20 13:04:16 -05:00
|
|
|
CONFIGURE_STYLE = ruby gem ext
|
|
|
|
|
2013-03-08 05:41:26 -05:00
|
|
|
post-extract:
|
|
|
|
rm ${WRKSRC}/ext/ffi_c/LongDouble.c.orig
|
|
|
|
|
2010-12-20 13:04:16 -05:00
|
|
|
post-install:
|
|
|
|
rm -r ${GEM_ABS_PATH}/gems/${DISTNAME}/ext
|
|
|
|
|
2013-03-11 06:50:00 -04:00
|
|
|
# Doesn't ship with libtest directory, which is necessary for test
|
|
|
|
#TEST_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH}
|
|
|
|
#MODRUBY_TEST = rspec2
|
|
|
|
#MODRUBY_TEST_ENV = RUBYLIB=$$(dirname `${GEM} which ffi.rb`) \
|
2011-11-17 11:08:00 -05:00
|
|
|
# RUBYOPT=-rffi
|
2013-03-11 06:50:00 -04:00
|
|
|
#MODRUBY_TEST_TARGET = spec/ffi/*_spec.rb
|
2010-12-20 13:04:16 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|