2014-03-13 18:06:42 +01:00
|
|
|
# $NetBSD: buildlink3.mk,v 1.18 2014/03/13 17:06:42 taca Exp $
|
2004-11-27 14:57:20 +01:00
|
|
|
|
2009-03-20 20:23:50 +01:00
|
|
|
BUILDLINK_TREE+= ${RUBY_BASE}
|
2004-11-27 14:57:20 +01:00
|
|
|
|
2009-03-20 20:23:50 +01:00
|
|
|
.if !defined(RUBY_BUILDLINK3_MK)
|
|
|
|
RUBY_BUILDLINK3_MK:=
|
2004-11-27 14:57:20 +01:00
|
|
|
|
2009-05-16 09:22:01 +02:00
|
|
|
.if !defined(_RUBYVERSION_MK)
|
|
|
|
.include "../../lang/ruby/rubyversion.mk"
|
|
|
|
.endif
|
|
|
|
|
2012-05-07 04:45:47 +02:00
|
|
|
BUILDLINK_API_DEPENDS.${RUBY_BASE}+= ${RUBY_BASE}>=${RUBY_VERSION}
|
2012-05-07 03:53:12 +02:00
|
|
|
BUILDLINK_ABI_DEPENDS.${RUBY_BASE}+= ${RUBY_BASE}>=${RUBY_ABI_VERSION}
|
2014-03-13 18:06:42 +01:00
|
|
|
BUILDLINK_PKGSRCDIR.${RUBY_BASE}?= ${RUBY_SRCDIR}
|
|
|
|
BUILDLINK_FILES.${RUBY_BASE}+= lib/libruby${RUBY_SUFFIX}.*
|
2005-03-06 17:44:04 +01:00
|
|
|
BUILDLINK_FILES.${RUBY_BASE}+= lib/ruby/${RUBY_VER_DIR}/${RUBY_ARCH}/*.h
|
2004-11-27 14:57:20 +01:00
|
|
|
|
2005-10-16 17:18:02 +02:00
|
|
|
BUILDLINK_TARGETS+= buildlink-bin-ruby
|
|
|
|
|
|
|
|
buildlink-bin-ruby:
|
2009-05-16 09:22:01 +02:00
|
|
|
${RUN} \
|
2014-03-13 18:06:42 +01:00
|
|
|
f=${BUILDLINK_PREFIX.${RUBY_BASE}:Q}"/bin/ruby${RUBY_SUFFIX}"; \
|
2005-10-16 17:18:02 +02:00
|
|
|
if ${TEST} -f $$f; then \
|
|
|
|
${LN} -s $$f ${BUILDLINK_DIR}/bin/ruby; \
|
|
|
|
fi
|
2012-03-21 16:40:12 +01:00
|
|
|
|
|
|
|
.if empty(RUBY_USE_PTHREAD:M[nN][oO])
|
|
|
|
PTHREAD_OPTS+= native
|
|
|
|
PTHREAD_AUTO_VARS= yes
|
|
|
|
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
|
|
|
2009-03-20 20:23:50 +01:00
|
|
|
.endif # RUBY_BUILDLINK3_MK
|
2005-10-16 17:18:02 +02:00
|
|
|
|
2009-03-20 20:23:50 +01:00
|
|
|
BUILDLINK_TREE+= -${RUBY_BASE}
|