diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-06-04 14:54:32 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-06-04 14:54:32 +0000 |
commit | a2bd9f0603548fc183077bc36dab01954e7942ee (patch) | |
tree | deae73d7c7ad24b58a903119132df64f1ece6319 /lang/ruby16_static | |
parent | 89d8b2e400bd4a2fd7f181c0f3561664820e1dbd (diff) | |
download | ports-a2bd9f0603548fc183077bc36dab01954e7942ee.tar.gz ports-a2bd9f0603548fc183077bc36dab01954e7942ee.zip |
Notes
Diffstat (limited to 'lang/ruby16_static')
-rw-r--r-- | lang/ruby16_static/Makefile | 13 | ||||
-rw-r--r-- | lang/ruby16_static/pkg-plist | 2 |
2 files changed, 12 insertions, 3 deletions
diff --git a/lang/ruby16_static/Makefile b/lang/ruby16_static/Makefile index be92b2620aae..285cc7330c7d 100644 --- a/lang/ruby16_static/Makefile +++ b/lang/ruby16_static/Makefile @@ -41,9 +41,16 @@ CONFIGURE_ENV= XLDFLAGS="-L${LOCALBASE}/lib" CONFIGURE_ARGS!= cd ${_RUBY_PORTDIR} && ${MAKE} -V CONFIGURE_ARGS CONFIGURE_ARGS:= ${CONFIGURE_ARGS:N--enable-shared:M-*} \ --with-static-linked-ext=yes \ - --with-libc_r=no \ --with-opt-dir="${LOCALBASE}" +.if ${RUBY_VER} == ${RUBY_DEFAULT_VER} +IF_DEFAULT= "" +.else +IF_DEFAULT= "@comment " +.endif + +PLIST_SUB+= IF_DEFAULT=${IF_DEFAULT} + do-fetch: @${DO_NADA} @@ -65,6 +72,8 @@ do-extract: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${RUBY_NAME} ${RUBY_WITH_SUFFIX}_s - ${LN} -fs ${RUBY_WITH_SUFFIX}_s ${RUBY_WITHOUT_SUFFIX}_s +.if ${RUBY_VER} == ${RUBY_DEFAULT_VER} + ${LN} -fs ruby${_RUBY_SUFFIX}_s ${RUBY_WITHOUT_SUFFIX}_s +.endif .include <bsd.port.post.mk> diff --git a/lang/ruby16_static/pkg-plist b/lang/ruby16_static/pkg-plist index d63178114962..e8e4eb369d6f 100644 --- a/lang/ruby16_static/pkg-plist +++ b/lang/ruby16_static/pkg-plist @@ -1,2 +1,2 @@ -bin/ruby_s +%%IF_DEFAULT%%bin/ruby_s bin/ruby%%_RUBY_SUFFIX%%_s |