2000-08-12 16:48:48 +00:00
|
|
|
# New ports collection makefile for: Ruby-qt
|
|
|
|
# Date created: 12 Aug 2000
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= qt
|
|
|
|
PORTVERSION= 0.11
|
2000-08-16 12:21:24 +00:00
|
|
|
CATEGORIES= x11-toolkits ruby
|
2000-08-12 16:48:48 +00:00
|
|
|
MASTER_SITES= http://sfns.u-shizuoka-ken.ac.jp/geneng/horie_hp/ruby/
|
|
|
|
PKGNAMEPREFIX= ruby-
|
|
|
|
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
|
|
LIB_DEPENDS= ${QTLIB}.${QTLIB_SHLIBVER}:${PORTSDIR}/x11-toolkits/${QT_PORTNAME}
|
|
|
|
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
|
|
|
|
|
|
INSTALL_TARGET= site-install
|
2000-08-17 15:21:00 +00:00
|
|
|
CONFIGURE_ARGS= --with-qt-include=${X11BASE}/include/X11/qt \
|
|
|
|
--with-qt-lib=${X11BASE}/lib
|
2000-08-12 16:48:48 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
|
|
|
|
2000-08-12 20:09:41 +00:00
|
|
|
RUBY?= ${LOCALBASE}/bin/ruby
|
|
|
|
RUBY_VER?= 1.4
|
|
|
|
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
2000-08-12 16:48:48 +00:00
|
|
|
|
2000-08-13 17:53:06 +00:00
|
|
|
.if defined(WITH_I18N)
|
2000-08-12 16:48:48 +00:00
|
|
|
I18NQT= -DI18NQT
|
|
|
|
QTLIB= qti18n
|
|
|
|
QTLIB_SHLIBVER= 3
|
|
|
|
QT_PORTNAME= qt-i18n
|
2000-08-17 15:21:00 +00:00
|
|
|
CONFIGURE_ARGS+= --with-qti18n=qti18n
|
2000-08-12 16:48:48 +00:00
|
|
|
.else
|
|
|
|
QTLIB= qt
|
|
|
|
QTLIB_SHLIBVER= 3
|
|
|
|
QT_PORTNAME= qt145
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${PERL} -i -pe ' \
|
|
|
|
s,/usr/X11\b,${X11BASE},g; \
|
|
|
|
' ${WRKSRC}/lib/qt.rb
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}; \
|
2000-08-17 15:21:00 +00:00
|
|
|
${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
|
2000-08-12 16:48:48 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/examples/ruby/qt
|
|
|
|
${CP} -R ${WRKSRC}/examples/ ${PREFIX}/share/examples/ruby/qt/
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/ruby/qt/ja
|
|
|
|
${CP} -R ${WRKSRC}/tutorial ${PREFIX}/share/doc/ruby/qt/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/ruby/qt/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.jp ${PREFIX}/share/doc/ruby/qt/ja/
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|