pkgsrc/lang/ruby/buildlink3.mk

38 lines
1,007 B
Makefile
Raw Normal View History

# $NetBSD: buildlink3.mk,v 1.16 2012/05/07 01:53:42 dholland Exp $
BUILDLINK_TREE+= ${RUBY_BASE}
.if !defined(RUBY_BUILDLINK3_MK)
RUBY_BUILDLINK3_MK:=
.if !defined(_RUBYVERSION_MK)
.include "../../lang/ruby/rubyversion.mk"
.endif
2011-11-08 16:19:01 +01:00
BUILDLINK_API_DEPENDS.${RUBY_BASE}?= ${RUBY_BASE}>=${RUBY_VERSION}
BUILDLINK_ABI_DEPENDS.${RUBY_BASE}+= ${RUBY_BASE}>=${RUBY_ABI_VERSION}
BUILDLINK_PKGSRCDIR.${RUBY_BASE}?= ../../lang/${RUBY_BASE}
BUILDLINK_FILES.${RUBY_BASE}+= lib/libruby${RUBY_VER}.*
BUILDLINK_FILES.${RUBY_BASE}+= lib/ruby/${RUBY_VER_DIR}/${RUBY_ARCH}/*.h
BUILDLINK_TARGETS+= buildlink-bin-ruby
buildlink-bin-ruby:
${RUN} \
f=${BUILDLINK_PREFIX.${RUBY_BASE}:Q}"/bin/ruby${RUBY_VER}"; \
if ${TEST} -f $$f; then \
${LN} -s $$f ${BUILDLINK_DIR}/bin/ruby; \
fi
.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"
.endif # RUBY_BUILDLINK3_MK
BUILDLINK_TREE+= -${RUBY_BASE}