Annotation of pkgsrc/lang/ruby/rubyversion.mk, revision 1.67
1.67 ! joerg 1: # $NetBSD: rubyversion.mk,v 1.66 2011/12/24 23:14:15 joerg Exp $
1.64 taca 2: #
3:
4: # This file determines which Ruby version is used as a dependency for
5: # a package.
6: #
7: #
8: # === User-settable variables ===
9: #
10: # RUBY_VERSION_DEFAULT
11: # The preferered Ruby version to use.
12: #
13: # Possible values: 18 192 193
14: # Compatible values: 1.9(= 192) 19(= 192)
15: # Default: 192
16: #
17: # RUBY_BUILD_RDOC
18: # Build rdoc of this package and so that install formated
19: # documentation. It is also used in each package.
20: #
21: # Possible values: Yes No
22: # Default: Yes
23: #
24: # RUBY_BUILD_RI
25: # Build ri format of this package so that ri command would be
26: # display class/module definitions. It is also used in each package.
27: #
28: # Possible values: Yes No
29: # Default: Yes
30: #
31: #
32: # === Package-settable variables ===
33: #
34: # RUBY_VERSION_SUPPORTED
35: # The Ruby versions that are acceptable for the package.
36: #
37: # Possible values: 18 192 193
38: # Compatible values: 19 (= 192)
39: # Default: 192
40: #
41: # RUBY_VERSION_REQD
1.66 joerg 42: # The Ruby versions force to build (for pbulk).
1.64 taca 43: #
44: # RUBY_NOVERSION
45: # If "Yes", the package dosen't depend on any version of Ruby, such
46: # as editing mode for emacs. In this case, package's name would begin
47: # with "ruby-". Otherwise, the package's name is begin with
48: # ${RUBY_PKGPREFIX}; "ruby18", "ruby19" and "ruby193".
49: #
50: # Possible values: Yes No
51: # Default: No
52: #
53: # RUBY_DYNAMIC_DIRS
54: # Build dynamic PLIST from directories.
55: #
56: # Default: (empty)
57: #
58: # RUBY_ENCODING_ARG
59: #
60: # Optional encoding argument for shbang line.
61: #
62: # Default: (empty)
63: #
64: # === Defined variables ===
65: #
66: # RUBY_VER
67: # Really selected version of ruby. For compatibility, RUBY_VER
68: # would not set to 192 but 19.
69: #
70: # Possible values: 18 19 193
71: #
72: # Use this variable in pkgsrc's Makefile
73: #
74: # RUBY_PKGPREFIX
75: # Prefix part for ruby based packages. It is recommended that to
76: # use RUBY_PKGPREFIX with ruby related packages since you can supply
77: # different binary packages as each version of Ruby.
78: #
79: # RUBY_ABI_VERSION
80: # Ruby's ABI version.
81: #
82: # RUBY_DLEXT
83: # Suffix of extention library.
84: #
85: # RUBY_SLEXT
86: # Suffix of shared library.
87: #
88: # RUBY
89: # Full path of ruby command.
90: #
91: # RDOC
92: # Full path of rdoc command.
93: #
94: # RUBY_NAME
95: # Name of ruby command.
96: #
97: # RUBYGEM_NAME
98: # Name of gem command.
99: #
100: # RAKE_NAME
101: # Name of rake command.
102: #
103: # RUBY_SUFFIX
104: # Extra string for each ruby commands; ruby, irb and so on.
105: #
106: # RUBY_VERSION
107: # Version of real Ruby's version excluding patchlevel.
108: #
109: # RUBY_VERSION_FULL
110: # Version of Ruby including patchlevel.
111: #
112: # RUBY_BASE
113: # Name of ruby base package's name.
114: #
115: # RUBY_SRCDIR
116: # Directory of base ruby package.
117: #
118: # RUBY_SHLIBVER
119: # Suffix of libruby shared library's version.
120: #
121: # RUBY_SHLIB
122: # String after libruby shared library.
123: #
124: # RUBY_SHLIBALIAS
125: # Symblic link with libruby shared library with major version only.
126: #
127: # RUBY_STATICLIB
128: # Name of libruby static library.
129: #
130: # RUBY_VER_DIR
131: # Name of version directory under each library (and more) directories.
132: #
133: # RUBY_ARCH
134: # Name of architecture-dependent directory name.
135: #
136: # RUBY_INC
137: # machine independent include directory of ruby.
138: #
139: # RUBY_ARCHINC
140: # machine dependent include directory of ruby.
141: #
142: # RUBY_LIB_BASE
143: # common relative path of ruby's library.
144: #
145: # RUBY_LIB
146: # version specific relative path of ruby's library.
147: #
148: # RUBY_ARCHLIB
149: # version specific and machine dependent relative path of ruby's library.
150: #
151: # RUBY_SITELIB_BASE
152: # common site local directory.
153: #
154: # RUBY_SITELIB
155: # version specific site local directory.
156: #
157: # RUBY_SITEARCHLIB
158: # version specific and machine dependent site local directory.
159: #
160: # RUBY_VENDORLIB_BASE
161: # common vendor (pkgsrc) directory.
162: #
163: # RUBY_VENDORLIB
164: # version specific vendor local directory.
165: #
166: # RUBY_VENDORARCHLIB
167: # version specific and machine dependent vendor local directory.
168: #
169: # RUBY_DOC
170: # version specific document direcotry.
171: #
172: # RUBY_EG
173: # version specific examples direcotry.
174: #
175: # RUBY_GEM_BASE
176: # common GEM directory.
177: #
178: # GEM_HOME
179: # version specific GEM directory.
180: #
181: # RUBY_RIDIR
182: # common ri directory.
183: #
184: # RUBY_BASERIDIR
185: # version specific ri directory.
186: #
187: # RUBY_SYSRIDIR
188: # version specific system ri directory.
189: #
190: # RUBY_SITERIDIR
191: # version specific site ri directory.
192: #
193: # Keywords: ruby
1.1 taca 194: #
195:
1.18 rillig 196: .if !defined(_RUBYVERSION_MK)
1.1 taca 197: _RUBYVERSION_MK= # defined
198:
199: .include "../../mk/bsd.prefs.mk"
200:
201: # current supported Ruby's version
1.40 taca 202: RUBY18_VERSION= 1.8.7
1.49 taca 203: RUBY19_VERSION= 1.9.2
1.64 taca 204: RUBY193_VERSION= 1.9.3
1.23 taca 205:
1.32 taca 206: # patch
1.61 taca 207: RUBY18_PATCHLEVEL= pl352
208: RUBY19_PATCHLEVEL= pl290
1.64 taca 209: RUBY193_PATCHLEVEL= p0
1.49 taca 210:
1.59 taca 211: # current API compatible version; used for version of shared library
1.49 taca 212: RUBY18_API_VERSION= 1.8.7
213: RUBY19_API_VERSION= 1.9.1
1.64 taca 214: RUBY193_API_VERSION= 1.9.1
1.1 taca 215:
216: #
1.64 taca 217: RUBY_VERSION_DEFAULT?= 19
218:
219: RUBY_VERSION_SUPPORTED?= 18 192 193
220: RUBY_VER?= ${RUBY_VERSION_DEFAULT}
221:
222: # If package support only one version, use it.
223: .if ${RUBY_VERSION_SUPPORTED:[\#]} == 1
224: RUBY_VER= ${RUBY_VERSION_SUPPORTED}
225: .endif
1.1 taca 226:
1.52 joerg 227: .if defined(RUBY_VERSION_REQD)
1.64 taca 228: . for rv in ${RUBY_VERSION_SUPPORTED}
229: . if ${rv} == ${RUBY_VERSION_REQD}
230: RUBY_VER= ${rv}
1.52 joerg 231: . endif
1.64 taca 232: . endfor
1.1 taca 233: .endif
1.29 taca 234:
1.67 ! joerg 235: # For backward compatibility
! 236: .if ${RUBY_VER} == "1.9" || ${RUBY_VER} == "192"
! 237: RUBY_VER= 19
! 238: .elif ${RUBY_VER} == "1.8"
! 239: RUBY_VER= 18
! 240: .endif
! 241:
1.64 taca 242: .if ${RUBY_VER} == "18"
243: RUBY_VERSION= ${RUBY18_VERSION}
244: RUBY_VERSION_FULL= ${RUBY_VERSION}${RUBY_PATCHLEVEL:S/pl/./}
245: RUBY_ABI_VERSION= ${RUBY18_API_VERSION}
246: .elif ${RUBY_VER} == "19"
247: RUBY_VERSION= ${RUBY19_VERSION}
248: RUBY_VERSION_FULL= ${RUBY_VERSION}${RUBY_PATCHLEVEL}
1.59 taca 249: RUBY_ABI_VERSION= ${RUBY19_API_VERSION}
1.64 taca 250: .elif ${RUBY_VER} == "193"
251: RUBY_VERSION= ${RUBY193_VERSION}
252: RUBY_VERSION_FULL= ${RUBY_VERSION}${RUBY_PATCHLEVEL}
253: RUBY_ABI_VERSION= ${RUBY_VERSION}
254: .else
255: PKG_FAIL_REASON+= "Unknown Ruby version specified: ${RUBY_VER}."
1.32 taca 256: .endif
1.1 taca 257:
1.64 taca 258: RUBY_PATCHLEVEL= ${RUBY${RUBY_VER}_PATCHLEVEL}
259: RUBY_API_VERSION= ${RUBY${RUBY_VER}_API_VERSION}
260:
1.60 wiz 261: # Variable assignment for multi-ruby packages
1.64 taca 262: MULTI+= RUBY_VER=${RUBY_VERS:U${RUBY_VERSION_DEFAULT}}
1.4 taca 263:
1.1 taca 264: # RUBY_NOVERSION should be set to "Yes" if the package dosen't depend on
265: # any specific version of ruby command. In this case, package's
266: # name begin with "ruby-".
267: # If RUBY_NOVERSION is "No" (default), the package's name is begin
1.16 taca 268: # with ${RUBY_NAME}; "ruby18", "ruby19", and so on.
1.1 taca 269: #
1.53 taca 270: # It also affects to RUBY_DOC, RUBY_EG...
1.1 taca 271: #
272: RUBY_NOVERSION?= No
273:
1.29 taca 274: # _RUBY_VER_MAJOR, _RUBY_VER_MINOR, _RUBY_VER_TEENY and _RUBY_PATCHLEVEL
275: # is defined from version of Ruby. It should not be used in packages'
276: # Makefile.
277: #
1.64 taca 278: _RUBY_VER_MAJOR= ${RUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/}
279: _RUBY_VER_MINOR= ${RUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/}
280: _RUBY_VER_TEENY= ${RUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\3/}
1.1 taca 281:
1.64 taca 282: _RUBY_API_MAJOR= ${RUBY_API_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1\2/}
283: _RUBY_API_MINOR= ${RUBY_API_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\3/}
1.1 taca 284:
1.64 taca 285: RUBY_SUFFIX= ${RUBY_VER}
1.49 taca 286:
1.64 taca 287: RUBY_NAME= ruby${RUBY_SUFFIX}
288: RUBYGEM_NAME= gem${RUBY_SUFFIX}
289: RAKE_NAME= rake${RUBY_SUFFIX}
1.1 taca 290:
1.49 taca 291: RUBY_ENCODING_ARG?=
292:
1.10 taca 293: RUBY_BASE= ruby${RUBY_VER}-base
294:
1.1 taca 295: RUBY_PKGPREFIX?= ${RUBY_NAME}
296:
1.64 taca 297: .if ${RUBY_VER} == "18" || ${RUBY_VER} == "19"
298: RUBY_VER_DIR= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}
299: .else
300: RUBY_VER_DIR= ${RUBY_VERSION}
1.1 taca 301: .endif
302:
303: .if empty(RUBY_NOVERSION:M[nN][oO])
304: RUBY_SUFFIX=
305: RUBY_NAME= ruby
306: .endif
307:
1.64 taca 308: RUBY_BUILD_RDOC?= Yes
309: RUBY_BUILD_RI?= Yes
1.49 taca 310:
1.15 taca 311: RUBY?= ${PREFIX}/bin/${RUBY_NAME}
312: RDOC?= ${PREFIX}/bin/rdoc${RUBY_VER}
1.1 taca 313:
314: RUBY_ARCH?= ${LOWER_ARCH}-${LOWER_OPSYS}${APPEND_ELF}${LOWER_OPSYS_VERSUFFIX}
315:
316: #
1.53 taca 317: # Ruby shared and static library version handling.
1.10 taca 318: #
1.49 taca 319: RUBY_SHLIBVER?= ${RUBY_API_VERSION}
1.53 taca 320: RUBY_SHLIB?= ${RUBY_VER}.${RUBY_SLEXT}.${RUBY_SHLIBVER}
321: RUBY_SHLIBALIAS?= @comment
322: RUBY_STATICLIB?= ${RUBY_VER}-static.a
1.10 taca 323:
324: .if ${OPSYS} == "NetBSD" || ${OPSYS} == "Interix"
1.64 taca 325: RUBY_SHLIBVER= ${_RUBY_API_MAJOR}.${_RUBY_API_MINOR}
326: _RUBY_SHLIBALIAS= ${RUBY_VER}.${RUBY_SLEXT}.${_RUBY_API_MAJOR}
1.12 jlam 327: .elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
328: RUBY_SHLIBVER= ${RUBY_VER}
1.10 taca 329: .elif ${OPSYS} == "OpenBSD"
1.64 taca 330: RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}${_RUBY_API_MINOR}
1.53 taca 331: .elif ${OPSYS} == "Darwin"
332: RUBY_SHLIB= ${RUBY_VER}.${RUBY_SHLIBVER}.${RUBY_SLEXT}
333: .if ${RUBY_VER} == "18"
334: _RUBY_SHLIBALIAS= ${RUBY_VER}.${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}.${RUBY_SLEXT}
335: .else
336: _RUBY_SHLIBALIAS= .${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}.${RUBY_SLEXT}
337: RUBY_STATICLIB= ${RUBY_VER}.${RUBY_API_VERSION}-static.a
338: .endif
1.10 taca 339: .elif ${OPSYS} == "Linux"
1.54 taca 340: _RUBY_SHLIBALIAS= ${RUBY_VER}.${RUBY_SLEXT}.${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}
1.56 taca 341: .elif ${OPSYS} == "SunOS"
342: RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}
1.64 taca 343: _RUBY_SHLIBALIAS= ${RUBY_VER}.${RUBY_SLEXT}.${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}.${_RUBY_API_MINOR}
1.10 taca 344: .endif
345:
1.53 taca 346: .if !empty(_RUBY_SHLIBALIAS)
347: RUBY_SHLIBALIAS= lib/libruby${_RUBY_SHLIBALIAS}
1.10 taca 348: .endif
349:
1.64 taca 350: .if ${_OPSYS_SHLIB_TYPE} == "dylib"
1.5 taca 351: RUBY_DLEXT= bundle
1.53 taca 352: RUBY_SLEXT= dylib
1.5 taca 353: .else
354: RUBY_DLEXT= so
1.53 taca 355: RUBY_SLEXT= so
1.5 taca 356: .endif
357:
358: #
1.26 taca 359: # Use pthread library with Ruby
360: #
1.64 taca 361: .if !empty(MACHINE_PLATFORM:MDarwin-9.*-powerpc)
1.42 minskim 362: # Workaround for Ruby Bug #193
363: # http://redmine.ruby-lang.org/issues/show/193
364: RUBY_USE_PTHREAD?= no
1.26 taca 365: .else
366: RUBY_USE_PTHREAD?= yes
367: PTHREAD_OPTS+= native
1.27 taca 368: PTHREAD_AUTO_VARS= yes
1.26 taca 369: .endif
370:
1.23 taca 371: RUBY_DYNAMIC_DIRS?= # empty
372:
1.10 taca 373: RUBY_SRCDIR?= ${_PKGSRC_TOPDIR}/lang/${RUBY_BASE}
374:
375: #
1.23 taca 376: # common paths
1.1 taca 377: #
1.49 taca 378: RUBY_INC= include/ruby-${RUBY_VER_DIR}
379: RUBY_ARCHINC= ${RUBY_INC}/${RUBY_ARCH}
380: RUBY_LIB_BASE= lib/ruby
381: RUBY_LIB?= ${RUBY_LIB_BASE}/${RUBY_VER_DIR}
1.40 taca 382: RUBY_ARCHLIB?= ${RUBY_LIB}/${RUBY_ARCH}
1.49 taca 383: RUBY_SITELIB_BASE?= ${RUBY_LIB_BASE}/site_ruby
1.40 taca 384: RUBY_SITELIB?= ${RUBY_SITELIB_BASE}/${RUBY_VER_DIR}
385: RUBY_SITEARCHLIB?= ${RUBY_SITELIB}/${RUBY_ARCH}
1.49 taca 386: RUBY_VENDORLIB_BASE?= ${RUBY_LIB_BASE}/vendor_ruby
1.40 taca 387: RUBY_VENDORLIB?= ${RUBY_VENDORLIB_BASE}/${RUBY_VER_DIR}
388: RUBY_VENDORARCHLIB?= ${RUBY_VENDORLIB}/${RUBY_ARCH}
1.49 taca 389:
1.40 taca 390: RUBY_DOC?= share/doc/${RUBY_NAME}
391: RUBY_EG?= share/examples/${RUBY_NAME}
392:
1.64 taca 393:
1.49 taca 394: RUBY_GEM_BASE?= ${RUBY_LIB_BASE}/gems
395: GEM_HOME?= ${RUBY_GEM_BASE}/${RUBY_VER_DIR}
1.31 taca 396:
397: #
398: # ri database relative path
399: #
400: RUBY_RIDIR?= share/ri
1.15 taca 401: RUBY_BASERIDIR?= ${RUBY_RIDIR}/${RUBY_VER_DIR}
402: RUBY_SYSRIDIR?= ${RUBY_BASERIDIR}/system
403: RUBY_SITERIDIR?= ${RUBY_BASERIDIR}/site
1.1 taca 404:
405: #
406: # MAKE_ENV
407: #
1.18 rillig 408: MAKE_ENV+= RUBY=${RUBY:Q} RUBY_VER=${RUBY_VER:Q} \
409: RUBY_VERSION_DEFAULT=${RUBY_VERSION_DEFAULT:Q}
1.15 taca 410:
1.64 taca 411: MAKEFLAGS+= RUBY_VERSION_DEFAULT=${RUBY_VERSION_DEFAULT:Q}
1.15 taca 412:
1.49 taca 413: #
1.1 taca 414: # PLIST
415: #
1.64 taca 416: PLIST_VARS+= ruby18 ruby19 ruby192 ruby193
1.49 taca 417: .if ${RUBY_VER} == "18"
418: PLIST.ruby18= yes
419: .elif ${RUBY_VER} == "19"
420: PLIST.ruby19= yes
1.64 taca 421: PLIST.ruby192= yes
422: .elif ${RUBY_VER} == "193"
423: PLIST.ruby19= yes
424: PLIST.ruby193= yes
1.49 taca 425: .endif
426:
427: PLIST_RUBY_DIRS= RUBY_INC=${RUBY_INC:Q} RUBY_ARCHINC=${RUBY_ARCHINC:Q} \
428: RUBY_LIB_BASE=${RUBY_LIB_BASE:Q} \
429: RUBY_LIB=${RUBY_LIB:Q} \
430: RUBY_ARCHLIB=${RUBY_ARCHLIB:Q} \
1.40 taca 431: RUBY_SITELIB_BASE=${RUBY_SITELIB_BASE:Q} \
1.49 taca 432: RUBY_SITELIB=${RUBY_SITELIB:Q} \
433: RUBY_SITEARCHLIB=${RUBY_SITEARCHLIB:Q} \
1.40 taca 434: RUBY_VENDORLIB_BASE=${RUBY_VENDORLIB_BASE:Q} \
435: RUBY_VENDORLIB=${RUBY_VENDORLIB:Q} \
436: RUBY_VENDORARCHLIB=${RUBY_VENDORARCHLIB:Q} \
1.49 taca 437: RUBY_DOC=${RUBY_DOC:Q} \
438: RUBY_EG=${RUBY_EG:Q} \
439: RUBY_GEM_BASE=${RUBY_GEM_BASE:Q} \
440: GEM_HOME=${GEM_HOME:Q} \
441: RUBY_RIDIR=${RUBY_RIDIR:Q} \
442: RUBY_BASERIDIR=${RUBY_BASERIDIR:Q} \
443: RUBY_SYSRIDIR=${RUBY_SYSRIDIR:Q} \
444: RUBY_SITERIDIR=${RUBY_SITERIDIR:Q}
1.1 taca 445:
1.14 taca 446: #
447: # substitutions
448: #
1.18 rillig 449: FILES_SUBST+= RUBY=${RUBY:Q} RUBY_NAME=${RUBY_NAME:Q} \
450: RUBY_PKGPREFIX=${RUBY_PKGPREFIX:Q} \
451: RUBY_VER=${RUBY_VER:Q} \
1.15 taca 452: ${PLIST_RUBY_DIRS}
1.14 taca 453:
1.15 taca 454: MESSAGE_SUBST+= RUBY="${RUBY}" RUBY_VER="${RUBY_VER}" \
1.14 taca 455: RUBY_VERSION="${RUBY_VERSION}" \
1.15 taca 456: RUBY_PKGPREFIX="${RUBY_PKGPREFIX}" \
457: ${PLIST_RUBY_DIRS:S,DIR="${PREFIX}/,DIR=",}
1.14 taca 458:
1.18 rillig 459: PLIST_SUBST+= RUBY=${RUBY:Q} RUBY_VER=${RUBY_VER:Q} \
1.49 taca 460: RUBY_PKGPREFIX=${RUBY_PKGPREFIX} \
1.18 rillig 461: RUBY_VERSION=${RUBY_VERSION:Q} \
462: RUBY_VER_DIR=${RUBY_VER_DIR:Q} \
1.53 taca 463: RUBY_DLEXT=${RUBY_DLEXT:Q} RUBY_SLEXT=${RUBY_SLEXT:Q} \
464: RUBY_SHLIB=${RUBY_SHLIB:Q} \
465: RUBY_SHLIBALIAS=${RUBY_SHLIBALIAS:Q} \
466: RUBY_STATICLIB=${RUBY_STATICLIB:Q} \
1.39 jlam 467: RUBY_ARCH=${RUBY_ARCH:Q} \
1.58 taca 468: ${PLIST_RUBY_DIRS:S,DIR="${PREFIX}/,DIR=",}
1.1 taca 469:
1.22 taca 470: #
1.23 taca 471: # make dynamic PLIST
1.22 taca 472: #
1.23 taca 473: .if !empty(RUBY_DYNAMIC_DIRS)
474:
475: RUBY_PLIST_DYNAMIC= ${WRKDIR}/PLIST.work
476:
477: .if !defined(PLIST_SRC)
478: . if exists(${PKGDIR}/PLIST.common)
479: PLIST_SRC+= ${PKGDIR}/PLIST.common
480: . elif exists(${PKGDIR}/PLIST)
481: PLIST_SRC+= ${PKGDIR}/PLIST
482: . endif
483:
484: PLIST_SRC+= ${RUBY_PLIST_DYNAMIC}
485:
486: . if exists(${PKGDIR}/PLIST.common_end)
487: PLIST_SRC+= ${PKGDIR}/PLIST.common_end
488: . endif
489:
490: .endif
491:
492: RUBY_PLIST_COMMENT_CMD= \
493: ${ECHO} "@comment The following lines are automatically generated"
1.37 obache 494: RUBY_PLIST_FILES_CMD= ( cd ${DESTDIR}${PREFIX}; \
1.23 taca 495: ${FIND} ${RUBY_DYNAMIC_DIRS} \( -type f -o -type l \) -print ) | \
496: ${SORT} -u
497: RUBY_GENERATE_PLIST = ( \
498: ${RUBY_PLIST_COMMENT_CMD}; \
1.47 joerg 499: ${RUBY_PLIST_FILES_CMD} ) > ${RUBY_PLIST_DYNAMIC}
1.22 taca 500: .endif
1.23 taca 501:
502: .if !empty(RUBY_NOVERSION:M[nN][oO])
1.26 taca 503: .if empty(RUBY_USE_PTHREAD:M[nN][oO])
1.22 taca 504: .include "../../mk/pthread.buildlink3.mk"
1.23 taca 505: .endif
506: .include "../../mk/bdb.buildlink3.mk"
1.28 taca 507: .include "../../converters/libiconv/buildlink3.mk"
1.22 taca 508: .include "../../devel/zlib/buildlink3.mk"
509: .include "../../security/openssl/buildlink3.mk"
1.23 taca 510: .include "../../mk/dlopen.buildlink3.mk"
1.22 taca 511: .endif
512:
1.53 taca 513: PRINT_PLIST_AWK+= /lib\/libruby${RUBY_STATICLIB}$$/ \
514: { sub(/${RUBY_STATICLIB}/, "$${RUBY_STATICLIB}"); }
515: PRINT_PLIST_AWK+= /lib\/libruby${RUBY_VER}\.${RUBY_SLEXT}/ \
516: { sub(/${RUBY_VER}\.${RUBY_SLEXT}$$/, \
517: "$${RUBY_VER}.$${RUBY_SLEXT}"); }
518: PRINT_PLIST_AWK+= /${RUBY_SHLIB}$$/ \
519: { sub(/${RUBY_SHLIB}$$/, "$${RUBY_SHLIB}"); }
520: PRINT_PLIST_AWK+= /${RUBY_SLEXT}\.${RUBY_SHLIBVER}$$/ \
521: { sub(/${RUBY_SLEXT}\.${RUBY_SHLIBVER}$$/, \
522: "$${RUBY_SLEXT}.$${RUBY_SHLIBVER}"); }
523: .if ${RUBY_SHLIBALIAS} != "@comment"
524: PRINT_PLIST_AWK+= /${RUBY_SHLIBALIAS:S/\//\\\//}$$/ \
525: { sub(/${RUBY_SHLIBALIAS:S/\//\\\//}$$/, \
526: "$${RUBY_SHLIBALIAS}"); }
1.49 taca 527: .endif
528: PRINT_PLIST_AWK+= /^${RUBY_ARCHINC:S|/|\\/|g}/ \
529: { gsub(/${RUBY_ARCHINC:S|/|\\/|g}/, "$${RUBY_ARCHINC}"); \
530: print; next; }
531: PRINT_PLIST_AWK+= /^${RUBY_INC:S|/|\\/|g}/ \
532: { gsub(/${RUBY_INC:S|/|\\/|g}/, "$${RUBY_INC}"); \
533: print; next; }
1.40 taca 534: PRINT_PLIST_AWK+= /\.${RUBY_DLEXT}$$/ \
535: { gsub(/${RUBY_DLEXT}$$/, "$${RUBY_DLEXT}") }
1.47 joerg 536: PRINT_PLIST_AWK+= /^${RUBY_ARCHLIB:S|/|\\/|g}/ \
1.40 taca 537: { gsub(/${RUBY_ARCHLIB:S|/|\\/|g}/, "$${RUBY_ARCHLIB}"); \
538: print; next; }
1.47 joerg 539: PRINT_PLIST_AWK+= /^${RUBY_VENDORARCHLIB:S|/|\\/|g}/ \
1.40 taca 540: { gsub(/${RUBY_VENDORARCHLIB:S|/|\\/|g}/, "$${RUBY_VENDORARCHLIB}"); \
541: print; next; }
1.47 joerg 542: PRINT_PLIST_AWK+= /^${RUBY_VENDORLIB:S|/|\\/|g}/ \
1.40 taca 543: { gsub(/${RUBY_VENDORLIB:S|/|\\/|g}/, "$${RUBY_VENDORLIB}"); \
544: print; next; }
1.47 joerg 545: PRINT_PLIST_AWK+= /^${RUBY_SITEARCHLIB:S|/|\\/|g}/ \
1.40 taca 546: { gsub(/${RUBY_SITEARCHLIB:S|/|\\/|g}/, "$${RUBY_SITEARCHLIB}"); \
547: print; next; }
1.47 joerg 548: PRINT_PLIST_AWK+= /^${RUBY_SITELIB:S|/|\\/|g}/ \
1.40 taca 549: { gsub(/${RUBY_SITELIB:S|/|\\/|g}/, "$${RUBY_SITELIB}"); \
550: print; next; }
1.49 taca 551: PRINT_PLIST_AWK+= /^${RUBY_SITELIB_BASE:S|/|\\/|g}/ \
1.40 taca 552: { gsub(/${RUBY_SITELIB_BASE:S|/|\\/|g}/, "$${RUBY_SITELIB_BASE}"); \
553: print; next; }
1.49 taca 554: PRINT_PLIST_AWK+= /^${RUBY_VENDORLIB_BASE:S|/|\\/|g}/ \
1.40 taca 555: { gsub(/${RUBY_VENDORLIB_BASE:S|/|\\/|g}/, "$${RUBY_VENDORLIB_BASE}"); \
556: print; next; }
1.47 joerg 557: PRINT_PLIST_AWK+= /^${RUBY_LIB:S|/|\\/|g}/ \
1.40 taca 558: { gsub(/${RUBY_LIB:S|/|\\/|g}/, "$${RUBY_LIB}"); \
559: print; next; }
1.47 joerg 560: PRINT_PLIST_AWK+= /^${RUBY_DOC:S|/|\\/|g}/ \
1.40 taca 561: { gsub(/${RUBY_DOC:S|/|\\/|g}/, "$${RUBY_DOC}"); \
562: print; next; }
1.47 joerg 563: PRINT_PLIST_AWK+= /^${RUBY_EG:S|/|\\/|g}/ \
1.40 taca 564: { gsub(/${RUBY_EG:S|/|\\/|g}/, "$${RUBY_EG}"); \
565: print; next; }
1.47 joerg 566: PRINT_PLIST_AWK+= /^${RUBY_SITERIDIR:S|/|\\/|g}/ \
1.40 taca 567: { gsub(/${RUBY_SITERIDIR:S|/|\\/|g}/, "$${RUBY_SITERIDIR}"); \
568: print; next; }
1.49 taca 569: PRINT_PLIST_AWK+= /^${RUBY_SYSRIDIR:S|/|\\/|g}\// \
570: { next; }
571: PRINT_PLIST_AWK+= /\/${RUBY_NAME}/ \
572: { sub(/${RUBY_NAME}/, "$${RUBY_NAME}"); }
1.65 taca 573: PRINT_PLIST_AWK+= /^${GEM_HOME:S|/|\\/|g:S|.|\\.|g}/ \
574: { gsub(/${GEM_HOME:S|/|\\/|g}/, "$${GEM_HOME}"); }
1.40 taca 575:
1.1 taca 576: .endif # _RUBY_MK
CVSweb <webmaster@jp.NetBSD.org>