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-10-15 15:45:59 +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
|
|
|
|
2000-10-05 06:57:56 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
1999-08-26 21:22:50 +00:00
|
|
|
|
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-10-05 06:57:56 +00:00
|
|
|
USE_GTK= yes
|
|
|
|
WANT_IMLIB= yes
|
1999-08-26 21:22:50 +00:00
|
|
|
|
2000-10-15 15:45:59 +00:00
|
|
|
CONFIGURE_ARGS= ${CONFIG_CMD}
|
2000-09-07 07:29:07 +00:00
|
|
|
INSTALL_TARGET= site-install
|
1999-08-26 21:22:50 +00:00
|
|
|
|
2000-10-05 06:57:56 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(HAVE_IMLIB)
|
|
|
|
USE_IMLIB= yes
|
2000-10-15 15:45:59 +00:00
|
|
|
PLIST_SUB+= IMLIB:=""
|
|
|
|
CONFIG_CMD= ${IMLIB_CONFIG}
|
1999-08-28 16:24:21 +00:00
|
|
|
.else
|
2000-10-15 15:45:59 +00:00
|
|
|
PLIST_SUB+= IMLIB:="@comment "
|
|
|
|
CONFIG_CMD= ${GTK_CONFIG}
|
1999-08-28 16:24:21 +00:00
|
|
|
.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
|
2000-10-05 06:57:56 +00:00
|
|
|
.if defined(HAVE_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-10-05 06:57:56 +00:00
|
|
|
.include <bsd.port.post.mk>
|