2000-08-12 20:09:41 +00:00
|
|
|
# New ports collection makefile for: ruby-gtk
|
|
|
|
# Date created: 19 April 1999
|
|
|
|
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
|
1999-08-26 21:22:50 +00:00
|
|
|
#
|
1999-08-31 03:04:38 +00:00
|
|
|
# $FreeBSD$
|
1999-08-26 21:22:50 +00:00
|
|
|
#
|
|
|
|
|
2000-09-07 07:29:07 +00:00
|
|
|
PORTNAME= gtk
|
2000-04-10 01:11:24 +00:00
|
|
|
PORTVERSION= 0.23
|
2000-08-16 12:21:24 +00:00
|
|
|
CATEGORIES= x11-toolkits ruby
|
2000-04-25 06:57:17 +00:00
|
|
|
MASTER_SITES= http://www.ruby-lang.org/gtk/download/
|
2000-09-07 07:29:07 +00:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
|
2000-08-08 16:08:31 +00:00
|
|
|
DIST_SUBDIR= ruby
|
1999-08-26 21:22:50 +00:00
|
|
|
|
2000-04-25 06:57:17 +00:00
|
|
|
MAINTAINER= yasuf@bsdclub.org
|
1999-08-26 21:22:50 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
|
|
|
|
|
2000-09-07 07:29:07 +00:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
|
|
|
|
1999-08-26 21:22:50 +00:00
|
|
|
USE_XLIB= yes
|
|
|
|
|
2000-09-07 07:29:07 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
CONFIGURE_ARGS= ${GTK_CONFIG}
|
|
|
|
INSTALL_TARGET= site-install
|
1999-08-26 21:22:50 +00:00
|
|
|
|
2000-04-25 06:57:17 +00:00
|
|
|
.if defined(WITHOUT_IMLIB)
|
1999-08-26 21:22:50 +00:00
|
|
|
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
|
1999-08-28 16:24:21 +00:00
|
|
|
.else
|
1999-10-08 03:30:33 +00:00
|
|
|
LIB_DEPENDS+= Imlib.5:${PORTSDIR}/graphics/imlib
|
1999-08-28 16:24:21 +00:00
|
|
|
GTK_CONFIG?= ${X11BASE}/bin/imlib-config
|
|
|
|
.endif
|
1999-08-26 21:22:50 +00:00
|
|
|
|
2000-09-07 07:29:07 +00:00
|
|
|
post-configure:
|
|
|
|
${PERL} -i -pe 's/\binstall\b/site-install/g' ${WRKSRC}/Makefile
|
1999-08-26 21:22:50 +00:00
|
|
|
|
|
|
|
post-install:
|
2000-09-07 07:29:07 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/*.rb ${RUBY_SITELIBDIR}
|
2000-08-12 20:09:41 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-09-07 07:29:07 +00:00
|
|
|
${MKDIR} ${RUBY_EXAMPLESDIR}/gtk
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${RUBY_EXAMPLESDIR}/gtk
|
|
|
|
${MKDIR} ${RUBY_EXAMPLESDIR}/gtk/browser
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.rb ${RUBY_EXAMPLESDIR}/gtk/browser
|
1999-08-28 16:24:21 +00:00
|
|
|
.if !defined(NO_IMLIB)
|
2000-09-07 07:29:07 +00:00
|
|
|
${MKDIR} ${RUBY_EXAMPLESDIR}/gtk/gdkimlib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/gdkimlib/*.rb ${RUBY_EXAMPLESDIR}/gtk/gdkimlib
|
1999-08-28 16:24:21 +00:00
|
|
|
.endif
|
2000-09-07 07:29:07 +00:00
|
|
|
${MKDIR} ${RUBY_DOCDIR}/gtk/ja
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/api/* ${RUBY_DOCDIR}/gtk
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/api-ja/* ${RUBY_DOCDIR}/gtk/ja
|
2000-02-23 00:27:25 +00:00
|
|
|
.endif
|
1999-08-26 21:22:50 +00:00
|
|
|
|
2000-09-26 08:02:17 +00:00
|
|
|
.include <bsd.port.mk>
|