Improve configure scripts so that they take configure arguments from
the command line. Feedback status: Already sent to the author
This commit is contained in:
parent
24214f4e83
commit
51b786ab79
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31710
@ -20,6 +20,8 @@ LIB_DEPENDS= ${QTLIB}.${QTLIB_SHLIBVER}:${PORTSDIR}/x11-toolkits/${QT_PORTNAME}
|
||||
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
||||
|
||||
INSTALL_TARGET= site-install
|
||||
CONFIGURE_ARGS= --with-qt-include=${X11BASE}/include/X11/qt \
|
||||
--with-qt-lib=${X11BASE}/lib
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
||||
@ -28,14 +30,12 @@ RUBY?= ${LOCALBASE}/bin/ruby
|
||||
RUBY_VER?= 1.4
|
||||
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
||||
|
||||
QTLIBDIR= ${X11BASE}/lib
|
||||
QTINCDIR= ${X11BASE}/include/X11/qt
|
||||
|
||||
.if defined(WITH_I18N)
|
||||
I18NQT= -DI18NQT
|
||||
QTLIB= qti18n
|
||||
QTLIB_SHLIBVER= 3
|
||||
QT_PORTNAME= qt-i18n
|
||||
CONFIGURE_ARGS+= --with-qti18n=qti18n
|
||||
.else
|
||||
QTLIB= qt
|
||||
QTLIB_SHLIBVER= 3
|
||||
@ -43,19 +43,13 @@ QT_PORTNAME= qt145
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${PERL} -i -pe ' \
|
||||
s,%%I18NQT%%,${I18NQT},g; \
|
||||
s,%%QTLIBDIR%%,${QTLIBDIR},g; \
|
||||
s,%%QTINCDIR%%,${QTINCDIR},g; \
|
||||
s,%%QTLIB%%,${QTLIB},g; \
|
||||
' ${WRKSRC}/extconf.rb
|
||||
${PERL} -i -pe ' \
|
||||
s,/usr/X11\b,${X11BASE},g; \
|
||||
' ${WRKSRC}/lib/qt.rb
|
||||
|
||||
do-configure:
|
||||
@cd ${WRKSRC}; \
|
||||
${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
|
||||
${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
|
@ -20,6 +20,8 @@ LIB_DEPENDS= ${QTLIB}.${QTLIB_SHLIBVER}:${PORTSDIR}/x11-toolkits/${QT_PORTNAME}
|
||||
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
||||
|
||||
INSTALL_TARGET= site-install
|
||||
CONFIGURE_ARGS= --with-qt-include=${X11BASE}/include/X11/qt \
|
||||
--with-qt-lib=${X11BASE}/lib
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
||||
@ -28,14 +30,12 @@ RUBY?= ${LOCALBASE}/bin/ruby
|
||||
RUBY_VER?= 1.4
|
||||
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
||||
|
||||
QTLIBDIR= ${X11BASE}/lib
|
||||
QTINCDIR= ${X11BASE}/include/X11/qt
|
||||
|
||||
.if defined(WITH_I18N)
|
||||
I18NQT= -DI18NQT
|
||||
QTLIB= qti18n
|
||||
QTLIB_SHLIBVER= 3
|
||||
QT_PORTNAME= qt-i18n
|
||||
CONFIGURE_ARGS+= --with-qti18n=qti18n
|
||||
.else
|
||||
QTLIB= qt
|
||||
QTLIB_SHLIBVER= 3
|
||||
@ -43,19 +43,13 @@ QT_PORTNAME= qt145
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${PERL} -i -pe ' \
|
||||
s,%%I18NQT%%,${I18NQT},g; \
|
||||
s,%%QTLIBDIR%%,${QTLIBDIR},g; \
|
||||
s,%%QTINCDIR%%,${QTINCDIR},g; \
|
||||
s,%%QTLIB%%,${QTLIB},g; \
|
||||
' ${WRKSRC}/extconf.rb
|
||||
${PERL} -i -pe ' \
|
||||
s,/usr/X11\b,${X11BASE},g; \
|
||||
' ${WRKSRC}/lib/qt.rb
|
||||
|
||||
do-configure:
|
||||
@cd ${WRKSRC}; \
|
||||
${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
|
||||
${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
|
@ -21,6 +21,10 @@ RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
|
||||
${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/qt.rb:${PORTSDIR}/x11-toolkits/${RUBY_QT_PORTNAME}
|
||||
|
||||
INSTALL_TARGET= site-install
|
||||
CONFIGURE_ARGS= --with-x-dir=${X11BASE} \
|
||||
--with-qt-include=${X11BASE}/include/X11/qt \
|
||||
--with-qt-lib=${X11BASE}/lib \
|
||||
--with-kde-dir=${LOCALBASE}
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
||||
@ -29,16 +33,12 @@ RUBY?= ${LOCALBASE}/bin/ruby
|
||||
RUBY_VER?= 1.4
|
||||
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
||||
|
||||
QTLIBDIR= ${X11BASE}/lib
|
||||
QTINCDIR= ${X11BASE}/include/X11/qt
|
||||
KDELIBDIR= ${LOCALBASE}/lib
|
||||
KDEINCDIR= ${LOCALBASE}/include
|
||||
|
||||
.if defined(WITH_I18N)
|
||||
QTLIB= qti18n
|
||||
KDELIB_SHLIBVER= 2
|
||||
KDE_PORTNAME= kdelibs11-i18n
|
||||
RUBY_QT_PORTNAME= ruby-qt-i18n
|
||||
CONFIGURE_ARGS+= --with-qti18n=qti18n
|
||||
.else
|
||||
QTLIB= qt
|
||||
KDELIB_SHLIBVER= 3
|
||||
@ -46,20 +46,9 @@ KDE_PORTNAME= kdelibs11
|
||||
RUBY_QT_PORTNAME= ruby-qt
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${PERL} -i -pe ' \
|
||||
s,%%X11BASE%%,${X11BASE},g; \
|
||||
s,%%I18NQT%%,${I18NQT},g; \
|
||||
s,%%QTLIBDIR%%,${QTLIBDIR},g; \
|
||||
s,%%QTINCDIR%%,${QTINCDIR},g; \
|
||||
s,%%KDELIBDIR%%,${KDELIBDIR},g; \
|
||||
s,%%KDEINCDIR%%,${KDEINCDIR},g; \
|
||||
s,%%QTLIB%%,${QTLIB},g; \
|
||||
' ${WRKSRC}/extconf.rb
|
||||
|
||||
do-configure:
|
||||
@cd ${WRKSRC}; \
|
||||
${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
|
||||
${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
|
Loading…
Reference in New Issue
Block a user