diff options
Diffstat (limited to 'x11-toolkits/ruby-qt2/Makefile')
-rw-r--r-- | x11-toolkits/ruby-qt2/Makefile | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/x11-toolkits/ruby-qt2/Makefile b/x11-toolkits/ruby-qt2/Makefile new file mode 100644 index 0000000..942ecb6 --- /dev/null +++ b/x11-toolkits/ruby-qt2/Makefile @@ -0,0 +1,70 @@ +# 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 +CATEGORIES= x11-toolkits # ruby +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 + +WRKSRC= ${WRKDIR}/${PORTNAME} +PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" + +RUBY= ${LOCALBASE}/bin/ruby +RUBY_VER= 1.4 +RUBY_ARCH= ${ARCH}-freebsd${OSREL} + +QTLIBDIR= ${X11BASE}/lib +QTINCDIR= ${X11BASE}/include/X11/qt + +.if defined(WITH_QTI18N) +I18NQT= -DI18NQT +QTLIB= qti18n +QTLIB_SHLIBVER= 3 +QT_PORTNAME= qt-i18n +.else +QTLIB= qt +QTLIB_SHLIBVER= 3 +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 + +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> |