Use command line arguments rather than patching the configure script.

This commit is contained in:
Akinori MUSHA 2000-08-18 02:21:12 +00:00
parent 15a6f940b3
commit 41b71624e5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31727
2 changed files with 4 additions and 2 deletions

View file

@ -24,6 +24,7 @@ BUILD_DEPENDS+= rd2:${PORTSDIR}/textproc/ruby-rdtool
.endif .endif
INSTALL_TARGET= site-install INSTALL_TARGET= site-install
CONFIGURE_ARGS= --with-opt-dir="${LOCALBASE}"
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
@ -33,7 +34,7 @@ RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
do-configure: do-configure:
@cd ${WRKSRC}; \ @cd ${WRKSRC}; \
${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)
post-build: post-build:

View file

@ -20,6 +20,7 @@ LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
INSTALL_TARGET= site-install INSTALL_TARGET= site-install
CONFIGURE_ARGS= --with-opt-dir="${LOCALBASE}"
WRKSRC= ${WRKDIR}/${PORTNAME} WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
@ -30,7 +31,7 @@ RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
do-configure: do-configure:
@cd ${WRKSRC}; \ @cd ${WRKSRC}; \
${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
post-install: post-install:
.if !defined(NOPORTDOCS) .if !defined(NOPORTDOCS)