blob: 3c0c9121ca3f2d69f762f76b646777a4cf7b3958 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# $NetBSD: buildlink3.mk,v 1.12 2010/09/10 03:20:31 taca Exp $
BUILDLINK_TREE+= ${RUBY_BASE}
.if !defined(RUBY_BUILDLINK3_MK)
RUBY_BUILDLINK3_MK:=
.if !defined(_RUBYVERSION_MK)
.include "../../lang/ruby/rubyversion.mk"
.endif
BUILDLINK_API_DEPENDS.${RUBY_BASE}?= ${RUBY_BASE}>=${RUBY_REQD}
BUILDLINK_ABI_DEPENDS.${RUBY_BASE}?= ${RUBY_BASE}>=${RUBY_API_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
.endif # RUBY_BUILDLINK3_MK
BUILDLINK_TREE+= -${RUBY_BASE}
|