1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/x11-toolkits/ruby-gtk/Makefile

60 lines
1.4 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: ruby-gtk
# Date created: 19 April 1999
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
#
1999-08-31 03:04:38 +00:00
# $FreeBSD$
#
PORTNAME= gtk
PORTVERSION= 0.23
CATEGORIES= x11-toolkits ruby
MASTER_SITES= http://www.ruby-lang.org/gtk/download/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= yasuf@bsdclub.org
2000-10-05 06:57:56 +00:00
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
USE_XLIB= yes
2000-10-05 06:57:56 +00:00
USE_GTK= yes
WANT_IMLIB= yes
CONFIGURE_ARGS= ${CONFIG_CMD}
INSTALL_TARGET= site-install
2000-10-05 06:57:56 +00:00
.include <bsd.port.pre.mk>
.if defined(HAVE_IMLIB)
USE_IMLIB= yes
PLIST_SUB+= IMLIB:=""
CONFIG_CMD= ${IMLIB_CONFIG}
.else
PLIST_SUB+= IMLIB:="@comment "
CONFIG_CMD= ${GTK_CONFIG}
.endif
post-configure:
${PERL} -i -pe 's/\binstall\b/site-install/g' ${WRKSRC}/Makefile
post-install:
${INSTALL_DATA} ${WRKSRC}/lib/*.rb ${RUBY_SITELIBDIR}
.if !defined(NOPORTDOCS)
${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)
${MKDIR} ${RUBY_EXAMPLESDIR}/gtk/gdkimlib
${INSTALL_DATA} ${WRKSRC}/sample/gdkimlib/*.rb ${RUBY_EXAMPLESDIR}/gtk/gdkimlib
.endif
${MKDIR} ${RUBY_DOCDIR}/gtk/ja
${INSTALL_DATA} ${WRKSRC}/doc/api/* ${RUBY_DOCDIR}/gtk
${INSTALL_DATA} ${WRKSRC}/doc/api-ja/* ${RUBY_DOCDIR}/gtk/ja
.endif
2000-10-05 06:57:56 +00:00
.include <bsd.port.post.mk>