Annotation of pkgsrc/lang/ruby/rubyversion.mk, revision 1.66
1.66 ! joerg 1: # $NetBSD: rubyversion.mk,v 1.65 2011/12/24 03:30:10 taca 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.64 taca 235: .if ${RUBY_VER} == "18"
236: RUBY_VERSION= ${RUBY18_VERSION}
237: RUBY_VERSION_FULL= ${RUBY_VERSION}${RUBY_PATCHLEVEL:S/pl/./}
238: RUBY_ABI_VERSION= ${RUBY18_API_VERSION}
239: .elif ${RUBY_VER} == "19"
240: RUBY_VERSION= ${RUBY19_VERSION}
241: RUBY_VERSION_FULL= ${RUBY_VERSION}${RUBY_PATCHLEVEL}
1.59 taca 242: RUBY_ABI_VERSION= ${RUBY19_API_VERSION}
1.64 taca 243: .elif ${RUBY_VER} == "193"
244: RUBY_VERSION= ${RUBY193_VERSION}
245: RUBY_VERSION_FULL= ${RUBY_VERSION}${RUBY_PATCHLEVEL}
246: RUBY_ABI_VERSION= ${RUBY_VERSION}
247: .else
248: PKG_FAIL_REASON+= "Unknown Ruby version specified: ${RUBY_VER}."
1.32 taca 249: .endif
1.1 taca 250:
1.64 taca 251: RUBY_PATCHLEVEL= ${RUBY${RUBY_VER}_PATCHLEVEL}
252: RUBY_API_VERSION= ${RUBY${RUBY_VER}_API_VERSION}
253:
1.60 wiz 254: # Variable assignment for multi-ruby packages
1.64 taca 255: MULTI+= RUBY_VER=${RUBY_VERS:U${RUBY_VERSION_DEFAULT}}
1.4 taca 256:
1.1 taca 257: # RUBY_NOVERSION should be set to "Yes" if the package dosen't depend on
258: # any specific version of ruby command. In this case, package's
259: # name begin with "ruby-".
260: # If RUBY_NOVERSION is "No" (default), the package's name is begin
1.16 taca 261: # with ${RUBY_NAME}; "ruby18", "ruby19", and so on.
1.1 taca 262: #
1.53 taca 263: # It also affects to RUBY_DOC, RUBY_EG...
1.1 taca 264: #
265: RUBY_NOVERSION?= No
266:
1.29 taca 267: # _RUBY_VER_MAJOR, _RUBY_VER_MINOR, _RUBY_VER_TEENY and _RUBY_PATCHLEVEL
268: # is defined from version of Ruby. It should not be used in packages'
269: # Makefile.
270: #
1.64 taca 271: _RUBY_VER_MAJOR= ${RUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/}
272: _RUBY_VER_MINOR= ${RUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/}
273: _RUBY_VER_TEENY= ${RUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\3/}
1.1 taca 274:
1.64 taca 275: _RUBY_API_MAJOR= ${RUBY_API_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1\2/}
276: _RUBY_API_MINOR= ${RUBY_API_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\3/}
1.1 taca 277:
1.64 taca 278: RUBY_SUFFIX= ${RUBY_VER}
1.49 taca 279:
1.64 taca 280: RUBY_NAME= ruby${RUBY_SUFFIX}
281: RUBYGEM_NAME= gem${RUBY_SUFFIX}
282: RAKE_NAME= rake${RUBY_SUFFIX}
1.1 taca 283:
1.49 taca 284: RUBY_ENCODING_ARG?=
285:
1.10 taca 286: RUBY_BASE= ruby${RUBY_VER}-base
287:
1.1 taca 288: RUBY_PKGPREFIX?= ${RUBY_NAME}
289:
1.64 taca 290: .if ${RUBY_VER} == "18" || ${RUBY_VER} == "19"
291: RUBY_VER_DIR= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}
292: .else
293: RUBY_VER_DIR= ${RUBY_VERSION}
1.1 taca 294: .endif
295:
296: .if empty(RUBY_NOVERSION:M[nN][oO])
297: RUBY_SUFFIX=
298: RUBY_NAME= ruby
299: .endif
300:
1.64 taca 301: RUBY_BUILD_RDOC?= Yes
302: RUBY_BUILD_RI?= Yes
1.49 taca 303:
1.15 taca 304: RUBY?= ${PREFIX}/bin/${RUBY_NAME}
305: RDOC?= ${PREFIX}/bin/rdoc${RUBY_VER}
1.1 taca 306:
307: RUBY_ARCH?= ${LOWER_ARCH}-${LOWER_OPSYS}${APPEND_ELF}${LOWER_OPSYS_VERSUFFIX}
308:
309: #
1.53 taca 310: # Ruby shared and static library version handling.
1.10 taca 311: #
1.49 taca 312: RUBY_SHLIBVER?= ${RUBY_API_VERSION}
1.53 taca 313: RUBY_SHLIB?= ${RUBY_VER}.${RUBY_SLEXT}.${RUBY_SHLIBVER}
314: RUBY_SHLIBALIAS?= @comment
315: RUBY_STATICLIB?= ${RUBY_VER}-static.a
1.10 taca 316:
317: .if ${OPSYS} == "NetBSD" || ${OPSYS} == "Interix"
1.64 taca 318: RUBY_SHLIBVER= ${_RUBY_API_MAJOR}.${_RUBY_API_MINOR}
319: _RUBY_SHLIBALIAS= ${RUBY_VER}.${RUBY_SLEXT}.${_RUBY_API_MAJOR}
1.12 jlam 320: .elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
321: RUBY_SHLIBVER= ${RUBY_VER}
1.10 taca 322: .elif ${OPSYS} == "OpenBSD"
1.64 taca 323: RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}${_RUBY_API_MINOR}
1.53 taca 324: .elif ${OPSYS} == "Darwin"
325: RUBY_SHLIB= ${RUBY_VER}.${RUBY_SHLIBVER}.${RUBY_SLEXT}
326: .if ${RUBY_VER} == "18"
327: _RUBY_SHLIBALIAS= ${RUBY_VER}.${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}.${RUBY_SLEXT}
328: .else
329: _RUBY_SHLIBALIAS= .${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}.${RUBY_SLEXT}
330: RUBY_STATICLIB= ${RUBY_VER}.${RUBY_API_VERSION}-static.a
331: .endif
1.10 taca 332: .elif ${OPSYS} == "Linux"
1.54 taca 333: _RUBY_SHLIBALIAS= ${RUBY_VER}.${RUBY_SLEXT}.${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}
1.56 taca 334: .elif ${OPSYS} == "SunOS"
335: RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}
1.64 taca 336: _RUBY_SHLIBALIAS= ${RUBY_VER}.${RUBY_SLEXT}.${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}.${_RUBY_API_MINOR}
1.10 taca 337: .endif
338:
1.53 taca 339: .if !empty(_RUBY_SHLIBALIAS)
340: RUBY_SHLIBALIAS= lib/libruby${_RUBY_SHLIBALIAS}
1.10 taca 341: .endif
342:
1.64 taca 343: .if ${_OPSYS_SHLIB_TYPE} == "dylib"
1.5 taca 344: RUBY_DLEXT= bundle
1.53 taca 345: RUBY_SLEXT= dylib
1.5 taca 346: .else
347: RUBY_DLEXT= so
1.53 taca 348: RUBY_SLEXT= so
1.5 taca 349: .endif
350:
351: #
1.26 taca 352: # Use pthread library with Ruby
353: #
1.64 taca 354: .if !empty(MACHINE_PLATFORM:MDarwin-9.*-powerpc)
1.42 minskim 355: # Workaround for Ruby Bug #193
356: # http://redmine.ruby-lang.org/issues/show/193
357: RUBY_USE_PTHREAD?= no
1.26 taca 358: .else
359: RUBY_USE_PTHREAD?= yes
360: PTHREAD_OPTS+= native
1.27 taca 361: PTHREAD_AUTO_VARS= yes
1.26 taca 362: .endif
363:
1.23 taca 364: RUBY_DYNAMIC_DIRS?= # empty
365:
1.10 taca 366: RUBY_SRCDIR?= ${_PKGSRC_TOPDIR}/lang/${RUBY_BASE}
367:
368: #
1.23 taca 369: # common paths
1.1 taca 370: #
1.49 taca 371: RUBY_INC= include/ruby-${RUBY_VER_DIR}
372: RUBY_ARCHINC= ${RUBY_INC}/${RUBY_ARCH}
373: RUBY_LIB_BASE= lib/ruby
374: RUBY_LIB?= ${RUBY_LIB_BASE}/${RUBY_VER_DIR}
1.40 taca 375: RUBY_ARCHLIB?= ${RUBY_LIB}/${RUBY_ARCH}
1.49 taca 376: RUBY_SITELIB_BASE?= ${RUBY_LIB_BASE}/site_ruby
1.40 taca 377: RUBY_SITELIB?= ${RUBY_SITELIB_BASE}/${RUBY_VER_DIR}
378: RUBY_SITEARCHLIB?= ${RUBY_SITELIB}/${RUBY_ARCH}
1.49 taca 379: RUBY_VENDORLIB_BASE?= ${RUBY_LIB_BASE}/vendor_ruby
1.40 taca 380: RUBY_VENDORLIB?= ${RUBY_VENDORLIB_BASE}/${RUBY_VER_DIR}
381: RUBY_VENDORARCHLIB?= ${RUBY_VENDORLIB}/${RUBY_ARCH}
1.49 taca 382:
1.40 taca 383: RUBY_DOC?= share/doc/${RUBY_NAME}
384: RUBY_EG?= share/examples/${RUBY_NAME}
385:
1.64 taca 386:
1.49 taca 387: RUBY_GEM_BASE?= ${RUBY_LIB_BASE}/gems
388: GEM_HOME?= ${RUBY_GEM_BASE}/${RUBY_VER_DIR}
1.31 taca 389:
390: #
391: # ri database relative path
392: #
393: RUBY_RIDIR?= share/ri
1.15 taca 394: RUBY_BASERIDIR?= ${RUBY_RIDIR}/${RUBY_VER_DIR}
395: RUBY_SYSRIDIR?= ${RUBY_BASERIDIR}/system
396: RUBY_SITERIDIR?= ${RUBY_BASERIDIR}/site
1.1 taca 397:
398: #
399: # MAKE_ENV
400: #
1.18 rillig 401: MAKE_ENV+= RUBY=${RUBY:Q} RUBY_VER=${RUBY_VER:Q} \
402: RUBY_VERSION_DEFAULT=${RUBY_VERSION_DEFAULT:Q}
1.15 taca 403:
1.64 taca 404: MAKEFLAGS+= RUBY_VERSION_DEFAULT=${RUBY_VERSION_DEFAULT:Q}
1.15 taca 405:
1.49 taca 406: #
1.1 taca 407: # PLIST
408: #
1.64 taca 409: PLIST_VARS+= ruby18 ruby19 ruby192 ruby193
1.49 taca 410: .if ${RUBY_VER} == "18"
411: PLIST.ruby18= yes
412: .elif ${RUBY_VER} == "19"
413: PLIST.ruby19= yes
1.64 taca 414: PLIST.ruby192= yes
415: .elif ${RUBY_VER} == "193"
416: PLIST.ruby19= yes
417: PLIST.ruby193= yes
1.49 taca 418: .endif
419:
420: PLIST_RUBY_DIRS= RUBY_INC=${RUBY_INC:Q} RUBY_ARCHINC=${RUBY_ARCHINC:Q} \
421: RUBY_LIB_BASE=${RUBY_LIB_BASE:Q} \
422: RUBY_LIB=${RUBY_LIB:Q} \
423: RUBY_ARCHLIB=${RUBY_ARCHLIB:Q} \
1.40 taca 424: RUBY_SITELIB_BASE=${RUBY_SITELIB_BASE:Q} \
1.49 taca 425: RUBY_SITELIB=${RUBY_SITELIB:Q} \
426: RUBY_SITEARCHLIB=${RUBY_SITEARCHLIB:Q} \
1.40 taca 427: RUBY_VENDORLIB_BASE=${RUBY_VENDORLIB_BASE:Q} \
428: RUBY_VENDORLIB=${RUBY_VENDORLIB:Q} \
429: RUBY_VENDORARCHLIB=${RUBY_VENDORARCHLIB:Q} \
1.49 taca 430: RUBY_DOC=${RUBY_DOC:Q} \
431: RUBY_EG=${RUBY_EG:Q} \
432: RUBY_GEM_BASE=${RUBY_GEM_BASE:Q} \
433: GEM_HOME=${GEM_HOME:Q} \
434: RUBY_RIDIR=${RUBY_RIDIR:Q} \
435: RUBY_BASERIDIR=${RUBY_BASERIDIR:Q} \
436: RUBY_SYSRIDIR=${RUBY_SYSRIDIR:Q} \
437: RUBY_SITERIDIR=${RUBY_SITERIDIR:Q}
1.1 taca 438:
1.14 taca 439: #
440: # substitutions
441: #
1.18 rillig 442: FILES_SUBST+= RUBY=${RUBY:Q} RUBY_NAME=${RUBY_NAME:Q} \
443: RUBY_PKGPREFIX=${RUBY_PKGPREFIX:Q} \
444: RUBY_VER=${RUBY_VER:Q} \
1.15 taca 445: ${PLIST_RUBY_DIRS}
1.14 taca 446:
1.15 taca 447: MESSAGE_SUBST+= RUBY="${RUBY}" RUBY_VER="${RUBY_VER}" \
1.14 taca 448: RUBY_VERSION="${RUBY_VERSION}" \
1.15 taca 449: RUBY_PKGPREFIX="${RUBY_PKGPREFIX}" \
450: ${PLIST_RUBY_DIRS:S,DIR="${PREFIX}/,DIR=",}
1.14 taca 451:
1.18 rillig 452: PLIST_SUBST+= RUBY=${RUBY:Q} RUBY_VER=${RUBY_VER:Q} \
1.49 taca 453: RUBY_PKGPREFIX=${RUBY_PKGPREFIX} \
1.18 rillig 454: RUBY_VERSION=${RUBY_VERSION:Q} \
455: RUBY_VER_DIR=${RUBY_VER_DIR:Q} \
1.53 taca 456: RUBY_DLEXT=${RUBY_DLEXT:Q} RUBY_SLEXT=${RUBY_SLEXT:Q} \
457: RUBY_SHLIB=${RUBY_SHLIB:Q} \
458: RUBY_SHLIBALIAS=${RUBY_SHLIBALIAS:Q} \
459: RUBY_STATICLIB=${RUBY_STATICLIB:Q} \
1.39 jlam 460: RUBY_ARCH=${RUBY_ARCH:Q} \
1.58 taca 461: ${PLIST_RUBY_DIRS:S,DIR="${PREFIX}/,DIR=",}
1.1 taca 462:
1.22 taca 463: #
1.23 taca 464: # make dynamic PLIST
1.22 taca 465: #
1.23 taca 466: .if !empty(RUBY_DYNAMIC_DIRS)
467:
468: RUBY_PLIST_DYNAMIC= ${WRKDIR}/PLIST.work
469:
470: .if !defined(PLIST_SRC)
471: . if exists(${PKGDIR}/PLIST.common)
472: PLIST_SRC+= ${PKGDIR}/PLIST.common
473: . elif exists(${PKGDIR}/PLIST)
474: PLIST_SRC+= ${PKGDIR}/PLIST
475: . endif
476:
477: PLIST_SRC+= ${RUBY_PLIST_DYNAMIC}
478:
479: . if exists(${PKGDIR}/PLIST.common_end)
480: PLIST_SRC+= ${PKGDIR}/PLIST.common_end
481: . endif
482:
483: .endif
484:
485: RUBY_PLIST_COMMENT_CMD= \
486: ${ECHO} "@comment The following lines are automatically generated"
1.37 obache 487: RUBY_PLIST_FILES_CMD= ( cd ${DESTDIR}${PREFIX}; \
1.23 taca 488: ${FIND} ${RUBY_DYNAMIC_DIRS} \( -type f -o -type l \) -print ) | \
489: ${SORT} -u
490: RUBY_GENERATE_PLIST = ( \
491: ${RUBY_PLIST_COMMENT_CMD}; \
1.47 joerg 492: ${RUBY_PLIST_FILES_CMD} ) > ${RUBY_PLIST_DYNAMIC}
1.22 taca 493: .endif
1.23 taca 494:
495: .if !empty(RUBY_NOVERSION:M[nN][oO])
1.26 taca 496: .if empty(RUBY_USE_PTHREAD:M[nN][oO])
1.22 taca 497: .include "../../mk/pthread.buildlink3.mk"
1.23 taca 498: .endif
499: .include "../../mk/bdb.buildlink3.mk"
1.28 taca 500: .include "../../converters/libiconv/buildlink3.mk"
1.22 taca 501: .include "../../devel/zlib/buildlink3.mk"
502: .include "../../security/openssl/buildlink3.mk"
1.23 taca 503: .include "../../mk/dlopen.buildlink3.mk"
1.22 taca 504: .endif
505:
1.53 taca 506: PRINT_PLIST_AWK+= /lib\/libruby${RUBY_STATICLIB}$$/ \
507: { sub(/${RUBY_STATICLIB}/, "$${RUBY_STATICLIB}"); }
508: PRINT_PLIST_AWK+= /lib\/libruby${RUBY_VER}\.${RUBY_SLEXT}/ \
509: { sub(/${RUBY_VER}\.${RUBY_SLEXT}$$/, \
510: "$${RUBY_VER}.$${RUBY_SLEXT}"); }
511: PRINT_PLIST_AWK+= /${RUBY_SHLIB}$$/ \
512: { sub(/${RUBY_SHLIB}$$/, "$${RUBY_SHLIB}"); }
513: PRINT_PLIST_AWK+= /${RUBY_SLEXT}\.${RUBY_SHLIBVER}$$/ \
514: { sub(/${RUBY_SLEXT}\.${RUBY_SHLIBVER}$$/, \
515: "$${RUBY_SLEXT}.$${RUBY_SHLIBVER}"); }
516: .if ${RUBY_SHLIBALIAS} != "@comment"
517: PRINT_PLIST_AWK+= /${RUBY_SHLIBALIAS:S/\//\\\//}$$/ \
518: { sub(/${RUBY_SHLIBALIAS:S/\//\\\//}$$/, \
519: "$${RUBY_SHLIBALIAS}"); }
1.49 taca 520: .endif
521: PRINT_PLIST_AWK+= /^${RUBY_ARCHINC:S|/|\\/|g}/ \
522: { gsub(/${RUBY_ARCHINC:S|/|\\/|g}/, "$${RUBY_ARCHINC}"); \
523: print; next; }
524: PRINT_PLIST_AWK+= /^${RUBY_INC:S|/|\\/|g}/ \
525: { gsub(/${RUBY_INC:S|/|\\/|g}/, "$${RUBY_INC}"); \
526: print; next; }
1.40 taca 527: PRINT_PLIST_AWK+= /\.${RUBY_DLEXT}$$/ \
528: { gsub(/${RUBY_DLEXT}$$/, "$${RUBY_DLEXT}") }
1.47 joerg 529: PRINT_PLIST_AWK+= /^${RUBY_ARCHLIB:S|/|\\/|g}/ \
1.40 taca 530: { gsub(/${RUBY_ARCHLIB:S|/|\\/|g}/, "$${RUBY_ARCHLIB}"); \
531: print; next; }
1.47 joerg 532: PRINT_PLIST_AWK+= /^${RUBY_VENDORARCHLIB:S|/|\\/|g}/ \
1.40 taca 533: { gsub(/${RUBY_VENDORARCHLIB:S|/|\\/|g}/, "$${RUBY_VENDORARCHLIB}"); \
534: print; next; }
1.47 joerg 535: PRINT_PLIST_AWK+= /^${RUBY_VENDORLIB:S|/|\\/|g}/ \
1.40 taca 536: { gsub(/${RUBY_VENDORLIB:S|/|\\/|g}/, "$${RUBY_VENDORLIB}"); \
537: print; next; }
1.47 joerg 538: PRINT_PLIST_AWK+= /^${RUBY_SITEARCHLIB:S|/|\\/|g}/ \
1.40 taca 539: { gsub(/${RUBY_SITEARCHLIB:S|/|\\/|g}/, "$${RUBY_SITEARCHLIB}"); \
540: print; next; }
1.47 joerg 541: PRINT_PLIST_AWK+= /^${RUBY_SITELIB:S|/|\\/|g}/ \
1.40 taca 542: { gsub(/${RUBY_SITELIB:S|/|\\/|g}/, "$${RUBY_SITELIB}"); \
543: print; next; }
1.49 taca 544: PRINT_PLIST_AWK+= /^${RUBY_SITELIB_BASE:S|/|\\/|g}/ \
1.40 taca 545: { gsub(/${RUBY_SITELIB_BASE:S|/|\\/|g}/, "$${RUBY_SITELIB_BASE}"); \
546: print; next; }
1.49 taca 547: PRINT_PLIST_AWK+= /^${RUBY_VENDORLIB_BASE:S|/|\\/|g}/ \
1.40 taca 548: { gsub(/${RUBY_VENDORLIB_BASE:S|/|\\/|g}/, "$${RUBY_VENDORLIB_BASE}"); \
549: print; next; }
1.47 joerg 550: PRINT_PLIST_AWK+= /^${RUBY_LIB:S|/|\\/|g}/ \
1.40 taca 551: { gsub(/${RUBY_LIB:S|/|\\/|g}/, "$${RUBY_LIB}"); \
552: print; next; }
1.47 joerg 553: PRINT_PLIST_AWK+= /^${RUBY_DOC:S|/|\\/|g}/ \
1.40 taca 554: { gsub(/${RUBY_DOC:S|/|\\/|g}/, "$${RUBY_DOC}"); \
555: print; next; }
1.47 joerg 556: PRINT_PLIST_AWK+= /^${RUBY_EG:S|/|\\/|g}/ \
1.40 taca 557: { gsub(/${RUBY_EG:S|/|\\/|g}/, "$${RUBY_EG}"); \
558: print; next; }
1.47 joerg 559: PRINT_PLIST_AWK+= /^${RUBY_SITERIDIR:S|/|\\/|g}/ \
1.40 taca 560: { gsub(/${RUBY_SITERIDIR:S|/|\\/|g}/, "$${RUBY_SITERIDIR}"); \
561: print; next; }
1.49 taca 562: PRINT_PLIST_AWK+= /^${RUBY_SYSRIDIR:S|/|\\/|g}\// \
563: { next; }
564: PRINT_PLIST_AWK+= /\/${RUBY_NAME}/ \
565: { sub(/${RUBY_NAME}/, "$${RUBY_NAME}"); }
1.65 taca 566: PRINT_PLIST_AWK+= /^${GEM_HOME:S|/|\\/|g:S|.|\\.|g}/ \
567: { gsub(/${GEM_HOME:S|/|\\/|g}/, "$${GEM_HOME}"); }
1.40 taca 568:
1.1 taca 569: .endif # _RUBY_MK
CVSweb <webmaster@jp.NetBSD.org>