diff options
author | knu <knu@FreeBSD.org> | 2002-03-30 18:10:36 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-03-30 18:10:36 +0800 |
commit | 0c71d32c8a18da39b5c133b41d180acebff84e9c (patch) | |
tree | d130169d1ee2b382be28aa3317007e4ee53ec518 /lang/ruby_static | |
parent | 401fc4869649cdaafa42629b4c3d7438eba77dc5 (diff) | |
download | freebsd-ports-gnome-0c71d32c8a18da39b5c133b41d180acebff84e9c.tar.gz freebsd-ports-gnome-0c71d32c8a18da39b5c133b41d180acebff84e9c.tar.zst freebsd-ports-gnome-0c71d32c8a18da39b5c133b41d180acebff84e9c.zip |
Use autoconf 2.53 for lang/ruby_static-devel and unbreak it.
Diffstat (limited to 'lang/ruby_static')
-rw-r--r-- | lang/ruby_static/Makefile | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/lang/ruby_static/Makefile b/lang/ruby_static/Makefile index 7932ed5e6c15..f4cdcba1620a 100644 --- a/lang/ruby_static/Makefile +++ b/lang/ruby_static/Makefile @@ -18,8 +18,6 @@ BUILD_DEPENDS= ${NONEXISTENT}:${.CURDIR}/../../${RUBY_PORT}:patch USE_RUBY= yes -USE_AUTOCONF= yes - # Beware, because gdbm is under GPL, you must treat the whole binary # as GPL says if you include gdbm in it. EXT_PORTS= archivers/ruby-zlib \ @@ -36,6 +34,19 @@ EXT_PORTS+= devel/ruby-fnmatch BUILD_DEPENDS+= ${NONEXISTENT}:${_PORTSDIR}/${p}:patch .endfor +.if defined(RUBY_VER) +.if ${RUBY_VER} > 1.6 +NEWAUTOCONF= yes +.endif +.endif + +.if defined(NEWAUTOCONF) +BUILD_DEPENDS+= autoconf:${PORTSDIR}/devel/autoconf +GNU_CONFIGURE= yes +.else +USE_AUTOCONF= yes +.endif + WRKSRC= ${RUBY_WRKSRC} DESCR= ${_RUBY_PORTDIR}/pkg-descr @@ -95,6 +106,11 @@ do-extract: (cd ${WRKSRC}/ext && \ for x in *; do [ -d $$x ] && echo $$x >> Setup; done) +.if defined(NEWAUTOCONF) +pre-configure: + cd ${WRKSRC}; autoconf +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${RUBY_NAME} ${RUBY_WITH_SUFFIX}_s .if ${RUBY_VER} == ${RUBY_DEFAULT_VER} |