2020-10-07 00:03:21 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2020/10/07 00:03:21 jeremy Exp $
|
2013-01-18 17:07:32 +00:00
|
|
|
|
|
|
|
COMMENT = Ruby interface to GSL
|
|
|
|
|
2017-11-04 15:47:52 +00:00
|
|
|
DISTNAME = gsl-2.1.0.3
|
2020-10-07 00:03:21 +00:00
|
|
|
REVISION = 1
|
2013-01-18 17:07:32 +00:00
|
|
|
CATEGORIES = devel
|
|
|
|
|
|
|
|
# GPLv2
|
2019-07-12 20:45:45 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
2013-01-18 17:07:32 +00:00
|
|
|
|
|
|
|
MODULES = lang/ruby
|
|
|
|
|
|
|
|
WANTLIB += gsl gslcblas
|
|
|
|
|
|
|
|
BUILD_DEPENDS = ${RUN_DEPENDS}
|
2015-07-18 21:07:40 +00:00
|
|
|
RUN_DEPENDS = devel/ruby-narray,${MODRUBY_FLAVOR}
|
2013-01-18 17:07:32 +00:00
|
|
|
LIB_DEPENDS = devel/gsl
|
|
|
|
|
|
|
|
CONFIGURE_STYLE =ruby gem ext
|
|
|
|
|
2016-11-04 21:37:14 +00:00
|
|
|
TEST_DEPENDS = ${BUILD_PKGPATH}
|
2015-07-26 03:50:04 +00:00
|
|
|
MODRUBY_TEST = ruby
|
2016-11-04 21:37:14 +00:00
|
|
|
MODRUBY_TEST_TARGET = -I lib -I test \
|
2015-07-26 03:50:04 +00:00
|
|
|
-e 'ARGV.each{|f| require f}' \
|
2016-11-04 21:37:14 +00:00
|
|
|
`find ./test -name '*_test.rb'`
|
2015-07-26 03:50:04 +00:00
|
|
|
|
2020-10-07 00:03:21 +00:00
|
|
|
pre-configure:
|
|
|
|
sed -i 's/^EXTERN /extern /' ${WRKSRC}/ext/gsl_native/{include/*.h,*.c,*.h}
|
|
|
|
|
2013-01-18 17:07:32 +00:00
|
|
|
.include <bsd.port.mk>
|