2001-01-09 20:59:50 +00:00
|
|
|
# New ports collection makefile for: Ruby-qt2
|
2001-01-23 07:20:39 +00:00
|
|
|
# Date created: 9 Jan 2001
|
2000-08-12 16:48:48 +00:00
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-01-09 20:59:50 +00:00
|
|
|
PORTNAME= qt2
|
2001-01-18 16:52:47 +00:00
|
|
|
PORTVERSION= 0.11
|
2001-02-07 06:33:32 +00:00
|
|
|
PORTREVISION= 1
|
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/
|
2000-09-07 07:44:38 +00:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2000-09-10 07:57:05 +00:00
|
|
|
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
|
2000-08-12 16:48:48 +00:00
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
2001-01-09 20:59:50 +00:00
|
|
|
LIB_DEPENDS= qt2.4:${PORTSDIR}/x11-toolkits/qt22
|
2000-08-12 16:48:48 +00:00
|
|
|
|
2000-09-07 07:44:38 +00:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
2000-08-12 16:48:48 +00:00
|
|
|
|
2000-09-07 12:13:53 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2000-08-12 16:48:48 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2001-01-09 20:59:50 +00:00
|
|
|
CONFIGURE_ARGS= --with-qt2-include=${X11BASE}/include/qt2 \
|
|
|
|
--with-qt2-lib=${X11BASE}/lib \
|
|
|
|
--with-qt2=qt2 \
|
|
|
|
--with-x11-dir=${X11BASE}
|
2000-09-28 10:49:53 +00:00
|
|
|
MAKE_ARGS= LOCAL_LIBS=-lgcc
|
2000-09-07 07:44:38 +00:00
|
|
|
INSTALL_TARGET= site-install
|
2000-08-12 16:48:48 +00:00
|
|
|
|
2001-01-09 10:17:17 +00:00
|
|
|
post-extract:
|
2001-01-09 20:59:50 +00:00
|
|
|
find ${WRKSRC} '(' -name .cvsignore -o -name a.out ')' -delete
|
2000-08-12 16:48:48 +00:00
|
|
|
|
2001-02-07 06:33:32 +00:00
|
|
|
post-patch:
|
|
|
|
${RUBY} -i -pe 'sub %r"/usr/X11\b", "${X11BASE}"' ${WRKSRC}/lib/qt2.rb
|
|
|
|
|
2000-08-12 16:48:48 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2001-01-09 20:59:50 +00:00
|
|
|
${MKDIR} ${RUBY_EXAMPLESDIR}/qt2
|
|
|
|
${CP} -R ${WRKSRC}/examples/* ${RUBY_EXAMPLESDIR}/qt2/
|
|
|
|
${MKDIR} ${RUBY_DOCDIR}/qt2/ja
|
|
|
|
${CP} -R ${WRKSRC}/tutorial ${RUBY_DOCDIR}/qt2/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.txt ${RUBY_DOCDIR}/qt2/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.jp ${RUBY_DOCDIR}/qt2/ja/
|
2000-08-12 16:48:48 +00:00
|
|
|
.endif
|
|
|
|
|
2000-09-26 08:02:17 +00:00
|
|
|
.include <bsd.port.mk>
|